baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
x77686d has joined #ruby
ghormoon has joined #ruby
jready has quit [Remote host closed the connection]
jready has joined #ruby
jyaworski has quit [Ping timeout: 248 seconds]
emph has joined #ruby
jready has quit [Ping timeout: 276 seconds]
jyaworski has joined #ruby
JohanP has joined #ruby
n3b has quit [Ping timeout: 240 seconds]
ghormoon has quit [Excess Flood]
ghormoon has joined #ruby
hanmac has joined #ruby
n3b has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
JohanP has quit [Ping timeout: 240 seconds]
jeen has joined #ruby
JohanP has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
govg has quit [Ping timeout: 264 seconds]
JohanP has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
emph has quit [Ping timeout: 240 seconds]
jyaworski has quit [Ping timeout: 260 seconds]
ellcs has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
Psybur has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
barnett has joined #ruby
x77686d has quit [Quit: x77686d]
JohanP has joined #ruby
ccrow has joined #ruby
JohanP has quit [Ping timeout: 260 seconds]
barnett has quit [Read error: No route to host]
cschneid_ has quit [Ping timeout: 264 seconds]
barnett has joined #ruby
JohanP has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
n3b has quit [Ping timeout: 240 seconds]
barnett has quit [Ping timeout: 276 seconds]
phenom has joined #ruby
kurko__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
n3b has joined #ruby
JohanP has quit [Ping timeout: 264 seconds]
barnett has joined #ruby
t0adst00l has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 248 seconds]
jeen has quit [Quit: This computer has gone to sleep]
barnett has quit [Ping timeout: 276 seconds]
ccrow has quit [Read error: Connection reset by peer]
ltd has joined #ruby
ccrow has joined #ruby
barnett has joined #ruby
ccrow has quit [Remote host closed the connection]
ccrow has joined #ruby
amar has joined #ruby
JohanP has joined #ruby
alt155 has joined #ruby
n3b has quit [Ping timeout: 240 seconds]
n3b has joined #ruby
cschneid_ has joined #ruby
t0adst00l has joined #ruby
alfiemax has joined #ruby
amar has quit [Ping timeout: 264 seconds]
barnett has quit [Remote host closed the connection]
barnett has joined #ruby
JohanP has quit [Ping timeout: 268 seconds]
barnett has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 240 seconds]
t0adst00l has quit [Ping timeout: 255 seconds]
jyaworski has joined #ruby
barnett has joined #ruby
barnett has quit [Remote host closed the connection]
barnett has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Ping timeout: 264 seconds]
jyaworski has quit [Ping timeout: 240 seconds]
n3b has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
n3b has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
alfiemax has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
cyberg has quit [Quit: Leaving]
JohanP has joined #ruby
ccrow has quit [Remote host closed the connection]
ccrow has joined #ruby
houhoulis has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
cschneid_ has joined #ruby
jyaworski has joined #ruby
JohanP has quit [Ping timeout: 260 seconds]
houhoulis has quit [Remote host closed the connection]
beilabs has joined #ruby
GodFather_ has quit [Ping timeout: 248 seconds]
dviola has quit [Quit: WeeChat 2.1]
beilabs has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
jyaworski has quit [Ping timeout: 248 seconds]
beilabs has quit [Remote host closed the connection]
ccrow has quit [Quit: Ex-Chat]
barnett has quit []
kapil___ has joined #ruby
alfiemax has joined #ruby
JohanP has joined #ruby
n3b has quit [Ping timeout: 240 seconds]
n3b has joined #ruby
JohanP has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 248 seconds]
Dimik has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
JohanP has joined #ruby
orbyt_ has joined #ruby
JohanP has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 268 seconds]
JohanP has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
JohanP has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
JohanP has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
JohanP has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
cagomez has joined #ruby
white_lilies has quit [Ping timeout: 240 seconds]
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
amar has joined #ruby
konsolebox has joined #ruby
JohanP has joined #ruby
amar has quit [Ping timeout: 248 seconds]
shakes has joined #ruby
JohanP has quit [Ping timeout: 268 seconds]
cschneid_ has joined #ruby
beilabs has quit []
jcalla has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
rivalomega has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
JohanP has joined #ruby
cagomez has quit [Remote host closed the connection]
JohanP has quit [Ping timeout: 240 seconds]
govg has joined #ruby
cschneid_ has joined #ruby
booq has joined #ruby
alt155 has quit [Ping timeout: 240 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
jyaworski has joined #ruby
donofrio has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 264 seconds]
JohanP has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
JohanP has quit [Ping timeout: 240 seconds]
<baweaver> New article out, and this one gets fairly crazy - https://medium.com/@baweaver/qo-evil-dynamic-compilation-with-eval-f66f7a25fe77
cschneid_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
jordanm has quit [Remote host closed the connection]
jordanm has joined #ruby
mlkkk has joined #ruby
JohanP has joined #ruby
anisha has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
JohanP has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
JohanP has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> havenwood: Wanna see something awesome?
anisha has quit [Ping timeout: 256 seconds]
<baweaver> >> class Mf;def self.+(b)proc{|a|a+b}end;end; [1,2,3,4,5].map(&Mf + 5)
<ruby[bot]> baweaver: # => [6, 7, 8, 9, 10] (https://eval.in/996971)
booq has quit [Remote host closed the connection]
<baweaver> dminuoso: Look! Scala! ^
nadir has joined #ruby
JohanP has quit [Ping timeout: 256 seconds]
ferr1 has joined #ruby
<baweaver> Radar ^ Infix operators work as singleton methods too in Ruby :D
anisha has joined #ruby
JohanP has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
jordanm has quit [Remote host closed the connection]
x77686d has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
ur5us has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 264 seconds]
jyaworski has joined #ruby
cschneid_ has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
<Radar> hahaha :D
JohanP has quit [Ping timeout: 264 seconds]
ta_ has quit [Remote host closed the connection]
jordanm has joined #ruby
jyaworski has quit [Ping timeout: 248 seconds]
biberu has joined #ruby
jyaworski has joined #ruby
JohanP has joined #ruby
madhatter has quit [Remote host closed the connection]
JohanP has quit [Ping timeout: 265 seconds]
JohanP has joined #ruby
madhatter has joined #ruby
reber has joined #ruby
jyaworski has quit [Ping timeout: 264 seconds]
physicist__ has joined #ruby
JohanP has quit [Client Quit]
cschneid_ has quit [Ping timeout: 256 seconds]
amar has joined #ruby
alfiemax has quit [Remote host closed the connection]
<dminuoso> baweaver: I dont Scala.
<baweaver> Radar: and because I'm me, it's a gem now
cschneid_ has joined #ruby
<dminuoso> 07:49 baweaver | [05:10:05] Radar ^ Infix operators work as singleton methods too in Ruby :D
<dminuoso> Of course it works
<dminuoso> You should know there's no such thing as "singleton methods" :P
<dminuoso> You silly
<baweaver> fine fine fine
alfiemax has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
alfiemax_ has joined #ruby
Burgestrand has joined #ruby
conta has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
mroutis has quit [Ping timeout: 264 seconds]
mniip has quit [Ping timeout: 260 seconds]
amar has quit [Ping timeout: 264 seconds]
josealobato has joined #ruby
amar has joined #ruby
jyaworski has joined #ruby
tvw has joined #ruby
apeiros has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
josealobato has quit [Read error: Connection reset by peer]
mniip has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
cschneid_ has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
jyaworski has quit [Ping timeout: 260 seconds]
Darook has joined #ruby
<Darook> join
ta_ has joined #ruby
<Darook> WELCOME TO CAAAAAANDY MEADOWS!
<baweaver> alo
<baweaver> More of Ruby really Darook
rippa has joined #ruby
mlkkk has quit [Remote host closed the connection]
<Darook> sorry, typo.
cschneid_ has joined #ruby
johnny56 has joined #ruby
johnny56_ has quit [Ping timeout: 276 seconds]
<Darook> I actually came here to see if there was a link for begineers, and was not disappointed. I'm glad I came.
TomyWork has joined #ruby
clemens3_ has joined #ruby
sysvalve has joined #ruby
mlkkk has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
baweaver is now known as baweaver_away
mlkkk has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
ccrow has joined #ruby
alfiemax has joined #ruby
jyaworski has joined #ruby
octomancer has joined #ruby
schneider has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
ccrow has quit [Remote host closed the connection]
ccrow has joined #ruby
vondruch has quit [Ping timeout: 276 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
rabajaj has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
ta_ has quit [Quit: Leaving...]
mlkkk has joined #ruby
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
physicist__ has quit [Ping timeout: 240 seconds]
physicist__ has joined #ruby
roshanavand has quit [Quit: Leaving.]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
lytol has joined #ruby
rivalomega has quit [Remote host closed the connection]
ta_ has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
ellcs has joined #ruby
cschneid_ has joined #ruby
Hien has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 255 seconds]
vondruch has joined #ruby
NL3limin4t0r has joined #ruby
sameerynho has joined #ruby
nowhere_man has joined #ruby
alfiemax has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
cabotto has joined #ruby
sameerynho has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
minimalism has quit [Quit: minimalism]
ccrow has quit [Read error: Connection reset by peer]
drale2k_ has joined #ruby
ccrow has joined #ruby
guille-moe has joined #ruby
karapetyan has joined #ruby
cabotto has quit [Remote host closed the connection]
ccrow has quit [Quit: Ex-Chat]
_cabotto has joined #ruby
venmx has joined #ruby
karapetyan has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
karapetyan has joined #ruby
conta has quit [Ping timeout: 264 seconds]
cschneid_ has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
amar has quit [Remote host closed the connection]
dionysus69 has joined #ruby
chris349 has quit [Ping timeout: 248 seconds]
tvw has quit [Read error: Connection reset by peer]
dionysus69 has quit [Client Quit]
Darook has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
apeiros has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
schneider has joined #ruby
apeiros has quit [Ping timeout: 276 seconds]
_cabotto has quit [Remote host closed the connection]
InfinityFye has joined #ruby
cabotto has joined #ruby
amar has joined #ruby
InfinityFye has left #ruby [#ruby]
_cabotto has joined #ruby
cabotto has quit [Ping timeout: 276 seconds]
venmx has quit [Quit: leaving]
anisha has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 256 seconds]
_cabotto has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
<Zarthus> does anyone recognize this title as some sort of copy paste output from ruby's `gem` command? https://github.com/firasdib/Regex101/issues/989
stormpack has joined #ruby
<Zarthus> i wonder if it's a copy paste fail or if the robot overlord are somehow going insane.
<Zarthus> if you inspect that dudes' profile you can see he's kind of a skiddy, but anyway
cschneid_ has joined #ruby
drale2k_ has joined #ruby
x77686d has quit [Quit: x77686d]
anisha has joined #ruby
cabotto has joined #ruby
karapetyan has joined #ruby
blackmesa has joined #ruby
anisha has quit [Read error: Connection reset by peer]
<Radar> GOOD MORNING
<Radar> WELL, IT IS IN SOME PARTS OF THE WORLD
<Radar> Here, it is evening time.
<Radar> Zarthus: nope. I do not recognise that at all.
znz_jp has quit [Remote host closed the connection]
<Zarthus> it's 12:12 here
znz_jp has joined #ruby
GodFather_ has joined #ruby
vasilakisfil has joined #ruby
venmx has joined #ruby
<vasilakisfil> hi! Any idea why Regexp.escape('$') returns '\\$\ and not just '\$' ? The former escapes \ (which didn't appear in the initial string anyway) and not $, right ?
<vasilakisfil> sorry I meant it returns '\\$' not '\\$\
<dminuoso> vasilakisfil: Be careful..
anisha has joined #ruby
<vasilakisfil> ah right thanks!
jyaworski has joined #ruby
anisha_ has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha_ has quit [Ping timeout: 256 seconds]
cschneid_ has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrBen2k2k2k_ has quit [Remote host closed the connection]
jyaworski has joined #ruby
cschneid_ has joined #ruby
kurko_ has joined #ruby
ferr1 has quit [Quit: WeeChat 2.1]
jyaworski has quit [Ping timeout: 264 seconds]
conta has joined #ruby
conta has quit [Ping timeout: 240 seconds]
Cavallari has joined #ruby
amelliaa has joined #ruby
karapetyan has quit [Remote host closed the connection]
cabotto has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
emph has joined #ruby
emph has quit [Client Quit]
ur5us has quit [Ping timeout: 248 seconds]
nhh^ has joined #ruby
cschneid_ has joined #ruby
cabotto has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
houhoulis has joined #ruby
conta has joined #ruby
drale2k_ has joined #ruby
karapetyan has joined #ruby
ldnunes has joined #ruby
AJA4350 has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
cabotto has quit [Remote host closed the connection]
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
ryzokuken has joined #ruby
<NL3limin4t0r> vasilakisfil: If it's in double quotes (which return values by Ruby always are) the backslash should be escaped. Resulting in "\\$" this is the same as '\$'.
<NL3limin4t0r> >> "\\$" == '\$'
<ruby[bot]> NL3limin4t0r: # => true (https://eval.in/997141)
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vasilakisfil> I see thanks!
<dionysus69> are these essentially the same?
<dionysus69> format("%.8f", 1.234567812341234).to_d
<dionysus69> 1.234567812341234.truncate(8).to_d
<dionysus69> they return same thing but dunno how they would act in various situations
amelliaa has quit [Quit: -]
<NL3limin4t0r> vasilakisfil: Double quotes allow you to do things like "\n" and other special chars while single quotes are string literals. Meaning '\n' is not a newline character but a backslash and an 'n', The same characters in a double quoted string would be a newline character.
<NL3limin4t0r> "\n" == '\n'
<NL3limin4t0r> >> "\n" == '\n'
<ruby[bot]> NL3limin4t0r: # => false (https://eval.in/997147)
<schneider> using rspec, I have a before hook as a "parent" hook, then I have some describe blocks and inside another before hook
<schneider> can I run parent before block after the child one?
jyaworski has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
chouhoulis has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
<vasilakisfil> interesting thanks!
brianj has joined #ruby
raynold has joined #ruby
drale2k_ has joined #ruby
Klumben has quit [Ping timeout: 276 seconds]
Dimik has joined #ruby
cabotto has joined #ruby
<dionysus69> undefined method `mode' for 0.64e-8:BigDecimal
jcalla has quit [Ping timeout: 264 seconds]
<dionysus69> balance.class returns BigDecimal
tomphp has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
mlkkk has quit []
Milos has quit [Excess Flood]
<brianj> "john@ggo.se " I have an issue with this string.. You probably cant see it cause of client has removed it, but there seams to be a non breaking space..but I cant seam to get rid of it. I basicly just want to remove all charecters that arent part of the email
Milos has joined #ruby
ropeney has joined #ruby
<brianj> any ideas?
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
<brianj> If I convert it to json it says: "john@ggo.se​ \""
cschneid_ has quit [Ping timeout: 265 seconds]
cschneid_ has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
Mahoon has joined #ruby
bmurt has joined #ruby
cpruitt has joined #ruby
depesz has quit [Quit: WeeChat 2.1]
Mahoon has quit [Quit: WeeChat 1.6]
Cavallari1 has joined #ruby
Cavallari has quit [Ping timeout: 264 seconds]
Cavallari1 is now known as Cavallari
blackmesa has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
<ellcs> @brianj: what about String#strip
banisterfiend has joined #ruby
apeiros_ has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
chris349 has joined #ruby
jcalla has joined #ruby
<NL3limin4t0r> Is there a reason i cannot use def xyz!? (two symbols at the end)
<dminuoso> NL3limin4t0r: Because Matz said so.
<NL3limin4t0r> clear :)
<dminuoso> >> define_method(:foo!?) { puts "hi" }; self.foo!?
<ruby[bot]> dminuoso: # => /tmp/execpad-bb74a785b8c9/source-bb74a785b8c9:2: syntax error, unexpected ')' ...check link for more (https://eval.in/997174)
<dminuoso> >> define_method(:foo!?) { puts "hi" }; self.send(:foo!?)
<ruby[bot]> dminuoso: # => /tmp/execpad-25c651954631/source-25c651954631:2: syntax error, unexpected ')' ...check link for more (https://eval.in/997175)
<dminuoso> >> define_method(:"foo!?") { puts "hi" }; self.send(:"foo!?")
<ruby[bot]> dminuoso: # => hi ...check link for more (https://eval.in/997176)
<dminuoso> NL3limin4t0r: ^-
<dminuoso> Works fine for me!
<NL3limin4t0r> ty (Y)
houhoulis has quit [Remote host closed the connection]
cschneid_ has joined #ruby
<dionysus69> wow just figured when in the switch doesn't support || operator
<dionysus69> rare ruby surprise lol
rivalomega has joined #ruby
<apeiros_> "in the switch"?
apeiros_ is now known as apeiros
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rivalomega has quit [Remote host closed the connection]
<dionysus69> switch statement I mean
chouhoulis has quit [Remote host closed the connection]
<dionysus69> case *
<dionysus69> apeiros :)
<apeiros> hm, case/when does support ||, but it probably works differently from what you expected :-)
<dionysus69> well, I had this || that
<dionysus69> worked for this but not for that
<dionysus69> I tested it thoroughly
<apeiros> (this || that) evaluates to the first non-nil non-false value
<dionysus69> after changing || with , it works
rivalomega has joined #ruby
<apeiros> and that's what your case will be tested against then
<apeiros> e.g. `case foo; when a || b then …`, is (a || b) === foo, and (a || b) is either a or b (b if a is nil or false)
<dionysus69> so a was nil, b was matching but still the when block wasn't executed :s
<dionysus69> when (:something || "something" || Model.find_by(code: "something"))
<dionysus69> this only works for :something
<apeiros> a = nil; b = 1..5; case 3; when a || b then "yes"; else "no" end
<apeiros> >> a = nil; b = 1..5; case 3; when a || b then "yes"; else "no" end
<ruby[bot]> apeiros: # => "yes" (https://eval.in/997181)
<dionysus69> not for string or object
rfoust has joined #ruby
<apeiros> yes, of course, because :something is never nil or false
<apeiros> (:something || … ) will *always* evaluate to :something
k0mpa has joined #ruby
* dminuoso starts pondering about the most hilarious way to proof apeiros wrong
* dminuoso thinks about set_trace_func
* dminuoso starts to get creative
* dminuoso just became bored and goes back to haskell things
<dionysus69> case case_var doesn't match :something, so it should go for next val no? why does it work with commas then instead of ||
<apeiros> dminuoso: I now wonder how much time you'll spend and how far you'll go. I don't think a custom compiled ruby is out of the question with you :-p
<dminuoso> apeiros: No no! The rules of engagement are that I have to demontrate this with ruby[bot]
<dminuoso> So..
<dminuoso> :P
<tobiasvl> dionysus69: it does match (:something || … ) though
<apeiros> dionysus69: as said, `case expression when condition` is evaluated as `condition === expression?
<apeiros> dionysus69: as said, `case expression when condition` is evaluated as `condition === expression`
rivalomega has quit [Ping timeout: 264 seconds]
<apeiros> and when your condition is (a || b || c) then that is evaluated first
<apeiros> and since (:something || b || c) *always* evaluates to :something, that's the same as just `:something === expression`
<apeiros> if you separate your conditions by ",", it will evaluate against each condition separately.
<dionysus69> I dont understand, :something is obviously not nil but i see it has to match the case var, that's the confusing part
<dminuoso> asm>> (:foo || puts)
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/997182
cpruitt has quit []
<dminuoso> Argh!
<apeiros> i.e. with (a || b), there is no "next value", (a || b) is *one* value
<dminuoso> apeiros: I yield!
<apeiros> dminuoso: unimaginable! keep it up!
<dminuoso> apeiros: Actually it's the one part of the compiler Ive already dabbled with. I should have known better.
<dionysus69> let me get this straight, if I use same condition with if statement it will work
<dionysus69> its not even worth checking
<dionysus69> I just expect case when to evaluation condition the same way as if does
sauvin has quit [Ping timeout: 248 seconds]
<tobiasvl> >> if "something" == (:something || "something" || Model.find_by(code: "something")) then puts "yes" end
<ruby[bot]> tobiasvl: # => nil (https://eval.in/997183)
<tobiasvl> dionysus69: it works the same, you're just confused as to what it's evaluating
stormpack has quit [Remote host closed the connection]
<tobiasvl> ok, I could've used === there too
stormpack has joined #ruby
mroutis has joined #ruby
esObe has joined #ruby
<dionysus69> >> puts "evaluated correctly" if 1 === 3 || 2 || 1
<ruby[bot]> dionysus69: # => evaluated correctly ...check link for more (https://eval.in/997184)
<dionysus69> isn't that same?
<tobiasvl> no
<tobiasvl> >> puts "evaluated correctly" if 1 === (3 || 2 || 1)
<ruby[bot]> tobiasvl: # => nil (https://eval.in/997185)
<dionysus69> or your whole point was that it evaluates as () in case when?
<tobiasvl> you were checking this:
<tobiasvl> puts "evaluated correctly" if ((1 === 3) || 2 || 1)
nicesignal has quit [Remote host closed the connection]
<tobiasvl> >> puts "evaluated correctly" if ((1 === 3) || 2 || 1)
<ruby[bot]> tobiasvl: # => evaluated correctly ...check link for more (https://eval.in/997186)
<tobiasvl> that's not the same.
cschneid_ has quit [Ping timeout: 248 seconds]
<havenwood> >> false || 2
<dionysus69> ok now I get it, I guess, if I understand correctly now even if you don't write parenthesis in when statement, it defaults to it
<ruby[bot]> havenwood: # => 2 (https://eval.in/997187)
nicesignal has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
<havenwood> dionysus69: `2` is truthy I ^
ta_ has quit [Remote host closed the connection]
<tobiasvl> parentheses are used to force an evaluation order, without them standard precedence rules apply
<dionysus69> ok I clearly got it now :D 3 2 aren't nil
TinkerT has joined #ruby
<dionysus69> so even though I didn't use parenthesis in when statement, it defaulted to it, you confirm it?
<dionysus69> still sounds like a rare ruby surprise, back to square 1 :D
<dminuoso> K = -> a, b { b }.curry; S = -> a, b, c { a[c[(b[c])] }.curry
<dminuoso> Forget everything else.
<dminuoso> Write all your programs in SK combinator calculus.
* dminuoso pokes havenwood
<dionysus69> I actually don't understand what that line does dminuoso :D
<dminuoso> K = -> a, b { b }.curry; S = -> a, b, c { a[c][b[c]] }.curry
<dminuoso> Sorry my bad!
<dminuoso> Those are just functions!
<dminuoso> You can write any turing program with these two functions and nothing else.
<dminuoso> You dont need strings, lists, integers, or anything else.
cschneid_ has joined #ruby
<tobiasvl> dionysus69: yes, in a way, the case condition is "wrapped" in parentheses before comparison. in the way that it's evaluated as an expression, and not actually a text macro that's substituted before evaluation. I guess you can put it that way
karapetyan has quit [Remote host closed the connection]
Puffball has joined #ruby
<dionysus69> this is weird too, this actually returns
<dionysus69> >> 1 === 3 || 2 || 1
<ruby[bot]> dionysus69: # => 2 (https://eval.in/997188)
banisterfiend has joined #ruby
<dionysus69> how is that evaluated now :D
<tobiasvl> >> x = 1 || 2; if x === 2 then puts "well" end
<apeiros> dionysus69: try to figure out why that is
<ruby[bot]> tobiasvl: # => nil (https://eval.in/997189)
<havenwood> dionysus69: just `2`, not ` == 2`.
<apeiros> dionysus69: what options exist here?
<dminuoso> dionysus69: here's the representation of 4: [S[S[KS]K]][[S[S[KS]K]][S[S[KS]K]I]]
jyaworski has joined #ruby
<dminuoso> If we also add `I = -> x { x }` which is usually sane
<tobiasvl> I love it here in #ruby-offtopic
<livcd> when are the guilds supposed to land in Ruby ?
<dminuoso> livcd: I hope never.
<havenwood> livcd: Ruby 3
<dionysus69> I dont understand anything you write dminuoso maybe its because I am hangover or maybe you are just weird today :D
<dminuoso> Yeah my coworker called me weird the other day.
<dionysus69> lmfo :D
<livcd> havenwood: and how close are we to Ruby 3 ? :0
<havenwood> livcd: 2020 or beyond.
<dionysus69> as I know, not close at all. I was listening to the podcast of the core dev
<havenwood> livcd: It could land before Ruby 3. It's very unlikely to be in Ruby 2.6.
karapetyan has joined #ruby
<havenwood> livcd: Ruby 2.7 is possible, Christmas 2019.
<livcd> ah ok Ill keep an eye on it
<livcd> thanks
<havenwood> dionysus69: Ks and Ss! I need more coffee to follow what's going on...
<havenwood> livcd: There may be auto-fibers coming too, we'll see!
jyaworski has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
thinkpad has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thinkpad has joined #ruby
Mikasi has joined #ruby
pilne has quit [Quit: Leaving]
<dionysus69> ok thanks all been interesting laters!
<NL3limin4t0r> dionysus69: It's not weird though `1 === 3` evaluates to `false`, thus moving on to `2` wich is truthy and returning that value.
<dionysus69> I see now, order of operation is behaving same way as in when
<NL3limin4t0r> the `===` operator has an higher precense then `||`
cabotto has quit []
<dionysus69> weird I haven't encountered problem with this until now, never really thought of this before now heh
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
Asher has quit [Ping timeout: 240 seconds]
<NL3limin4t0r> It also sort sircuits if it finds a truthy value, meaning it doesn't execute the code behind it.
Rapture has joined #ruby
hinbody has joined #ruby
<NL3limin4t0r> >> false || nil || 4 || raise 'Hello World!'
<ruby[bot]> NL3limin4t0r: # => /tmp/execpad-d7e52cdc05f5/source-d7e52cdc05f5:2: syntax error, unexpected tSTRING_BEG, expecting key ...check link for more (https://eval.in/997195)
hinbody has left #ruby [#ruby]
foxxx0 has quit [Quit: foxxx0]
<NL3limin4t0r> >> false || nil || 4 || nonexistentvalue
<ruby[bot]> NL3limin4t0r: # => 4 (https://eval.in/997196)
foxxx0 has joined #ruby
<dionysus69> ok thanks NL3limin4t0r
<href> OA
alfiemax has joined #ruby
stormpack_ has joined #ruby
<brianj> ellcs: strip didnt work. I had to use gsub(/[\u200B-\u200D\uFEFF]/, '')
chouhoulis has joined #ruby
stormpack has quit [Ping timeout: 255 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
cschneid_ has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
shakes has quit [Quit: Leaving]
jyaworski has joined #ruby
ropeney has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 248 seconds]
jeffreylevesque has joined #ruby
karapetyan has quit [Remote host closed the connection]
coderphive has joined #ruby
reber has quit [Remote host closed the connection]
suukim has joined #ruby
grilix has joined #ruby
<TomyWork> say, does ruby 1.8.7 (don't hit me) support any kind of syntactic sugar for passing hashes to functions? it doesn't support "func(key: value)"
cyberg has joined #ruby
* apeiros hits TomyWork
<apeiros> TomyWork: iirc last hash arg didn't need {}. but no `foo:` syntax back then, only hash-rockets
Cavallari has quit [Quit: Cavallari]
<TomyWork> ah
<TomyWork> i guess i'll just throw in the extra braces to be safe ^^
cschneid_ has joined #ruby
<TomyWork> convert a puppet module to ruby 1.8.7 ^^
<TomyWork> converting*
<apeiros> if you have a 1.8.7, you can just try
clemens3_ has quit [Ping timeout: 268 seconds]
rivalomega has joined #ruby
<TomyWork> well i dont know what intermediate syntactic sugar exists, i started at 1.9-ish
<TomyWork> also, done :)
<TomyWork> it compiles, ship it
jyaworski has joined #ruby
alfiemax_ has joined #ruby
<TomyWork> looks pretty in "git diff --color-words=."
alfiemax has quit [Ping timeout: 260 seconds]
schneider- has joined #ruby
schneider has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 260 seconds]
GodFather_ has quit [Quit: Ex-Chat]
govg has joined #ruby
GodFather_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coderphive has quit [Quit: coderphive]
banisterfiend has joined #ruby
tomphp has joined #ruby
govg has quit [Ping timeout: 276 seconds]
schneider- has quit [Ping timeout: 256 seconds]
jyaworski has quit [Ping timeout: 265 seconds]
Nick-S has joined #ruby
Asher has joined #ruby
schneider- has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
ellcs has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<TomyWork> Error: undefined method `content' for #<Array:0x7f6741b42a80> <-- any idea what ruby 1.8.7 complains about here? looked at 2.3.1's docs, there's no #content in Array or Enumerable (or Object, for that matter)
conta has quit [Ping timeout: 248 seconds]
<TomyWork> none in BasicObject or Kernel either
<TomyWork> also, that module doesn't contain the word "content"
<apeiros> Array#content is not a ruby method
<apeiros> so if your code uses that, it has to be added from elsewhere
<TomyWork> ah so it could be puppet-specific
<TomyWork> still doesnt explain why i cant find it :)
<apeiros> you can always ask ruby
<TomyWork> i'll see if i can hack in a stack trace somehow
<apeiros> &ri Method#source_location
<kapil___> I have this string: `"FOREIGN KEY (tax_type_id) REFERENCES ee_guru12.tax_types(id)"`
<kapil___> i want tax_type_id from it with regex
<TomyWork> oh well, i'd have to inject pry into puppet first
<apeiros> hrm, derpy not around?
<TomyWork> derpy, the less bright cousin of pry?
<apeiros> kapil___: what have you tried?
schneider- has quit [Ping timeout: 255 seconds]
<apeiros> TomyWork: derpy reacts on &ri and links to the docs
<TomyWork> oh it's a bot
<kapil___> apeiros: i know not much regex
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TomyWork> kapil___ best not to parse SQL with regexes :)
<apeiros> kapil___: ok, time to learn it then? I love to help, but I don't love to be used as "please do it for me (and for free)"
herbmillerjr has quit [Quit: Konversation terminated!]
<kapil___> apeiros: ok do u suggest good guide for me
<TomyWork> SQL is kind of a context-free language, regular expressions are less powerful than context-free languages
<apeiros> kapil___: http://www.regular-expressions.info is a usable starting point
<TomyWork> well, it's at least context-free
GodFather_ has quit [Ping timeout: 248 seconds]
<kapil___> TomyWork: from sql i am not getting that column name . so i have to do regex
<kapil___> apeiros: thanks a lot
<TomyWork> kapil___ what generates those SQLs for you?
<kapil___> "select pg_get_constraintdef(2125957)"
<TomyWork> kapil___ yeah, so you're doing it backwards
<kapil___> yes
clemens3_ has joined #ruby
<TomyWork> kapil___ i dont know the exact table, but i'm 99% sure you can just select something else and it'll get you the constraint's components
<TomyWork> ask #postgresql about how to get a foreign key constraint's foreign key column
<kapil___> TomyWork: thanks. i asked but they give me this function
<TomyWork> or whatever that is up there, you didnt paste the entire statement
<kapil___> ok thanks
<apeiros> TomyWork: it actually might be
<apeiros> pg doesn't require a `from` clause if it's a function
<apeiros> only oracle has that weird 'from dual' BS
<TomyWork> <MatheusOl> kapil___: If you want the definition, just use pg_get_constraintdef(c.oid)
<TomyWork> kapil___ there is an "if" in that piece of advice
<TomyWork> you did not evaluate the if condition before executing the if body
<TomyWork> apeiros i meant the first one
<TomyWork> apeiros he posted half a foreign key definition
<TomyWork> i think
<apeiros> oh, the output of the function?
<kapil___> thanks i not want defination i asked to postgresql hope someone answer
<kapil___> apeiros: yes
<TomyWork> i want royalties
Klumben has joined #ruby
jyaworski has joined #ruby
<TomyWork> apeiros i think i know what may be going on here... there are other classes that support the #content method. something expects one of them, but gets an array instead
<TomyWork> fun to debug without a stack trace
orbyt_ has joined #ruby
<TomyWork> but tbh i dont know what those other classes may be
schneider- has joined #ruby
orbyt_ has quit [Client Quit]
<TomyWork> anyway, i gotta go, i'll pick this up next time. thanks for the help, apeiros
jyaworski has quit [Ping timeout: 256 seconds]
sysvalve has quit [Quit: Leaving]
venmx has quit [Ping timeout: 248 seconds]
alt155 has joined #ruby
marxarelli has joined #ruby
John_Ivan has quit [Ping timeout: 256 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kapil___> TomyWork: postgresql channel answered my question thanks
banisterfiend has joined #ruby
schneider- has quit [Ping timeout: 264 seconds]
venmx has joined #ruby
<TomyWork> neat
TomyWork has quit [Remote host closed the connection]
grilix has quit [Ping timeout: 264 seconds]
grilix has joined #ruby
[Butch] has joined #ruby
mr_foto has joined #ruby
baweaver_away is now known as baweaver
minimalism has joined #ruby
Mike11 has joined #ruby
minimalism has quit [Client Quit]
minimalism has joined #ruby
nitric has joined #ruby
troys has joined #ruby
amar has quit [Ping timeout: 264 seconds]
sepp2k has quit [Read error: Connection reset by peer]
Psybur has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
sauvin has joined #ruby
jcarl43 has joined #ruby
sauvin_ has joined #ruby
drale2k_ has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
sauvin has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
conta has joined #ruby
alfiemax has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nitric has quit [Ping timeout: 276 seconds]
SeepingN has joined #ruby
x77686d has joined #ruby
nitric has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
Asher has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
amar has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
Mike11 has quit [Ping timeout: 240 seconds]
venmx has quit [Remote host closed the connection]
venmx has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
Mondongo has joined #ruby
eckhardt_ has joined #ruby
banisterfiend has joined #ruby
Asher has joined #ruby
coderphive has joined #ruby
nima_m has joined #ruby
cliluw has quit [Ping timeout: 248 seconds]
cliluw has joined #ruby
nima_m has quit [Remote host closed the connection]
anisha has joined #ruby
nima_m has joined #ruby
coderphive has quit [Quit: coderphive]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nima_m has quit [Read error: Connection reset by peer]
nima_m has joined #ruby
anisha has quit [Ping timeout: 264 seconds]
coderphive has joined #ruby
samort7 has joined #ruby
jamiejackson has joined #ruby
suukim has quit [Quit: Konversation terminated!]
venmx has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
stormpack_ has quit [Quit: Leaving]
alfiemax has joined #ruby
nima_m has quit [Ping timeout: 264 seconds]
alfiemax has quit [Read error: Connection reset by peer]
nitric_ has joined #ruby
alfiemax has joined #ruby
nitric has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
jyaworski has joined #ruby
ramfjord has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nick-S has quit [Quit: Connection closed for inactivity]
madrax has joined #ruby
nima_m has joined #ruby
madrax has quit [Client Quit]
conta has quit [Ping timeout: 240 seconds]
ccrow has joined #ruby
nima_m has quit [Read error: Connection reset by peer]
nhh^ has quit []
emph^ has joined #ruby
jyaworski has quit [Ping timeout: 248 seconds]
nrk has quit [Quit: WeeChat 1.4]
bathtub_shark has quit [Quit: WeeChat 2.2-dev]
sameerynho has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
Zarthus has quit [Ping timeout: 276 seconds]
reber has joined #ruby
anisha has joined #ruby
nicoulaj has quit [Quit: quit]
jyaworski has joined #ruby
nicoulaj has joined #ruby
Zarthus has joined #ruby
anisha has quit [Ping timeout: 276 seconds]
k0mpa has quit [Ping timeout: 255 seconds]
krawchyk has joined #ruby
chouhoulis has joined #ruby
houhoulis has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
sauvin_ has quit [Remote host closed the connection]
bathtub_shark has joined #ruby
x77686d has quit [Quit: x77686d]
dionysus69 has joined #ruby
banisterfiend has joined #ruby
FrostCandy has joined #ruby
anisha has joined #ruby
stairmast0r has quit [Quit: bye]
GodFather_ has joined #ruby
pablo_ has joined #ruby
silviu has joined #ruby
silviu has quit [Client Quit]
blackmesa has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
jyaworski has quit [Ping timeout: 264 seconds]
stairmast0r has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hanmac has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sarmiena_ has joined #ruby
ccrow has quit [Quit: Ex-Chat]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
krawchyk has quit [Quit: krawchyk]
alfiemax has joined #ruby
jenrzzz_ has joined #ruby
alfiemax_ has quit [Ping timeout: 248 seconds]
RougeR has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
mroutis_ has joined #ruby
krawchyk has joined #ruby
<sarmiena_> i’ve had a ruby install on production machine for a while using SSL via httparty and such successfully. all of a sudden i’m getting “OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed” for a service we’ve had for a while
<sarmiena_> is it possible that they updated certs using a different vendor & my ca_certs are out of date?
omninonsense has quit [Read error: Connection reset by peer]
<SeepingN> sure why not
ramfjord has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
<sarmiena_> ok. so i’m using rvm… used apt-get (ubuntu 14.04) to update openssl. then reinstalled ruby via ‘rvm install’, but still nothing working
mroutis has quit [Ping timeout: 276 seconds]
JoL1hAHN has joined #ruby
<miah> have you verified the certificates are valid and non-expired?
<SeepingN> ...
<SeepingN> next step should NOT be "I reinstalled the operating system"
<sarmiena_> SeepingN: do you have any ideas other than droll quips? sorry, but it’s just adding noise
<sarmiena_> miah: ack that would be a good idea. it’s authorize.net, so figure it shouldn’t be the case, but i suppose you can never be too sure
<SeepingN> ye: inspect the certificate that it's complaining about
<sarmiena_> SeepingN: but for record i reinstalled ruby because it uses the headers of openssl during setup. so if i update openssl, i would have to rebuild ruby in order for it to use said headers
<SeepingN> "certificate B: " ...? A secondary cert?
<sarmiena_> i think certificate b refers to the remote certificate. i’ll check
bmurt has quit [Ping timeout: 264 seconds]
<miah> ubuntu 14.04 is a Long Term Support release, I dont think updating openssl will do much more than patch security vulns, not going to change behavior/functionality
<miah> well, it _shouldnt_ change behavior or functionality =)
<sarmiena_> miah: i think it would also update security certificates so that you can utilize openssl, though
<sarmiena_> since it’s LTS
jenrzzz_ has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
<miah> maybe
<miah> you can also just download the cacert.pem from curl.haxx.se and then run `update-ca-certificates`
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<sarmiena_> miah: so update on the remote ssl certificate. looks up to date: just went to https://api.authorize.net/
RougeR has quit [Ping timeout: 256 seconds]
Mondongo has quit [Quit: Textual IRC Client: www.textualapp.com]
Cavallari has joined #ruby
ccrow has joined #ruby
<miah> so your code is connecting to that api endpoint?
pablo_ has quit [Quit: Leaving]
<sarmiena_> yeah
<zxq2> question: how do you determine what exceptions a method raises, if you're using some big library for instance?
<miah> sarmiena_: i'd read through this https://mislav.net/2013/07/ruby-openssl/
<sarmiena_> miah: thanks for the pointer. reading now
<miah> good luck =)
<zxq2> like in openssl ruby bindings for instance - is there a way aside from the documentation, which is pretty sparse in the case openssl, to determine which exceptions a method raises?
x77686d has joined #ruby
orbyt_ has joined #ruby
<miah> look at the code?
ta_ has joined #ruby
ccrow has quit [Remote host closed the connection]
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
alfiemax has quit [Remote host closed the connection]
venmx has joined #ruby
devyn has quit [Read error: Connection reset by peer]
devyn has joined #ruby
RougeR has joined #ruby
x77686d has quit [Quit: x77686d]
n008f4g_ has joined #ruby
cagomez has joined #ruby
orbyt_ has joined #ruby
Burgestrand has joined #ruby
x77686d has joined #ruby
jyaworski has joined #ruby
venmx has quit [Ping timeout: 256 seconds]
physicist__ has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
howdoi has joined #ruby
emph^ has quit []
devyn has quit [Ping timeout: 256 seconds]
nhh^ has joined #ruby
Sembei has joined #ruby
devyn has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
HemmE has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
orbyt_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ta_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
jeffreylevesque has quit [Ping timeout: 256 seconds]
coderphive has quit [Quit: coderphive]
Andrevan has joined #ruby
biberu has quit []
John_Ivan has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
ccrow has joined #ruby
jenrzzz has joined #ruby
jyaworski has joined #ruby
FrostCandy has quit []
samort7 has quit []
reber has quit [Remote host closed the connection]
alfiemax has joined #ruby
venmx has joined #ruby
tomphp has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
jyaworski has quit [Ping timeout: 248 seconds]
muffiny has joined #ruby
_whitelogger has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
jcalla has quit [Quit: Leaving]
ta_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tanguy_ has joined #ruby
tanguy_ is now known as breakfast1
<breakfast1> hello
Cavallari has quit [Quit: Cavallari]
<breakfast1> so I'm reading Ruby under a microscope by Pat Shaughnessy
<breakfast1> and I'm experimenting with Ripper
<breakfast1> as of ruby 2.5.0
<baweaver> !unban gizmore
<ruby[bot]> baweaver: I could not identify any bans matching the nick "gizmore"
<breakfast1> in the book Ripper.lex(code) returns a list
<breakfast1> of items that have a format similar to [[2, 5], :on_ident, "t"]
<baweaver> Remember that the book was written around 2.0 or 2.1 iirc
<baweaver> So things may have changed in those more restricted APIs
<breakfast1> but when running in 2.5.0 there is an extra constant (all uppercase) at the end of each item
<breakfast1> for example: [[2, 5], :on_ident, "t", EXPR_END|EXPR_LABEL]
<breakfast1> And I'm curious to know what is the purpose of those constants
<breakfast1> baweaver: of course, thanks for the tip
<baweaver> You might cross-reference the online Ripper documentation
gizmore has joined #ruby
ldnunes has quit [Quit: Leaving]
krawchyk has quit [Quit: krawchyk]
<breakfast1> Oh shit
<breakfast1> I just understoof
<breakfast1> *d
ur5us has joined #ruby
<breakfast1> So this constant is the last_state (in parse.y) under which the token has been... well, tokenized
* baweaver needs to consider poking Ripper some time
rfoust has joined #ruby
nickjj has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
brianj has quit [Remote host closed the connection]
venmx has quit [Ping timeout: 264 seconds]
pilne has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
venmx has joined #ruby
x77686d has quit [Quit: x77686d]
breakfast1 has quit [Quit: breakfast1]
ccrow has quit [Quit: Ex-Chat]
marr has quit [Ping timeout: 260 seconds]
n0m4d1c has joined #ruby
mroutis_ has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
jenrzzz has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
amar has quit [Remote host closed the connection]
n0m4d1c has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
houhoulis has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
x77686d has joined #ruby
ta_ has joined #ruby
GodFather_ has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Remote host closed the connection]
chocoelho has joined #ruby
alfiemax has joined #ruby
tomphp has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
jyaworski has joined #ruby
clemens3_ has quit [Ping timeout: 240 seconds]
x77686d has quit [Quit: x77686d]
GodFather_ has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
venmx has quit [Ping timeout: 256 seconds]
n008f4g_ has quit [Ping timeout: 248 seconds]
GodFather_ has quit [Client Quit]
jyaworski has quit [Ping timeout: 240 seconds]
GodFather_ has joined #ruby
x77686d has joined #ruby
rivalomega has quit [Remote host closed the connection]
rivalomega has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
alex`` has joined #ruby
alex`` is now known as alexherbo2
x77686d has quit [Quit: x77686d]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2 is now known as alex``
phaul has quit [Ping timeout: 268 seconds]
raynold has quit [Quit: Connection closed for inactivity]
cschneid_ has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
cschneid_ has quit [Ping timeout: 248 seconds]
sucks has joined #ruby
sucks has quit [Max SendQ exceeded]
alfiemax has joined #ruby
Azure|dc has joined #ruby
MyMind has joined #ruby
phenom has quit [Ping timeout: 248 seconds]
mroutis has quit [Ping timeout: 240 seconds]
ren0v0 has quit [Ping timeout: 264 seconds]
pabs has quit [Ping timeout: 248 seconds]
Sembei has quit [Ping timeout: 248 seconds]
ren0v0 has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
ccrow has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt_ has joined #ruby
eckhardt_ has quit [Client Quit]
phenom has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exll22 has joined #ruby
pabs has joined #ruby
exll22 has quit [Client Quit]
mli has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has joined #ruby
MikasiCoyote has joined #ruby
paraxial has quit [Ping timeout: 260 seconds]
muffiny has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 264 seconds]
Mikasi has quit [Ping timeout: 240 seconds]
jyaworski has joined #ruby
workmad3 has joined #ruby
houhoulis has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 264 seconds]
paraxial has joined #ruby
Rapture has joined #ruby
pabs has quit [Ping timeout: 264 seconds]
pabs has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jyaworski has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
redlegion has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
cagomez has quit [Ping timeout: 248 seconds]
<mli> hi why is this returning an error on line 21?
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
nickjj has quit [Read error: Connection reset by peer]
ryzokuken has quit [Remote host closed the connection]
dr3w_ has joined #ruby
<gizmore> mli: i bet your regular expression split is causing it
<gizmore> gimme 64 seconds
x77686d has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
<gizmore> mli: code looks good... maybe specify ports
white_lilies has joined #ruby
tomphp has joined #ruby
<gizmore> mli: ran code through skynet logic gate .... all fine
tomphp has quit [Client Quit]
chocoelho has quit [Quit: Konversation terminated!]
<gizmore> did you specify at least one port?
chocoelho has joined #ruby
redlegion has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
cagomez has joined #ruby
jyaworski has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
jnollette has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
tomphp has quit [Client Quit]
tomphp has joined #ruby
tomphp has quit [Client Quit]
Yzguy has joined #ruby
chaos95_ is now known as chaos95
jnollette has quit [Ping timeout: 255 seconds]
jnollette has joined #ruby
x77686d has quit [Quit: x77686d]
MikasiCoyote has quit [Ping timeout: 256 seconds]
MikasiCoyote has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 248 seconds]
karapetyan has quit [Read error: Connection reset by peer]
<mli> well the syntax its telling me to use is host:port
<mli> and i did that