baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
tvw has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
jyaworski has quit [Ping timeout: 260 seconds]
Psybur has joined #ruby
gheegh has joined #ruby
alfiemax has joined #ruby
eckhardt_ has joined #ruby
ramfjord has joined #ruby
x77686d has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
x77686d has quit [Client Quit]
alfiemax has quit [Ping timeout: 264 seconds]
x77686d has joined #ruby
<arahael> While we're talking about scopes... Blocks introduce own scopes as well. What about if conditions?
<arahael> And begin/rescue blocks.
x77686d has quit [Client Quit]
nitric_ has quit [Ping timeout: 256 seconds]
chocoelho has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
x77686d has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.1]
karapetyan has joined #ruby
kapil___ has joined #ruby
tomphp has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
mlkkk has joined #ruby
mlkkk has quit [Client Quit]
cagomez has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
ta_ has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
x77686d has quit [Quit: x77686d]
cagomez has quit [Read error: Connection reset by peer]
white_lilies has quit [Ping timeout: 265 seconds]
ryzokuken has quit [Remote host closed the connection]
wolfshappen has quit [Ping timeout: 264 seconds]
kahootbird has quit [Quit: Leaving]
harrymoreno has joined #ruby
wolfshappen has joined #ruby
jready has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jyaworski has joined #ruby
cam27 has quit [Remote host closed the connection]
cam27 has joined #ruby
x77686d has joined #ruby
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jyaworski has quit [Ping timeout: 260 seconds]
sameerynho has quit [Ping timeout: 265 seconds]
harrymoreno has quit [Ping timeout: 240 seconds]
cjohnson_ has quit [Remote host closed the connection]
rabajaj has quit [Remote host closed the connection]
alfiemax has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
rabajaj has joined #ruby
gizmore has joined #ruby
jready has quit []
nettie has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
cliluw has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
cliluw has joined #ruby
Yzguy has quit [Client Quit]
jyaworski has joined #ruby
cagomez has joined #ruby
Yzguy has joined #ruby
eckhardt_ has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
chocoelho has joined #ruby
x77686d has quit [Quit: x77686d]
chocoelho has quit [Client Quit]
cschneid_ has quit [Ping timeout: 264 seconds]
x77686d has joined #ruby
nicholaslyang has joined #ruby
alfiemax has joined #ruby
cschneid_ has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
dinfuehr_ has joined #ruby
harrymoreno has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
rouget430__ has quit [Ping timeout: 240 seconds]
mroutis has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
harrymoreno has quit [Ping timeout: 256 seconds]
cam27 has quit [Quit: cam27]
chocoelho has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
noycesauce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
rawste has quit [Quit: That's all folks!]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
jyaworski has joined #ruby
bmurt has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
cyberg has quit [Quit: Leaving]
jyaworski has quit [Ping timeout: 260 seconds]
white_lilies has joined #ruby
Puffball has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 248 seconds]
n0m4d1c_ has joined #ruby
karapetyan has joined #ruby
pilne has quit [Quit: Leaving]
n0m4d1c has quit [Ping timeout: 268 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
n0m4d1c_ has quit [Remote host closed the connection]
Tempesta has quit [Quit: See ya!]
ta_ has joined #ruby
harrymoreno has joined #ruby
cschneid_ has joined #ruby
jyaworski has joined #ruby
harrymoreno has quit [Ping timeout: 260 seconds]
Tempesta has joined #ruby
cjohnson has joined #ruby
alfiemax has joined #ruby
mrBen2k2k2k has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
n0m4d1c has joined #ruby
amar has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
DataChunk has quit [Ping timeout: 240 seconds]
amar has quit [Ping timeout: 264 seconds]
harrymoreno has joined #ruby
mroutis has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DataChunk has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
harrymoreno has quit [Quit: WeeChat 1.9]
ramfjord has joined #ruby
duper has quit [Remote host closed the connection]
j0bk has quit [Ping timeout: 240 seconds]
jeffreylevesque has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Ping timeout: 240 seconds]
chaos95 has quit [Ping timeout: 264 seconds]
chocoelho has quit [Quit: Konversation terminated!]
ipee has joined #ruby
ceclinux has joined #ruby
ipe has quit [Ping timeout: 248 seconds]
ceclinux has quit [Remote host closed the connection]
DataChunk has quit [Quit: Leaving]
konsolebox has quit [Ping timeout: 240 seconds]
raul782 has quit []
konsolebox has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
cschneid_ has quit [Remote host closed the connection]
nicholaslyang has quit [Read error: Connection reset by peer]
Psybur has quit [Ping timeout: 240 seconds]
jyaworski has joined #ruby
ciscam has quit [Ping timeout: 256 seconds]
ciscam has joined #ruby
alfiemax has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
Psybur has joined #ruby
jyaworski has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
jtperreault has quit [Quit: WeeChat 1.4]
Psybur has quit [Ping timeout: 240 seconds]
nertzy has quit [Ping timeout: 240 seconds]
Jello_Raptor has quit [Remote host closed the connection]
Nightmare has quit [Remote host closed the connection]
alfiemax has joined #ruby
white_lilies has quit [Ping timeout: 240 seconds]
govg has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Jello_Raptor has joined #ruby
alfiemax has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
twe4ked has quit [Ping timeout: 276 seconds]
twe4ked has joined #ruby
croberts has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
croberts has joined #ruby
mroutis has quit [Read error: Connection reset by peer]
exchgr has quit [Ping timeout: 256 seconds]
mroutis has joined #ruby
ohcibi has quit [Read error: Connection reset by peer]
izaac has quit [Ping timeout: 240 seconds]
izaac has joined #ruby
ciscam has quit [Ping timeout: 268 seconds]
ohcibi has joined #ruby
ciscam has joined #ruby
jyaworski has joined #ruby
nadir has joined #ruby
lytol has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 240 seconds]
Nightmare has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
n0m4d1c has joined #ruby
n0m4d1c has quit [Client Quit]
exchgr has joined #ruby
AJA4350 has quit [Quit: AJA4350]
d_kam has joined #ruby
<baweaver> :D
sauvin has joined #ruby
apeiros has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
amar has joined #ruby
jyaworski has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ur5us has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
amar has quit [Ping timeout: 276 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
d_kam has quit [Quit: Be back later ...]
ramfjord has joined #ruby
jyaworski has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
Yzguy has quit [Quit: Zzz...]
alfiemax has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 240 seconds]
d_kam has joined #ruby
karapetyan has joined #ruby
d_kam has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 265 seconds]
guardian` is now known as guardian
ur5us has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
troys has quit [Quit: Bye]
jyaworski has joined #ruby
ur5us has joined #ruby
amar has joined #ruby
phaul has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
Burgestrand has joined #ruby
dionysus69 has joined #ruby
lele has quit [Ping timeout: 265 seconds]
jyaworski has quit [Ping timeout: 240 seconds]
lele has joined #ruby
ur5us has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Quit: Closing time!]
ur5us has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
nadir has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 256 seconds]
suukim has joined #ruby
tvw has joined #ruby
eckhardt_ has joined #ruby
s2013 has joined #ruby
cschneid_ has joined #ruby
ur5us has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
clemens3 has joined #ruby
TomyWork has joined #ruby
dionysus69 has joined #ruby
Burgestrand has joined #ruby
x77686d has quit [Quit: x77686d]
cabotto has joined #ruby
jenrzzz has joined #ruby
andikr has joined #ruby
jyaworski has joined #ruby
ur5us has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
amar has quit [Remote host closed the connection]
aufi has joined #ruby
arekushi has joined #ruby
ahly has joined #ruby
schneider- has joined #ruby
<ahly> helo
woutervh has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
<ahly> can you guys help me with a syntactical thing?
<woutervh> Can somebody explain me why ruby won't compile? I have the issue with 2.4.1 as with 2.4.4
<ruby[bot]> woutervh: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ahly> why are you compiling from source?
ramfjord has joined #ruby
<dminuoso> Why not?
<ahly> because if the build isn't working it'd be easier to get it up and running by just using prepackaged bins
inerthia has joined #ruby
<dminuoso> woutervh: How did you configure and build ruby?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<woutervh> ahly, that I understand, but I'm compiling for an embedded target, using poky/yocto
<dminuoso> ahly: That's not helpful at all.
jottr has joined #ruby
<dminuoso> ahly: Ruby is a piece of software. If ruby doesn't build, it's an issue. We help with ruby issues.
<woutervh> and so it doesn't pass
cabotto has quit [Remote host closed the connection]
<woutervh> so I downloaded it myself manually from the net, and try to compile it that way, and have the same issue
<dminuoso> ahly: Ruby should be a simple mindless autoconf, configure, make, make install.
<woutervh> compiling steps just via ./configure + make
<dminuoso> woutervh: No additional flags passed?
<woutervh> so I guess it has something to do with my system, but I don't know what's causing it
<woutervh> no
<dminuoso> woutervh: Can you gist your config.log
<woutervh> sure
_cabotto has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jyaworski has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
weaksauce has quit [Ping timeout: 256 seconds]
schneider- has quit [Ping timeout: 248 seconds]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
jyaworski has joined #ruby
amar has quit [Remote host closed the connection]
<ahly> ok so
<ahly> while theres a little lull in the activity mm
<ahly> I'm trying to basically translate this line of Python
<ahly> `map(3.__add__ [1, 2, 3])`
<ahly> and I know in Ruby one equivalent way of writing that would be `[1, 2, 3].map{|n| n+3}`
<ahly> but I was wondering if there was a similar way to dispatch on the `+` method of an Integer instance `3`
<dminuoso> ahly: You could use a curried add function.
<apeiros> >> 3.method(:+).call(2)
<ruby[bot]> apeiros: # => 5 (https://eval.in/998532)
fullstack_ has quit [Ping timeout: 264 seconds]
<ahly> tyvm
<dminuoso> ahly: that is: add = -> x, y { x + y }.curry; [1,2,3].map(&arr[3])
<dminuoso> >> add = -> x, y { x + y }.curry; [1,2,3].map(&arr[3])
<ruby[bot]> dminuoso: # => undefined local variable or method `arr' for main:Object ...check link for more (https://eval.in/998534)
<dminuoso> >> add = -> x, y { x + y }.curry; [1,2,3].map(&add[3])
<apeiros> >> [1,2,3].map(&3.method(:+))
<ruby[bot]> dminuoso: # => [4, 5, 6] (https://eval.in/998535)
<ruby[bot]> apeiros: # => [4, 5, 6] (https://eval.in/998536)
<ahly> owo wow
<apeiros> IMO curry is nicer
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
alfiemax has joined #ruby
<dminuoso> apeiros: Im so tempted to try and rig Ruby with squirly lambdas that autocurry. ~> x, y { ... }
fullstack_ has joined #ruby
<dminuoso> With push/enter calling semantics.
mlehrer has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<ahly> how come the interpreter can't recognize `[1,2,3].map &3.+`? Doesn't `3.+` still just refer to the method `:+` of `3`?
<dminuoso> ahly: &(3.+)
<dminuoso> ahly: &(3.send(:+))
<dminuoso> ahly: ~ 3.send(:+).to_proc
<dminuoso> roughly.
<jhass> so it's a call to + and a call to to_proc on the result of that call
hs365 has joined #ruby
<dminuoso> o/ jhass
<jhass> o/
<ahly> but I tried 3.+.to_proc and it doesn't run
<dminuoso> woutervh: can you include your ext/readline/mkmf.log
_cabotto has quit []
marr has joined #ruby
x77686d has joined #ruby
<jhass> ahly: that's because + is binary +, so it expects an argument. unary + is actually called +@, so 3.+@.to_proc (which thenn fails because numbers don't actuallly have a to_proc)
alfiemax has quit [Read error: Connection reset by peer]
hs366 has quit [Ping timeout: 260 seconds]
<woutervh> dminuoso, added
<dminuoso> woutervh: Hah. Further files into separate gists please, this loads so terribly slow :D
jyaworski has quit [Ping timeout: 256 seconds]
<apeiros> ahly: no, 3.+ does not "refer to the method"
<apeiros> it is directly invoking the method
<apeiros> it's not like python where x.foo returns the method and x.foo() calls it
<dminuoso> woutervh: Are you building from some packaged source bundle or straight from a checked out git repository?
<apeiros> in ruby, there's no syntax to get to the Method instance of a method, you have to use Object#method
<ahly> oh
<ahly> well okie dokie
jenrzzz has joined #ruby
<dminuoso> woutervh: Alright I think I have figured out the issues.
troulouliou_div2 has joined #ruby
<dminuoso> woutervh: Can you tell me what readline library (source/version) you are using?
schneider- has joined #ruby
<dminuoso> In effect the library silently defaults to trying to use editline if it cant find readline things.
guille-moe has joined #ruby
x77686d has quit [Quit: x77686d]
<dminuoso> Or maybe it's a check for super weird versions of it
<dminuoso> The code that introduced this has an informative commit message
<dminuoso> " forgot some checkins."
<dminuoso> :|
<woutervh> dminuoso, It's just the packaged version from the ruby website
_antares_ has joined #ruby
<dminuoso> Ah actually the latter.
<dminuoso> woutervh: Alright. And your readline library?
<woutervh> dminuoso, well, I don't know... Maybe that's the issue
<woutervh> I was not aware I needed one :)
<woutervh> I thought the readline library was just a ruby thing
tomphp has joined #ruby
<dminuoso> woutervh: `dpkg -l '*readline*'`
<dminuoso> woutervh: No, the readline library comes from your system.
<woutervh> dminuoso, I added it to the bottom of my gist
<dminuoso> 10:10 dminuoso | woutervh: Hah. Further files into separate gists please, this loads so terribly slow :D
mikhael_k33hl has joined #ruby
<mikhael_k33hl> Does the Signal.kill(0) acts the same as kill -0 in linux?
<dminuoso> woutervh: `libreadline-ruby1.9.1`
<dminuoso> woutervh: this looks fishy.
<dminuoso> Ah nevermind
<dminuoso> woutervh: include the output of `ldconfig -v 2>/dev/null | grep -v ^$'\t'` in your current gist in a new file please.
<dminuoso> woutervh: Or rather.. the point is to figure out which concrete readline library extconf.rb tries to use
<dminuoso> I have a feeling it's not using the correct version
<woutervh> dminuoso, I'll try to figure out what's going on on my system
<dminuoso> woutervh: It's still a bug in Ruby, but I'd very much like to fix this.
<woutervh> It is already a few years old, with a conversion from i386 to x64 in between
<woutervh> so possibly there are some corruptions inside :)
saTchymoto has joined #ruby
ahly has quit [Quit: leaving]
<dminuoso> woutervh: What would be *very* helpful, is if you can sneak -Wl,--verbose in
<woutervh> dminuoso, just a second
<dminuoso> woutervh: The easiest way I can think of, is if you hijack `gcc`
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> woutervh: Particularly the gcc invokations of `extconf.rb` should do this. With this information I could see what the linker is doing exactly
twe4ked has quit [Ping timeout: 276 seconds]
<mikhael_k33hl> What's the equivalent of kill -0 in ruby? Process.kill(0) doesn't seem to work the same
hs365 has quit [Read error: Connection reset by peer]
twe4ked has joined #ruby
hs367 has joined #ruby
<woutervh> dminuoso, I just added it to the makefile in ext/readline
ur5us has joined #ruby
<dminuoso> woutervh: No you misunderstand.
<jhass> mikhael_k33hl: you want to check whether a process exists?
<dminuoso> woutervh: Though this could work. Include also -Wl,--trace
<woutervh> dminuoso, wait, now it won't work anymore, I'm removing everything readline-related, and now it complains about the headerfiles not being found
<dminuoso> woutervh: also I dont see the output of gcc there.
<dminuoso> woutervh: If you prefer you can make a simple testcase. No ruby is needed
<mikhael_k33hl> jhass: whether its running
amar has joined #ruby
<mikhael_k33hl> jhass: just like how kill -0 works in linux
<jhass> mikhael_k33hl: is it a child process of your process?
karapetyan has joined #ruby
mroutis has quit [Remote host closed the connection]
<mikhael_k33hl> jhass: no, just to check if it is running or it is owned by another process
jenrzzz has quit [Ping timeout: 256 seconds]
<jhass> Process.kill(0, pid) seems to work for me
<dminuoso> woutervh: create the first file inside ext/readline/ and compile it from that directory using the command I listed
Sembei has quit [Ping timeout: 256 seconds]
MyMind has joined #ruby
<mikhael_k33hl> jhass: so when it returns 1, what does it mean?
<jhass> it's running
<dminuoso> woutervh: Wo wait!
<jhass> try a not existing pid or one you have no permissions to, you'll get respective exceptions
jyaworski has joined #ruby
<dminuoso> woutervh: Updated gist.
<dminuoso> ;)
<dminuoso> woutervh: Brainfart! This is silly.
* dminuoso needs a linux
<woutervh> dminuoso, sorry? I just commented in your gist
jenrzzz has joined #ruby
<mikhael_k33hl> jhass: Oh, I see, only 'false' and 'nil' is considered false in ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<woutervh> as I don't have the dev-libraries anylonger for now, it just gives me a .h not found error, however, ruby compilation now passes...
<dminuoso> woutervh: Yes that is to be expected..
<woutervh> which is odd...
<dminuoso> woutervh: I wished you hadn't deleted readline.
amelliaa has joined #ruby
<dminuoso> woutervh: The point was to pinpoint the problem, not make it disappear. Now you have added to many years of users spuriously reporting the same issue.
conta has joined #ruby
<woutervh> I read your comment to loo late, and was already cleaning out my system
<woutervh> wait, I'll put them back :)
<woutervh> (if possible)
<dminuoso> woutervh: The point of the excercise was to execute the exact test that Ruby uses to figure out whether you have `rl_username_completion_function` available. For some reason the test fails, and I want to know what kind of library its trying to link against to cause this.
<woutervh> dminuoso, I have it back
<dminuoso> Because whatever you have, you have neither `rl_username_completion_function` nor `username_completion_function` (or the test uses a different library than the final compilation)
psychicist__ has joined #ruby
jyaworski has quit [Ping timeout: 240 seconds]
DanKnox has quit [Quit: ZNC 1.6.5 - http://znc.in]
<woutervh> dminuoso, check comment in your gist
<dminuoso> woutervh: Ohh.. ohh...
<dminuoso> Ohh...
<dminuoso> woutervh: add `-lreadline` ..
schneider- has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
<woutervh> dminuoso, yup, that worked
<dminuoso> q
<dminuoso> woutervh: Let me stare at this for a moment before I judge it.
jottr has quit [Ping timeout: 256 seconds]
<woutervh> :) ok
za1b1tsu has joined #ruby
<dminuoso> woutervh: Can you regist your mkmf.log since you changed things?
n008f4g_ has joined #ruby
ur5us has joined #ruby
jottr has joined #ruby
npgm has quit [Quit: Connection closed for inactivity]
<woutervh> so, with the difference that now it's working
jyaworski has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<dminuoso> woutervh: Yeah.. like I said. It's a shame
<woutervh> was it a many-reported issue?
<dminuoso> woutervh: Over the years there have been random reports..
jottr has quit [Ping timeout: 264 seconds]
<woutervh> so people need to clean their system :)
<dminuoso> woutervh: we basically just needed that one last step..
* dminuoso cries
cabotto has joined #ruby
<woutervh> sorry about that, I was missing the point that we were upto something important, I just thought I had a messed-up system
* woutervh feels stupid
<woutervh> maybe you should have started with: "Stop! Don't do anything! Don't even think to touch something! Have some coffee and wait for instructions!" :-)
drale2k_ has joined #ruby
<dminuoso> woutervh: well randomly doing things in debugging has a great chance of ensuring that you dont have any debug information.
<dminuoso> Fixing without debugging has some consequences. You lose confidence in your system (because problems and solutions appear "random")
<dminuoso> Also it doesn't improve your ability to figure out problems because there comes a point when you might just reinstall the whole system.
<dminuoso> But anyway back to work
cabotto has quit [Remote host closed the connection]
<dminuoso> Glad your problem is fixed
_cabotto has joined #ruby
<woutervh> dminuoso, thanks for the help
<mikhael_k33hl> Where can I see what errors a method or module would raise?
<woutervh> I just re-installed the i386 version of the libreadline-dev, to see if problem re-appears. Now my dpkg-l is again as it was with the error
<dminuoso> mikhael_k33hl: use the source luke.
<dminuoso> mikhael_k33hl: Of course that means for a single function you have to transitively check the entire call graph of the method. =)
<dminuoso> Enjoy.
<woutervh> dminuoso, still works, so problem was somewhere else
<dminuoso> woutervh: Not necessarily.
<woutervh> anyway, thanks for the help
<dminuoso> woutervh: The most confusing thing is this]
<woutervh> that it cannot find readline in any of the provided library paths?
<dminuoso> woutervh: well the way I read it there was confusion between libedit and readline
<dminuoso> woutervh: its as if during extconf.rb readlinen couldn't be found, so further tests were done against libedit.
ramfjord has joined #ruby
jyaworski has quit [Ping timeout: 264 seconds]
<woutervh> i see
ramfjord has quit [Ping timeout: 240 seconds]
wolfshappen has quit [Quit: Waffs have technical problems too]
schneider- has joined #ruby
sysvalve has joined #ruby
amar has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
suukim has quit [Quit: Konversation terminated!]
jottr has joined #ruby
mkaito has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
schneider- has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Remote host closed the connection]
<dminuoso> woutervh: More to the point: It looks as if during extconf it was using readline headers but the editline library
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
mkaito has joined #ruby
mkaito has joined #ruby
mkaito has quit [Changing host]
jyaworski has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amar has joined #ruby
jyaworski has quit [Ping timeout: 248 seconds]
karapety_ has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
tomphp has joined #ruby
macduck has quit [Remote host closed the connection]
zautomata3 has joined #ruby
tomphp has quit [Client Quit]
raynold has joined #ruby
karapety_ has quit [Read error: Connection reset by peer]
jyaworski has joined #ruby
karapetyan has joined #ruby
ur5us has quit [Remote host closed the connection]
chris349 has quit [Ping timeout: 248 seconds]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
schneider- has joined #ruby
roshanavand has joined #ruby
Burgestrand has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
schneider- has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
schleppel has joined #ruby
jsrn has quit [Ping timeout: 265 seconds]
jsrn has joined #ruby
s2013 has joined #ruby
ur5us has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
leitz has joined #ruby
_antares_ has quit [Quit: Connection closed for inactivity]
<leitz> If I do a "make install" I get an error about rake conflicting with the current rake. How do I fix this in an automated program? https://gist.github.com/LeamHall/b80fd2e134b329474a12f6c6b6856fc9
Mike11 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
InfinityFye has joined #ruby
jottr has joined #ruby
InfinityFye has left #ruby [#ruby]
jottr has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
amar has quit [Remote host closed the connection]
tomphp has joined #ruby
jottr has joined #ruby
marr has quit [Ping timeout: 260 seconds]
schneider- has joined #ruby
Burgestrand has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ams__ has joined #ruby
woutervh has quit [Quit: Ex-Chat]
schneider- has quit [Ping timeout: 265 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ellcs has joined #ruby
cschneid_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapety_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mkaito_ has joined #ruby
nadir has joined #ruby
cschneid_ has quit [Ping timeout: 263 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
_cabotto has quit []
stoffus has joined #ruby
amar has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Cavallari has joined #ruby
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
za1b1tsu has quit [Ping timeout: 256 seconds]
jyaworski has joined #ruby
hs367 has quit [Quit: Leaving]
<dminuoso> leitz: make install what?
<dminuoso> make install for ruby itself?
<leitz> dminuoso, yes.
<dminuoso> What does "automated program" mean.
<leitz> Seems a known issue, I'm trying to see if there's a way to automate over the requirement to manually enter "y" to install.
<dminuoso> What?
<dminuoso> leitz: The general answer is "n"
<dminuoso> leitz: If you control the systems, dont have a system ruby installed in the first place.
jyaworski has quit [Ping timeout: 255 seconds]
<dminuoso> If you don't you have absolutely no business touching any system files/overwriting them whatsoever.
<leitz> Must have system ruby installed to install ruby. However, this error is for compiled Ruby.
<dminuoso> No you dont.
<leitz> dminuoso, try it.
<dminuoso> leitz: try what exactly?
<leitz> Unless you want to install someone else's Ruby before installing Ruby.
<dminuoso> You do not need ruby to build or install ruby.
<leitz> So far that does not seem true.
<leitz> I tried.
<dminuoso> The ruby internally needed (called miniruby) is bootstrapped automatically.
<dminuoso> Then lets discuss that.
za1b1tsu has joined #ruby
<dminuoso> What error did you get?
<leitz> Let me test my opinion. I have occasionally been known to be wrong. :)
<leitz> Gimme a bit.
nowhere_man has quit [Ping timeout: 256 seconds]
<dminuoso> leitz: A good and clean comprehensive list of dependencies can be found here: https://github.com/postmodern/ruby-install/blob/master/share/ruby-install/ruby/dependencies.txt
<dminuoso> Those are the things you do need to build ruby. Nothing else.
ldnunes has joined #ruby
<leitz> Not quite true. The autoconf with RHEL/CentOS 6 is too old to build Ruby, you have to install 2.67 or later, I believe.
za1b1tsu has quit [Ping timeout: 240 seconds]
<dminuoso> That's possible
jottr has quit [Ping timeout: 240 seconds]
<dminuoso> leitz: Keep in mind that those might not be officially supported by ruby-install.. so :P
jenrzzz has quit [Ping timeout: 240 seconds]
jsrn has quit [Ping timeout: 255 seconds]
<leitz> I'm compiling from source.
<dminuoso> leitz: My point is that the link I gave you is the dependency list from ruby-install
<leitz> Ah, sorry.
<dminuoso> leitz: So if that doesn't reflect the necessary dependencies on quirky and old "enterprisey" linux flavours so be it.
jottr has joined #ruby
<leitz> So, it doesn't cover the majority of large scale linux deployments in the US?
<dminuoso> leitz: I have no idea what autoconf version RHEL ships with.
<leitz> 2.63, I think. I'll check that in a sec.
jsrn has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dionysus69 has joined #ruby
<leitz> Yup, Building from wource requires 2.67+
<leitz> Latest autoconf from source is 2.69, I think.
<dminuoso> leitz: Question is just what RHEL ships with.
<dminuoso> I cant see because without an account you cant even browse their repository.
Cavallari has quit [Quit: Cavallari]
tomphp has joined #ruby
<leitz> dminuoso, if you browse the CentOS repo for the same version you're going to be pretty much the same. Sometimes CentOS lags by a day or so.
<dminuoso> leitz: But yes. If those "enterprisey" (which is just a fancy word for "big, old IT infrastructure and old-style administration style") servers cant use ruby-install so be it.
<dminuoso> It's annoying to support commercial operating systems.
<dminuoso> You can still install it flawlessly from source if you want.
<dminuoso> ruby-install just automates it so you dont even have to install those dependencies by hand
tomphp has quit [Client Quit]
<leitz> flawlessly requires jumping through hoops.
<dminuoso> Not really.
<dminuoso> If your shitty linux doesn't have software that was released 8 years ago, then that's your problem really.
<dminuoso> It's reasonable to expect that you have GNU autotools available that's newer than 8 years.
Cavallari has joined #ruby
<leitz> tsk tsk...
<leitz> Ruby install failed at "./configure", even with the newest version of autoconf.
<dminuoso> Care to share the error message?
<dminuoso> Maybe the entire output even.
<leitz> configure: error: cannot run /bin/sh tool/config.sub
alex`` has quit [Quit: WeeChat 2.1]
nzst has joined #ruby
alex`` has joined #ruby
<leitz> Yup, I wanted to cut and paste since I might miss something key. I'm a slow typist.
za1b1tsu has joined #ruby
alex`` is now known as alexherbo2
<Cork> i have a string output with a bunch of "<U+200B><U+200B><U+200B>" in them; can i convert that back to a "normal" string again?
schneider- has joined #ruby
<leitz> I just downloaded Ruby from github and installed autoconf 2.69. Ran "/usr/local/bin/autoconf" and then "./configure" per the README.md
alexherbo2 is now known as alex``
<dminuoso> leitz: maybe there already is a configure script?
<dminuoso> leitz: try to autoreconf
<dminuoso> leitz: also include the full output in a gist
<leitz> Okay, gimme a minute. I'll get a clean source tree.
<dminuoso> leitz: try running `sh tool/config.sub` by hand
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
<leitz> dminuoso, you in the US or??
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has quit [Ping timeout: 265 seconds]
<dminuoso> Cork: what do you mean "normal"
<Cork> the raw unicode string
<dminuoso> Cork: I suggest you take a pause and spend the afternoon learning how encoding works.
zautomata3 has quit [Ping timeout: 265 seconds]
schneider- has quit [Ping timeout: 260 seconds]
<Cork> O_o wa?
<dminuoso> 13:54 Cork | i have a string output with a bunch of "<U+200B><U+200B><U+200B>" in them; can i convert that back to a "normal" string again?
<dminuoso> What do you mean really
<dminuoso> are you printing the string or inspecting it
<dminuoso> As in.. do you actually have a string "<U+200B><U+200B><U+200B>" ?
<dminuoso> that is
<dminuoso> >> a = "<U+200B><U+200B><U+200B>"; puts a
<ruby[bot]> dminuoso: # => <U+200B><U+200B><U+200B> ...check link for more (https://eval.in/998728)
<dminuoso> Or do you have something that is - for some reason - displayed in that format?
<dminuoso> What's the actual encoding of your string
<Cork> .gsub(/\<U\+200B>/, ["0x200B".to_i(16)].pack("U")) does the job so i'm going to go with that
ferr has joined #ruby
<dminuoso> Cork: Uh.. why not fix the cause of this?
za1b1tsu has joined #ruby
<dminuoso> Cork: That is why not simply prevent the escaping in the first place?
DoubleMalt has joined #ruby
amatas has joined #ruby
zautomata3 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
nowhere_man has joined #ruby
rwb has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
RougeT430 has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
drale2k_ has joined #ruby
tomphp has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
jyaworski has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
za1b1tsu has quit [Ping timeout: 276 seconds]
minimalism has joined #ruby
wolfshappen has joined #ruby
jyaworski has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ix has joined #ruby
<ix> hello. I'm considering starting to learning ruby on a stats-project. the 1st problem is that I don't have internet access on the machine I'll be using and it doesn't have ruby installed.
amatas has quit [Ping timeout: 276 seconds]
bmurt has joined #ruby
<ix> I downloaded the source and I'll probably install that this weekend, is there any database included? sqlite or similar?
alfiemax has joined #ruby
karapety_ has quit [Ping timeout: 240 seconds]
jyaworski has joined #ruby
Psybur has joined #ruby
ramfjord has joined #ruby
Burgestrand has joined #ruby
IceDragon has joined #ruby
k0mpa has joined #ruby
cabotto has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<leitz> ix, look at the Sequel gem, it's supposed to make database access more common.
<leitz> I use sqlite as I learn the Sequel gem.
rouget430__ has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
za1b1tsu has joined #ruby
tesdarsd has joined #ruby
schneider- has joined #ruby
<darix> leitz: sequel is fun
jyaworski has quit [Ping timeout: 264 seconds]
<darix> leitz: what version are you trying to compile there?
RougeT430 has quit [Ping timeout: 265 seconds]
RougeT430 has joined #ruby
za1b1tsu has quit [Ping timeout: 264 seconds]
schneider- has quit [Ping timeout: 264 seconds]
rouget430__ has quit [Ping timeout: 248 seconds]
<leitz> darix, source from today.
<leitz> darix, while I don't really know enough to understand the dry-rb stuff it seems a good way to go.
jyaworski has joined #ruby
Mike11 has quit [Quit: Leaving.]
<darix> leitz: you are compiling from git then?
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
jyaworski has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
za1b1tsu has joined #ruby
tesdarsd has quit [Quit: Page closed]
_aeris_ has quit [Remote host closed the connection]
<leitz> darix, yup. dminuoso asked about my claim that you needed Ruby to install Ruby. I'm testing my assertion. :)
_aeris_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<darix> leitz: for git without a configure you need it yes
<darix> for release tarballs no
<ix> leitz: thanks, i'll get that too.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> ix, enjoy Ruby! It's pretty fun stuff.
<ix> :) thanks
<leitz> darix, that's what I thought. I do get tired of folks saying "we don't support old Operating systems" and then wondering why Ruby has about 0% market share outside of Rails.
<darix> leitz: it has 100% market share in all my scripts :P
roshanavand has joined #ruby
<darix> leitz: you can always bootstrap from a release tarball and then build git afterwards.
tomphp has joined #ruby
tomphp has quit [Client Quit]
<leitz> darix, I'm working on building system tools but my skills are pretty low. I wrote an Ansible playbook to install OS ruby if not installed, then to install Ruby 2.0.0, then to compile from trunk.
tomphp has joined #ruby
<leitz> OS ruby (1.8,7) can't build Ruby from trunk.
<darix> leitz: what kind of OS?
<leitz> Then I hit the issue I started out with today; the make install pauses and requires interaction to overwrite rake.
ferr has left #ruby ["WeeChat 2.1"]
<darix> also why ruby 2.0.0 which is EOL already
<darix> leitz: dont do that :P
amatas has joined #ruby
<darix> leitz: install into a different path
tomphp has quit [Client Quit]
karapetyan has joined #ruby
amatas has quit [Client Quit]
<leitz> darix, CentOS 6 comes with Ruby 1.8.7. So I can install the OS ruby, build 2.0.0, then use 2.0.0 to build 2.6.x. Can't get straight from 1.8,7 to 2.6.
<darix> uhm
<darix> which begs the question ...
<darix> why dont you start on centos 7?
roshanavand has quit [Ping timeout: 248 seconds]
<leitz> Can't install on a differnent path; if I refresh the git source and rebuild new, it still gets the overwrite error.
<mikhael_k33hl> Is there an instance method that I can override that will be run no matter how the application exits(crash)?
amatas has joined #ruby
<leitz> Because I get paid to support RHEL 6. :)
roshanavand has joined #ruby
<leitz> mikhael_k33hl, have you looked at Exceptions?
<leitz> The "after", I think, runs no matter what.
<mikhael_k33hl> leitz: exceptions?
<darix> leitz: "why?"
<mikhael_k33hl> leitz: can you direct me to an article or documentation please?
<darix> leitz: centos6 will also be EOL soon
<mikhael_k33hl> leitz: I need my program to cleanup even if the server crashes
<mikhael_k33hl> leitz: I mean if the app crashes
<darix> mikhael_k33hl: if it is a segfault or anything
<darix> then no
<leitz> mikhael_k33hl, Honey Badger has good stuff. http://blog.honeybadger.io/a-beginner-s-guide-to-exceptions-in-ruby/
<darix> mikhael_k33hl: if it is an exception
<darix> then begin ; ensure ; end
<leitz> And darix is correct, as long as the App can run the exception can run. If something underneath the app dies you're hosed.
<leitz> Ah, "ensure", that's the word.
clemens3 has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
amatas_ has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
amatas_ has quit [Client Quit]
ipeee has joined #ruby
amatas_ has joined #ruby
<al2o3-cr> you can use at_exit
amatas has quit [Ping timeout: 255 seconds]
amatas_ is now known as amatas
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
<al2o3-cr> or END {}
<nzst> re: exceptions. I like http://exceptionalruby.com
dr3w_ has joined #ruby
ipee has quit [Ping timeout: 248 seconds]
anisha has quit [Read error: Connection reset by peer]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
rfoust has joined #ruby
vondruch_ has joined #ruby
clemens3 has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
vondruch_ is now known as vondruch
<dminuoso> leitz: No just execute `sh tool/config.sub`
<dminuoso> leitz: as in run it by hand.
<dminuoso> At any rate
<dminuoso> 15:13 leitz | Because I get paid to support RHEL 6. :)
chris349 has joined #ruby
<dminuoso> So you get paid to support a shitty old linux but dont aknowledge how horrid it is.
anisha has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<darix> Personally I would rather pay you to help migrating services to centos 7 ;)
<darix> (like when I would be your boss)
d3mon has joined #ruby
dionysus69 has quit [Client Quit]
d3mon has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 255 seconds]
<leitz> darix, you hiring? And really, unless you need something right now I'd say RHEL 8 should be out later this year. :)
<darix> leitz: SUSE is hiring I think
schneider- has joined #ruby
dionysus69 has joined #ruby
<leitz> dminuoso, sorry, that part got left out of the gist. "sh tool/config.sub" falis as tool/config.sub doesn't exist.
<leitz> darix, SuSE also likes containerization, a friend when through their interview process.
<darix> leitz: what do you mean?
<leitz> Nothing against containers but I won't lie and say I know them.
<dminuoso> leitz: Honestly?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<darix> leitz: you mean containers as in linux containers or containers as in organizational structures?
<leitz> darix, the interview process included "containerize this application" IIRC.
<darix> leitz: I dont know to which position your friend applied to and if it was relevant for this position or not.
<leitz> I wish I had the brains to be a kernel engineer.
<dminuoso> leitz: Well I dont know what you did to delete that file.
jamiejackson has joined #ruby
<leitz> dminuoso, it's a straight pull from github.
schneider- has quit [Ping timeout: 240 seconds]
<dminuoso> leitz: Are you sure about that?
<leitz> Yup. I often hit "operator error", just not seeing it this time. :)
<leitz> This one time...
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
s2013 has quit [Read error: No route to host]
<dminuoso> leitz: Well dont compile from trunk.
<dminuoso> leitz: Use a prepackaged tarball.
<leitz> So, don't use Ruby?
<dminuoso> No just dont build from trunk.
dionysus69 has quit [Quit: dionysus69]
saTchymoto has quit []
<leitz> So, you're saying that we can't acutally use computer code on a computer? Especially after slamming me for using an older OS, you're saying to use an older Ruby.
<dminuoso> No.
dionysus69 has joined #ruby
<leitz> Sorry for being cross, I just get tired of having to use Ruby is a very finite way. Can't use it on the OS or gets dozen's of "you should upgrage". Then I upgrade and hear "you should downgrade".
ryzokuken has joined #ruby
<leitz> When I try to encourage new Ruby users I feel like I'm lying.
<dminuoso> leitz: No. Im just saying you should use the prepackaged tarballs.
<dminuoso> Nothing more.
<dminuoso> Im not saying you should use old versions - you just made that up.
<mnemon> leitz: if you want recent versions of various programming languages on rhel you could go for their software collections :P
dionysus69 has quit [Quit: dionysus69]
<leitz> mnemon, not sure SCL on RHEL is current, for Ruby. Even RHEL 7 ships with Ruby 2.0.0, IIRC.
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<mnemon> leitz: they got 2.4 in RHSCL
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<dminuoso> leitz: support@ihvs0080:~/ruby/ruby-2.5.1$ ./configure; checking for ruby... false [...]
dionysus69 has joined #ruby
ggherdov has joined #ruby
<konsolebox> leitz: trunk is bleeding-edge. there are stable releases. you can also use rvm.
<dminuoso> leitz: and now compiling just fine. without any ruby.
ggherdov has quit [Excess Flood]
<dminuoso> leitz: I think you are under the mistaken impression that the tarball I was talking about was precompiled.
<dminuoso> It's not.
<leitz> dminuoso, when I've tried to build Ruby without Ruby installed, it has failed in the past. That may have changed, and if so my life is much easier.
<dminuoso> leitz: Becaue you built from trunk.
<leitz> That was what I was testing earlier.
ggherdov has joined #ruby
<dminuoso> leitz: trunk is not the same as the prepackaged tarballs.
ggherdov has quit [Excess Flood]
<dminuoso> leitz: the tarballs are ever so slightly modified to build without ruby.
<leitz> Ah, gotcha.
<leitz> mnemon, thanks for the RHSCL note!
<dminuoso> leitz: The tarballs are meant for users. trunk is not.
<leitz> I thought it was an older Ruby.
<dminuoso> trunk is for developers
<dminuoso> even the stable tags are not for users, they are for develoeprs.
* leitz is trying to be a developer. Long way to go, it seems.
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
dionysus69 has quit [Client Quit]
<dminuoso> leitz: so again this is why ruby-install doesn't list ruby as a dependency. it builds from those prepackaged tarballs. ;)
rwb has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<leitz> dminuoso, understood. I think I've used them before and didn't have to have Ruby installed already.
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<leitz> Useful for Winderz boxes, too.
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
TomyWork has quit [Ping timeout: 240 seconds]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<leitz> darix, if you like Ansible, this is what I've been working on. It should let me build Ruby from trunk with no real Ruby installed prior. https://github.com/LeamHall/Ansible_Test/blob/master/playbooks/dev_station.yml
<leitz> It only pulled the RPM and then ruby source. As dminuoso said, a tarball ruby-install would not need the OS Ruby.
Bish has quit [Quit: leaving]
Nussi has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
chouhoulis has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
ggherdov has joined #ruby
chouhoul_ has joined #ruby
ggherdov has quit [Excess Flood]
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Client Quit]
jyaworski has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
Rapture has joined #ruby
jyaworski has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
schneider- has joined #ruby
<zeroward> question about using IO.popen.
<zeroward> the line i'm running is IO.popen("touch -d "$wtmp_modtime" '/var/log/wtmp'")
<zeroward> I'm getting syntax error, unexpected ')', expecting keyword_end
<zeroward> tmp_modtime" '/var/log/wtmp'") as an error.
aupadhye has quit [Ping timeout: 248 seconds]
<jordanm> zeroward: looks like you are closing the quotes after `touch -d `
stoffus has quit [Ping timeout: 256 seconds]
camonz has joined #ruby
rouget430__ has joined #ruby
schneider- has quit [Ping timeout: 256 seconds]
apparition has joined #ruby
<zeroward> .....
<zeroward> I promise I'm not as dumb as this question made me seem. lol
RougeT430 has quit [Read error: Connection reset by peer]
RougeT430 has joined #ruby
nzst has quit [Ping timeout: 260 seconds]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
apparition has quit [Client Quit]
jottr has joined #ruby
rouget430__ has quit [Ping timeout: 260 seconds]
cabotto has quit [Remote host closed the connection]
cschneid_ has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
cabotto has joined #ruby
alfiemax has quit [Remote host closed the connection]
grilix has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
jyaworski has joined #ruby
alfiemax has joined #ruby
nzst has joined #ruby
cabotto has quit [Ping timeout: 264 seconds]
n008f4g_ has quit [Ping timeout: 256 seconds]
hanmac has quit [Ping timeout: 240 seconds]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
schneider- has joined #ruby
marr has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
cabotto has joined #ruby
<al2o3-cr> zeroward: FileUtils.touch for this if it helps.
schneider- has quit [Ping timeout: 264 seconds]
<zeroward> Fantastic. Thanks!
<al2o3-cr> np :)
<zeroward> Does anyone on here happen to have experience writing post modules for metasploit...? If so, I may bother you when I inevitably fuck things up. lol
jyaworski has quit [Ping timeout: 260 seconds]
<leitz> darix, my working theory is "transferable skills". While I'm not likely to get hired directly off my coding skills, I'm using Ruby to learn things like TDD, etc.
venmx has joined #ruby
<leitz> The theory being that having a breadth of skills will be attracitve to a hiring manager, even if I'm not an expert in the language of the team.
<zeroward> Find your thing, and be good at it.
<leitz> Untested theory, at this point.
<zeroward> Don't try to be a jack of all trades.
<zeroward> It's cool and all to want to learn a variety of skills, but you're better off just focusing on being fantastic at one thing.
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
cyberg has joined #ruby
hanmac has joined #ruby
<leitz> zeroward, understood. I'm pretty good at Linux but wanting to get to something more creative.
<zeroward> Pretty good at Linux?
<zeroward> Define pretty good. lol
<leitz> I get paid for it. :))
<zeroward> Well there you go.
<zeroward> If you want to get creative, get into pen testing.
amar has quit [Remote host closed the connection]
Cavallari has quit [Quit: Cavallari]
<leitz> After a couple decades though, the OS is becoming even more of a commodity and Linux is not a heck of a distance from Windows.
amar has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<zeroward> Eh.
<zeroward> I'll beg to differ on that one.
<leitz> I write fiction and code in Ruby to retain the modicum of sanity that remains to me.
<zeroward> But I've only been breaking stuff for a few years now.
<leitz> zeroward, you lose at "systemd". :)
<zeroward> Valid point.
ta_ has quit [Remote host closed the connection]
venmx has quit [Ping timeout: 265 seconds]
<leitz> Which is why my home desktop is CentOS 6, not 7. :)
<darix> leitz: ouch
rawste has joined #ruby
<darix> leitz: my desktop is opensuse tumbleweed (similar to fedora rawhide)
aufi has quit [Ping timeout: 264 seconds]
<leitz> darix, I used to support a pretty good sized SLES environment. Not bad stuff, though I had to mentally shift gears sometimes.
amar has quit [Read error: No route to host]
<darix> leitz: I wouldnt limit myself to the oldest distro possible on the desktop
<darix> was the point
amar has joined #ruby
<leitz> Ah. Since I support RHEL 6 it keeps me in tune with work. If I didn't have to do RHEL 6, I have no idea what I'd do.
<leitz> Though Fedora Rawhide and OpenSuSE are pretty good. Haven't done Fedora in a while.
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
troys has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
tomphp has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
amar has quit [Remote host closed the connection]
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
nowhere_man has quit [Ping timeout: 240 seconds]
mikhael_k33hl has quit [Quit: Page closed]
amar has joined #ruby
govg has quit [Ping timeout: 248 seconds]
schneider- has joined #ruby
jnollette has quit [Read error: Connection reset by peer]
redlegion has quit [Read error: Connection reset by peer]
nzst has quit [Ping timeout: 260 seconds]
Zaab1t has joined #ruby
redlegion has joined #ruby
jnollette has joined #ruby
amar has quit [Ping timeout: 256 seconds]
ellcs has quit [Ping timeout: 240 seconds]
amar has joined #ruby
venmx has joined #ruby
hlmjr has joined #ruby
amar has quit [Remote host closed the connection]
schneider- has quit [Ping timeout: 256 seconds]
amar has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
tomphp has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
govg has quit [Ping timeout: 264 seconds]
amar has quit [Remote host closed the connection]
k0mpa has quit [Remote host closed the connection]
amar has joined #ruby
alfiemax has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
schneider- has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeT430 has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
govg has joined #ruby
atmosx has left #ruby ["WeeChat 1.4"]
alfiemax has quit [Ping timeout: 264 seconds]
schneider- has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 240 seconds]
hlmjr has quit [Quit: Konversation terminated!]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
nicholaslyang has joined #ruby
jcarl43 has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
rawste has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
alfiemax has joined #ruby
amar has quit [Remote host closed the connection]
venmx has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 268 seconds]
conta has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
dr3w_ has joined #ruby
guille-moe has quit [Ping timeout: 265 seconds]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
nitric has joined #ruby
amar has joined #ruby
jyaworski has joined #ruby
noycesauce has joined #ruby
x77686d has joined #ruby
lytol has joined #ruby
andikr has quit [Remote host closed the connection]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
alfiemax has joined #ruby
amar has quit [Ping timeout: 264 seconds]
pabst has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
n13z has quit [Ping timeout: 260 seconds]
n13z has joined #ruby
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x77686d has quit [Quit: x77686d]
agent_white has joined #ruby
jyaworski has quit [Ping timeout: 264 seconds]
RougeR has joined #ruby
grilix_ has joined #ruby
grilix has quit [Read error: Connection reset by peer]
eckhardt_ has joined #ruby
karapetyan has joined #ruby
orbyt_ has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Burgestrand has quit [Quit: Closing time!]
vondruch has quit [Ping timeout: 264 seconds]
leitz has quit [Quit: Nappy time]
wolfshappen has quit [Ping timeout: 240 seconds]
SanguineAnomaly has quit [Ping timeout: 260 seconds]
SanguineAnomaly has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
cabotto has quit [Client Quit]
amar has joined #ruby
ramfjord has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
nicholaslyang has joined #ruby
marxarelli has joined #ruby
clemens3 has quit [Ping timeout: 240 seconds]
amar has quit [Ping timeout: 256 seconds]
nicholaslyang has quit [Read error: Connection reset by peer]
Mike11 has joined #ruby
sanscoeur has joined #ruby
sysvalve has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
sysvalve has joined #ruby
wolfshappen has joined #ruby
jamiejackson has quit [Ping timeout: 248 seconds]
nowhere_man has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 268 seconds]
nowhere_man has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
karapetyan has quit [Remote host closed the connection]
Deesl has joined #ruby
karapetyan has joined #ruby
pilne has joined #ruby
<havenwood> I see the JIT is now optimizing this fine YARV instruction: https://github.com/ruby/ruby/blob/fde115b13c23a1278c06a0d42e1cd04aa7568ea1/insns.def#L1349-L1357
<havenwood> "a bit of bacon, lettuce and tomato" sounds tasty right now
<al2o3-cr> don't forget the mayo :P
<gizmore> def(String arg1) # i want this syntax but ruby
<havenwood> gizmore: Write a preprocessor.
<havenwood> gizmore: Or just cave and switch langs to Crystal.
<gizmore> crystal offers this?
<havenwood> gizmore: Yes.
<gizmore> thx
<gizmore> maybe i should bring f5 toolchain to crystal
<havenwood> gizmore: https://crystal-lang.org/
<havenwood> gizmore: /join #crystal-lang
<gizmore> i feat that crystal toolchain feels unfamiliar... i need f5 to refresh :P
<gizmore> i fear that crystal toolchain feels unfamiliar... i need f5 to refresh :P
* baweaver glances at gizmore
* baweaver raises eyebrow
<gizmore> i know that crystal is a ruby virtual machine, no?
<havenwood> gizmore: Nope.
<havenwood> gizmore: Crystal is a programming language.
Rr4sT has joined #ruby
<gizmore> ruby offers dynamic type redifinitions (a big boo in php)
<gizmore> does crystal still offer dynamic redefining of classes?
biberu has joined #ruby
<baweaver> I did something more than slightly evil in Ruby: https://twitter.com/keystonelemur/status/991908235593465857
<baweaver> baweaver == keystonelemur
k0mpa has joined #ruby
<gizmore> baweaver: hello again. sorry for last time.
<havenwood> gizmore: Crystal is much less dynamic. It does have macros. It's compiled and statically typed. Pick your poison.
jenrzzz has quit [Ping timeout: 240 seconds]
<baweaver> Macros, you say?
<gizmore> havenwood: yeah... i'd bet... maybe i try python one day
<baweaver> I may have another language to inflict black magic on then :D
<havenwood> def {{name}}
jottr has joined #ruby
<gizmore> maybe ruby and a decent ide is my way
<baweaver> ....havenwood, can I make Ruby extensions in Crystal?
<havenwood> baweaver: yes
<baweaver> and doesn't that macro look an awful lot like Qo::Evil?
<havenwood> baweaver: I've successfully embedded MRuby in Crystal and then made that a Crystal extension.
<baweaver> heh
<baweaver> brb
<havenwood> MRuby in Crystal in CRuby.
<gizmore> i made a chatbot with dynamic code reloading.... it has like dozens of fd open which i dont wanna close when i reload
<havenwood> Various folk have made Helix-like things for Crystal/RubyGems. I'm not sure which are maintained: https://github.com/phoffer/crystalized_ruby
<havenwood> I used manastech/crystal_ruby.
<havenwood> Maybe they'll add an official DSL for Ruby extensions in the future: https://github.com/crystal-lang/crystal/wiki/Roadmap#shard-ideas
<havenwood> Hello World from MRuby embedded in Crystal: https://gist.github.com/havenwood/afc514180e9aa18caaf2
<gizmore> why would you need to recode bindings in crystal?
jenrzzz has joined #ruby
<havenwood> gizmore: The Helix project has a good example of things you might want to implement if you're doing Ruby bindings to a new lang: https://usehelix.com/roadmap
<gizmore> nah i am currently in php hell
<havenwood> gizmore: They have checklists of things they've completed and some rationale for why they're implementing the various parts of Helix.
<gizmore> i have a concept of a general framework that is not that bad... my current php is quite ok.... but php sucks
<gizmore> in ruby i would just inject some decorators here and there
<gizmore> and you can do magic in ruby....
<gizmore> anyway... the problem with ruby is that it has no type hinting like in php :P
camonz has quit [Quit: Linkinus - http://linkinus.com]
<havenwood> Just published an article on the new Class/Module naming Rules for Ruby 2.6! https://medium.com/square-corner-blog/new-class-naming-rules-in-ruby-bb3b45150c37
<havenwood> "There were 26 valid first characters. Now there are 1,853!"
<havenwood> Or something like that.
clemens3 has joined #ruby
<gizmore> i first read that as 1.853 and thought it was a math post
<havenwood> If anyone can find more valid chars, tell me!
n008f4g_ has joined #ruby
sysvalve has quit [Read error: Connection reset by peer]
sysvalve has joined #ruby
<gizmore> ~o´ should be one codepoint named "supergizmore"
<gizmore> but i will ask in #unicode
alfiemax has joined #ruby
<havenwood> gizmore: If you get it added to unicode, be sure to include an uppercase variant or you can't use it as a class or module name.
<havenwood> *protip*
<gizmore> yeah!
* havenwood quickly grabs the ԬԮ gem name.
UncleCid__ has quit [Ping timeout: 240 seconds]
<gizmore> [] [] in whatsapp looks exactly like charnotfound
sysvalve has quit [Read error: Connection reset by peer]
<havenwood> I guess I should have mentioned how I found the new chars in the article.
sysvalve has joined #ruby
<al2o3-cr> >> (0..1_000_000).map { |ord| ord.chr('utf-8') rescue nil }.grep(/[[:upper:]]/).size
<ruby[bot]> al2o3-cr: # => 1751 (https://eval.in/998923)
<al2o3-cr> i get 1822
<havenwood> al2o3-cr: ;-)
<havenwood> al2o3-cr: I got 31 more than you!
<al2o3-cr> :(
kapil___ has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
dr3w_ has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
<gizmore> havenwood: you got my twister
<gizmore> havenwood: you got my twitter? *
<gizmore> havenwood: you got twitter? *
<havenwood> gizmore: Here's mine: https://twitter.com/_havenn
ldepandis has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
jyaworski has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
synthroid has quit [Remote host closed the connection]
weaksauce has joined #ruby
synthroid has joined #ruby
Mondongo has joined #ruby
roshanavand has quit [Ping timeout: 248 seconds]
conceivably has joined #ruby
Puffball has joined #ruby
<zeroward> Anyone in here have metasploit module experience..?
nitric_ has joined #ruby
coderphive has joined #ruby
ggherdov has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ggherdov has quit [Excess Flood]
<havenwood> ?metasploit
<ruby[bot]> Please join #metasploit for help with it.
Azure has quit [Read error: Connection reset by peer]
nitric has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
sauvin has quit [Remote host closed the connection]
sameerynho has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
zapata has joined #ruby
amar has joined #ruby
zapata has quit [Client Quit]
govg has joined #ruby
jsrn has quit [Ping timeout: 276 seconds]
j0bk has joined #ruby
j0bk has joined #ruby
j0bk has quit [Changing host]
jsrn has joined #ruby
sysvalve has quit [Quit: Leaving]
conceivably has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 265 seconds]
cschneid_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
noycesauce has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x77686d has joined #ruby
coderphive has quit [Quit: coderphive]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jsrn has quit [Ping timeout: 240 seconds]
jsrn has joined #ruby
coderphive has joined #ruby
rprimus_ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
conta has quit [Ping timeout: 260 seconds]
hanmac has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jtperreault has joined #ruby
alfiemax_ has joined #ruby
amatas has quit [Ping timeout: 268 seconds]
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
alfiemax has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
Fridtjof has quit [Ping timeout: 276 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
psychicist__ has joined #ruby
Fridtjof has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
Rr4sT has quit [Quit: Connection closed for inactivity]
coderphive has quit [Quit: coderphive]
hanmac has joined #ruby
noycesauce has joined #ruby
x77686d has quit [Quit: x77686d]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
SeepingN has joined #ruby
ur5us has quit [Remote host closed the connection]
x77686d has joined #ruby
orbyt_ has joined #ruby
cschneid_ has joined #ruby
hays_ has joined #ruby
<hays_> is there a better way to do this kind of pass-thru?
<hays_> or is it best to leave these things explicit
jyaworski has joined #ruby
<havenwood> hays_: Explicit is fine. That said, there's a Forwardable module in the stdlib.
<havenwood> &ri Forwardable
alfiemax_ has quit [Read error: Connection reset by peer]
<havenwood> hays_: def_delegators :@srv, :audit, :audit=
alfiemax has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
alfiemax has quit [Ping timeout: 264 seconds]
<hays_> that's pretty handy
<hays_> makes composition pretty attractive
dr3w_ has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
biberu has quit []
Mike11 has quit [Quit: Leaving.]
zapata has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
karapetyan has joined #ruby
guille-moe has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cagomez has quit [Read error: Connection reset by peer]
Zaab1t has quit [Quit: Zaab1t]
cagomez has joined #ruby
Psybur has quit [Ping timeout: 248 seconds]
guille-moe has quit [Ping timeout: 264 seconds]
jyaworski has joined #ruby
ggherdov has joined #ruby
ggherdov has quit [Excess Flood]
s3nd1v0g1us has joined #ruby
rwb has quit [Ping timeout: 256 seconds]
c0ncealed1 has quit [Remote host closed the connection]
za1b1tsu has quit [Quit: WeeChat 2.1]
c0ncealed1 has joined #ruby
s3nd1v0g1us has quit [Quit: tempusfugit]
alfiemax has joined #ruby
synthroid has quit [Remote host closed the connection]
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
s3nd1v0g1us has joined #ruby
jyaworski has quit [Ping timeout: 256 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
basic has joined #ruby
<basic> is there anything thread-safe in ruby by default (except accidently via GIL)?
<basic> like, sockets, for example?
<basic> xy: i am trying to use Net::SSH in multiple threads, and want to know to what extend i can do that
<apeiros> basic: only things explicitly marked as thread safe
s3nd1v0g1us has quit [Quit: tempusfugit]
<basic> apeiros: i never seen that
<apeiros> and in stdlib, that's mostly things namespaced in Thread, such as Thread::Queue, Mutex etc.
<basic> Net::SSH doesn't seem to use mutexes and stuff at all, how would i use it, without locking a whole connection?
<apeiros> there are no automagic solutions to concurrency.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
synthroid has quit []
<basic> there should be :/
<apeiros> lock as needed. or have a dedicated thread for transmission. or any other design solution
<basic> well locking a Net::SSH connection would be really weird, since it's very asynchronous
<basic> guess i won't get around having multiple of them
<apeiros> using an ssh from multiple threads seems rather weird too tbh
<apeiros> +connection
ramfjord has joined #ruby
* apeiros accidentally a word
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jyaworski has joined #ruby
nnm- has quit [Read error: Connection reset by peer]
nnm- has joined #ruby
jcalla has quit [Quit: Leaving]
<basic> apeiros: how so? ssh supports channels, having multiple of them doesn't seem weird, does it?
s3nd1v0g1us has quit [Quit: tempusfugit]
<basic> using multiple channels without being able to use them with threads is wierd
jyaworski has quit [Ping timeout: 256 seconds]
jamesaxl has joined #ruby
hays_ has quit [Remote host closed the connection]
muffiny has left #ruby [#ruby]
ur5us has joined #ruby
\void has joined #ruby
tfitts has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
orbyt_ has joined #ruby
ldnunes has quit [Quit: Leaving]
troulouliou_div2 has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
\void has quit [Quit: So long, and thanks for all the fish.]
pabst has quit [Quit: Textual IRC Client: www.textualapp.com]
sagax has quit [Ping timeout: 240 seconds]
<apeiros> basic: ok. that's a point. IMO let a single thread have control over the ssh connection and use a queue to write on it. reading depends on how you plan to map channels to threads.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 256 seconds]
hays_ has joined #ruby
hays_ has joined #ruby
hays_ has quit [Changing host]
<hays_> this implies that you can write what looks like rspec in minitest: https://github.com/seattlerb/minitest#specs
bmurt has joined #ruby
<hays_> but that seems magical-- how could ruby parse an rspec dsl like that
<apeiros> hays_: uh, rspec is just ruby too, you know?
<apeiros> most of this is just methods accepting blocks
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
Deesl has joined #ruby
amelliaa has quit [Quit: -]
n0m4d1c has joined #ruby
ix has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grilix_ has quit [Ping timeout: 276 seconds]
Autolycus has joined #ruby
rwb has joined #ruby
<hays_> apeiros: i thought it was a dsl
<hays_> i did not know it was a subset of ruby
<al2o3-cr> hays_: what did you think it was?
<hays_> A dsl that was not a subset of ruby
<al2o3-cr> o_0
psychicist__ has quit [Ping timeout: 265 seconds]
Autolycus has quit []
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<apeiros> hays_: ruby dsls are ruby
cagomez has quit []
<hays_> so I can write rpsec and they can be tested with either minitest or rspec
<hays_> if so, that's pretty handy
cagomez has joined #ruby
<apeiros> no, they're not identical.
<apeiros> sinatra and rails are both ruby too. but that doesn't mean you can run a rails app using sinatra.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* al2o3-cr <3 minitest
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
chocoelho has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<basic> apeiros: thanks!
<basic> and gn!
basic has quit [Quit: weeeeeeeeeeeeeeeeeee]
orbyt_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<hays_> apeiros: JSON is parseable by Ruby, but it does not mean the JSON is Ruby
k0mpa has quit [Remote host closed the connection]
emtha has joined #ruby
<apeiros> hays_: sure. but both rspec and minitest-spec *are* ruby.
<apeiros> they're not a custom language
Mondongo has quit [Quit: Textual IRC Client: www.textualapp.com]
emtha has left #ruby [#ruby]
<hays_> I think the output of the RSpec is a bit more useful because of the metadata that ends up getting added to the report
<hays_> Looks like I can make a basic Rakefile that runs a bunch of tests. Seems like a reasonable starting point
alfiemax has joined #ruby
karapetyan has quit [Remote host closed the connection]
<hays_> alright, thanks for the clarification. Sometimes I find it hard to get context from some of the docs/examples projects publish. Particularly rpsec's series of videos was strange and unhelpful
hays_ has quit [Remote host closed the connection]
jyaworski has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
isaacNM has joined #ruby
Mike11 has joined #ruby
jyaworski has quit [Ping timeout: 268 seconds]
jyaworski has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
Nussi has quit [Ping timeout: 248 seconds]
Nussi has joined #ruby
n0m4d1c has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
isaacNM has quit []
jyaworski has quit [Ping timeout: 240 seconds]
jeen has joined #ruby
schooner has joined #ruby
ta_ has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
jeen has quit [Client Quit]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
chocoelho has quit [Quit: Konversation terminated!]
chocoelho has joined #ruby
marxarelli|afk is now known as marxarelli
jyaworski has joined #ruby
marxarelli is now known as marxarelli|afk
jyaworski has quit [Ping timeout: 240 seconds]
lytol has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
<quuxman> Is there a way to get all the attributes of an object that aren't inherited, or at least remove everything inherited from ActiveRecord?
<Radar> quuxman: huh?
<apeiros> quuxman: instance_methods accepts an argument, to ignore inherited methods
<Radar> apeiros: but quuxman is talking about attributes, not methods.
<apeiros> quuxman: also you can use ordinary array manipulation: YourClass.instance_methods - SomeSuperclass.instance_methods
<apeiros> Radar: lets see then what they really mean
<quuxman> Radar, apeiros: actually methods are mainly what I'm interested. I didn't know they're different
<Radar> quuxman: do you have an example of what you mean?
<quuxman> I'm used to using tab completion to quickly explore an API, but in Ruby it's useless because there's usually 500+ methods / properties of an object
karapetyan has joined #ruby
agent_white has quit [Quit: bbl]
<apeiros> quuxman: use pry, there you get the `ls` command which structures it in a more helpful way
<apeiros> though iirc AR models are still overwhelming
dviola has joined #ruby
ipeee has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 248 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
<quuxman> apeiros: thanks, ls is actually really helpful for separating out all the rails junk
<quuxman> it even organizes the rails stuff into categories
Mike11 has quit [Quit: Leaving.]
<quuxman> I mean active record
<apeiros> I think it just groups them by class/module, and AR separates its parts into "category" modules (or concerns, or responsibilities)
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
eckhardt_ has joined #ruby
Asher has joined #ruby
eckhardt_ has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jyaworski has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
ryzokuken has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
Deesl has joined #ruby
marr has quit [Ping timeout: 264 seconds]
n0m4d1c has joined #ruby
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
nitric_ has quit [Ping timeout: 265 seconds]
karapetyan has joined #ruby
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
white_lilies has joined #ruby
gil_ has quit [Ping timeout: 255 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
white_lilies has quit [Ping timeout: 256 seconds]