jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
justbleed has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
counterapparatus has quit [Ping timeout: 248 seconds]
<sts> I think I'm gonna try with: puts 'Hi %{user}' % { user: 'drbrain' }
<sts> >> puts 'Hi %{user}' % { user: 'drbrain' }
<ruby[bot]> sts: # => Hi drbrain ...check link for more (https://eval.in/527697)
platzhirsch has joined #ruby
uglybandersnatch has quit [Ping timeout: 260 seconds]
firstdayonthejob has quit [Ping timeout: 276 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
baweaver has joined #ruby
cschneid_ has quit [Remote host closed the connection]
intrigueD has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
Eiam_ has joined #ruby
Renich has joined #ruby
baweaver has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
trosborn has joined #ruby
<darix> moin drbrain
bubbys has quit [Read error: Connection reset by peer]
bubbys has joined #ruby
<drbrain> darix: hi!
netwoodle has joined #ruby
noodle has quit [Ping timeout: 276 seconds]
DLSteve has joined #ruby
<darix> hm
netwoodle is now known as noodle
kirillzh has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Disavowed has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
Snowy has quit [Ping timeout: 252 seconds]
firstdayonthejob has quit [Ping timeout: 246 seconds]
Snowy has joined #ruby
Rodya_ has quit [Remote host closed the connection]
askhat has joined #ruby
rodfersou has joined #ruby
idefine has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
Rodya_ has joined #ruby
<darix> time to fix extension building for 2.3
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
jenrzzz has quit [Ping timeout: 248 seconds]
idefine has joined #ruby
openstruct has quit [Ping timeout: 248 seconds]
trosborn has joined #ruby
ruby-lang796 has joined #ruby
dlitvak has quit [Remote host closed the connection]
<shevy> ack perl
diegoviola has joined #ruby
cdg has quit [Remote host closed the connection]
<platzhirsch> having a local scoped variable x how can I pass in a condition like == 4 or <= 5 through a block
<platzhirsch> so that I can do if condition.call(x)
<platzhirsch> oh well, there it is. Is there another way to do it? looks legit
cdg has joined #ruby
openstruct has joined #ruby
<SegFaultAX> `condition = proc { |e| e == 4 }; condition.call(10)`
<SegFaultAX> You can also do condition[10], but that kinda sucks.
teej has joined #ruby
<Oxford> SegFaultAX: Does it?
openstruct has quit [Remote host closed the connection]
<crystal77> Hello ruby folks! I need some help in just understanding something. So I know all about rbenv/rvm/gemsets. What about projects that don't use any of that? How do I make an isolate enviroment? virtualenv? vagrant? I guess it would be nice to know the gems I install and whatnot are only for that folder, so when I'm done, I don't pollute my system.
Renich has quit [Quit: leaving]
Renich has joined #ruby
<platzhirsch> SegFaultAX: yeah agreed
cdg has quit [Ping timeout: 252 seconds]
Renich has quit [Client Quit]
pawnbox has joined #ruby
goodcodeguy has joined #ruby
idefine has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
rcvalle has quit [Quit: rcvalle]
cstls` has joined #ruby
Renich has joined #ruby
trinaldi has quit [Quit: zzz]
<Oxford> "Use round brackets to call methods and no one bats an eye. Use square brackets to call functions and everyone loses their minds."
trosborn has quit [Quit: trosborn]
darkf has joined #ruby
decoponio has quit [Quit: Leaving...]
Renich has quit [Client Quit]
Oxford is now known as Ox0dea
Renich has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
Renich has quit [Client Quit]
Renich has joined #ruby
<SegFaultAX> Ox0dea: Yes it does
brijesh has quit [Ping timeout: 250 seconds]
<SegFaultAX> Because if the variable you're using [] with was defined more than a page of code away, then you can no idea what the semantics of the subscript operator are.
<SegFaultAX> Is it calling comething, fetching an item from a hash/array, etc.
eregi has quit [Ping timeout: 246 seconds]
<SegFaultAX> .call is obvious and unambiguous.
Renich has quit [Client Quit]
ruby-lang796 has quit [Ping timeout: 252 seconds]
Renich has joined #ruby
devbug has quit [Ping timeout: 268 seconds]
duckpupp1 has joined #ruby
jottr has joined #ruby
Renich has quit [Client Quit]
cholq has joined #ruby
dkam_ has quit [Quit: Lingo: www.lingoirc.com]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 250 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dostoyevsky has joined #ruby
<dostoyevsky> > \\ud862\\udf46\\u7684\\u540c\\u4f4d\\u7d20".gsub(/((\\u[a-f\d]{4})+)/i) { p $1; a= $1.split('\\u'); p a[1..-1].map{|v| v.to_i(16)}.pack("U")} =~ /\\u/
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Renich has joined #ruby
<dostoyevsky> > ArgumentError: invalid byte sequence in UTF-8
<dostoyevsky> Anybody knowing what's going on there? I try to read a dump from wikidata but I cannot convert the encoded characters...
<apeiros> pack("U*")
Renich has quit [Client Quit]
<apeiros> could write the whole thing simpler I think
<apeiros> but /me off
cholq has quit [Ping timeout: 252 seconds]
duckpupp1 has quit [Ping timeout: 252 seconds]
eregi has joined #ruby
statelesscode has joined #ruby
<dostoyevsky> that looks much better...
Azure has joined #ruby
Mia has quit [Ping timeout: 252 seconds]
hayden_ has quit [Quit: Connection closed for inactivity]
<dostoyevsky> > "\\ud862\\udf46\\u7684\\u540c\\u4f4d\\u7d20".gsub(/((\\u[a-f\d]{4})+)/i) { a= $1.split('\\u'); a[1..-1].map{|v| v.to_i(16)}.pack("U*")} =~ /t/
<dostoyevsky> but the error persists: ArgumentError: invalid byte sequence in UTF-8
rodfersou has quit [Quit: leaving]
<apeiros> that'd be because the given string isn't valid.
<strongcode> in IRB, what does the rightmost number on the prompt indicate?
<strongcode> stack level?
<apeiros> >> "\ud862\udf46\u7684\u540c\u4f4d\u7d20".valid_encoding?
<ruby[bot]> apeiros: # => false (https://eval.in/527737)
astrobun_ has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kam270 has joined #ruby
eregi has quit [Ping timeout: 246 seconds]
dome22xl has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
<Ox0dea> strongcode: "Nesting level" is perhaps a little more appropriate.
FernandoBasso has quit [Quit: Leaving]
dlitvak has joined #ruby
<dostoyevsky> apeiros: thanks. I am going to check if I read it the string correctly from the wikidata dump
<strongcode> ah, thank you Ox0dea. I was trying to break things by having recursive default args in a method
<strongcode> and was trying to figure just exactly where I ended up
<Ox0dea> strongcode: That's terrifying! :P
<strongcode> agreed
<Ox0dea> It's worth noting that default arguments are evaluated every time you invoke the method.
<strongcode> I thought so
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<strongcode> are they evaluated as a proc/lambda?
lyoshaja_ has joined #ruby
<strongcode> and stored in case the conditional logic calls?
joneshf-laptop has joined #ruby
Rodya_ has quit [Remote host closed the connection]
krzkrzkrz has joined #ruby
<Ox0dea> strongcode: It's not clear to me how you mean.
<Ox0dea> They're only evaluated if they "take effect", as it were.
dlitvak has quit [Ping timeout: 246 seconds]
lyoshaja_ has quit [Remote host closed the connection]
AustinMatherne has quit [Remote host closed the connection]
<strongcode> so, if i have `def foo(a = bar())`
biberu has quit []
<strongcode> and i call `foo(2)`, is the bar() call evaluated? Or is it only evaluated if a = nil?
<strongcode> ==*
AustinMatherne has joined #ruby
<Ox0dea> It's only evaluated if you don't explicitly pass an argument.
<Ox0dea> Passing `nil` would cause `a` to be nil, not whatever `bar` returned.
lyoshajapan has joined #ruby
Rodya_ has joined #ruby
cstls` has quit [Ping timeout: 276 seconds]
<dostoyevsky> >> "\ud862\ude0f\u7684\u540c\u4f4d\u7d20".valid_encoding?
<ruby[bot]> dostoyevsky: # => false (https://eval.in/527739)
brijesh has joined #ruby
<dostoyevsky> alas, that's really what's in the wikidata dump
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<strongcode> >> def foo(arg = foo.send(arg)); puts 'inside foo'; end; foo
<strongcode> '_`
binaryplease has quit [Ping timeout: 248 seconds]
<strongcode> did I do something wrong
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
darkf_ has joined #ruby
pawnbox has joined #ruby
<strongcode> >> puts 'hi'
<dostoyevsky> And also: node > "\ud862\ude0f\u7684\u540c\u4f4d\u7d20" -> '
noodle has quit [Remote host closed the connection]
Spleeze has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<dostoyevsky> hmmm... I cannot copy & paste that string from node...
<Ox0dea> strongcode: You'll need to register with NickServ.
hackeron has quit [Ping timeout: 246 seconds]
<dostoyevsky> but node displays "\ud862\ude0f\u7684\u540c\u4f4d\u7d20" just like it's written in wikidata
<Ox0dea> That won't help you with the problem of wanting to invoke a method in its signature, though.
darkf has quit [Ping timeout: 276 seconds]
<strongcode> :<
Rodya_ has joined #ruby
bronson has joined #ruby
<strongcode> I want it to break, and it seems to be doing just that in irb
<strongcode> is this a false negative?
pawnbox has quit [Ping timeout: 246 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
Azure has joined #ruby
Mojo_Nixon has joined #ruby
Mojo_Nixon has quit [Client Quit]
Donnie28064212 has joined #ruby
<Ox0dea> strongcode: https://eval.in/527741
<Donnie28064212> Well shit
<Ox0dea> strongcode: That seems to be doing "the right thing"?
nofxx has quit [Ping timeout: 248 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
rorra has joined #ruby
<Donnie28064212> s00pcan: Ox0dea what do you mean by "the right thing"?
bb010g has joined #ruby
<strongcode> Ox0dea https://eval.in/527742
<strongcode> why are they different if you call it normally vs use foo.send?
blackmes1 has quit [Ping timeout: 276 seconds]
<Ox0dea> strongcode: Yours never makes it into the body of the method.
darkf_ is now known as darkf
<Donnie28064212> ^foo.send
bronson has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
augcesar has joined #ruby
jeanlinu_ has joined #ruby
bronson has joined #ruby
<strongcode> I dont understand why yours doesnt fall victim to recursive looping
<Donnie28064212> It does? That is what the output said
hackeron has joined #ruby
<Ox0dea> strongcode: This is interesting: https://eval.in/527744
benlieb has joined #ruby
<Ox0dea> I've never run into that error from eval.in, but do run it locally to see a strange anomaly.
<strongcode> but he still got `nil` and `:return_value` Donnie28064212
Rodya_ has quit [Remote host closed the connection]
<strongcode> hah, it kicked me out of IRB locally Ox0dea
<Ox0dea> strongcode: Sure, but did you see the TracePoint events being emitted?
<Ox0dea> It gets stuck in `return` rather than `call`.
ramfjord_ has joined #ruby
<strongcode> yes
ramfjord has quit [Ping timeout: 252 seconds]
KramerC has joined #ruby
Snowy has quit [Quit: ragequit]
<Ox0dea> Which would indicate that it is in fact making it into the method body.
<Ox0dea> ¯\_(ツ)_/¯
chouhoulis has quit [Ping timeout: 248 seconds]
jeanlinux has quit [Ping timeout: 260 seconds]
Akuma has quit [Quit: So long sukkas!]
al2o3-cr has quit [Ping timeout: 246 seconds]
alexishuard has joined #ruby
chouhoul_ has quit [Ping timeout: 246 seconds]
elifoster has quit [Ping timeout: 252 seconds]
<strongcode> weird, if you put any statement in the method body it doesnt evaluate it
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
jeanlinu_ has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
ropeney has joined #ruby
ramfjord_ has quit [Ping timeout: 250 seconds]
astrobun_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
Donnie28064212 has left #ruby [#ruby]
noodle has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
marr has quit [Ping timeout: 246 seconds]
uglybandersnatch has quit [Ping timeout: 276 seconds]
kp666 has quit [Ping timeout: 246 seconds]
<Ox0dea> strongcode: What's the use case here?
podman has quit [Quit: Connection closed for inactivity]
uglybandersnatch has joined #ruby
<strongcode> none at all, I was just messing around
<Ox0dea> Well, that's a relief. :P
<dostoyevsky> Seems like ruby is unable to process utf16 strings?
<Ox0dea> Yep.
<dostoyevsky> Which is what wikidata is using.. or just emojis
<Ox0dea> >> Encoding::UTF_16 # dostoyevsky
<ruby[bot]> Ox0dea: # => #<Encoding:UTF-16 (dummy) (autoload)> (https://eval.in/527755)
trosborn has quit [Quit: trosborn]
<drbrain> there are two UTF-16 encodings
<drbrain> BE and LE
<Ox0dea> Oh, right.
<dostoyevsky> > Encoding::UTF_16
<dostoyevsky> > "\ud83d\ude0d".valid_encoding? # -> false
jenrzzz has joined #ruby
<dostoyevsky> node has no problem with that emoji, though... and they use utf16 natively
<drbrain> dostoyevsky: you need to tell ruby what the encoding is
<drbrain> >> s = "\ud83d\ude0d"; orig_encoding = s.encoding; s.force_encoding Encoding::UTF_16BE; [orig_encoding, s]
<ruby[bot]> drbrain: # => [#<Encoding:UTF-8>, "\uEDA0\uBDED\uB88D"] (https://eval.in/527757)
pawnbox has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<drbrain> dostoyevsky: ↑ ruby knows what to do when you tell it the kind of string you have
<drbrain> I should have added s.valid_encoding?, which returns `true`
<dostoyevsky> drbrain: ok, that seems to work now!!
bronson has quit [Remote host closed the connection]
<drbrain> dostoyevsky: yay! (ruby assumes UTF-8 by default)
<drbrain> however, .rb files must be ASCII-compatible, so in that sense ruby doesn't handle UTF-16
nfk has joined #ruby
<Ox0dea> So what's going on here? https://eval.in/527758
<drbrain> Ox0dea: that's only half the code-point
<dostoyevsky> The only thing is that I read "\ud83d\ude0d" from that wikidata dump... so I'd like to convert that string... but there is only [].pack("U*") ... so only utf8.. or could I just use force_encoding on that result?
<drbrain> dostoyevsky: what kind of string?
Rodya_ has joined #ruby
askhat has quit [Quit: Textual IRC Client: www.textualapp.com]
<dostoyevsky> >> s = "\\ud83d\\ude0d".gsub(/((\\u[a-f\d]{4})+)/i) { a= $1.split('\\u'); a[1..-1].map{|v| v.to_i(16)}.pack("U*")}; s.force_encoding Encoding::UTF_16BE; s =~ /t/
pawnbox has quit [Ping timeout: 252 seconds]
<ruby[bot]> dostoyevsky: # => incompatible encoding regexp match (US-ASCII regexp with UTF-16BE string) (Encoding::CompatibilityEr ...check link for more (https://eval.in/527793)
<drbrain> paragraph starting "Code points in the range U+D800–U+DBFF"
ramfjord has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 248 seconds]
<Ox0dea> drbrain: Aye, just needed to see "surrogate pair" again. :)
<drbrain> so if you see "\ud8…" for a UTF-16 string it's like seeing "\xf…" for a UTF-8 string
Rodya_ has joined #ruby
<drbrain> >> s = "\ud83d\ude0d"; s.force_encoding Encoding::UTF.16BE; s.encode Encoding::UTF_8
<ruby[bot]> drbrain: # => /tmp/execpad-c8bde875a973/source-c8bde875a973:2: no .<digit> floating literal anymore; put 0 before ...check link for more (https://eval.in/527794)
<drbrain> oops
<drbrain> >> s = "\ud83d\ude0d"; s.force_encoding Encoding::UTF_16BE; s.encode Encoding::UTF_8
<ruby[bot]> drbrain: # => "뷭뢍" (https://eval.in/527795)
<drbrain> dostoyevsky: ↑
<Ox0dea> That didn't work?
dlitvak has joined #ruby
<dostoyevsky> drbrain: hmmm... that's not a smiley... :)
<drbrain> I did UTF.16BE instead of UTF_16BE
<drbrain> could be LE?
<drbrain> >> s = "\ud83d\ude0d"; s.force_encoding Encoding::UTF_16LE; s.encode Encoding::UTF_8
<dostoyevsky> I am not sure if emojis are available in utf8
<ruby[bot]> drbrain: # => "ꃭ趸" (https://eval.in/527796)
<drbrain> dostoyevsky: they are
jenrzzz has quit [Ping timeout: 252 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<Ox0dea> >> "\ud83d\ude0d" # This is the fundamental problem.
<ruby[bot]> Ox0dea: # => "\xED\xA0\xBD\xED\xB8\x8D" (https://eval.in/527797)
<dostoyevsky> drbrain: interesting, I cannot even c&p emojis from my browser to my utf8 terminal here.. they just become broken characters
duckpupp1 has joined #ruby
kies^ has joined #ruby
<Ox0dea> Isn't information being lost?
<drbrain> dostoyevsky: what's the source page you're getting them from?
astrobun_ has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
<drbrain> >> s = "
<ruby[bot]> drbrain: # => ["
krzkrzkrz has quit [Ping timeout: 246 seconds]
<drbrain> >> "
<ruby[bot]> drbrain: # => "1f6f3" (https://eval.in/527799)
Spami has quit [Quit: This computer has gone to sleep]
<drbrain> ↑ is the higest emoji character, PASSENGER SHIP
<drbrain> following it are alchemical symbols and CJK unified ideographs
Rodya_ has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 276 seconds]
fullofcaffeine has joined #ruby
duckpupp1 has quit [Ping timeout: 250 seconds]
<havenwood> >> [128126].pack 'U'
<ruby[bot]> havenwood: # => "
benlieb has quit [Quit: benlieb]
<drbrain> dostoyevsky: oh, if it's \u…\u…, but supposed to be a single code-point it might already have been broken
n008f4g_ has quit [Ping timeout: 250 seconds]
<Ox0dea> As he's pointed out, Node handles it just fine.
Rodya_ has joined #ruby
spuk has joined #ruby
<ruby[bot]> dostoyevsky: 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
Rodya_ has quit [Remote host closed the connection]
<dostoyevsky> Over on #unicode they say that javascript's unicode implementation is broken...
<drbrain> ah-ha, it's supposed to be
Rodya_ has joined #ruby
shanemcd_ has quit [Remote host closed the connection]
<Ox0dea> >> "\xf0\x9f\x98\x8d"
<ruby[bot]> Ox0dea: # => "
<drbrain> if I use "\xd8\x3d\xde\x0d" instead of "\ud83d\ude0d"
mattwildig has joined #ruby
<drbrain> then I can s.force_encoding Encoding::UTF_16BE
ensyde_ has joined #ruby
<drbrain> and I get "\u{1F60D}"
rodolfowtf has joined #ruby
<drbrain> libedit seems to have a problem displaying ↑, but it is an emoji
<drbrain> (and a valid unicode code-point
platzhirsch has left #ruby [#ruby]
<drbrain> oh, right, I have to puts s.encode Encoding::UTF_8
<drbrain> dostoyevsky: ↑
blackmesa has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
goodcodeguy has joined #ruby
stardiviner has joined #ruby
<drbrain> dostoyevsky: so I think your input to ruby, "\ud83d\ude0d", is already corrupt and should be "\u{1f60d}"
Rodya_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
<drbrain> but you can swap out \u.... for \x..\x.. and get something that works with a force_encoding
<drbrain> or, the \u from where you're getting it has a different meaning that ruby's \u
marxarelli is now known as marxarelli|afk
hxegon has quit [Ping timeout: 276 seconds]
<dostoyevsky> drbrain: maybe because it's a json dump, the JS \u semantics are used too.. and that's why it's no problem for me to display these dump strings in node..
hxegon has joined #ruby
Rodya_ has joined #ruby
<drbrain> that explains it
uglybandersnatch has quit [Ping timeout: 252 seconds]
augcesar has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
<drbrain> >> require 'json'; JSON.parse '["\ud83d\ude0d"]'
<ruby[bot]> drbrain: # => ["
<drbrain> you have a JSON string, so you need to JSON.parse it
sneakerhax has quit [Ping timeout: 250 seconds]
<drbrain> see the fourth paragraph of section 7 (Strings): https://tools.ietf.org/html/rfc7159
<drbrain> starting "To escape an extended character that is not in the Basic Multilingual Plane"
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<drbrain> and I bet node uses JSON string semantics because they're both JavaScript-based
Rodya_ has joined #ruby
cassioscabral has joined #ruby
<drbrain> the whole section on strings makes we facepalm
hxegon has quit [Quit: BRB]
<shevy> :)
baweaver has quit [Remote host closed the connection]
<drbrain> "we don't support UTF-8, except for the basic multilingual plane, so you have to do this kludgy workaround to write arbitrary Unicode characters"
<drbrain> I may be not quite right on that
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Ping timeout: 248 seconds]
<drbrain> ok, so you can have any utf-8 character in JSON, but when you escape a character from beyond the basic multilingual plane they do this weird thing
snockerton has quit [Quit: Leaving.]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
dome22xl has joined #ruby
<dostoyevsky> drbrain: yeah.. now I can see that smiley in ruby too!!! :)
kirillzh has joined #ruby
crystal77 has joined #ruby
kirillzh has quit [Max SendQ exceeded]
<dostoyevsky> >> JSON.parse('["\\ud83d\\ude0d"]')
<ruby[bot]> dostoyevsky: # => uninitialized constant JSON (NameError) ...check link for more (https://eval.in/527816)
nanoz has joined #ruby
<dostoyevsky> >> require 'json'; JSON.parse('["\\ud83d\\ude0d"]')
<ruby[bot]> dostoyevsky: # => ["
kirillzh has joined #ruby
justin_pdx has joined #ruby
krzkrzkrz has joined #ruby
dome22xl has quit [Ping timeout: 252 seconds]
shanemcd_ has joined #ruby
ohaibbq has joined #ruby
jenrzzz has joined #ruby
pdoherty has joined #ruby
shaman42 has quit [Ping timeout: 240 seconds]
Garo_ has quit [Ping timeout: 240 seconds]
swills has joined #ruby
Petazz has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Channel6 has joined #ruby
eregi has joined #ruby
baweaver has joined #ruby
shanemcd_ has quit [Ping timeout: 276 seconds]
elifoster has joined #ruby
Rodya_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
matcouto has joined #ruby
matcouto has quit [Quit: Lost terminal]
swills has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
bluOxigen_ has joined #ruby
krzkrzkrz has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 252 seconds]
justin_pdx has quit [Quit: justin_pdx]
bluOxigen has quit [Ping timeout: 250 seconds]
uglybandersnatch has joined #ruby
nbdy has joined #ruby
idefine has quit [Ping timeout: 248 seconds]
cholq has joined #ruby
Rodya_ has joined #ruby
jenrzzz has joined #ruby
dlitvak has joined #ruby
bronson has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
Rodya_ has quit [Remote host closed the connection]
cholq has quit [Quit: Leaving...]
Dimik has quit [Ping timeout: 246 seconds]
krzkrzkrz has joined #ruby
Rodya_ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
dopamean_ has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 250 seconds]
cholq has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
graydot has quit [Quit: graydot]
duckpupp1 has joined #ruby
lyoshajapan has quit []
aaeron has joined #ruby
Guest34101 has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
duckpupp1 has quit [Ping timeout: 276 seconds]
brijesh has quit [Quit: WeeChat 1.1.1]
fullofcaffeine has quit [Ping timeout: 248 seconds]
rodolfowtf has quit [Ping timeout: 246 seconds]
eurialo has quit [Ping timeout: 268 seconds]
ericn81 has joined #ruby
eurialo_ has joined #ruby
william3 has joined #ruby
aryaching has joined #ruby
cholq has left #ruby ["WeeChat 0.4.0"]
pawnbox has joined #ruby
DmitryBochkarev has joined #ruby
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has quit [Ping timeout: 276 seconds]
alexishuard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 246 seconds]
sneakerhax has joined #ruby
uglybandersnatch has quit [Ping timeout: 248 seconds]
eregi has quit [Ping timeout: 246 seconds]
astrobun_ has quit [Remote host closed the connection]
Guest34101 has quit [Ping timeout: 276 seconds]
<shevy> my world is shattered
<shevy> (1..100).map(&:to_s) is faster than (1..100).map {|i| i.to_s }
statelesscode has quit [Quit: statelesscode]
rorra has quit [Ping timeout: 276 seconds]
sushi_ has quit [Ping timeout: 264 seconds]
uglybandersnatch has joined #ruby
stolid has joined #ruby
ohaibbq has quit [Quit: Leaving...]
rorra has joined #ruby
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
kirillzh has quit [Quit: Textual IRC Client: www.textualapp.com]
sneakerhax has quit [Ping timeout: 250 seconds]
statelesscode has joined #ruby
<shevy> And {:bar => :uco }.fetch(:bar, (0..9).to_a) is slower than {:bar => :uco }.fetch(:bar) { (0..9).to_a }
davedev24 has quit []
djbkd has quit [Remote host closed the connection]
freerobby has joined #ruby
bronson has joined #ruby
astrobun_ has joined #ruby
sushi_ has joined #ruby
mattwildig has quit [Remote host closed the connection]
sushi_ has quit [Ping timeout: 248 seconds]
sushi_ has joined #ruby
dlitvak has joined #ruby
djbkd has joined #ruby
tfittsy has quit [Ping timeout: 276 seconds]
shadoi has quit [Quit: Leaving.]
kp666 has joined #ruby
benlieb has quit [Quit: benlieb]
pawnbox has joined #ruby
nanoz has quit [Quit: <3]
dlitvak has quit [Ping timeout: 248 seconds]
shadoi has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 248 seconds]
eurialo_ has quit [Ping timeout: 252 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
sushi_ has quit [Ping timeout: 250 seconds]
Renich has joined #ruby
bronson has quit [Remote host closed the connection]
aaeron has quit [Quit: aaeron]
duckpupp1 has joined #ruby
allcentury has joined #ruby
stolid has quit [Read error: Connection reset by peer]
segy has quit [Quit: ZNC - http://znc.in]
UtkarshRay has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
safe has quit [Quit: Leaving]
sushi_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
duckpupp1 has quit [Ping timeout: 260 seconds]
segy has joined #ruby
chouhoulis has joined #ruby
allcentury has quit [Ping timeout: 248 seconds]
eurialo_ has joined #ruby
teejayen has joined #ruby
shadoi has quit [Quit: Leaving.]
teejayen has quit [Read error: Connection reset by peer]
julieeharshaw has quit [Quit: ZZZZZzzzz]
Vingador has joined #ruby
teej has quit [Ping timeout: 252 seconds]
peteyg has joined #ruby
sushi_ has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
saneax_AFK is now known as saneax
braincrash has quit [Quit: bye bye]
hahuang65 has joined #ruby
allcentury has joined #ruby
eregi has joined #ruby
zast has joined #ruby
Guest34101 has joined #ruby
eregi has quit [Ping timeout: 246 seconds]
julieeharshaw has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
nbdy has quit [Quit: Textual IRC Client: www.textualapp.com]
braincrash has joined #ruby
ensyde_ has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 268 seconds]
ensyde_ has joined #ruby
allcentury has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
shanemcd_ has joined #ruby
sushi_ has joined #ruby
gix has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
anaeem1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
shanemcd_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
djbkd has quit [Quit: My people need me...]
aupadhye has joined #ruby
Robtop__ is now known as pwnd_nsfw
LoneHerm_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
sneakerhax has joined #ruby
shadoi has joined #ruby
HakN99 has joined #ruby
darkf_ has joined #ruby
dlitvak has joined #ruby
shadoi has quit [Client Quit]
shadoi has joined #ruby
shadoi has quit [Client Quit]
darkf has quit [Ping timeout: 276 seconds]
shadoi has joined #ruby
darkf_ is now known as darkf
dlitvak has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
Pupp3tm4st3r has joined #ruby
nachoman has joined #ruby
Maako has joined #ruby
Maako has left #ruby [#ruby]
Rodya_ has quit [Remote host closed the connection]
rdavila has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
krobzaur has joined #ruby
bronson has joined #ruby
duckpupp1 has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
kam270 has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 252 seconds]
duckpupp1 has quit [Ping timeout: 276 seconds]
cpup has quit [Ping timeout: 260 seconds]
krobzaur has quit [Quit: WeeChat 1.2]
nerium has quit [Quit: nerium]
UtkarshRay has quit [Ping timeout: 250 seconds]
cpup has joined #ruby
fedexo has joined #ruby
<shevy> https://github.com/ash-shell/ash huh - they even use yaml files too
<shevy> ash for bash, uby for ruby
Renich has quit [Ping timeout: 248 seconds]
Renich has joined #ruby
uglybandersnatch has quit [Ping timeout: 252 seconds]
uglybandersnatch has joined #ruby
HakN99 has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160209234642]]
rkazak has joined #ruby
anonyanoy has joined #ruby
krzkrzkrz has quit [Ping timeout: 248 seconds]
anonyanoy has left #ruby [#ruby]
spuk has quit [Ping timeout: 248 seconds]
shadoi has quit [Quit: Leaving.]
maletor has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
floatingpoint has joined #ruby
kam270 has joined #ruby
rehat has quit []
kam270 has quit [Max SendQ exceeded]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kam270 has joined #ruby
skweek has joined #ruby
hahuang65 has joined #ruby
krzkrzkrz has joined #ruby
pawnbox has joined #ruby
ropeney has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
bMalum has joined #ruby
bMalum has quit [Client Quit]
eregi has joined #ruby
Rickmasta has joined #ruby
<eam> your ash is bash
<eam> and I'm the lawnmower man
ropeney has joined #ruby
dlitvak has joined #ruby
baweaver has joined #ruby
ensyde_ has quit [Read error: Connection reset by peer]
ensyde_ has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
p0p0pr37 has quit [Ping timeout: 268 seconds]
nachoman has quit [Ping timeout: 248 seconds]
rorra has quit [Quit: rorra]
Renich has quit [Quit: leaving]
dlitvak has quit [Ping timeout: 260 seconds]
mattwildig has joined #ruby
eregi has quit [Quit: Lost terminal]
djbkd has joined #ruby
Vingador has quit [Quit: Leaving]
LoneHerm_ has joined #ruby
b|ackwolf has quit [Ping timeout: 246 seconds]
mattwildig has quit [Ping timeout: 276 seconds]
BullHorn has quit [Ping timeout: 260 seconds]
cpup has quit [Ping timeout: 248 seconds]
cpup has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
DoubleMalt has joined #ruby
chipotle has joined #ruby
allcentury has joined #ruby
PlasmaStar has quit [Ping timeout: 260 seconds]
allcentury has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
pawnbox has quit [Remote host closed the connection]
counterapparatus has joined #ruby
pawnbox has joined #ruby
Asher has joined #ruby
PlasmaStar has joined #ruby
duckpupp1 has joined #ruby
nw has joined #ruby
nw is now known as Guest70423
DoubleMalt has quit [Remote host closed the connection]
<BtcBen> Is there a way to make rake tasks continue even if an error occurs?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<BtcBen> should prob ask in ror
jeanlinux has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 260 seconds]
jeanlinux has joined #ruby
benlieb has joined #ruby
devbug_ has joined #ruby
ldg has quit [Ping timeout: 276 seconds]
jeanlinux has quit [Ping timeout: 248 seconds]
Channel6 has quit [Quit: Leaving]
nando293921 has quit [Ping timeout: 248 seconds]
uglybandersnatch has quit [Ping timeout: 250 seconds]
zast has quit [Quit: Leaving.]
pawnbox has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
ur5us has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 246 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
ericn81 has quit [Ping timeout: 252 seconds]
justin_pdx has joined #ruby
ur5us has joined #ruby
ramfjord has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
sauvin has joined #ruby
shanemcd_ has joined #ruby
flughafen_ has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
bluOxigen_ has quit [Ping timeout: 250 seconds]
Puffball_ has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
shanemcd_ has quit [Ping timeout: 276 seconds]
Puffball has joined #ruby
pawnbox has joined #ruby
dome22xl has joined #ruby
crankharder has quit [Ping timeout: 248 seconds]
dlitvak has quit [Ping timeout: 276 seconds]
ta__ has quit [Remote host closed the connection]
devbug__ has joined #ruby
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
joneshf-laptop has quit [Ping timeout: 252 seconds]
devbug_ has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
intrigueD has joined #ruby
stardiviner has quit [Ping timeout: 252 seconds]
codecop has joined #ruby
the_drow has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
graffix222_ has quit [Ping timeout: 276 seconds]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jayc0b0 has joined #ruby
<drbrain> BtcBen: if you expect an error from a task then that task should handle it with begin/rescue/end
jenrzzz has joined #ruby
ur5us has joined #ruby
<BtcBen> I got it fixed, thanks though drbrain
graffix222 has joined #ruby
dopie has quit [Quit: Lost terminal]
dopie has joined #ruby
JimmytheNewKid has joined #ruby
<JimmytheNewKid> hello
duckpupp1 has joined #ruby
vdamewood has joined #ruby
uglybandersnatch has quit [Ping timeout: 250 seconds]
<JimmytheNewKid> hey
JimmytheNewKid has left #ruby [#ruby]
_b__ has quit [Quit: Leaving]
Don_John has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
uglybandersnatch has joined #ruby
terminal_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jeanlinux has joined #ruby
intrigueD has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 276 seconds]
crdpink2 has quit [Quit: q term]
krzkrzkrz has quit [Ping timeout: 246 seconds]
jeanlinux has quit [Ping timeout: 260 seconds]
crdpink has joined #ruby
krzkrzkrz has joined #ruby
Mon_Ouie has joined #ruby
[spoiler] has joined #ruby
maletor has joined #ruby
Disavowed has joined #ruby
rkazak has quit [Ping timeout: 248 seconds]
cnrroxx has joined #ruby
ramfjord has joined #ruby
Macaveli has joined #ruby
counterapparatus has quit [Ping timeout: 250 seconds]
kreek has joined #ruby
statelesscode has quit [Quit: statelesscode]
ramfjord has quit [Quit: leaving]
jolts is now known as joltsafk
joltsafk is now known as jolts
_b__ has joined #ruby
Guest34101 has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
_b__ has quit [Read error: Connection reset by peer]
Guest70423 is now known as nw
nw has quit [Quit: leaving]
vernetit has joined #ruby
<vernetit> Hello
nw has joined #ruby
astrobun_ has quit [Remote host closed the connection]
nw is now known as Guest40515
rkazak has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
Snowy has joined #ruby
scepticulous has joined #ruby
pawnbox has joined #ruby
cnr_roxx has joined #ruby
solars has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
cnrroxx has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
arup_r has joined #ruby
MrDoctor has joined #ruby
colegatron has quit [Read error: Connection reset by peer]
the_drow has quit [Quit: This computer has gone to sleep]
lvn has quit [Ping timeout: 260 seconds]
LoneHermit has quit [Ping timeout: 248 seconds]
terminal_ has quit [Quit: Textual IRC Client: www.textualapp.com]
crankharder has joined #ruby
mattwildig has joined #ruby
PlasmaStar has quit [Ping timeout: 248 seconds]
uglybandersnatch has quit [Ping timeout: 252 seconds]
i8igmac has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
infoget has joined #ruby
mattwildig has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
dlitvak has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
ta_ has joined #ruby
tjbiddle has joined #ruby
chipotle has joined #ruby
andikr has joined #ruby
lvn has joined #ruby
lvn has quit [Remote host closed the connection]
lvn has joined #ruby
sp4rrow has joined #ruby
nixmaniack has joined #ruby
symm- has joined #ruby
htmldrum has joined #ruby
al2o3-cr has joined #ruby
djbkd has quit [Remote host closed the connection]
aganov has joined #ruby
bronson has joined #ruby
duckpupp1 has joined #ruby
anisha has joined #ruby
Pupp3tm4st3r has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
flughafen has quit [Read error: Connection reset by peer]
trosborn has joined #ruby
steffkes has joined #ruby
duckpupp1 has quit [Ping timeout: 248 seconds]
Abrin_AWAY has quit [Ping timeout: 260 seconds]
trosborn has quit [Client Quit]
jeanlinux has joined #ruby
rigel_ has joined #ruby
kenndel_ has joined #ruby
diprotic has joined #ruby
diprotic has joined #ruby
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 246 seconds]
vondruch has quit [Ping timeout: 246 seconds]
kies has quit [Ping timeout: 260 seconds]
monoprotic has quit [Ping timeout: 260 seconds]
mfaeh has joined #ruby
Guest-ru has joined #ruby
dubalubdub has quit [Ping timeout: 268 seconds]
jeanlinux has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
vondruch has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
last_staff has joined #ruby
solars has joined #ruby
jas02 has joined #ruby
allcentury has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
colegatron has joined #ruby
kies has joined #ruby
devbug__ has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 276 seconds]
allcentury has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 260 seconds]
mark4 has joined #ruby
graffix222 has quit [Ping timeout: 276 seconds]
astrobun_ has joined #ruby
emilkarl has joined #ruby
skade has joined #ruby
arup_r has quit [Remote host closed the connection]
aufi has joined #ruby
Disavowed has quit [Ping timeout: 260 seconds]
rigel_ has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 276 seconds]
graffix222 has joined #ruby
mhoungbo has joined #ruby
platzhirsch has joined #ruby
terlar has joined #ruby
rigel_ has joined #ruby
soc42 has joined #ruby
Spami has joined #ruby
<adaedra> Hello
firstdayonthejob has quit [Ping timeout: 260 seconds]
<Ox0dea> Bon morgen et guten jour.
<adaedra> :p
TomyWork has joined #ruby
htmldrum has joined #ruby
ensyde_ has quit [Ping timeout: 248 seconds]
tesuji has joined #ruby
tesuji has quit [Changing host]
tesuji has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
lvn has quit [Ping timeout: 250 seconds]
kfpratt has joined #ruby
vondruch has joined #ruby
_kfpratt has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
ixti has joined #ruby
Guest40515 is now known as nw
baweaver has joined #ruby
DoubleMalt has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
biberu has joined #ruby
baweaver has quit [Ping timeout: 248 seconds]
dede has joined #ruby
shaman42 has joined #ruby
djbkd has quit [Quit: Leaving...]
chipotle has quit [Quit: cheerio]
kreek has quit [Ping timeout: 252 seconds]
<platzhirsch> Ox0dea: Aloha
graffix222 has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
<Ox0dea> platzhirsch: Freman nur, s'il vous plait.
nofxx has quit [Ping timeout: 252 seconds]
n008f4g_ has joined #ruby
jayc0b0 has quit [Ping timeout: 276 seconds]
duckpupp1 has joined #ruby
Pupp3tm4_ has joined #ruby
mikecmpbll has joined #ruby
tvw has joined #ruby
hayden_ has joined #ruby
duckpupp1 has quit [Ping timeout: 250 seconds]
fedexo has quit [Ping timeout: 250 seconds]
Pupp3tm4st3r has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 248 seconds]
atmosx has joined #ruby
crankharder has joined #ruby
tesuji has quit [Ping timeout: 246 seconds]
elaptics`away is now known as elaptics
vernetit has quit [Ping timeout: 248 seconds]
graffix222 has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
toretore has joined #ruby
laith has joined #ruby
rdark has joined #ruby
rigel_ has quit [Read error: Connection reset by peer]
mlehrer has joined #ruby
jenrzzz has joined #ruby
atmosx_ has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
sepp2k has joined #ruby
jeanlinux has joined #ruby
htmldrum has quit [Ping timeout: 248 seconds]
atmosx has quit [Ping timeout: 276 seconds]
rigel_ has joined #ruby
the_drow has joined #ruby
platzhirsch has left #ruby [#ruby]
_www-bukolay-com has joined #ruby
ferr has joined #ruby
Couch has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
lukebyrne has joined #ruby
htmldrum has joined #ruby
marr has joined #ruby
ziyadb has joined #ruby
thevaliantx has joined #ruby
devbug has quit [Ping timeout: 248 seconds]
graffix222 has quit [Ping timeout: 276 seconds]
Pupp3tm4_ has quit [Remote host closed the connection]
pandaant has joined #ruby
william3 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
Pupp3tm4st3r has joined #ruby
Danishman has joined #ruby
lxsameer has joined #ruby
thevaliantx has quit [Remote host closed the connection]
FooMunki has joined #ruby
lxsameer has quit [Client Quit]
pawnbox has quit [Read error: Connection reset by peer]
mattwildig has joined #ruby
i8igmac has joined #ruby
blackmesa has joined #ruby
pawnbox has joined #ruby
i8igmac has quit [Max SendQ exceeded]
i8igmac has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
i8igmac has quit [Max SendQ exceeded]
Xeago has joined #ruby
mattwildig has quit [Ping timeout: 248 seconds]
soc42 has quit [Remote host closed the connection]
tomphp has joined #ruby
eurialo_ is now known as eurialo
shanemcd_ has joined #ruby
ur5us has quit [Remote host closed the connection]
blaxter has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
Xeago has quit [Read error: Connection reset by peer]
rigel_ has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160209234627]]
shanemcd_ has quit [Ping timeout: 250 seconds]
nixmaniack has quit [Remote host closed the connection]
solars has quit [Quit: WeeChat 0.4.2]
jeanlinux has quit [Remote host closed the connection]
hahuang65 has joined #ruby
jeanlinux has joined #ruby
solars has joined #ruby
emilkarl is now known as emilkarl[away]
solars has quit [Client Quit]
solars has joined #ruby
jenrzzz has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
htmldrum has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
jeanlinux has quit [Ping timeout: 276 seconds]
UtkarshRay has joined #ruby
troulouliou_div2 has joined #ruby
duckpupp1 has joined #ruby
chipotle has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
allcentury has joined #ruby
evidex has joined #ruby
binaryplease has joined #ruby
jeanlinux has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
duckpupp1 has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
htmldrum has joined #ruby
justin_pdx has joined #ruby
allcentury has quit [Ping timeout: 248 seconds]
<solars> quick question, having a subclass like this: https://gist.github.com/solars/472e905dc202a2772ba1 how can I make the defined? check work, so that I do not have to re-implement say_hello in each subclass but simply check if the const is defined or not?
rkazak has quit [Quit: Sleep.....ing....]
vondruch has quit [Ping timeout: 246 seconds]
emilkarl[away] is now known as emilkarl
emilkarl is now known as emilkarl[away]
<apeiros> uh, what? you shouldn't get that exception
<apeiros> at least if I run your very own code, I don't get one.
<apeiros> @ solars
<ljarvis> they dont get it
hahuang65 has joined #ruby
<ljarvis> they're asking how they check if B::MYCONST is defined
<ljarvis> e.g. if it's not, don't call the say_hello from the superclass
<ljarvis> I believe
<apeiros> read the gist
<apeiros> says "NameError: uninitialized constant B::MYCONST"
<ljarvis> o :)
nixmaniack has joined #ruby
<ljarvis> my bad
pawnbox has quit [Remote host closed the connection]
<ljarvis> yeah that except won't happen
<ljarvis> exception
<ljarvis> ugh is it monday
<apeiros> MONDAY!
htmldrum has quit [Ping timeout: 260 seconds]
<adaedra> It's written "Mar" on my clock, so it seems not
pawnbox has joined #ruby
* apeiros waits for clarification by solars
* ljarvis waits for the weekend
* apeiros waits for godot
<ljarvis> orly
* adaedra waits for chtulu
<apeiros> chtulu moved on
<adaedra> Looks like I missed a h
AlexRussia has joined #ruby
graffix222 has joined #ruby
<apeiros> looks like an abandoned question. lovely. I'm out.
emilkarl[away] is now known as emilkarl
workmad3 has joined #ruby
workmad3_ has quit [Ping timeout: 248 seconds]
<solars> sorry, I figured out that was a redundant question
vondruch has joined #ruby
ur5us has joined #ruby
dlitvak_ has joined #ruby
<apeiros> well, nice that you decided to let us know.
<solars> apeiros, well, people have to work sometimes, right - this is irc not a phone call
platzhirsch has joined #ruby
<solars> apologies for letting you wait
<apeiros> solars: sure. knowing your priorities I'll adjust mine wrt to questions from you.
dlitvak_ has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
justin_pdx has quit [Ping timeout: 250 seconds]
<solars> apeiros, that's no problem, I know what to expect
Guest-ru has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has quit [Quit: tjbiddle]
allcentury has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
dlitvak has joined #ruby
dostoyevsky has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 276 seconds]
shinnya has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
Ishido has joined #ruby
howdoi has joined #ruby
ropeney has joined #ruby
htmldrum has joined #ruby
Gasher has joined #ruby
BtcBen has quit [Ping timeout: 276 seconds]
binaryplease has quit [Ping timeout: 276 seconds]
troulouliou_div2 has joined #ruby
graffix222 has quit [Ping timeout: 276 seconds]
DexterLB has quit [Remote host closed the connection]
graffix222 has joined #ruby
DexterLB has joined #ruby
n008f4g_ has joined #ruby
Xeago has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 276 seconds]
tvw has quit [Ping timeout: 246 seconds]
blackms has joined #ruby
UtkarshRay has quit [Quit: Leaving]
htmldrum has joined #ruby
Xeago has joined #ruby
tvw has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
norc_ has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
infoget has quit [Read error: Connection reset by peer]
norc_ is now known as norc
lukebyrne has quit [Quit: lukebyrne]
htmldrum has quit [Ping timeout: 250 seconds]
tomphp has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
htmldrum has joined #ruby
Xeago has joined #ruby
flughafen has joined #ruby
pschichtel has joined #ruby
<pschichtel> Hi! I'm using IPAddr to work with IP addresses and I'd like to get the subnet mask from the CIDR notation (e.g. 10.0.8.0/21 -> 255.255.248.0). I couldn't find a property/method, but to_s will contain the mask. How can I get it?
jenrzzz has joined #ruby
bronson has joined #ruby
platzhirsch has quit [Quit: Leaving.]
duckpupp1 has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 252 seconds]
jeanlinux has quit [Remote host closed the connection]
LoneHermit has joined #ruby
alexherbo2 has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
trinaldi has joined #ruby
toretore has quit [Ping timeout: 248 seconds]
uglybandersnatch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
inukshuk_ has joined #ruby
inukshuk_ has quit [Client Quit]
c355e3b has joined #ruby
krzkrzkrz has quit [Ping timeout: 276 seconds]
laith has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 248 seconds]
emilkarl is now known as emilkarl[away]
shanemcd_ has joined #ruby
dlitvak has quit [Remote host closed the connection]
Guest00-ru has joined #ruby
shanemcd_ has quit [Ping timeout: 248 seconds]
rodfersou has joined #ruby
blackmesa has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
chipotle has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
rstacruz has quit [Quit: rstacruz]
Trynemjoel has joined #ruby
tvw has quit [Remote host closed the connection]
<ljarvis> pschichtel: check out the source for IPAddr#to_s ? If it includes it then there's probably clues
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has quit [Remote host closed the connection]
ropeney has joined #ruby
ldnunes has joined #ruby
<hanmac> pschichtel: yeah that feature seems to be missing ... i will make a ticket about it later: for now you can add it yourself:
<hanmac> >> require "ipaddr"; class IPAddr; def mask_addr; _to_string(@mask_addr); end; end; IPAddr.new("10.0.8.0/21").mask_addr
tulak_ has quit [Remote host closed the connection]
<hanmac> >>require "ipaddr"; class IPAddr; def mask_addr; _to_string(@mask_addr); end; end; IPAddr.new("10.0.8.0/21").mask_addr
<ruby[bot]> hanmac: # => "255.255.248.0" (https://eval.in/528101)
Ishido has quit [Remote host closed the connection]
<pschichtel> hanmac: yep the mask_addr is private, just found out
openstruct has joined #ruby
mattwildig has joined #ruby
Ishido has joined #ruby
karapetyan has joined #ruby
laith has joined #ruby
aryaching has quit [Ping timeout: 276 seconds]
i8igmac has joined #ruby
dionysus69 has joined #ruby
mattwildig has quit [Ping timeout: 246 seconds]
evidex has quit [Read error: Connection reset by peer]
evidex has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
TTilus has joined #ruby
zenlot has joined #ruby
chipotle has joined #ruby
zotherstupidguy has joined #ruby
pawnbox has joined #ruby
thevaliantx has joined #ruby
platzhirsch has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
adgtl has joined #ruby
shanemcd_ has joined #ruby
nixmaniack has quit []
jenrzzz has joined #ruby
kgutteridge has joined #ruby
bronson has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duckpupp1 has joined #ruby
shanemcd_ has quit [Remote host closed the connection]
sdothum has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
skade has joined #ruby
TTilus has quit [Quit: Lost terminal]
bronson has quit [Ping timeout: 252 seconds]
<darix> pschichtel: require 'ipaddress' ; IPAddress::IPv4.new("10.0.8.0/21").netmask
duckpupp1 has quit [Ping timeout: 250 seconds]
johnmilton has joined #ruby
dlitvak has joined #ruby
tulak has joined #ruby
blackmesa has joined #ruby
verdan has joined #ruby
shanemcd_ has joined #ruby
thevaliantx has quit [Quit: Leaving]
<darix> if you want it a not caring about v4 vs v6: require 'ipaddress' ; IPAddress.parse("10.0.8.0/21").netmask
chipotle has quit [Quit: cheerio]
Domaldel has joined #ruby
evidex has quit [Remote host closed the connection]
evidex has joined #ruby
allcentury has joined #ruby
arup_r has joined #ruby
karapetyan has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
trinaldi has quit [Read error: Connection reset by peer]
emilkarl[away] has quit [Read error: Connection reset by peer]
platzhirsch has quit [Quit: Leaving.]
trinaldi has joined #ruby
sgambino has joined #ruby
emilkarl has joined #ruby
saneax is now known as saneax_AFK
aupadhye has quit [Ping timeout: 246 seconds]
<n1colas> o/
biberu\ has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
emilkarl has joined #ruby
biberu has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
biberu\ has quit [Ping timeout: 248 seconds]
krzkrzkrz has joined #ruby
BSaboia has joined #ruby
kgutteridge has quit [Quit: kgutteridge]
pawnbox has quit [Remote host closed the connection]
Lobosque has joined #ruby
i8igmac has quit [Ping timeout: 276 seconds]
<Lobosque> I'm new to ruby. How do I change the return value of a method for testing? the method isn't inside a class.
dome22xl has quit [Ping timeout: 248 seconds]
Snowy_ has joined #ruby
<apeiros> ?toolbox Lobosque
<ruby[bot]> Lobosque: https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
<apeiros> search for stub, mock, testdouble
<apeiros> those things enable you to easily change methods for the time of a single test
Snowy has quit [Read error: Connection reset by peer]
adgtl has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
Snowy_ is now known as Snowy
<Lobosque> I can't find a single example of mocha stubbing a method without a class
<apeiros> you probably can replace SomeClass in the examples with some_object.singleton_class then
pawnbox has joined #ruby
rikkipitt has joined #ruby
adgtl has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
adgtl has quit [Remote host closed the connection]
agent_white has quit [Quit: bbl]
jeanlinux has joined #ruby
binaryplease has joined #ruby
adgtl has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tulak has quit [Remote host closed the connection]
dgncn has joined #ruby
tulak has joined #ruby
adgtl has quit [Remote host closed the connection]
pawnbox has joined #ruby
duckpupp1 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Lobosque> how am I supposed to access a class variable? https://repl.it/BrgJ
jeanlinux has quit [Ping timeout: 276 seconds]
unreal_ is now known as unreal
Pupp3tm4st3r has quit [Ping timeout: 250 seconds]
inukshuk_ has joined #ruby
Pupp3tm4st3r has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
inukshuk_ has quit [Client Quit]
<adaedra> Lobosque: https://eval.in/528150
duckpupp1 has quit [Ping timeout: 276 seconds]
n008f4g_ has quit [Ping timeout: 260 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
nocontrol has joined #ruby
<nocontrol> guys what is the difference between running something as bundle exec <command> and simple <command> ?
<adaedra> bundle exec setups gem path correctly to load and load only gems from your Gemfile, at the version required in the Gemfile.lock
<adaedra> it also allows to load gems managed by bundler (installed with --path)
Abrin_AWAY has joined #ruby
Lobosque has quit [Quit: Page closed]
Rickmasta has joined #ruby
synthroid has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.3 Beta Build (2016/02/25) 32 Bit]
tvw has joined #ruby
Aswebb_ has quit []
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_www-bukolay-com has quit [Ping timeout: 248 seconds]
c0ncealed has quit [Remote host closed the connection]
kedare has joined #ruby
c0ncealed has joined #ruby
<workmad3> nocontrol: `bundle exec <command>` == `RUBYOPT="-r bundler/setup" <command>`
Pupp3tm4st3r has joined #ruby
<nocontrol> workmad3: what does it mean ?
<nocontrol> what is RUBYOPT ?
Pupp3tm4st3r has quit [Remote host closed the connection]
Meow-J has quit [Quit: Connection closed for inactivity]
<workmad3> RUBYOPT is an environment variable the `ruby` command looks at when loading as additional command line options
<workmad3> so if you run `RUBYOPT="-r bundler/setup" ruby foobar` it's like running `ruby -r bundler/setup foobar`
mattwildig has joined #ruby
<nocontrol> I still don't get it
<nocontrol> what's the point ?
emilkarl has quit [Read error: Connection reset by peer]
<nocontrol> If you use rvm/rbenv for ruby versions you're running everything in a specific environment
aufi has quit [Ping timeout: 260 seconds]
<nocontrol> so why running a command like rails with "bundle exec" in front of it ?
railsForDaiz has joined #ruby
<workmad3> nocontrol: because that `-r bundler/setup` option loads bundler
s00pcan_ has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
<nocontrol> and why do we need it to be loaded ?
Guest34101 has joined #ruby
<workmad3> because you're running a command in an app that uses bundler and you want to use the bundled gems
<apeiros> nocontrol: slightly different goals
<apeiros> nocontrol: bundler allows you to lock and share the specific gems used by a project
Tempesta has joined #ruby
<apeiros> with rvm, you can isolate it for your own machine but you can't share which specific versions you're using
<nocontrol> so If you use bundle exec you force the use of the gems that are described inside Gemfile ?
emilkarl has joined #ruby
<apeiros> Gemfile.lock even
atmosx_ has quit [Quit: This is aparting message!]
<nocontrol> IF you don't ?
<apeiros> you'll use whichever versions are installed for your ruby
<nocontrol> you're using the default versions installed globally ?
<nocontrol> ok
Pupp3tm4st3r has joined #ruby
<apeiros> note that rvm auto-prefixes `bundle exec`
<workmad3> ^ in some circumstances
<nocontrol> I never cared about bundle exec until today and it's been almost 2 years of developing in Ruby
<nocontrol> and all this time I've been using the global gems ?
<apeiros> sure. when you're working only with gems, it's barely necessary.
<nocontrol> omg I am an idiot
<apeiros> I only use it in rails world either.
<workmad3> nocontrol: most of the time you don't need to care... you only really need it when you're using something like `rake` in an app that needs an earlier version than the latest installed
<nocontrol> workmad3: I see
<nocontrol> workmad3: We use cloud66 @ work which forces you to use bundle exec
<workmad3> especially in rails, where one of the early steps of initialisation is to pull in `bundler/setup` anyway
<nocontrol> and I wondered why
<nocontrol> ok this makes sense
<workmad3> nocontrol: yeah, it's also very useful on servers because it sets things up when you have bundled gems into `vendor/bundle`
<apeiros> yupp, net-less server deploys
<apeiros> nice for intranet boxen
<nocontrol> thank you both
jottr has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<nocontrol> I don't believe I have been missing this
<workmad3> apeiros: I was thinking just `bundle install --deployment` which vendors your bundle, but yeah also if you `bundle pack` and `bundle install` :)
Pupp3tm4st3r has joined #ruby
AlexRussia has joined #ruby
railsForDaiz has quit [Ping timeout: 260 seconds]
<apeiros> OF COURSE there's no Zlib::GzipFile::read, why would there? щ(゚д゚щ)
* apeiros grumbles
* apeiros ( `Д´)=◯)`ν°) Zlib
saneax_AFK is now known as saneax
allcentury has quit [Ping timeout: 252 seconds]
arup_r has quit [Ping timeout: 246 seconds]
shanemcd_ has quit [Remote host closed the connection]
<oz> apeiros: no love for Zlib::GzipReader ?
malconis has joined #ruby
<apeiros> doesn't seem to have ::read either
<apeiros> well, .open(…, &:read) it is
<apeiros> hurray for 16 line `read_file(path)` method to handle this :-S
<adaedra> ?pr
<ruby[bot]> adaedra: I don't know anything about pr
<adaedra> duh.
skade has joined #ruby
shanemcd_ has joined #ruby
B4daBing73 has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
* apeiros sees the irony of adaedra trying to pull a "?pr" and then not adding it…
<adaedra> :p
<apeiros> ^^
<adaedra> I suspect that if I add this, it will get used a lot against me, and I ponder about factoids multiplications.
<adaedra> But can do.
<apeiros> you mean they're reproducing uncontrollably?
<shevy> tribbles!
<apeiros> who'da thunked shevy was a ST:TOS fan
<adaedra> !fact mk pr You think this is broken, could be done better, or have a good feature idea? Make an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
<ruby[bot]> adaedra: I will remember that pr is You think this is broken, could be done better, or have a good feature idea? Make an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
<adaedra> Mh, "Submit an issue" instead of "Make an issue" would it be better?
s00pcan_ has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
goodcodeguy has quit [Client Quit]
goodcodeguy has joined #ruby
Guest34101 has quit [Ping timeout: 248 seconds]
dn5 has joined #ruby
workmad3_ has joined #ruby
cdg has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
<apeiros> adaedra: yes
mattwildig has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
<adaedra> !fact ed pr You think this is broken, could be done better, or have a good feature idea? Submit an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
<ruby[bot]> adaedra: I stand corrected that pr is You think this is broken, could be done better, or have a good feature idea? Submit an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
<adaedra> Voilà, apeiros
mattwildig has joined #ruby
B4daBing73 has quit [Quit: Leaving]
<apeiros>
InternetFriend has joined #ruby
allcentury has joined #ruby
workmad3 has joined #ruby
<shevy> apeiros some of the old ones were quite good... the apollo-hand thing was a nice idea... tribbles were so funny.. also fun were how the klingons looked, and in the later new generation ones, worf would not want to talk about why the klingons would look so differently haha
workmad3_ has quit [Ping timeout: 252 seconds]
<apeiros> shevy: too bad you're not in #ruby-offtopic. could have told you why they did :)
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
<shevy> unicode hangman!
quaristice has joined #ruby
quaristice has quit [Client Quit]
BaroMeter has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
<adaedra> shevy: just ignore it like other sensible people who don't want to see it do.
jenrzzz has joined #ruby
platzhirsch has joined #ruby
ramortegui has joined #ruby
<hanmac> shevy & apeiros i read on the ruby mailing list that they did discuss about obj->meth to return the method object (for blocks) matz itself did like the idea, but not the -> one because its already used
chouhoulis has joined #ruby
allcentury has joined #ruby
graffix222 has quit [Ping timeout: 276 seconds]
astrofog has joined #ruby
Danishman has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
blackmesa has joined #ruby
cdg has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
thevaliantx has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
hayden_ has quit [Quit: Connection closed for inactivity]
thevaliantx has quit [Remote host closed the connection]
thevaliantx has joined #ruby
r4z3r has quit [Max SendQ exceeded]
r4z3r has joined #ruby
crystal77 has joined #ruby
nachoman has joined #ruby
mhoungbo has quit [Remote host closed the connection]
s00pcan has joined #ruby
last_staff has quit [Quit: last_staff]
shanemcd_ has quit [Remote host closed the connection]
<platzhirsch> /j ♯ruby
<platzhirsch> This doesn't work, oh man
kobain has joined #ruby
JakFrist has joined #ruby
Meow-J has joined #ruby
shanemcd_ has joined #ruby
anisha has quit [Quit: Leaving]
shanemcd_ has quit [Remote host closed the connection]
shanemcd_ has joined #ruby
chipotle has joined #ruby
MrDoctor has quit [Ping timeout: 246 seconds]
anirban has joined #ruby
graffix222 has joined #ruby
decoponio has joined #ruby
SCHAAP137 has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
jottr has quit [Quit: WeeChat 1.4]
<apeiros> which ruby version added Hash#to_proc again?
<apeiros> 22>> {}.to_proc
<ruby[bot]> apeiros: # => undefined method `to_proc' for {}:Hash (NoMethodError) ...check link for more (https://eval.in/528174)
<apeiros> 23>> {}.to_proc
<ruby[bot]> apeiros: # => #<Proc:0x41a81c90> (https://eval.in/528175)
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> oh, only 2.3? so sad. well then, required_ruby just increased for this gem 0:-)
howdoi has quit [Quit: Connection closed for inactivity]
shanemcd_ has quit []
b|ackwolf has joined #ruby
haylon has joined #ruby
<b|ackwolf> how can I use rbconfig in ruby2.2.x?
<b|ackwolf> I meant. what is the equivalent?
<b|ackwolf> irb --simple-prompt -rrbconfig
<b|ackwolf> Is Config class called anything different in the current version?
sgambino has joined #ruby
<apeiros> RbConfic
<apeiros> *RbConfig
TomPeed has joined #ruby
sushi_ has quit [Ping timeout: 250 seconds]
<dn5> what is equivalent of Rails "yield" in sinatra?
<ddv> dn5: has nothing to do with Rails
<ddv> or Sinatra for that matter
<dn5> It's still Ruby tho
<dn5> Rails is framework and gem like any other
<adaedra> yield is yield
<adaedra> maybe explain what you want?
ramortegui has quit [Quit: Ex-Chat]
skade has quit [Quit: Computer has gone to sleep.]
The_Phoenix has joined #ruby
<dn5> adaedra: I'm trying to rewrite my app from Rails to Sinatra. The Rails serve yield as a main body of some view. I'm asking for approach on how to load body from a view in Sinatra. Sinatra allows erb :index (for e.g) to load index.erb, but how do I serve html head without the body.
<workmad3> dn5: are you talking about the rails templating override of `yield` to allow for named blocks of content provided by content_for?
treehug88 has joined #ruby
<workmad3> dn5: or just more generally regarding rails templates, layouts etc. all of which are somewhat lacking in sinatra because it's not trying to fill the same space as rails?
<adaedra> it's still yield iirc, but you have to provide a block to `erb :index` (long time no sinatra'd tho)
<dn5> workmad3: the first one
<ddv> dn5: you are wasting time by converting this app to sinatra
al2o3-cr has quit [Ping timeout: 246 seconds]
<workmad3> dn5: I'd second what ddv said then... what you're basically asking for is sinatra to be rails
<ddv> true
<workmad3> or at least for sinatra templating to be equivalent to rails templating... which it simply isn't
<dn5> ddv: Learning something is not wasting time.
rikkipitt has quit [Remote host closed the connection]
<adaedra> dn5: then start a sinatra app from scratch. Way less painful and you may learn more things.
rikkipitt has joined #ruby
<workmad3> also don't assume that there's a 1:1 feature parity between sinatra and rails... there isn't :)
<dn5> adaedra: what else I'm doing?
<dn5> workmad3: Yes, I do understand that. Especially for secureity reasons.
<adaedra> wat
<workmad3> dn5: huh?
karapetyan has joined #ruby
<workmad3> 'security reasons'?
<workmad3> what brought that up? :)
hayden_ has joined #ruby
<dn5> for a start, the csrf protection I get in rails automatically
<dn5> more or less
<darix> dn5: that is mostly a rack plugin
i8igmac has joined #ruby
<darix> you need to understand which libraries rails combined to achieve what feature
<dn5> it still helped not to hassle around for libraries as for sinatra
i8igmac has quit [Max SendQ exceeded]
<ddv> dn5: try lotus if you want to learn something new
Zackio has quit [Ping timeout: 252 seconds]
<ddv> hanami :P
i8igmac has joined #ruby
i8igmac has quit [Max SendQ exceeded]
<adaedra> dn5: sinatra is not rails. If you want the same features, you have to bring them back or recode some before you have parity.
i8igmac has joined #ruby
i8igmac has quit [Max SendQ exceeded]
<dn5> adaedra: who says I want the same features in Sinatra as in rails?
chouhoulis has joined #ruby
i8igmac has joined #ruby
<adaedra> until now, you have spoken about rails templating and csrf protection
i8igmac has quit [Max SendQ exceeded]
Zackio has joined #ruby
<dn5> the guy asked me a question, I answered.. I asked a particular question in a start
Domaldel has quit [Quit: Leaving]
<pschichtel> How can I iterate over the top level of a multidimensional array? Array.each iterates recursively...
i8igmac has joined #ruby
babblebre has joined #ruby
<adaedra> pschichtel: wat
i8igmac has quit [Max SendQ exceeded]
<workmad3> pschichtel: err... no it doesn't?
<adaedra> >> a = 0; [1, [2, 3], 4].each { a += 1 }; a
<ruby[bot]> adaedra: # => 3 (https://eval.in/528178)
<adaedra> see, it don't go down
baweaver has joined #ruby
<InternetFriend> lol wat
jeanlinux has joined #ruby
<pschichtel> ohh, puts prints the entire array ...
<pschichtel> ok that was misleading
i8igmac has joined #ruby
i8igmac has quit [Max SendQ exceeded]
jas02 has quit [Quit: jas02]
SCHAAP137 has quit [Remote host closed the connection]
i8igmac has joined #ruby
ta_ has quit [Remote host closed the connection]
yardenbar has joined #ruby
skade has joined #ruby
pdoherty has joined #ruby
baweaver has quit [Ping timeout: 248 seconds]
izaac has joined #ruby
i8igmac has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
karapetyan has quit [Remote host closed the connection]
thevaliantx has quit [Quit: Leaving]
bb010g has quit [Quit: Connection closed for inactivity]
sushi_ has joined #ruby
rodfersou is now known as rodfersou|lunch
nanoz has joined #ruby
thevaliantx has joined #ruby
thevaliantx has quit [Max SendQ exceeded]
thevaliantx has joined #ruby
karapetyan has joined #ruby
_rsc` has joined #ruby
thevaliantx has quit [Client Quit]
<_rsc`> hi
crystal77 has joined #ruby
flughafen_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
mary5030 has joined #ruby
Pupp3tm4st3r has quit [Quit: Leaving...]
rdavila has joined #ruby
jenrzzz has joined #ruby
joneshf-laptop has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
idefine has joined #ruby
bronson has joined #ruby
kam270 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
dstarh has joined #ruby
karapetyan has joined #ruby
floatingpoint has joined #ruby
cnr_roxx has quit [Ping timeout: 248 seconds]
davidpgero has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
Guest34101 has joined #ruby
czerasz has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
dlitvak_ has joined #ruby
<czerasz> hi, has anybody experience with yaks? https://github.com/plexus/yaks
karapetyan has quit [Remote host closed the connection]
Vingador has joined #ruby
adgtl has joined #ruby
floatingpoint has quit [Client Quit]
dlitvak_ has quit [Remote host closed the connection]
idefine_ has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
dlitvak has quit [Ping timeout: 246 seconds]
BTRE has quit [Quit: Leaving]
arbys has joined #ruby
arbys has left #ruby [#ruby]
dn5 has quit [Quit: Lost terminal]
dlitvak has joined #ruby
Ben_1 has joined #ruby
<Ben_1> hi
<Ben_1> have a dependency problem with rack
chouhoulis has quit [Remote host closed the connection]
pawnbox has joined #ruby
BTRE has joined #ruby
<Ben_1> rails (~> 4.1.4) was resolved to 4.1.4, which depends on railties (= 4.1.4) was resolved to 4.1.4, which depends on actionpack (= 4.1.4) was resolved to 4.1.4, which depends on rack (~> 1.5.2)
<Ben_1> gitlab-grack was resolved to 2.0.0.pre, which depends on rack (~> 1.6.0)
<Ben_1> Bundler could not find compatible versions for gem "rack":
chouhoulis has joined #ruby
linduxed has quit [Ping timeout: 260 seconds]
dlitvak has quit [Read error: Connection reset by peer]
A124 has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
<InternetFriend> hello
<adaedra> Coucou
terlar has quit [Quit: WeeChat 1.4]
idefine has joined #ruby
<GeorgesLeYeti> I have a hash a = {:"3" => "a", :"4" => "b", :"2" => "c", :"1" => "d"} and i want to sort it a = {:"1" => "d", :"2" => "c" ...}
<hanmac> GeorgesLeYeti: Hash are not sorted
bMalum has joined #ruby
<nachoman> a = a.sort.to_h
<nachoman> it is (only in ruby)
adgtl has quit [Remote host closed the connection]
karapetyan has joined #ruby
<GeorgesLeYeti> nachoman, ok
karapetyan has quit [Remote host closed the connection]
<GeorgesLeYeti> ty
idefine_ has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
<haylon> Hey everyone, what's a way, or method to perform authentication for an cli application? Not sure if that's the correct way to ask, but we'll go from there.
al2o3-cr has joined #ruby
karapetyan has quit [Remote host closed the connection]
znz_jp has quit [Quit: kill -QUIT $$]
malconis_ has joined #ruby
uglybandersnatch has joined #ruby
adgtl has joined #ruby
idefine has quit [Read error: Connection reset by peer]
BSaboia has quit [Ping timeout: 252 seconds]
<treehug88> haylon typical is to check env vars for some key
znz_jp has joined #ruby
<treehug88> (in a way that doesn't show what exact key you're looking for in your code)
solars has quit [Ping timeout: 260 seconds]
malconis has quit [Ping timeout: 246 seconds]
<haylon> Got ya. I was thinking of doing a Hashed-password in a DB, then if the hashes match, the application gives a unique auth-string to use, Similar to how Zabbix does it
<haylon> but I was wondering if there was a ruby methodoly that anyone else would recommend, or think is easier
momomomomo has joined #ruby
adgtl has quit [Remote host closed the connection]
hxegon has joined #ruby
BSaboia has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
uglybandersnatch has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Ping timeout: 248 seconds]
rikkipitt has quit [Remote host closed the connection]
jgpawletko has joined #ruby
biberu has quit []
linduxed has joined #ruby
idefine has joined #ruby
<ddv> haylon: rails?
<haylon> ddv, how does rails do that?
malconis_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<ddv> no I meant are you using rails?
<haylon> I haven't learned Rails yet, mostly Sinatra
<ddv> ok
<haylon> oh, I'm using Sinatra
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
malconis has joined #ruby
<haylon> I wouldn't be opposed to learning Rails, just Sinatra seemed to fit in what I wanted.
<ddv> haylon: bcrypt-ruby
momomomomo has quit [Client Quit]
dopamean_ has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
Chagel has joined #ruby
zotherstupidguy has quit [Ping timeout: 260 seconds]
atmosx has joined #ruby
nocontrol has quit []
Snowy has quit [Read error: Connection reset by peer]
dopie has quit [Quit: Lost terminal]
vdamewood has quit [Quit: Life beckons.]
Snowy has joined #ruby
Ben_1 has left #ruby [#ruby]
<haylon> Cool, thanks ddv, I'll read that as well
karapetyan has joined #ruby
yardenbar has quit [Quit: Leaving]
<nachoman> what types are subclass of Enumerable?
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
qu has joined #ruby
x77686d has joined #ruby
qu is now known as z5
Gasher has quit [Quit: Leaving]
aufi has joined #ruby
Gasher has joined #ruby
jeanlinux has quit [Read error: Connection reset by peer]
idefine_ has joined #ruby
jeanlinu_ has joined #ruby
_ht has joined #ruby
davidpgero has quit [Remote host closed the connection]
<adaedra> >> ObjectSpace.each_object.select { |e| Class === e && e.ancestors.include?(Enumerable) }
<ruby[bot]> adaedra: # => [Process::Tms, Enumerator::Generator, Enumerator::Lazy, Enumerator, ObjectSpace::WeakMap, Dir, File, ...check link for more (https://eval.in/528206)
Chagel has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
jeanlinux has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
tristanp has quit [Read error: Connection reset by peer]
dopie has joined #ruby
tristanp_ has joined #ruby
flughafen_ has quit [Ping timeout: 248 seconds]
idefine has quit [Ping timeout: 250 seconds]
rikkipitt has joined #ruby
B1n4r10 has joined #ruby
diegoviola has joined #ruby
jeanlinu_ has quit [Ping timeout: 248 seconds]
jeanlinux has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
aegis3121 has joined #ruby
rikkipitt has quit [Client Quit]
Icey has quit [Ping timeout: 276 seconds]
tesuji has joined #ruby
william3 has quit [Remote host closed the connection]
Icey has joined #ruby
<ljarvis> e < Enumerable would work too
laith has quit [Quit: Leaving.]
<ljarvis> (I always liked that method)
evidex has quit [Ping timeout: 250 seconds]
dhollinger has joined #ruby
arlek has joined #ruby
dubek has joined #ruby
marxarelli|afk is now known as marxarelli
DoubleMalt has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
anirban has quit [Ping timeout: 246 seconds]
adgtl has quit [Remote host closed the connection]
<adaedra> Heh
flughafen_ has joined #ruby
y2mq37 has quit [Read error: Connection reset by peer]
ljames has joined #ruby
blackgoat has joined #ruby
zast has joined #ruby
shanemcd has quit [Remote host closed the connection]
jeanlinu_ has joined #ruby
rkazak has joined #ruby
william3 has joined #ruby
dlitvak has joined #ruby
jeanlinux has quit [Ping timeout: 248 seconds]
jeanlinux has joined #ruby
tvw has quit [Read error: Connection reset by peer]
adgtl has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
devbug has joined #ruby
jeanlinu_ has quit [Ping timeout: 248 seconds]
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
stennowork has joined #ruby
stennowork has left #ruby [#ruby]
malconis has quit [Remote host closed the connection]
The_Phoenix has quit [Quit: Leaving.]
malconis has joined #ruby
bronson has joined #ruby
LoneHerm_ has joined #ruby
DmitryBochkarev has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
podman has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
sneakerhax has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
Rodya_ has joined #ruby
Jardayn has joined #ruby
<adgtl> Trying out to play producer consumer problem in Ruby
<ddv> play?
william3 has joined #ruby
<adgtl> is this the right implementation?
linduxed has quit [Ping timeout: 276 seconds]
The_Phoenix has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
LoneHerm_ has quit [Ping timeout: 276 seconds]
<adgtl> he is original implemation https://gist.github.com/733f292800237cc3d47d
<adgtl> here*
aganov has quit [Remote host closed the connection]
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
laith has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
laith has left #ruby [#ruby]
nfk has joined #ruby
tjohnson has joined #ruby
<apeiros> adgtl: you can simplify your code a lot by using Thread::Queue
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Snowy has quit [Client Quit]
baweaver has joined #ruby
Gasher has quit [Quit: Leaving]
<adgtl> apeiros: okay
<apeiros> adgtl: also you only synchronize over push/shift on the queue
rodfersou|lunch is now known as rodfersou
<apeiros> the production and consumption should not be within the semaphore. otherwise you throw away the main point of the prod/cons design.
aufi has quit [Ping timeout: 252 seconds]
idefine_ has quit [Read error: Connection reset by peer]
<apeiros> also you'll usually have a mechanism to stop produces instead of `while true`, and similarly a mechanism to a) stop consumers and b) wait until all work is consumed
idefine has joined #ruby
<apeiros> *producers
<adgtl> apeiros: here is updated example https://gist.github.com/b9441df00eb7870289f0
idefine_ has joined #ruby
<apeiros> adgtl: you know, you can update gists. no need to create a new one.
<apeiros> has the nice advantage of keeping the history neatly in place.
<apeiros> I think ::Queue is deprecated in favor of Thread::Queue
<adgtl> apeiros: ah
idefine__ has joined #ruby
<adgtl> thanks
<apeiros> and the point of Thread::Queue is that you can drop the semaphore around push/shift
idefine has quit [Read error: Connection reset by peer]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
baweaver has quit [Remote host closed the connection]
<adgtl> apeiros: is is correct implementation of producer consumer problem?
rcvalle has joined #ruby
tulak has quit [Remote host closed the connection]
<apeiros> as said, the semaphore around producing/consuming the thread beats the purpose of using it. if you fix that, then IMO yes.
sgambino has joined #ruby
idefine_ has quit [Ping timeout: 260 seconds]
* apeiros grumbles - what's up with those errors in my sentences today?
<apeiros> as said, the semaphore around producing/consuming the *item* beats the purpose of using it. if you fix that, then IMO yes.
<apeiros> (and "using it" = "using the prod/cons pattern)
<pschichtel> I have this custom puppet function: http://pastebin.com/y7jxSke8 it takes an IP adresses and a 2d array with subnet information. when iterating over the 2d array, I'm not getting the inner arrays, but the first element of the inner array (the subnet name). why is that so?
<ruby[bot]> pschichtel: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7e9f6a255db644bd54e3
<ruby[bot]> pschichtel: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
sphex has quit [Ping timeout: 276 seconds]
<adgtl> apeiros: do you mean.. don't use semaphores?
idefine has joined #ruby
arlek has quit [Ping timeout: 248 seconds]
<apeiros> adgtl: if you use an array, use semaphores, but only around the push/shift operation. if you use thread::queue, you don't need a semaphore.
william3 has joined #ruby
godzillaenlacasa has joined #ruby
evidex has joined #ruby
idefine__ has quit [Ping timeout: 248 seconds]
idefine_ has joined #ruby
linduxed has joined #ruby
chipotle has quit [Quit: cheerio]
idefine has quit [Read error: Connection reset by peer]
trinaldi has quit [Quit: WeeChat 1.5-dev]
william3 has quit [Remote host closed the connection]
infernix has joined #ruby
anirban has joined #ruby
idefine has joined #ruby
Guest34101 has quit [Ping timeout: 250 seconds]
marr has quit [Read error: Connection reset by peer]
steffkes has quit [Ping timeout: 276 seconds]
sphex has joined #ruby
ponga has joined #ruby
idefine has quit [Read error: Connection reset by peer]
DaniG2k has joined #ruby
<adgtl> apeiros: cool
<adgtl> :)
idefine_ has quit [Ping timeout: 246 seconds]
darkf_ has joined #ruby
william3 has joined #ruby
darkf has quit [Disconnected by services]
darkf_ is now known as darkf
openstruct has quit [Remote host closed the connection]
cubicme has joined #ruby
idefine has joined #ruby
rodolfowtf has joined #ruby
<cubicme> is there a way to install or rather have gems for for other platforms? I’m running gem server on mac and I want to serve a libv8 gem to a linux machine. is it possible to do this?
baweaver has joined #ruby
psyq has left #ruby ["Conversation terminated"]
cdg has joined #ruby
baweaver has quit [Remote host closed the connection]
chipotle has joined #ruby
JakFrist has quit [Ping timeout: 248 seconds]
<darix> cubicme: gem fetch
scepticulous has quit [Ping timeout: 246 seconds]
djbender has left #ruby [#ruby]
wldcordeiro has quit [Ping timeout: 260 seconds]
tesuji has quit [Ping timeout: 250 seconds]
cnr_roxx has joined #ruby
<hanmac> cubicme: it can be complicated with gems that does have external dependencies (C(++) libs) if i remember correctly libv8 does have different bundled versions for different architectures
dopamean_ has joined #ruby
mlehrer has quit [Quit: Leaving]
<cubicme> darix: thanks, but now how I can make gem server serve this file
elaptics is now known as elaptics`away
<darix> cubicme: you can gem fetch the ruby platform version
shinnya has quit [Ping timeout: 276 seconds]
<darix> then it will be build on the client
<darix> but not sure about gem server
<darix> #rubygems might have a better audience for you
BLuEGoD is now known as James
<cubicme> hanmac: yeah, I tried —platform=linux and apparently it worked, without it, i got the file libv8_darwin.gem; with it, libv8.gem
James is now known as Guest32947
<cubicme> darix: ow, by platform i meant mac/linux, not the ruby
Guest32947 is now known as James
synthroid has quit [Remote host closed the connection]
s00pcan has quit [Quit: Lost terminal]
James is now known as Guest58437
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
openstruct has joined #ruby
marxarelli is now known as marxarelli|afk
YankNYC has joined #ruby
mark4 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :QUIT :Leaving."]
KensoDev has joined #ruby
<YankNYC> Hey everyone, I'm trying to configure this gem as a dependency for my gem. https://github.com/YotpoLtd/geoip2 Do I put that configure block in my gemspec file? and require the geoip2 gem at the top?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodolfowtf has quit [Ping timeout: 246 seconds]
idefine has quit [Ping timeout: 252 seconds]
idefine has joined #ruby
<Papierkorb> YankNYC: I'd redirect the user of your gem to that readme to have it configured.
william3 has quit [Remote host closed the connection]
<YankNYC> it's for a cli app so should i just make a config folder
<YankNYC> and plop it in there
ferr has quit [Quit: WeeChat 1.4]
fmcgeough has joined #ruby
<YankNYC> it doesn't say hey make a config folder it shows a config block lol
pandaant has quit [Remote host closed the connection]
william3 has joined #ruby
dlitvak has quit [Ping timeout: 248 seconds]
william3 has quit [Remote host closed the connection]
sgambino has joined #ruby
biberu has joined #ruby
Don_John has joined #ruby
RalfJ has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
jenrzzz has joined #ruby
RalfJ has joined #ruby
william3 has joined #ruby
s00pcan has joined #ruby
jeanlinux has quit [Ping timeout: 248 seconds]
amclain has joined #ruby
myntcake has joined #ruby
Couch has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
[Butch] has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
sepp2k has quit [Quit: Leaving.]
Guest38 has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
shanemcd has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has joined #ruby
DaniG2k has quit [Quit: leaving]
B1n4r10 has quit [Ping timeout: 276 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nanoz has quit [Ping timeout: 276 seconds]
adgtl has quit [Remote host closed the connection]
shanemcd has quit [Ping timeout: 246 seconds]
pschichtel has left #ruby [#ruby]
symm- has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
rkazak has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby
synthroid has joined #ruby
sneakerhax has joined #ruby
sp4rrow has joined #ruby
synthroid has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
synthroid has joined #ruby
haylon has quit [Quit: WeeChat 1.4]
idefine has quit [Ping timeout: 276 seconds]
s00pcan has quit [Remote host closed the connection]
idefine_ has joined #ruby
Ben_1 has joined #ruby
chipotle has joined #ruby
<Ben_1> someone experiences in passenger? Updated to the latest version but my buildout directory is missing so I can not Load the shared object.
maletor has joined #ruby
darkf has quit [Quit: Leaving]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Ping timeout: 248 seconds]
s00pcan has joined #ruby
x77686d has quit [Quit: x77686d]
RE has joined #ruby
aryaching has quit []
andikr has quit [Remote host closed the connection]
poguez_ has joined #ruby
wmytwu has joined #ruby
diego_ has joined #ruby
diego_ has quit [Changing host]
diego_ has joined #ruby
jolts is now known as joltsafk
joltsafk is now known as jolts
verdan has quit [Ping timeout: 260 seconds]
<RE> Hello, I am trying to install Puppet on windows XP embedded and the Ruby install it is not working, it workds fine on windows 7 embedded. On XP embedded, Ruby crashes with SegFault…
<RE> So I installed, Ruby 1.9.3.3p551 directly and it crashes with the same error.
haylon has joined #ruby
<Papierkorb> RE: Why do you want to use Win XP ..?
chadhs has joined #ruby
<Papierkorb> RE: That's way past end of life
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RE> Windows XP Embedded is used on a lot of thin clients in my company, and we have extended support from Microsoft….
<RE> its not XP, XP embedded.
diegoviola has quit [Ping timeout: 248 seconds]
s00pcan has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 1.4]
davedev24 has joined #ruby
<RE> I’d love to move all these thin clients to win 7, but unfortunately its not possible at this time, and I dont want this be a reason why we dont use Puppet.
cnr_roxx has quit [Ping timeout: 252 seconds]
charlemagne has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
<RE> http://pastebin.ca/3385589 Here’s the error on XPE
cubicme has quit [Quit: cubicme]
railsForDaiz has joined #ruby
diego_ is now known as diegoviola
<Papierkorb> RE: If no one in here knows, ask the ruby installer guys http://rubyinstaller.org/
s00pcan has joined #ruby
<Papierkorb> RE: https://github.com/oneclick/rubyinstaller/wiki/faq#win_ver so below ruby 2.2.2 should be fine (?)
amargherio has joined #ruby
tomphp has joined #ruby
baweaver has joined #ruby
<RE> thanks, I’ll search their bugtracker
<adgtl> Anything you expect here http://ruby-operators.herokuapp.com
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> adgtl: lonely person operator
baweaver has quit [Remote host closed the connection]
<havenwood> adgtl: at my work they call "skull tag" the "ice cream with sprinkles tag"
<Papierkorb> adgtl: and =~ as "bacon cannon"
goodcodeguy has joined #ruby
<Papierkorb> ah there is the lonely one
<havenwood> "tiddle wakka" is also "pessimistic person operator"
<havenwood> err, no person
<havenwood> lonely person bled over
rsc___ has joined #ruby
<havenwood> adgtl: shebang
<havenwood> adgtl: twoquals
floatingpoint has joined #ruby
<havenwood> adgtl: pipes
Disavowed has joined #ruby
<havenwood> adgtl: it is "lonely person" operator though, not just "lonely" since it's a person sitting cross-legged staring at the dot
<Papierkorb> adgtl: the '.' if you wanna catch em' all
Boohbah has joined #ruby
jxs_ has joined #ruby
workmad3_ has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
mattwildig has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
Guest58437 is now known as James
krzkrzkrz has quit [Quit: WeeChat 1.2]
justin_pdx has joined #ruby
James is now known as Guest12125
mfb2 has joined #ruby
workmad3 has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has joined #ruby
Xeago has quit [Remote host closed the connection]
eregi has joined #ruby
workmad3_ has quit [Ping timeout: 276 seconds]
rizenine has joined #ruby
evidex has quit [Remote host closed the connection]
sp4rrow has quit [Client Quit]
mattwildig has joined #ruby
wldcordeiro has joined #ruby
karapetyan has quit [Remote host closed the connection]
godzillaenlacasa has quit [Quit: ZZZZZ....]
chipotle has quit [Quit: cheerio]
godzillaenlacasa has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
myntcake has quit [Ping timeout: 248 seconds]
elaptics`away is now known as elaptics
Tref has joined #ruby
stannard_ has joined #ruby
Gasher has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
william3 has joined #ruby
jenrzzz has joined #ruby
stannard has quit [Ping timeout: 250 seconds]
wmytwu has quit [Remote host closed the connection]
Azulinho has joined #ruby
bronson has joined #ruby
Tref has quit [Client Quit]
shadeslayer has quit [Ping timeout: 248 seconds]
william3 has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
Ben_1 has left #ruby [#ruby]
pawnbox has quit [Ping timeout: 252 seconds]
sushi_ has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
shanemcd has joined #ruby
volty has joined #ruby
jeanlinux has quit [Ping timeout: 250 seconds]
mattwildig has quit [Remote host closed the connection]
sushi_ has joined #ruby
intrigueD has joined #ruby
flughafen_ has quit [Ping timeout: 246 seconds]
shadeslayer has joined #ruby
counterapparatus has joined #ruby
webopsx has joined #ruby
shanemcd has quit [Ping timeout: 276 seconds]
<Ox0dea> Papierkorb: Is that an operator?
podman has quit [Quit: Connection closed for inactivity]
<Ox0dea> adgtl: The bangarang (!~) is still missing.
charlemagne has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Bounga has joined #ruby
<adgtl> Ox0dea: example?
counterapparatus has quit [Ping timeout: 252 seconds]
Aviio has joined #ruby
<Ox0dea> adgtl: It means "doesn't match".
<Ox0dea> >> 'rhythm' !~ /[aeiou]/
<ruby[bot]> Ox0dea: # => true (https://eval.in/528281)
arlek has joined #ruby
<Aviio> hi all - anybody used puppet before?
<adgtl> Ox0dea: thanks..
<Ox0dea> Sure thing.
chouhoulis has quit [Ping timeout: 276 seconds]
<adgtl> Can someone else confirm that !~ is called as Bangarang operator? Thanks Ox0dea anyways ;)
sushi_ has quit [Quit: ZNC 1.6.1 - http://znc.in]
<adgtl> Ox0dea: you could send a pull request :)
<Ox0dea> adgtl: I made up that name, but I think it's pretty great.
The_Phoenix has quit [Read error: Connection reset by peer]
<Ox0dea> Or, well, it's the name of a Skrillex song, but nobody else calls the operator that.
<Ox0dea> Yet.
<adgtl> Ox0dea: you coined it so you can send a PR :)
<adgtl> Ox0dea: if you send PR, I will tweet about it :)
jayc0b0 has joined #ruby
<slash_nick> i like it
shadoi has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shadoi has quit [Client Quit]
shadoi has joined #ruby
despai has joined #ruby
nerium has joined #ruby
counterapparatus has joined #ruby
rdavila has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
<nerium> I’m looking for a gem to query complex nested hashes, like ”key1.key2[0].key3”. Is there such a tool?
jeanlinu_ has joined #ruby
ta_ has joined #ruby
<shadoi> I wrote a method once, but it's super nasty :)
pwned_ is now known as pwned
<apeiros> though, the smug answer is: use proper classes
<apeiros> nerium: use ruby 2.3 and #dig
lvn has joined #ruby
skade has joined #ruby
gmci has quit [Ping timeout: 264 seconds]
tejasmanohar has quit [Ping timeout: 264 seconds]
<nerium> apeiros: Proper classes?
Shaboum has joined #ruby
jeanlinux has quit [Ping timeout: 276 seconds]
inukshuk_ has joined #ruby
<shadoi> nerium: disgusting solution: https://gist.github.com/anonymous/677026973cb241819a23
halfdan has quit [Ping timeout: 264 seconds]
<shadoi> :)
holyGlitch has quit [Ping timeout: 264 seconds]
thesheff17 has quit [Ping timeout: 264 seconds]
kireevco has quit [Ping timeout: 264 seconds]
HashNuke has quit [Ping timeout: 264 seconds]
Diabolik has quit [Ping timeout: 264 seconds]
jlyndon has quit [Ping timeout: 264 seconds]
EvilJStoker has quit [Ping timeout: 264 seconds]
AdamMeghji has quit [Ping timeout: 264 seconds]
jmhmccr has quit [Ping timeout: 264 seconds]
cjk101010 has quit [Ping timeout: 264 seconds]
JStoker has quit [Ping timeout: 264 seconds]
jhill has quit [Ping timeout: 264 seconds]
dmarr has quit [Ping timeout: 264 seconds]
Trieste has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
spk has quit [Ping timeout: 264 seconds]
danzilio has quit [Ping timeout: 264 seconds]
skmp has quit [Ping timeout: 264 seconds]
yosafbridge has quit [Ping timeout: 264 seconds]
Nanuq has quit [Ping timeout: 264 seconds]
Nanuq has joined #ruby
rideh has quit [Ping timeout: 264 seconds]
jhass has quit [Ping timeout: 264 seconds]
cookiez has quit [Ping timeout: 264 seconds]
johnny56_ has quit [Ping timeout: 264 seconds]
modin has quit [Ping timeout: 264 seconds]
chrisseaton has quit [Ping timeout: 264 seconds]
lancetw has quit [Ping timeout: 264 seconds]
<apeiros> "querying complex hash" is very often an xy problem
allcentury has joined #ruby
<apeiros> you solve a symptom, not the cause. using proper classes is meant to avoid the problem to begin with
inukshuk_ has quit [Client Quit]
mattwildig has joined #ruby
Trieste_ has joined #ruby
tejasmanohar has joined #ruby
platzhirsch has left #ruby [#ruby]
blackmesa has joined #ruby
idefine has joined #ruby
thesheff17_ has joined #ruby
<nerium> apeiros: The code you posted seams to do something else (according to the examples)
kireevco_ has joined #ruby
<Papierkorb> Ox0dea: of course it is
halfdan has joined #ruby
holyGlitch_ has joined #ruby
gmci has joined #ruby
bitwise_ has joined #ruby
HashNuke_ has joined #ruby
<nerium> apeiros: No it isn’t. I’m extracting data from an API that’s all
DiabolikFreenode has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
idefine_ has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
webopsx has quit [Read error: Connection reset by peer]
spk_ has joined #ruby
lancetw_ has joined #ruby
chrisseaton_ has joined #ruby
countera1paratus has joined #ruby
JStoker has joined #ruby
skmp_ has joined #ruby
rideh- has joined #ruby
danzilio_ has joined #ruby
x77686d has joined #ruby
jlyndon_ has joined #ruby
jhill_ has joined #ruby
AdamMeghji_ has joined #ruby
yosafbridge` has joined #ruby
czerasz has quit [Ping timeout: 250 seconds]
sepp2k has quit [Quit: Leaving.]
podman has joined #ruby
Guest34101 has joined #ruby
sepp2k has joined #ruby
counterapparatus has quit [Ping timeout: 252 seconds]
trinaldi has joined #ruby
Trynemjoel2 has joined #ruby
jhass|off has joined #ruby
holyGlitch_ is now known as holyGlitch
kireevco_ is now known as kireevco
chrisseaton_ is now known as chrisseaton
thesheff17_ is now known as thesheff17
jhass|off is now known as jhass
danzilio_ is now known as danzilio
skmp_ is now known as skmp
AdamMeghji_ is now known as AdamMeghji
jhill_ is now known as jhill
jlyndon_ is now known as jlyndon
HashNuke_ is now known as HashNuke
lancetw_ is now known as lancetw
sarlalian has quit [Quit: WeeChat 0.4.2]
baweaver has joined #ruby
<arup_r> I had an exam, where I had been asked A Range expression such as 1..5 may be used to refer to a subrange of elements in the array. ( True/False) . I said True and I got negative.. why ?
dmarr_ is now known as dmarr
<adaedra> >> (1..10).to_a[2..4]
<ruby[bot]> adaedra: # => [3, 4, 5] (https://eval.in/528288)
<adaedra> because this, maybe?
<adaedra> Ah wait, misread
<volty> nerium: imho you should consider also using xml & xpath
* adaedra wakes up
modin has joined #ruby
<nerium> volty: How?
<eam> arup_r: sounds like a bad question
ta_ has quit [Remote host closed the connection]
<arup_r> lol.. so true is wrong answer
<volty> you write to xml instead to write into hash, then query the xml using xpath. but forget if you don't have experience with xml & xpath
<arup_r> adaedra: as oer you true is correct right ?
kerunaru has joined #ruby
<arup_r> ?
SenpaiSilver_ has joined #ruby
fullofcaffeine has joined #ruby
<adaedra> arup_r: this is something you want to discuss with your examiner, I think.
<arup_r> yeah, that question is gone with OMR..
<Papierkorb> arup_r: is that exam about ruby or language agnostic?
Jardayn has joined #ruby
<Papierkorb> If it's about ruby, it not only depends on the definition of 'refer to', but also we're lacking context as adaedra mentioned. Though I'd be interested in the reasoning if you do ask the examiner arup_r
Eiam_ has joined #ruby
BtcBen has joined #ruby
steffkes has joined #ruby
fullofcaffeine has joined #ruby
crystal7_ has joined #ruby
<Papierkorb> *was
nocontrol has joined #ruby
Alayde has joined #ruby
lvn has quit [Ping timeout: 248 seconds]
baweaver has quit [Ping timeout: 248 seconds]
Bounga has quit [Ping timeout: 246 seconds]
infernix has quit [Ping timeout: 248 seconds]
SenpaiSilver has quit [Ping timeout: 268 seconds]
graffix222 has quit [Quit: graffix222]
Jardayn has quit [Quit: Leaving]
ICantCook has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Read error: Connection reset by peer]
TomPeed has quit [Read error: Connection reset by peer]
djellemah has quit [Ping timeout: 250 seconds]
Alayde has left #ruby [#ruby]
M-Kodo has quit [Quit: node-irc says goodbye]
crystal77 has quit [Ping timeout: 250 seconds]
kp666 has quit [Ping timeout: 250 seconds]
kies^ has quit [Ping timeout: 250 seconds]
ytti has quit [Ping timeout: 240 seconds]
maletor has quit [Ping timeout: 250 seconds]
Puffball has quit [Ping timeout: 250 seconds]
sauvin has quit [Ping timeout: 250 seconds]
Timberwo|f has quit [Ping timeout: 250 seconds]
Liothen has quit [Ping timeout: 250 seconds]
bmn has quit [Ping timeout: 268 seconds]
cubicme has joined #ruby
Puffball has joined #ruby
hahuang65 has joined #ruby
bihi has quit [Ping timeout: 268 seconds]
unsymbol has quit [Ping timeout: 268 seconds]
<arup_r> there was many.. one naughty question was like that as I asked
JoshL has quit [Ping timeout: 250 seconds]
adgtl has quit [Remote host closed the connection]
<nocontrol> I am trying to ping 254 clients by using Threads: https://gist.github.com/chrisvel/579619860ec55e263921 My problem is that I don't know If I need to "exit" or "kill" them. Can someone help ?
<arup_r> There was no examiner..
<arup_r> online test
nisstyre_ has quit [Ping timeout: 250 seconds]
idefine_ has joined #ruby
moei has quit [Ping timeout: 268 seconds]
kp666 has joined #ruby
LnxBil has joined #ruby
helpa has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 250 seconds]
rdark has quit [Ping timeout: 250 seconds]
<nocontrol> I have divided them in chunks of 50s but it seems that somehow memory get overflown
helpa has joined #ruby
<Papierkorb> arup_r: is there a contact available you could ask? Or some coworker/senior dev you could ask?
Morrolan has quit [Ping timeout: 250 seconds]
MuffinPimp has quit [Excess Flood]
JoshL has joined #ruby
LnxBil has quit [Client Quit]
bihi has joined #ruby
<arup_r> I will email them
MuffinPimp has joined #ruby
moei has joined #ruby
synthroi_ has joined #ruby
unsymbol has joined #ruby
LnxBil has joined #ruby
meal_ has joined #ruby
<Aviio> Anybody know if you're able to have more than 1 puppet provisioner per vagrant file?
alexherbo2 has quit [Ping timeout: 250 seconds]
meal has quit [Ping timeout: 268 seconds]
bradland has quit [Ping timeout: 268 seconds]
B1n4r10 has joined #ruby
marxarelli|afk has quit [Ping timeout: 268 seconds]
majoh has quit [Ping timeout: 240 seconds]
bradland has joined #ruby
volty has quit [Ping timeout: 248 seconds]
hackeron has quit [Ping timeout: 250 seconds]
Dimik has joined #ruby
zackattack has joined #ruby
synthroid has quit [Ping timeout: 250 seconds]
<zackattack> Does anyone here also use the statistical environment "R"? I'm trying to wrap my mind around moving a hash of arrays from Ruby into R
<LnxBil> Can someone explain why this simple thing is not working as expected? (I use the exact ruby version from the url inside): http://paste.debian.net/410723/
wldcordeiro has quit [Ping timeout: 250 seconds]
hackeron has joined #ruby
Liothen has joined #ruby
Liothen has joined #ruby
<Papierkorb> nocontrol: The thread(s) will die when their code block has finished execution. That's the moment another thread, which is waiting for that thread using #join like you do, wakes up and continues its work
michael_mbp has quit [Ping timeout: 268 seconds]
rdark has joined #ruby
<nocontrol> Papierkorb: so my threads are safe
<nocontrol> Papierkorb: but is there a limit that I should know ?
Mon_Ouie has quit [Quit: WeeChat 1.4]
<tobiasvl> LnxBil: LnxBil what doesn't work?
GeorgesLeYeti has quit [Quit: Quitte]
sauvin has joined #ruby
<Papierkorb> nocontrol: There is no limit per se, but your operating system may have one.
<tobiasvl> LnxBil: you are aware that the initialize method is commented out, right?
Sp4rKy has quit [Ping timeout: 268 seconds]
<nocontrol> Papierkorb: the error is WARN: ThreadError: can't create Thread: Resource temporarily unavailable
<Papierkorb> nocontrol: You could however look at the Open3 library to asynchronously call ping a ton of times and wait for the processes to finish from a single thread
z5 has quit [Ping timeout: 260 seconds]
<nocontrol> Papierkorb: but not always
firstdayonthejob has joined #ruby
nisstyre_ has joined #ruby
<LnxBil> tobiasvl: according to documentation, "creates and instance variable". Shouldn't it be visible via '.instance_variables'?
<LnxBil> tobiasvl: s/ and //
Morrolan has joined #ruby
karapetyan has joined #ruby
B1n4r10 has quit [Ping timeout: 248 seconds]
<tobiasvl> LnxBil: the variable is never instantiated
<Papierkorb> nocontrol: Then you're hitting some kind of limit. May be a max amount of threads, or something else. But starting ~256 threads sounds like a bad idea anyway.
BaroMeter has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 268 seconds]
<nocontrol> Papierkorb: you think so ? I am just experimenting. Do you think is not possible at all ?
<Papierkorb> nocontrol: Start the process and wait for them to finish
<nocontrol> Papierkorb: Actually I am pinging in chunks of 50s
<tobiasvl> LnxBil: your attr_reader creates a var1 method which returns @var1, but there is no @var1 because initialize is commented out
<Papierkorb> nocontrol: Maybe it's possible, but you're hammering a nail with a screwdriver there
<nocontrol> Papierkorb: you mean for "Each" ping ? I have set the wait time -W to 1 sec
<LnxBil> tobiasvl: So, there is no method available to create getter/setter and initialize?
<tobiasvl> LnxBil: getter and setter can be created with attr_accessor
armyriad has joined #ruby
<nocontrol> Papierkorb: there is no other way that I know to ping fast 254 nodes in 1 sec or less
<tobiasvl> but initializing is done in the initialize method as the name suggests
arup_r has left #ruby [#ruby]
<Papierkorb> nocontrol: Use Process and/or Open3 classes. They're much better suited for that. No threads needed.
<LnxBil> tobiasvl: so I have to create my own register_and_initilize_what_i_want method.
<Ox0dea> LnxBil: In short, the `attr_*` methods create methods, not instance variables.
<tobiasvl> LnxBil: no, just put it in initialize
graffix222 has joined #ruby
shadoi has quit [Quit: Leaving.]
<nocontrol> Papierkorb: so you just iterate 254 times with Open3 ?
<LnxBil> Ox0dea: So, the documentation is wrong
djellemah has joined #ruby
<Papierkorb> nocontrol: basically yes, which will spin up that amount of ping processes. You can batch them if you like, see the Enumerable methods for that
<nocontrol> Papierkorb: thanks for the tips
<nocontrol> Papierkorb: I 'll read a bit and come back
<tobiasvl> LnxBil: what part of the documentation is wrong?
<Ox0dea> LnxBil: It's misleading, yes.
freerobby has joined #ruby
<LnxBil> tobiasvl: I can't, attributes will be generated on the fly. I tried first with instance_variable_set, which sets instance variables, but not getter/setter.
kerunaru has joined #ruby
<LnxBil> tobiasvl: that it creates instance variables ...
<LnxBil> tobiasvl: if it is created, it should be visible with .instance_variables
TomyLobo has joined #ruby
Anderson69s_Deb has quit [Ping timeout: 250 seconds]
<Ox0dea> Instance variables "always exist" in some sense; `@foo` essentially just kicks off a search into an object's instance variable table.
kies^ has joined #ruby
Sp4rKy has joined #ruby
<tobiasvl> ah. yes, I agree. but they're not instantiated.
jenrzzz has joined #ruby
alexherbo2 has joined #ruby
shadoi has joined #ruby
B1n4r10 has joined #ruby
karapetyan has quit [Remote host closed the connection]
<Ox0dea> LnxBil: Ruby certainly provides the means to get and set attributes dynamically.
<drbrain> LnxBil: the documentation is misleading
tobias_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
<drbrain> attr_reader only creates a method
johnny56_ has joined #ruby
majoh has joined #ruby
djbkd has joined #ruby
<LnxBil> so, what can I use to create the instance variable and get setter/getter? self.instance_variable_set takes care of the first, but the second? (dynamic attribute names)
mfb2 has quit []
bmn has joined #ruby
<drbrain> why do you want both?
platzhirsch has joined #ruby
cookiez has joined #ruby
<drbrain> I ask because there may be better ways to address your problem
<LnxBil> Because I need to query all attributes from outside (e.g. .instance_variables) and need to access them via .attribute_name
<drbrain> nocontrol: why not use https://rubygems.org/gems/net-ping ?
<LnxBil> :qall
TobiG77 has quit [Ping timeout: 248 seconds]
<LnxBil> damn
<drbrain> LnxBil: why do you want to query the attributes?
<Ox0dea> Someone needs a <Leader> mapping.
<drbrain> LnxBil: … maybe you want openstruct?
KensoDev has joined #ruby
hollywood has quit [Ping timeout: 268 seconds]
<Papierkorb> drbrain: You need root permissions to craft ICMP ping packets (well, to send them off)
<LnxBil> drbrain: I need to query the attributes from a parent class
kspencer has joined #ruby
kspencer has quit [Changing host]
kspencer has joined #ruby
<drbrain> for what purpose?
mburns has quit [Ping timeout: 268 seconds]
meal_ is now known as meal
jenrzzz has quit [Ping timeout: 276 seconds]
<tobiasvl> LnxBil: you can always do "class << self; self; end.class_eval do; attr_reader something; end" inside initialize. or dynamically create var and var= methods
<Papierkorb> drbrain: usually, OSes don't let non-admin users to send off custom (ICMP is custom in that sense) network packets.
<LnxBil> the query interface needs columns/attributes
infernix has joined #ruby
<LnxBil> tobiasvl: Yes, but there is no "short form" available?
wldcordeiro has joined #ruby
<Ox0dea> &ri singleton_class
Anderson69s_Deb has joined #ruby
justbleed has joined #ruby
<Papierkorb> drbrain: Thus, the script would need to run as root user. Even a SUID bit wouldn't help on a script, as it's interpreted which makes a difference on UNIX systems at least.
<tobiasvl> LnxBil: self.singleton_class.send(:attr_accessor, varname) ?
KensoDev has quit [Read error: Connection reset by peer]
<drbrain> LnxBil: then why not use a Hash?
karapetyan has joined #ruby
<drbrain> columns -> keys, attributes -> values
<drbrain> Papierkorb: I see
<LnxBil> drbrain: It is a hash, I want to wrap it in a class for "similar" use in a rails environment
<drbrain> LnxBil: sounds like you want OpenStruct
<openstruct> o/
<kaleido> openstruct: they want you
<openstruct> I am the elite data structure, after all.
<Ox0dea> Nonsense.
<Ox0dea> You're lipstick on a unicorn.
<kaleido> you callin him pure magic?
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<openstruct> Sounds like a win!
ss_much has joined #ruby
nocontrol has quit [Remote host closed the connection]
<Ox0dea> No, I was complimenting Hash for being so useful; OpenStruct just adds alleged aesthetic appeal.
Kryptonical has joined #ruby
justbleed has quit [Read error: Connection reset by peer]
mfaeh has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
mfaeh has joined #ruby
pawnbox_ has joined #ruby
mburns has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
hollywood has joined #ruby
kerunaru has joined #ruby
ur5us has joined #ruby
shanemcd has joined #ruby
ytti has joined #ruby
wilbert has joined #ruby
atmosx has quit [Quit: This is aparting message!]
modin has quit [Ping timeout: 264 seconds]
majoh has quit [Ping timeout: 264 seconds]
modin has joined #ruby
ur5us has quit [*.net *.split]
mburns has quit [*.net *.split]
Kryptonical has quit [*.net *.split]
ss_much has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
kspencer has quit [*.net *.split]
platzhirsch has quit [*.net *.split]
tobias_ has quit [*.net *.split]
freerobby has quit [*.net *.split]
rdark has quit [*.net *.split]
Liothen has quit [*.net *.split]
idefine_ has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
podman has quit [*.net *.split]
Guest34101 has quit [*.net *.split]
lancetw has quit [*.net *.split]
yosafbridge` has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
AdamMeghji has quit [*.net *.split]
skmp has quit [*.net *.split]
kireevco has quit [*.net *.split]
DiabolikFreenode has quit [*.net *.split]
holyGlitch has quit [*.net *.split]
skade has quit [*.net *.split]
rizenine has quit [*.net *.split]
eregi has quit [*.net *.split]
rsc___ has quit [*.net *.split]
RE has quit [*.net *.split]
nfk has quit [*.net *.split]
znz_jp has quit [*.net *.split]
mary5030 has quit [*.net *.split]
decoponio has quit [*.net *.split]
r4z3r has quit [*.net *.split]
c0ncealed has quit [*.net *.split]
Meow-J has quit [*.net *.split]
ldnunes has quit [*.net *.split]
c355e3b has quit [*.net *.split]
ixti has quit [*.net *.split]
kfpratt has quit [*.net *.split]
Spami has quit [*.net *.split]
crdpink has quit [*.net *.split]
julieeharshaw has quit [*.net *.split]
jordanm has quit [*.net *.split]
weaksauce has quit [*.net *.split]
ytti has quit [*.net *.split]
Bilge has quit [*.net *.split]
ElderFain has quit [*.net *.split]
RealMarc has quit [*.net *.split]
tubbo has quit [*.net *.split]
groundnuty has quit [*.net *.split]
galeido has quit [*.net *.split]
shanemcd has quit [*.net *.split]
djbkd has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
armyriad has quit [*.net *.split]
hackeron has quit [*.net *.split]
Puffball has quit [*.net *.split]
Jardayn has quit [*.net *.split]
BtcBen has quit [*.net *.split]
SenpaiSilver_ has quit [*.net *.split]
blackmesa has quit [*.net *.split]
arlek has quit [*.net *.split]
Gasher has quit [*.net *.split]
goodcodeguy has quit [*.net *.split]
Don_John has quit [*.net *.split]
fmcgeough has quit [*.net *.split]
cdg has quit [*.net *.split]
rcvalle has quit [*.net *.split]
blackgoat has quit [*.net *.split]
dhollinger has quit [*.net *.split]
BSaboia has quit [*.net *.split]
rippa has quit [*.net *.split]
Zackio has quit [*.net *.split]
duckpupp1 has quit [*.net *.split]
Tempesta has quit [*.net *.split]
dgncn has quit [*.net *.split]
Guest00-ru has quit [*.net *.split]
shaman42 has quit [*.net *.split]
kenndel_ has quit [*.net *.split]
nw has quit [*.net *.split]
peteyg has quit [*.net *.split]
segy has quit [*.net *.split]
Axy has quit [*.net *.split]
unreal has quit [*.net *.split]
cj has quit [*.net *.split]
jolts has quit [*.net *.split]
brainslug has quit [*.net *.split]
Synthead has quit [*.net *.split]
aredridel has quit [*.net *.split]
voxxit has quit [*.net *.split]
nfsnobody has quit [*.net *.split]
cibs has quit [*.net *.split]
fullstack has quit [*.net *.split]
kerunaru has quit [*.net *.split]
mfaeh has quit [*.net *.split]
shadoi has quit [*.net *.split]
kies^ has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
djellemah has quit [*.net *.split]
Morrolan has quit [*.net *.split]
nisstyre_ has quit [*.net *.split]
bradland has quit [*.net *.split]
moei has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
rideh- has quit [*.net *.split]
nerium has quit [*.net *.split]
intrigueD has quit [*.net *.split]
openstruct has quit [*.net *.split]
sphex has quit [*.net *.split]
devbug has quit [*.net *.split]
Icey has quit [*.net *.split]
hxegon has quit [*.net *.split]
bMalum has quit [*.net *.split]
Vingador has quit [*.net *.split]
treehug88 has quit [*.net *.split]
astrofog has quit [*.net *.split]
_rsc` has quit [*.net *.split]
crankharder has quit [*.net *.split]
diprotic has quit [*.net *.split]
KramerC has quit [*.net *.split]
gaf_ has quit [*.net *.split]
Brando753 has quit [*.net *.split]
ESpiney has quit [*.net *.split]
Todd has quit [*.net *.split]
m4rCsi_ has quit [*.net *.split]
speakingcode has quit [*.net *.split]
PaulCapestany has quit [*.net *.split]
cgfbee has quit [*.net *.split]
DenSchub has quit [*.net *.split]
rhg135 has quit [*.net *.split]
bakedb_ has quit [*.net *.split]
nlsun has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
huyderman has quit [*.net *.split]
bogdanteleaga has quit [*.net *.split]
sts has quit [*.net *.split]
Muz has quit [*.net *.split]
malcolmva has quit [*.net *.split]
pushcx has quit [*.net *.split]
gypsydave5 has quit [*.net *.split]
_ko1 has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
skakri has quit [*.net *.split]
ahuman has quit [*.net *.split]
Shapeshifter has quit [*.net *.split]
ericwood has quit [*.net *.split]
justinmcp has quit [*.net *.split]
mattp__ has quit [*.net *.split]
bmn has quit [*.net *.split]
B1n4r10 has quit [*.net *.split]
firstdayonthejob has quit [*.net *.split]
synthroi_ has quit [*.net *.split]
cubicme has quit [*.net *.split]
countera1paratus has quit [*.net *.split]
mattwildig has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
railsForDaiz has quit [*.net *.split]
diegoviola has quit [*.net *.split]
haylon has quit [*.net *.split]
amclain has quit [*.net *.split]
dubek has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
A124 has quit [*.net *.split]
dstarh has quit [*.net *.split]
nachoman has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
Abrin_AWAY has quit [*.net *.split]
sdothum has quit [*.net *.split]
rodfersou has quit [*.net *.split]
Spleeze has quit [*.net *.split]
Eiam has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
Dragooon has quit [*.net *.split]
hplar has quit [*.net *.split]
Antiarc has quit [*.net *.split]
Xiti has quit [*.net *.split]
sami has quit [*.net *.split]
dravine has quit [*.net *.split]
sysanthrope has quit [*.net *.split]
ruisantos has quit [*.net *.split]
apeiros has quit [*.net *.split]
dualbus has quit [*.net *.split]
bier_ has quit [*.net *.split]
eam has quit [*.net *.split]
eljimmy has quit [*.net *.split]
mc_fail has quit [*.net *.split]
wnd has quit [*.net *.split]
axisys has quit [*.net *.split]
hightower has quit [*.net *.split]
SirFunk has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
sjohnsen has quit [*.net *.split]
iszak has quit [*.net *.split]
__main__ has quit [*.net *.split]
duderonomy has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
astrobunny has quit [*.net *.split]
Ankhers has quit [*.net *.split]
pragmatism has quit [*.net *.split]
UserInNeed has quit [*.net *.split]
tokik has quit [*.net *.split]
csaunders has quit [*.net *.split]
drale2k has quit [*.net *.split]
Paradox has quit [*.net *.split]
Outlastsheep has quit [*.net *.split]
gbailey has quit [*.net *.split]
passcod has quit [*.net *.split]
suffice has quit [*.net *.split]
lady3bean has quit [*.net *.split]
montyboy has quit [*.net *.split]
fold4 has quit [*.net *.split]
decaff has quit [*.net *.split]
ReK2GnULinuX has quit [*.net *.split]
gnarf has quit [*.net *.split]
xybre has quit [*.net *.split]
Kero has quit [*.net *.split]
nchambers has quit [*.net *.split]
[dmp] has quit [*.net *.split]
canton7 has quit [*.net *.split]
aibot has quit [*.net *.split]
Rutix has quit [*.net *.split]
zacts has quit [*.net *.split]
Log1x has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
Freeaqingme has quit [*.net *.split]
matti has quit [*.net *.split]
bnagy has quit [*.net *.split]
n1colas has quit [*.net *.split]
Fraeon has quit [*.net *.split]
alexblom has quit [*.net *.split]
janelleb has quit [*.net *.split]
kitallis has quit [*.net *.split]
Esya has quit [*.net *.split]
devster31 has quit [*.net *.split]
gf3 has quit [*.net *.split]
crowell has quit [*.net *.split]
KervyN has quit [*.net *.split]
cyphactor has quit [*.net *.split]
sulky has quit [*.net *.split]
plonk has quit [*.net *.split]
angelixd has quit [*.net *.split]
tris has quit [*.net *.split]
zenguy_pc has quit [*.net *.split]
archaic has quit [*.net *.split]
woodruffw has quit [*.net *.split]
jericon has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
lpvb has quit [*.net *.split]
sekrit has quit [*.net *.split]
russt has quit [*.net *.split]
perry has quit [*.net *.split]
nirix_ has quit [*.net *.split]
ec\ has quit [*.net *.split]
kadoppe has quit [*.net *.split]
rheddry has quit [*.net *.split]
bodie_ has quit [*.net *.split]
Jamo__ has quit [*.net *.split]
kaleido has quit [*.net *.split]
pietr0 has quit [*.net *.split]
bob_f_ has quit [*.net *.split]
Mr0rris0 has quit [*.net *.split]
Trynemjoel2 has quit [*.net *.split]
snapcase has quit [*.net *.split]
Flipez has quit [*.net *.split]
jimcroft has quit [*.net *.split]
shiver has quit [*.net *.split]
sjums has quit [*.net *.split]
raimumizu has quit [*.net *.split]
dyce_ has quit [*.net *.split]
patronus_ has quit [*.net *.split]
patteh_ has quit [*.net *.split]
zackattack has quit [*.net *.split]
norc has quit [*.net *.split]
kobain has quit [*.net *.split]
zapata has quit [*.net *.split]
araujo has quit [*.net *.split]
\pub\bash0r has quit [*.net *.split]
lele has quit [*.net *.split]
gigetoo has quit [*.net *.split]
yokel has quit [*.net *.split]
e4xit has quit [*.net *.split]
Scient has quit [*.net *.split]
Boohbah has quit [*.net *.split]
aspiers has quit [*.net *.split]
ljarvis has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
jtoy has quit [*.net *.split]
pwnd_nsfw has quit [*.net *.split]
papercod1 has quit [*.net *.split]
fn2187__ has quit [*.net *.split]
tomaz___ has quit [*.net *.split]
Guest21405 has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
wjimenez5271 has quit [*.net *.split]
joast has quit [*.net *.split]
heidar has quit [*.net *.split]
isene has quit [*.net *.split]
ardian has quit [*.net *.split]
mistym has quit [*.net *.split]
DrCode has quit [*.net *.split]
maxmanders has quit [*.net *.split]
clamstar has quit [*.net *.split]
greenhat has quit [*.net *.split]
fourq has quit [*.net *.split]
funnel has quit [*.net *.split]
jzigmund_ has quit [*.net *.split]
Shidash_ has quit [*.net *.split]
MyMind has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
spectra has quit [*.net *.split]
jtdowney has quit [*.net *.split]
sunya7a has quit [*.net *.split]
ujjain has quit [*.net *.split]
jtperreault has quit [*.net *.split]
lannonbr has quit [*.net *.split]
saltsa has quit [*.net *.split]
go|dfish has quit [*.net *.split]
moshee has quit [*.net *.split]
brendan- has quit [*.net *.split]
rcs has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
hfp has quit [*.net *.split]
Rasi has quit [*.net *.split]
pjaspers has quit [*.net *.split]
Radar has quit [*.net *.split]
spacemud has quit [*.net *.split]
WebDawg has quit [*.net *.split]
majjoha has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
paultreny has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
raenk has quit [*.net *.split]
nertzy has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
BlindSight has quit [*.net *.split]
uxp_ has quit [*.net *.split]
matled has quit [*.net *.split]
miah has quit [*.net *.split]
callumacrae has quit [*.net *.split]
jinie has quit [*.net *.split]
donnoc has quit [*.net *.split]
tvsutton has quit [*.net *.split]
th__ has quit [*.net *.split]
Eising has quit [*.net *.split]
timonv1 has quit [*.net *.split]
jud has quit [*.net *.split]
tenderlo_ has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
diego_k has quit [*.net *.split]
xsdg has quit [*.net *.split]
joconcepts_ has quit [*.net *.split]
mclee has quit [*.net *.split]
jokester has quit [*.net *.split]
Koshian has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
zarubin has quit [*.net *.split]
\13k has quit [*.net *.split]
DefV_ has quit [*.net *.split]
kriskropd has quit [*.net *.split]
[ace] has quit [*.net *.split]
FifthWall has quit [*.net *.split]
thejoecarroll_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
oz has quit [*.net *.split]
Prira_ has quit [*.net *.split]
utkarsh_ has quit [*.net *.split]
rethi has quit [*.net *.split]
rikai has quit [*.net *.split]
davidcelis_ has quit [*.net *.split]
RegulationD has quit [*.net *.split]
tabakhase has quit [*.net *.split]
Olipro has quit [*.net *.split]
Guest9146 has quit [*.net *.split]
juanfra has quit [*.net *.split]
epitron has quit [*.net *.split]
bqscott has quit [*.net *.split]
FastJack has quit [*.net *.split]
reaVer has quit [*.net *.split]
eregon has quit [*.net *.split]
Guest96677 has quit [*.net *.split]
mattpatt has quit [*.net *.split]
IceDragon has quit [*.net *.split]
AnoHito_ has quit [*.net *.split]
varesa has quit [*.net *.split]
df has quit [*.net *.split]
romero_ has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
kappy has quit [*.net *.split]
peterhu has quit [*.net *.split]
Junaos has quit [*.net *.split]
bahar has quit [*.net *.split]
Ariadeno has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
quarcu has quit [*.net *.split]
code_ has quit [*.net *.split]
kenichi has quit [*.net *.split]
raldu has quit [*.net *.split]
edulix_ has quit [*.net *.split]
john2 has quit [*.net *.split]
ElSif has quit [*.net *.split]
inukshuk has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
hfp_work has quit [*.net *.split]
lucas has quit [*.net *.split]
philtr_ has quit [*.net *.split]
cscheib_ has quit [*.net *.split]
tomaw has quit [*.net *.split]
j416 has quit [*.net *.split]
rfi has quit [*.net *.split]
Helheim has quit [*.net *.split]
chrisarcand has quit [*.net *.split]
jsaak has quit [*.net *.split]
ryotarai has quit [*.net *.split]
Guest925 has quit [*.net *.split]
Takumo has quit [*.net *.split]
Raboo has quit [*.net *.split]
pwned has quit [*.net *.split]
bakingbread has quit [*.net *.split]
ltd_ has quit [*.net *.split]
klaas has quit [*.net *.split]
croberts has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
darix has quit [*.net *.split]
forgot has quit [*.net *.split]
mame3 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
hypnosb has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
karapetyan has quit [*.net *.split]
graffix222 has quit [*.net *.split]
helpa has quit [*.net *.split]
jeanlinu_ has quit [*.net *.split]
despai has quit [*.net *.split]
Aviio has quit [*.net *.split]
Azulinho has quit [*.net *.split]
justin_pdx has quit [*.net *.split]
jxs_ has quit [*.net *.split]
Disavowed has quit [*.net *.split]
chadhs has quit [*.net *.split]
dopie has quit [*.net *.split]
dionysus69 has quit [*.net *.split]
jgpawletko has quit [*.net *.split]
pdoherty has quit [*.net *.split]
DexterLB has quit [*.net *.split]
AustinMatherne has quit [*.net *.split]
bubbys has quit [*.net *.split]
Canar has quit [*.net *.split]
mg^ has quit [*.net *.split]
Lildirt has quit [*.net *.split]
theRealAlexz has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
da_man has quit [*.net *.split]
david2 has quit [*.net *.split]
oddmunds has quit [*.net *.split]
Karunamon has quit [*.net *.split]
slackR has quit [*.net *.split]
hakunin has quit [*.net *.split]
Danielss89 has quit [*.net *.split]
aep has quit [*.net *.split]
RushPL has quit [*.net *.split]
claw has quit [*.net *.split]
joaomdmoura__ has quit [*.net *.split]
aef has quit [*.net *.split]
junior2 has quit [*.net *.split]
bafbomb has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
lguardiola has quit [*.net *.split]
sarbs has quit [*.net *.split]
bhaak has quit [*.net *.split]
janno has quit [*.net *.split]
lnx has quit [*.net *.split]
Bish has quit [*.net *.split]
tessier-ashpool has quit [*.net *.split]
arthurnn has quit [*.net *.split]
e has quit [*.net *.split]
okdas has quit [*.net *.split]
hogetaro has quit [*.net *.split]
Mr_Pancake has quit [*.net *.split]
watersoul has quit [*.net *.split]
Dreamer3_ has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
crank1988_ has quit [*.net *.split]
raz has quit [*.net *.split]
ex0ns has quit [*.net *.split]
low-profile has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
nuck has quit [*.net *.split]
mahlon_ has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
dfoolz has quit [*.net *.split]
sesquipedalian has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
badeball has quit [*.net *.split]
Davey has quit [*.net *.split]
lianj has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
edwardly has quit [*.net *.split]
moufl has quit [*.net *.split]
conrfrmn has quit [*.net *.split]
j2k has quit [*.net *.split]
SilentEcho has quit [*.net *.split]
mosez has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
Omni_ has quit [*.net *.split]
zenspider has quit [*.net *.split]
wof_ has quit [*.net *.split]
headius has quit [*.net *.split]
iamvery has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
nwhirschfeld_ has quit [*.net *.split]
ged_ has quit [*.net *.split]
RazorX| has quit [*.net *.split]
AccordLTN has quit [*.net *.split]
parus has quit [*.net *.split]
olblak has quit [*.net *.split]
genpaku has quit [*.net *.split]
xpt has quit [*.net *.split]
NfNitLoop has quit [*.net *.split]
stevednd has quit [*.net *.split]
kloeri has quit [*.net *.split]
iamayam has quit [*.net *.split]
konopka has quit [*.net *.split]
ironcame1 has quit [*.net *.split]
kith has quit [*.net *.split]
sonne_ has quit [*.net *.split]
lagweezle has quit [*.net *.split]
dasher^0_o has quit [*.net *.split]
Darkwater has quit [*.net *.split]
adaedra has quit [*.net *.split]
thomas has quit [*.net *.split]
moredhel has quit [*.net *.split]
moua has quit [*.net *.split]
DylanJ has quit [*.net *.split]
crystal77 has quit [*.net *.split]
infernix has quit [*.net *.split]
Dimik has quit [*.net *.split]
meal has quit [*.net *.split]
bihi has quit [*.net *.split]
JoshL has quit [*.net *.split]
kp666 has quit [*.net *.split]
Eiam_ has quit [*.net *.split]
jhass has quit [*.net *.split]
x77686d has quit [*.net *.split]
jlyndon has quit [*.net *.split]
dmarr has quit [*.net *.split]
HashNuke has quit [*.net *.split]
Trieste has quit [*.net *.split]
halfdan has quit [*.net *.split]
Shaboum has quit [*.net *.split]
rdavila has quit [*.net *.split]
jayc0b0 has quit [*.net *.split]
stannard_ has quit [*.net *.split]
amargherio has quit [*.net *.split]
[Butch] has quit [*.net *.split]
RalfJ has quit [*.net *.split]
biberu has quit [*.net *.split]
ponga has quit [*.net *.split]
linduxed has quit [*.net *.split]
tjohnson has quit [*.net *.split]
babblebre has quit [*.net *.split]
hayden_ has quit [*.net *.split]
b|ackwolf has quit [*.net *.split]
Ishido has quit [*.net *.split]
blackms has quit [*.net *.split]
kedare has quit [*.net *.split]
vondruch has quit [*.net *.split]
dede has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
colegatron has quit [*.net *.split]
flughafen has quit [*.net *.split]
Asher has quit [*.net *.split]
cpup has quit [*.net *.split]
gix has quit [*.net *.split]
braincrash has quit [*.net *.split]
noodle has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
z3uS has quit [*.net *.split]
RTG` has quit [*.net *.split]
Mio-chan has quit [*.net *.split]
j3r0 has quit [*.net *.split]
gregf has quit [*.net *.split]
whippythellama has quit [*.net *.split]
lsmola has quit [*.net *.split]
IanMalcolm has quit [*.net *.split]
dextertzu has quit [*.net *.split]
minimalism has quit [*.net *.split]
brixen has quit [*.net *.split]
G has quit [*.net *.split]
bweston92 has quit [*.net *.split]
matp has quit [*.net *.split]
tekacs has quit [*.net *.split]
Keltia has quit [*.net *.split]
spastorino has quit [*.net *.split]
shelling__ has quit [*.net *.split]
CustosLim3n has quit [*.net *.split]
irick has quit [*.net *.split]
Suntzu has quit [*.net *.split]
cout has quit [*.net *.split]
dukedave_ has quit [*.net *.split]
deeprave has quit [*.net *.split]
jmcc_______ has quit [*.net *.split]
chris2 has quit [*.net *.split]
yonatankoren has quit [*.net *.split]
charles81 has quit [*.net *.split]
x0f has quit [*.net *.split]
wedgwood_ has quit [*.net *.split]
ja has quit [*.net *.split]
bestie has quit [*.net *.split]
twodayslate has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
Guest12896_ has quit [*.net *.split]
trajing has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
livcd has quit [*.net *.split]
greister has quit [*.net *.split]
ikonia has quit [*.net *.split]
rgs has quit [*.net *.split]
beagles has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
vqrs has quit [*.net *.split]
musl_ has quit [*.net *.split]
sapslaj has quit [*.net *.split]
pabs has quit [*.net *.split]
matt_d has quit [*.net *.split]
wilbert has quit [*.net *.split]
atom3 has quit [*.net *.split]
Anderson69s_Deb has quit [*.net *.split]
sauvin has quit [*.net *.split]
LnxBil has quit [*.net *.split]
unsymbol has quit [*.net *.split]
fullofcaffeine has quit [*.net *.split]
crystal7_ has quit [*.net *.split]
steffkes has quit [*.net *.split]
trinaldi has quit [*.net *.split]
allcentury has quit [*.net *.split]
pawnbox has quit [*.net *.split]
godzillaenlacasa has quit [*.net *.split]
floatingpoint has quit [*.net *.split]
s00pcan has quit [*.net *.split]
sneakerhax has quit [*.net *.split]
Guest38 has quit [*.net *.split]
sgambino has quit [*.net *.split]
malconis has quit [*.net *.split]
ljames has quit [*.net *.split]
BTRE has quit [*.net *.split]
InternetFriend has quit [*.net *.split]
johnmilton has quit [*.net *.split]
zenlot has quit [*.net *.split]
FooMunki has quit [*.net *.split]
kies has quit [*.net *.split]
codecop has quit [*.net *.split]
eurialo has quit [*.net *.split]
ghoti has quit [*.net *.split]
jeffk4 has quit [*.net *.split]
arthurix_ has quit [*.net *.split]
zacstewart has quit [*.net *.split]
dunj3 has quit [*.net *.split]
gagrio has quit [*.net *.split]
gregf_ has quit [*.net *.split]
microt has quit [*.net *.split]
kent\n has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
knight_ has quit [*.net *.split]
Amnez777 has quit [*.net *.split]
rvchangue has quit [*.net *.split]
`derpy has quit [*.net *.split]
YaknotiS has quit [*.net *.split]
Djole has quit [*.net *.split]
v0n has quit [*.net *.split]
jtdoncas has quit [*.net *.split]
svkurowski has quit [*.net *.split]
cfloare has quit [*.net *.split]
bougyman has quit [*.net *.split]
rtl has quit [*.net *.split]
mozzarella has quit [*.net *.split]
hyperdrive has quit [*.net *.split]
Nilium has quit [*.net *.split]
ceej has quit [*.net *.split]
deimos has quit [*.net *.split]
daxroc has quit [*.net *.split]
izaac has quit [*.net *.split]
golgaroth has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
bluntman has quit [*.net *.split]
Silex has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
gsingh93 has quit [*.net *.split]
humd1ng3r has quit [*.net *.split]
M-Technic has quit [*.net *.split]
nug has quit [*.net *.split]
wlanboy has quit [*.net *.split]
giraffe has quit [*.net *.split]
sirecote has quit [*.net *.split]
cats has quit [*.net *.split]
Guest88888 has quit [*.net *.split]
j0bk has quit [*.net *.split]
fumduq has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
fumk has quit [*.net *.split]
Roa has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
niko has quit [*.net *.split]
frode15243 has quit [*.net *.split]
ggherdov has quit [*.net *.split]
whiteline has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
ssm has quit [*.net *.split]
sindork has quit [*.net *.split]
vali has quit [*.net *.split]
psmolen has quit [*.net *.split]
Guest24280 has quit [*.net *.split]
sunya7a_ has quit [*.net *.split]
bove has quit [*.net *.split]
mmasaki has quit [*.net *.split]
Lightsword has quit [*.net *.split]
tinnvec has quit [*.net *.split]
bcavileer has quit [*.net *.split]
veloutin has quit [*.net *.split]
strongcode has quit [*.net *.split]
hoylemd has quit [*.net *.split]
jidar has quit [*.net *.split]
ammar_ has quit [*.net *.split]
marens_ has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
Krypt has quit [*.net *.split]
marienz has quit [*.net *.split]
stryek has quit [*.net *.split]
Evan- has quit [*.net *.split]
Guest121 has quit [*.net *.split]
nitrix has quit [*.net *.split]
elaptics has quit [*.net *.split]
mhb has quit [*.net *.split]
ruurd has quit [*.net *.split]
theRoUS has quit [*.net *.split]
D9 has quit [*.net *.split]
DEac- has quit [*.net *.split]
ekem has quit [*.net *.split]
ghr has quit [*.net *.split]
emq has quit [*.net *.split]
skullcrasher has quit [*.net *.split]
Drakevr has quit [*.net *.split]
devyn has quit [*.net *.split]
ltp has quit [*.net *.split]
slash_nick has quit [*.net *.split]
tercenya_ has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
qpls_ has quit [*.net *.split]
swistak35 has quit [*.net *.split]
_mak has quit [*.net *.split]
nomadic_ has quit [*.net *.split]
kaspergrubbe has quit [*.net *.split]
tw1sted has quit [*.net *.split]
yasu_ has quit [*.net *.split]
kpwarr has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
guacamole has quit [*.net *.split]
tsunamie has quit [*.net *.split]
joevandyk has quit [*.net *.split]
adam| has quit [*.net *.split]
mgorbach has quit [*.net *.split]
danieli has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
ccooke has quit [*.net *.split]
Jello_Raptor has quit [*.net *.split]
akkad has quit [*.net *.split]
joeyjones has quit [*.net *.split]
braidn has quit [*.net *.split]
Rush has quit [*.net *.split]
vifino has quit [*.net *.split]
ready has quit [*.net *.split]
ctrlrsf has quit [*.net *.split]
berserk_ren has quit [*.net *.split]
Elysia has quit [*.net *.split]
nickjj has quit [*.net *.split]
drbrain has quit [*.net *.split]
tylersmith has quit [*.net *.split]
akitada has quit [*.net *.split]
hinbody has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
zack6849 has quit [*.net *.split]
andersh has quit [*.net *.split]
rflot has quit [*.net *.split]
avenj has quit [*.net *.split]
yxhuvvd has quit [*.net *.split]
boxrick1 has quit [*.net *.split]
madhatter has quit [*.net *.split]
tonini has quit [*.net *.split]
sfr^ has quit [*.net *.split]
Kamilion has quit [*.net *.split]
machty_ has quit [*.net *.split]
tpendragon has quit [*.net *.split]
vcoinminer has quit [*.net *.split]
saneax has quit [*.net *.split]
jabreity has quit [*.net *.split]
catbusters has quit [*.net *.split]
sevenfourk has quit [*.net *.split]
jord has quit [*.net *.split]
iooner has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
zipkid has quit [*.net *.split]
alem0lars has quit [*.net *.split]
cardoni has quit [*.net *.split]
angiebadillo has quit [*.net *.split]
cbetta has quit [*.net *.split]
pfg has quit [*.net *.split]
avdi has quit [*.net *.split]
Miron has quit [*.net *.split]
schaary has quit [*.net *.split]
TDJACR has quit [*.net *.split]
S01780 has quit [*.net *.split]
zz_denym_ has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
sorah_ has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
pmarreck has quit [*.net *.split]
DanKnox has quit [*.net *.split]
camilasan has quit [*.net *.split]
Phanes has quit [*.net *.split]
Seich has quit [*.net *.split]
mroth has quit [*.net *.split]
ddv has quit [*.net *.split]
Billias has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
twistedpixels has quit [*.net *.split]
llua has quit [*.net *.split]
Lloyd has quit [*.net *.split]
err_ok has quit [*.net *.split]
alxndr has quit [*.net *.split]
programmerq has quit [*.net *.split]
Steve_Jo1 has quit [*.net *.split]
awk has quit [*.net *.split]
shtirlic has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
cajone has quit [*.net *.split]
pelegreno has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
ereslibre_laptop has quit [*.net *.split]
Guest98597 has quit [*.net *.split]
redondos has quit [*.net *.split]
hollywood has quit [*.net *.split]
TomyLobo has quit [*.net *.split]
sepp2k has quit [*.net *.split]
jhill has quit [*.net *.split]
danzilio has quit [*.net *.split]
JStoker has quit [*.net *.split]
spk has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
gmci has quit [*.net *.split]
tejasmanohar has quit [*.net *.split]
workmad3 has quit [*.net *.split]
davedev24 has quit [*.net *.split]
poguez_ has quit [*.net *.split]
dopamean_ has quit [*.net *.split]
YankNYC has quit [*.net *.split]
anirban has quit [*.net *.split]
zast has quit [*.net *.split]
tristanp_ has quit [*.net *.split]
_ht has quit [*.net *.split]
ziyadb has quit [*.net *.split]
PlasmaStar has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
nullwarp has quit [*.net *.split]
existensil has quit [*.net *.split]
t-richards has quit [*.net *.split]
LoganG has quit [*.net *.split]
eggoez has quit [*.net *.split]
meinside has quit [*.net *.split]
Guest59455 has quit [*.net *.split]
swgillespie has quit [*.net *.split]
Arcaire has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
ProofTechnique has quit [*.net *.split]
Veejay has quit [*.net *.split]
Sigma00 has quit [*.net *.split]
St1gma has quit [*.net *.split]
hanmac has quit [*.net *.split]
Platini has quit [*.net *.split]
sluukkonen has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
Ox0dea has quit [*.net *.split]
contradictioned has quit [*.net *.split]
jaiks has quit [*.net *.split]
epochwolf has quit [*.net *.split]
Bugboy1028 has quit [*.net *.split]
heftig has quit [*.net *.split]
Liam` has quit [*.net *.split]
Guest4184______ has quit [*.net *.split]
colstrom has quit [*.net *.split]
caw has quit [*.net *.split]
jcp has quit [*.net *.split]
pizzaops has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
jxf has quit [*.net *.split]
skarn has quit [*.net *.split]
Cork has quit [*.net *.split]
chridal has quit [*.net *.split]
borkdude_ has quit [*.net *.split]
bauruine has quit [*.net *.split]
Klumben has quit [*.net *.split]
hays has quit [*.net *.split]
chihhsin has quit [*.net *.split]
djcp has quit [*.net *.split]
glacius has quit [*.net *.split]
mrfooo has quit [*.net *.split]
Tharbakim has quit [*.net *.split]
Sthebig has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
imajes has quit [*.net *.split]
alnewkirk has quit [*.net *.split]
blackjid has quit [*.net *.split]
shevy has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
Luna_Moonfang has quit [*.net *.split]
troter_______ has quit [*.net *.split]
duoi has quit [*.net *.split]
twe4ked has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
cschneid has quit [*.net *.split]
LBRapid has quit [*.net *.split]
mahk has quit [*.net *.split]
mrsolo has quit [*.net *.split]
braderhart has quit [*.net *.split]
jpinnix_______ has quit [*.net *.split]
acerna has quit [*.net *.split]
benlakey has quit [*.net *.split]
bttf has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
akahn has quit [*.net *.split]
zzak___ has quit [*.net *.split]
hostess has quit [*.net *.split]
ozzloy has quit [*.net *.split]
pipework has quit [*.net *.split]
adambeynon has quit [*.net *.split]
im0b has quit [*.net *.split]
yo61 has quit [*.net *.split]
jazzonmymind has quit [*.net *.split]
Meeh_ has quit [*.net *.split]
moss has quit [Max SendQ exceeded]
kalzz has quit [Max SendQ exceeded]
johnny56_ has quit [Max SendQ exceeded]
kalz has quit [Max SendQ exceeded]
cookiez has quit [Ping timeout: 264 seconds]
cookiez has joined #ruby
SenpaiSilver_ has joined #ruby
kalzz has joined #ruby
dlitvak has joined #ruby
majoh has joined #ruby
B1n4r10 has joined #ruby
tobias_ has joined #ruby
rdark has joined #ruby
bradland has joined #ruby
unsymbol has joined #ruby
MuffinPimp has joined #ruby
JoshL has joined #ruby
mary5030 has joined #ruby
bMalum has joined #ruby
rizenine has joined #ruby
gmci has joined #ruby
gregf has joined #ruby
sapslaj has joined #ruby
tenderlo_ has joined #ruby
shortdudey123 has joined #ruby
forgot has joined #ruby
ryotarai has joined #ruby
marsjaninzmarsa has quit [Max SendQ exceeded]
manveru has quit [Max SendQ exceeded]
phrozen77 has quit [Max SendQ exceeded]
Hobbyboy has quit [Max SendQ exceeded]
rfv has quit [Max SendQ exceeded]
cstrahan has quit [Max SendQ exceeded]
Zarthus has quit [Max SendQ exceeded]
tim_s007 has quit [Max SendQ exceeded]
marsjaninzmarsa has joined #ruby
Zarthus has joined #ruby
baweaver has joined #ruby
Hobbyboy has joined #ruby
Hobbyboy has quit [Changing host]
Hobbyboy has joined #ruby
tim_s007 has joined #ruby
johnny56_ has joined #ruby
phrozen77 has joined #ruby
cstrahan has joined #ruby
manveru has joined #ruby
sp4rrow has joined #ruby
kalz has joined #ruby
nocontrol has joined #ruby
nocontrol has quit [Client Quit]
rfv has joined #ruby
cpup has joined #ruby
shanemcd has joined #ruby
dbugger has joined #ruby
dbugger has left #ruby [#ruby]
<shevy> wow
<shevy> openstruct is in da house
last_staff has joined #ruby
Cohedrin has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
<LnxBil> drbrain: I rewrote the code with OpenStruct only to find out that instance_variables is still not set and I cannot query the attributes directly (only via .to_h.keys)
jayc0b0 has joined #ruby
Gadgetoid has joined #ruby
michael_mbp has joined #ruby
dlitvak has quit [Remote host closed the connection]
<Ox0dea> LnxBil: https://eval.in/528329
shinnya has joined #ruby
tomphp has joined #ruby
<LnxBil> Ox0dea: Thank you. I have two lines actually: ret.instance_variable_set("@#{k}", v); ret.instance_eval("def #{k}; @#{k}; end")
myntcake has joined #ruby
unreal has joined #ruby
shanemcd has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
dlitvak has joined #ruby
<Ox0dea> LnxBil: I won't presume to know more about what you're trying to do than you do, but that sure seems like an awful lot of machinery where a Hash might suffice.
<Ox0dea> This *is* Ruby, though, so more power to ya. :P
<LnxBil> Ox0dea: I want it to feel like an ActiveRecord
<Papierkorb> LnxBil: to the second statement, you can do without evil eval: ret.singleton_class.instance_exec{ attr_reader(k) }
justbleed has joined #ruby
justbleed is now known as TomPeed
solars has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
chouhoul_ has joined #ruby
swills has joined #ruby
<LnxBil> Papierkorb: Thank you. Other suggested singleton, too. It works. I know that eval is more insecure, but this is more secure? Because of the singleton or why exactly?
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
<Papierkorb> LnxBil: It's not more secure (as long that 'k' is not user controlled), but easier to read and less magical to me. Also, code linters understand it, whereas eval is just a random string to such tools
symm- has joined #ruby
<Ox0dea> Never mind that `eval` is dog-slow.
LoneHerm_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<shadoi> nerium: about your question before about querying deeply nested hashes, I suggest using JQ (there are ruby bindings)
<nerium> shadoi: jq?
<shadoi> it's a query language for json
<shadoi> you can ask for nested values, etc.
<nerium> shadoi: thanks!
pawnbox has joined #ruby
sp4rrow has joined #ruby
<Ox0dea> shadoi: But we have #dig?
lvn has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
<shadoi> Ox0dea: yeah in 2.3, which most don't have in production yet :)
tvw has joined #ruby
chipotle has joined #ruby
<shadoi> also doesn't let you query by values, etc.
<shadoi> jq is xpath-like
Respek has joined #ruby
benlieb has joined #ruby
DexterLB has joined #ruby
<Papierkorb> Wat jq isn't "just" a CLI tool?
<Ox0dea> Not anymore!
SCHAAP137 has joined #ruby
<Papierkorb> lets hope it's just not some damn wrapper around the binary
laphlaw has joined #ruby
<Papierkorb> *not just
<laphlaw> Hi, I'm using two gems that happen to have identical method names. How can I specify one method is invoked over the other?
<Papierkorb> laphlaw: I take these two gems monkey-patch the same class?
<laphlaw> Papierkorb: not sure...
<tobiasvl> well if they don't, the methods don't collide, do they?
<laphlaw> I'm not entirely sure if they do or don't.. sorry, still new at Ruby
<Papierkorb> tobiasvl: Or the gems have modules, which are included into the same class overriding each other. Who knows?
<tobiasvl> yeah, who knows
<Papierkorb> laphlaw: Can you paste your code showing the problem? gist.github.com or pastie.org are services for that
<laphlaw> all I know is the behavior I see.. the method I don't want invoked is getting invoked
cnr_roxx has joined #ruby
<Papierkorb> shadoi: That sounds interesting
<laphlaw> let me create a gist
dlitvak has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
dlitvak has joined #ruby
ta_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cnr_roxx has quit [Ping timeout: 252 seconds]
<laphlaw> This should give you an idea of the issue I'm seeing:
tomphp has joined #ruby
FooMunki has joined #ruby
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
tulak has joined #ruby
<tobiasvl> so yes, they both monkey patch Hash and add a plist method?
<shadoi> laphlaw: if cfpropertylist also contains a #to_plist method then it will take priority since it's loaded last.
<laphlaw> shadoi: yes. how do i prevent that?
<shadoi> don't load it last, or don't use one or the other libs.
<laphlaw> and if i need both?
<shadoi> move the require for plist to after cfpropertylist
duckpupp1 has quit [Ping timeout: 246 seconds]
graydot has joined #ruby
<laphlaw> hmm. ok.
<laphlaw> in a related question: anyone familiar with the plist gem? essentially, i'm trying to load a binary plist file
<laphlaw> i couldn't figure out how to do it in that gem, so i had to use another one
<shadoi> really though, those gems should not be monkey patching core objects. That's really nasty.
vilislacis has joined #ruby
m0rph has joined #ruby
zacts has joined #ruby
trosborn has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
stannard has joined #ruby
mattwildig has joined #ruby
ta_ has quit [Remote host closed the connection]
ICantCook has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
Marsupermammal has joined #ruby
stannard has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
B4daBing73 has joined #ruby
blackgoat has joined #ruby
spider-mario has joined #ruby
n008f4g_ has joined #ruby
x77686d has joined #ruby
B4daBing73 has quit [Client Quit]
NeckBeardPrince has joined #ruby
vilislacis has quit [Ping timeout: 252 seconds]
NeckBeardPrince has quit [Max SendQ exceeded]
NeckBeardPrince has joined #ruby
jmignault has joined #ruby
rizenine has quit [Remote host closed the connection]
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
kuroro has joined #ruby
idefine has joined #ruby
robbyoconnor has joined #ruby
stannard has joined #ruby
ta_ has joined #ruby
Rodya_ has joined #ruby
shanemcd has joined #ruby
benlieb has quit [Quit: benlieb]
counterapparatus has joined #ruby
<kuroro> hi everyoone. i have 4+ years of rubyonrails/javascript experience and currently available for remote contract work. if anyone is looking, PM me :)
idefine has quit [Ping timeout: 252 seconds]
BrunoSaboia has joined #ruby
jenrzzz has joined #ruby
<lvn> you're from canada?
RE has left #ruby [#ruby]
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
shanemcd has quit [Ping timeout: 248 seconds]
laphlaw has quit [Ping timeout: 252 seconds]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 250 seconds]
<baweaver> kuroro: y'might mention it in ruby-offtopic as well
<baweaver> look up rails-link Slack, they have a fairly extensive jobs board on there.
<kuroro> lvn: yes
n008f4g_ has quit [Ping timeout: 252 seconds]
Aviio has joined #ruby
<kuroro> baweaver: thanks! i'll look it up
B1n4r10 has quit [Ping timeout: 260 seconds]
FernandoBasso has joined #ruby
RudolphFenz has joined #ruby
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
n008f4g_ has joined #ruby
Abrin has left #ruby [#ruby]
jenrzzz has joined #ruby
goodcodeguy has joined #ruby
Snowy has joined #ruby
Rickmasta has joined #ruby
idefine has joined #ruby
shanemcd has joined #ruby
shanemcd has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
cpup has joined #ruby
Respek has joined #ruby
allcentury has joined #ruby
flopsec- has joined #ruby
B1n4r10 has joined #ruby
TobiG77 has joined #ruby
tobias_ has quit [Ping timeout: 248 seconds]
duckpupp1 has joined #ruby
seth_ has joined #ruby
<seth_> just wondering if this is a bug? `((BigDecimal.new(5898) / 181) * 181).to_i == 5897`
<seth_> `to_f` works correctly `((BigDecimal.new(5898) / 181) * 181).to_f == 5898.0`
ruby-lang531 has joined #ruby
shanemcd has joined #ruby
duckpupp1 has quit [Ping timeout: 250 seconds]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
<apeiros> seth_: no. that's normal truncation happening. you probably want .round, not .to_i.
<apeiros> and equality comparisons of floats is something you really shouldn't do
rdark has quit [Ping timeout: 248 seconds]
sp4rrow has joined #ruby
<seth_> apeiros: that was just for show, so you can see what its returning
ruby-lang531 has quit [Ping timeout: 252 seconds]
<Ox0dea> >> require 'bigdecimal'; a, b = [5898, 181].map &BigDecimal.method(:new); a / b * b == a
<ruby[bot]> Ox0dea: # => false (https://eval.in/528388)
<Ox0dea> Looks buggy to me.
amargherio has joined #ruby
<seth_> apeiros: shouldn't `to_i` return `5898`
<seth_> apeiros: shouldn't `to_i` return `5898`?
<Ox0dea> It's truncating, not rounding.
<apeiros> seth_: no. inspect the value before to_i
<apeiros> to_i truncates. it doesn't round.
HalcyonicStorm has joined #ruby
<apeiros> BigDecimal has arbitrary precision. that still doesn't allow it to represent some values. it's not Rational.
<seth_> apeiros: then why does `to_f` give a different result?
<apeiros> *sob*
<apeiros> seth_: does to_f truncate?
HalcyonicStorm has left #ruby [#ruby]
<seth_> apeiros: truncate would just remove the 0, not round down
Aviio has quit [Remote host closed the connection]
<apeiros> ok, you probably should look up what truncate means.
jenrzzz has quit [Ping timeout: 248 seconds]
shanemcd has quit [Remote host closed the connection]
watersoul has joined #ruby
shanemcd has joined #ruby
<baweaver> seth_: what is 5/2?
benlieb has joined #ruby
hund9443 has joined #ruby
ledestin has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
<baweaver> answer, then try in your irb/pry. Meditate on the answer, and become enlightened.
bronson has joined #ruby
moei has joined #ruby
krobzaur has joined #ruby
RalfJ has joined #ruby
<seth_> baweaver: i don't get ur point?
<baweaver> What is the answer to 5 / 2?
htmldrum has joined #ruby
<seth_> 2.5
<baweaver> wrong
<seth_> or 2 with ints
<baweaver> >> 5 / 2
<ruby[bot]> baweaver: # => 2 (https://eval.in/528389)
shanemcd has quit [Ping timeout: 252 seconds]
<baweaver> that's your issue
<baweaver> and that's truncation
<seth_> no.
<seth_> i want to do this without floats `(5898 / 181) * 181`
<seth_> any suggestions?
<seth_> my answer should be `5898`
<baweaver> use floats
<seth_> yeah, but how about without floats?
<baweaver> or continue to meditate on the nature of truncation
<Ox0dea> seth_: Use Rational.
<seth_> shouldnt big decimal work?
fullofcaffeine has joined #ruby
<Ox0dea> No.
<Ox0dea> >> 5898r / 181 * 181
<ruby[bot]> Ox0dea: # => (5898/1) (https://eval.in/528390)
Aviio has joined #ruby
<apeiros> seth_: as said before, inspect the value before your to_i and look up what truncation is. hint: 5.999 truncated is not 6.
snockerton has joined #ruby
m0rph has quit [Quit: Leaving]
BrunoSaboia has quit [Ping timeout: 252 seconds]
<apeiros> I already gave all the answers the first time around.
<apeiros> (rational is the better choice if it's only addition/subtraction/multiplication/division)
Snowy has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 276 seconds]
last_staff has quit [Quit: last_staff]
jenrzzz has joined #ruby
idefine has quit [Remote host closed the connection]
<seth_> Ok cool rational looks like it solves the issue
hund9443 has left #ruby [#ruby]
trinaldi has joined #ruby
* apeiros sobs again and decides it's not worth it
Noxilex has joined #ruby
idefine has joined #ruby
kenpoint has joined #ruby
kenpoint has quit [Client Quit]
<shevy> it looked like a StackOverflow "question" :D
Snowy has joined #ruby
QORRiE has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
mattwildig has quit [Read error: Connection reset by peer]
mattwildig has joined #ruby
tlaxkit has joined #ruby
mattwildig has quit [Remote host closed the connection]
dn` has joined #ruby
mattwildig has joined #ruby
chipotle has joined #ruby
idefine has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeckBeardPrince has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
Snowy has quit [Quit: ragequit]
uglybandersnatch has joined #ruby
counterapparatus has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Remote host closed the connection]
<Canar> /help mode
<Canar> /help mode
baweaver has quit [Remote host closed the connection]
<Canar> argh sorrt
lacuna has joined #ruby
william3 has joined #ruby
thevaliantx has joined #ruby
<shevy> haha
x77686d has quit [Quit: x77686d]
<shevy> /help sort
fullofcaffeine has joined #ruby
idefine has quit [Remote host closed the connection]
dn` has quit [Quit: dn`]
william3 has quit [Ping timeout: 260 seconds]
<tobiasvl> Canar: what are you trying to do
<Canar> tobiasvl: not fail
<Canar> :P
<Ox0dea> At what?
fullofcaffeine has quit [Remote host closed the connection]
<Canar> get help on the mode command in weechat
binaryplease has joined #ruby
<tobiasvl> /help mode
<tobiasvl> I suppose
<tobiasvl> no space in front
<Canar> yes
<tobiasvl> I thought you were trying to summon the ruby[bot]
mary5030_ has joined #ruby
<Canar> no, just failing
idefine has joined #ruby
uglybandersnatch has quit [Ping timeout: 250 seconds]
KensoDev has joined #ruby
fullofcaffeine has joined #ruby
seth_ has quit [Quit: Page closed]
stolid has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
idefine has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
tvw has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
x77686d has joined #ruby
Azure has joined #ruby
mjc_ has joined #ruby
DenysLins has joined #ruby
<shevy> Oh I can relate to that Canar ... I always mispasted via weechat and irssi
pandaant has joined #ruby
DenysLins has left #ruby [#ruby]
idefine has joined #ruby
ta_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 250 seconds]
stolid has quit []
duckpupp1 has joined #ruby
jhack has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
jhack has quit [Client Quit]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
intrigueD has joined #ruby
duckpupp1 has quit [Ping timeout: 276 seconds]
marr has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vingador has joined #ruby
zenlot_away has joined #ruby
idefine has quit [Remote host closed the connection]
josh1 has joined #ruby
josh1 is now known as vim_shim
Vingador has quit [Client Quit]
Vingador has joined #ruby
lvn has quit [Read error: Connection reset by peer]
trosborn has quit [Ping timeout: 248 seconds]
krobzaur has quit [Quit: WeeChat 0.4.2]
Trynemjoel has joined #ruby
jmignault has quit [Quit: Quittin' time, Ralph]
Rodya_ has joined #ruby
shanemcd has joined #ruby
idefine has joined #ruby
skade has joined #ruby
trosborn has joined #ruby
moei has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
baweaver has joined #ruby
hangelo has joined #ruby
shanemcd has quit [Ping timeout: 246 seconds]
volty has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
pdoherty has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
baweaver has quit [Remote host closed the connection]
hiljusti has joined #ruby
cpup has quit [Ping timeout: 276 seconds]
cpup has joined #ruby
IrishGringo has joined #ruby
Noxilex has quit [Ping timeout: 260 seconds]
elifoster has joined #ruby
uglybandersnatch has joined #ruby
shanemcd has joined #ruby
kies^ has joined #ruby
idefine has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
idefine has joined #ruby
baweaver has joined #ruby
idefine has quit [Remote host closed the connection]
jayc0b0 has quit [Ping timeout: 276 seconds]
shanemcd has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby
augcesar has joined #ruby
augcesar has quit [Remote host closed the connection]
augcesar has joined #ruby
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
audiodude has joined #ruby
malconis has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<audiodude> In case anyone is interested, I'll be livecoding the Railsbridge message board curriculum (https://t.co/EUgXPjUfTo) tonight at 6 PM PT, YouTube link is: https://t.co/eUGsbLtSfh
thevaliantx has quit [Quit: Leaving]
zmartAzz has joined #ruby
uglybandersnatch has quit [Ping timeout: 248 seconds]
Mr0rris0 has joined #ruby
justin_pdx has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
Vingador has quit [Quit: Leaving]
dlitvak has quit [Remote host closed the connection]
sgambino has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
Rodya_ has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
Aviio has quit [Remote host closed the connection]
kam270 has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 246 seconds]
justin_pdx has quit [Quit: justin_pdx]
solars has quit [Ping timeout: 252 seconds]
sethrmo has joined #ruby
fmcgeough has joined #ruby
duderono_ has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
<b|ackwolf> does Ruby coerce a string that start with a digit to that digit and becomes truth?
<b|ackwolf> *starts
uglybandersnatch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
azure32 has joined #ruby
mattwildig has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
mattwildig has joined #ruby
<audiodude> b|ackwolf: no, everything in ruby is true except for false and nil
<audiodude> or "truthy" rather
duderono_ has quit [Client Quit]
duckpupp1 has joined #ruby
duderono_ has joined #ruby
azure32 has quit [Client Quit]
karapetyan has joined #ruby
TheMoonMaster has joined #ruby
TheMoonMaster has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
pdoherty has quit [Ping timeout: 246 seconds]
<shevy> b|ackwolf what a strange question :)
duderono_ has quit [Client Quit]
duckpupp1 has quit [Ping timeout: 250 seconds]
<b|ackwolf> shevy, I saw languages do that. VimL, Perl
Rickmasta has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<b|ackwolf> shevy, Ben Orenstein one of the "thoughtbot" members said Ruby does that as well.
karapetyan has quit [Ping timeout: 248 seconds]
<b|ackwolf> shevy, If you watched his first video from "Onramp to Vim"
sonOfRa has joined #ruby
tulak has quit [Remote host closed the connection]
sethrmo has quit [Ping timeout: 252 seconds]
Pisuke has joined #ruby
n008f4g_ has joined #ruby
<drbrain> ruby only coerces numeric types to other numeric types via #coerce
<drbrain> so "12345" can't become 12345 without you calling #Integer or #to_i
<drbrain> s/you/someone
r4z3r has joined #ruby
<b|ackwolf> drbrain, I didn't mean that.
Rodya_ has quit [Remote host closed the connection]
maletor has joined #ruby
<drbrain> internally, "1" is as true as "a" or "" or " " * 10_000_000
duderono_ has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has quit [Quit: trosborn]
<drbrain> b|ackwolf: ↑ ?
jenrzzz has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
<shevy> b|ackwolf yeah I think perl does that a lot, that auto-coercion thingy. ruby went another way
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
p0p0pr37 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
sp4rrow has joined #ruby
mattwildig has quit [Remote host closed the connection]
Aviio has joined #ruby
Cohedrin has joined #ruby