havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3 & 2.2.6 (2.4.0-rc1): https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
symm has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
tubuliferous has quit [Ping timeout: 268 seconds]
sdothum has joined #ruby
milardovich has joined #ruby
DTZUZU has joined #ruby
jhack has joined #ruby
polysics has quit [Remote host closed the connection]
a143753 has joined #ruby
dnicole has joined #ruby
enyo_ has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
arescorpio has joined #ruby
harai_ has quit [Ping timeout: 250 seconds]
kareelee has quit [Remote host closed the connection]
enyo_ has quit [Ping timeout: 260 seconds]
A_Drone has joined #ruby
kareelee has joined #ruby
<tau> guys. i got a really odd situation. enumerator.take_while do |i| cond end.map do |n| stuff end fails but if i swittch to { and } instead of do annd end it works.
milardovich has joined #ruby
<tau> why does it ?
<tau> it works.
<tau> ops sorry.
<tau> it fails.
<tau> but it works http://codepad.org/KG1Z6I5M
jtd has joined #ruby
<tau> i thought do /end would be equivalent to {}
a143753 has quit [Read error: Connection reset by peer]
A_Drone has quit [Ping timeout: 250 seconds]
kareelee has quit [Ping timeout: 258 seconds]
flashpoint9 has joined #ruby
agent_white has quit [Quit: agent_white]
milardovich has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Konversation terminated!]
luckyruby has joined #ruby
luckyruby has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
luckyruby has joined #ruby
ascarter_ has quit [Read error: Connection reset by peer]
h1fuelce_ has joined #ruby
ascarter has joined #ruby
tubuliferous has joined #ruby
raul782 has quit [Remote host closed the connection]
h1fuelcell has quit [Ping timeout: 248 seconds]
symm- has joined #ruby
h1fuelce_ has quit [Ping timeout: 248 seconds]
symm has quit [Ping timeout: 256 seconds]
BrianJ has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
ResidentBiscuit has joined #ruby
lenwood has quit [Ping timeout: 246 seconds]
JoshS has quit [Quit: Leaving]
Madplatypus has quit [Quit: Connection closed for inactivity]
sugar has quit [Quit: Ex-Chat]
StoneCypher has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 258 seconds]
bb010g has joined #ruby
ur5us has joined #ruby
enterprisey has joined #ruby
marxarelli has joined #ruby
Dimik has joined #ruby
tubuliferous has joined #ruby
ddffg has quit [Ping timeout: 245 seconds]
danel has joined #ruby
jgt2 has joined #ruby
danel has quit [Client Quit]
tubuliferous has quit [Ping timeout: 264 seconds]
<tau> i see.
jgt2 has quit [Ping timeout: 260 seconds]
hinbody has quit [Read error: Connection reset by peer]
hinbody has joined #ruby
bronson has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
h1fuelcell has joined #ruby
bronson has quit [Remote host closed the connection]
cibs has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
tubuliferous has joined #ruby
meshsmith has joined #ruby
leah2 has quit [Ping timeout: 260 seconds]
johnzorn has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
<pilne> so kindasortamaybe like and vs &&
<zenspider> my world is falling apart... in ruby 1/2r.round == 1 in Mathematica and racket/scheme, it's 0.
Rodya_ has joined #ruby
<Derderderd> ?
<zenspider> tau: what is all that?
<bougyman> tau: same tau?
<zenspider> >> require "prime"; Prime.first 10
<ruby[bot]> zenspider: # => [2, 3, 5, 7, 11, 13, 17, 19, 23, 29] (https://eval.in/703113)
barnett has joined #ruby
<zenspider> Derderderd: was that "?" to me?
ur5us has quit []
gusrub has quit [Remote host closed the connection]
<Derderderd> zenspider: who you talk to
<zenspider> Derderderd: the channel?
<Derderderd> ?
<pilne> so... mathematica/scheme/racket it does tie-breaking with closest even?
<zenspider> pilne: yup
<zenspider> "banker's rounding"
<zenspider> Derderderd: username seems fitting
<pilne> i think we touched on this earlier when i brought up the proposed and then removed change to ruby 2.4
CloCkWeRX has joined #ruby
<Derderderd> zenspider: is a joke?
harai_ has joined #ruby
<zenspider> Derderderd: you have a lot of questions and/or confusion. Not sure I can help you with that.
<Derderderd> is no need to be mean. english no good language... zenspider
<zenspider> not being mean. being factual
<Derderderd> is being mean...
<Derderderd> you are make fun to me for my english?
<Derderderd> no understand for you..
A_Drone has joined #ruby
<zenspider> nope and nope and nope
Qommand0r has quit [Quit: WeeChat 1.6]
SCHAAP137 has quit [Quit: ZNC - http://znc.in]
ur5us has joined #ruby
<zenspider> pilne: where was your proposal?
jhack has quit [Quit: jhack]
newbie1 has quit [Ping timeout: 246 seconds]
<Derderderd> zenspider: you use ruby?
h1fuelcell has joined #ruby
<zenspider> yes
h1fuelcell has quit [Remote host closed the connection]
<pilne> not mine, i saw it on a site
h1fuelcell has joined #ruby
<Derderderd> zenspider: you is like?
<zenspider> pilne: gotcha
<zenspider> Derderderd: do I like ruby? yes
SCHAAP137 has joined #ruby
A_Drone has quit [Ping timeout: 250 seconds]
<zenspider> pilne: that's a lot of talking about rounding. :/
<pilne> yarp
<Derderderd> zenspider: why so condisend
<Derderderd> ing
Qommand0r has joined #ruby
aremaref has quit [Ping timeout: 245 seconds]
Cra2yZer0 has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
<zenspider> Derderderd: Again, I have not made fun of your English skills, despite your insistence... but if you're going to keep harping on it, then I'm done with you.
<Derderderd> wasnt even talk to you
coyo has joined #ruby
coyo has joined #ruby
coyo has quit [Changing host]
<pilne> i'm so lost
<Derderderd> w/e
<Derderderd> i am done
A_Drone has joined #ruby
<zenspider> good. drop it
* pilne lets go of the mic
<zenspider> pilne: I'm just as lost at this point.
<pilne> this is like the time i dropped acid and used smalltalk
<pilne> just my irc theme is more subdued
<zenspider> pilne: I may have done that too :P
tubuliferous has joined #ruby
<pilne> lol
troys is now known as troys_
raul782 has joined #ruby
moei has quit [Quit: Leaving...]
harai_ has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
milardovich has joined #ruby
jmignault has quit [Ping timeout: 252 seconds]
<tau> hi.
<Derderderd> no you drop it zenspider
<tau> this thing puts (1..10).map do |i| i end
<tau> if i switch it to {}
<tau> then it prints the list
<tau> it is okay when they say {} has higher precedence
<tau> but the way of how it works it doesnt make much sense though
<tau> so, it is like puts prints the returning value of (1..10).map
raul782 has quit [Ping timeout: 260 seconds]
<tau> then calls the block
<tau> on the return alueof puts (1..10).map which is nil.
<tau> it is not making much sense to me.
<zenspider> !qkick Derderderd you don't listen... drop it
Derderderd was kicked from #ruby by ruby[bot] [you don't listen... drop it]
StoneCypher has joined #ruby
djbkd has quit [Remote host closed the connection]
Madplatypus has joined #ruby
charliesome has quit [Client Quit]
djbkd has joined #ruby
<zenspider> tau: puts (...).map do ... end is like:
<zenspider> tau: puts((...).map) do ... end
Derderderd has joined #ruby
<zenspider> tau: puts (...).map { ... } is like:
milardovich has quit [Ping timeout: 245 seconds]
<zenspider> tau: puts((...).map { ... })
<Derderderd> zenspider: ok
<zenspider> tau: does that help at all? the `(...).map` is a valid argument by itself
<tau> zenspider yes. it does however, the thing that i want to call attention is:
<tau> puts((...).map) do ... end should be evaluated as puts((...).map) -> nill <-(calls do end on nill) do .. end
jenrzzz has quit [Ping timeout: 250 seconds]
<tau> because (...).map {..}.map {...} works as (..).map {} -> result-value <-inject block .map {}
<tau> get it?
<zenspider> mmmm... not sure I entirely understand that one. can you not use "->" (valid ruby syntax)
<tau> it is somehow an exception to the rule of evaluation.
StoneCypher has quit [Ping timeout: 252 seconds]
<tau> yes. dont consider -> as ruby syntax.
<tau> okay, lemme try to rewrite it.
<zenspider> wait
djbkd has quit [Ping timeout: 250 seconds]
<zenspider> kk... x.map { ...1 }.map { ...2 } works as temp = x.map { ...1 }; temp.map { ...2 }
<tau> puts((..).map) do .. end consider now (..).map {}.(..).map {..} there is a divergence in the logic of how it works.
<zenspider> that's consistent with what has been explained...
<tau> zenspider lemme try once more.
<zenspider> wait
tyang_ has quit [Read error: Connection reset by peer]
<zenspider> puts(x.map { ...1 }) do ...2 end -- that's where you're having problems?
<tau> yes.
<tau> puts(x.map {...}) do .. end shouldn't work.
<zenspider> yes, it should. sec.
<tau> but it is pretty much like puts x.map {..} do .. end.
<zenspider> ok. that's basically: temp = x.map { ...1 }; puts(temp) do ...2 end
<tau> it shouldn't work because puts x.map {..}.map {..} works.
<zenspider> no, that's wrong
<zenspider> puts does nothing with its block, that's all... it's still getting passed to it on the call to puts
<zenspider> puts(temp, &blk)
<tau> yes.
<tau> but what if puts received a block?
<zenspider> vs x.map(&blk1).map(&blk2)
<tau> how could it know which function/method should receive the block?
<zenspider> it DID receive it
h1fuelcell has quit [Remote host closed the connection]
<zenspider> how could it know what? it got passed a block. whether it uses it is entirely separate
<tau> so, when you do puts(x.map) do .. end then it is like evaluates x.map, passes it to puts then execute the block in x.map
<tau> hold on
<tau> lemme give you an example
<zenspider> >> 1.+(2) { 42 }
<ruby[bot]> zenspider: # => 3 (https://eval.in/703134)
h1fuelcell has joined #ruby
meshsmith has quit [Ping timeout: 258 seconds]
<zenspider> tau: no. applicative order. x.map gets evaluated. the result gets passed to puts with the outer block
<zenspider> the do/end is the block for puts... it doesn't get passed to map (or the result of puts) ever
<zenspider> I gotta run...
<zenspider> can someone else take this?
<tau> zenspider i have one interesting example now.
<tau> i'll post on codepad.
<tau> in a min.
<zenspider> drop me a PM so I see it
charliesome has joined #ruby
charliesome has quit [Client Quit]
aremaref has joined #ruby
nettoweb has joined #ruby
marxarelli is now known as marxarelli|afk
nankyokusei has joined #ruby
charliesome has joined #ruby
nettoweb has quit [Client Quit]
StoneCypher has joined #ruby
pwnd_nsfw` has joined #ruby
hightower3 has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
enyo_ has joined #ruby
hightower3 has joined #ruby
Channel6 has joined #ruby
StoneCypher has quit [Ping timeout: 268 seconds]
pwnd_nsfw has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
enyo_ has quit [Ping timeout: 265 seconds]
Robtop__ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
d0nn1e has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 258 seconds]
d0nn1e has joined #ruby
pawnbox has joined #ruby
houhoulis has joined #ruby
ur5us has quit [Remote host closed the connection]
charliesome has joined #ruby
dar123 has joined #ruby
StoneCypher has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 258 seconds]
flashpoint9 has joined #ruby
StoneCypher has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
__Yiota has joined #ruby
arescorpio has quit [Ping timeout: 264 seconds]
polysics has joined #ruby
aremaref has quit [Ping timeout: 248 seconds]
harai_ has joined #ruby
d^sh has quit [Ping timeout: 245 seconds]
leah2 has joined #ruby
sparch has quit [Quit: Leaving]
d^sh has joined #ruby
polysics has quit [Ping timeout: 250 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
h1fuelcell has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
djbkd has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
StoneCypher has joined #ruby
raul782 has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
yeticry has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
duderonomy has joined #ruby
StoneCypher has quit [Ping timeout: 264 seconds]
barnett has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
StoneCypher has joined #ruby
howdoi has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
yeticry has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
StoneCypher has quit [Ping timeout: 248 seconds]
symm- has quit [Quit: Leaving...]
skweek has joined #ruby
h1fuelcell has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
LoneHerm_ has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
barnett has joined #ruby
ByronJoh1son has quit [Ping timeout: 256 seconds]
jgt2 has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
ghr has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 264 seconds]
troys_ is now known as troys
moei has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
milardovich has joined #ruby
jgt2 has quit [Ping timeout: 268 seconds]
djbkd has joined #ruby
slackbotgz has joined #ruby
bruce_lee has quit [Ping timeout: 256 seconds]
ResidentBiscuit has quit []
faces has quit [Quit: Leaving]
bruce_lee has joined #ruby
faces has joined #ruby
milardovich has quit [Ping timeout: 265 seconds]
libastral has quit [Ping timeout: 252 seconds]
iMadper is now known as Madper|GYM
Madper|GYM is now known as Madper|ASUS
ByronJohnson has joined #ruby
libastral has joined #ruby
barnett has quit [Remote host closed the connection]
LoneHermit has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
barnett has joined #ruby
chadhs has joined #ruby
pilne has quit [Quit: Quitting!]
jhack has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 258 seconds]
barnett has quit [Remote host closed the connection]
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
kuSuSE has quit [Quit: Konversation terminated!]
Devalo has joined #ruby
troys is now known as troys_
ianconnolly has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Ping timeout: 258 seconds]
mostlybadfly has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
polysics has joined #ruby
hightower3 has quit [Ping timeout: 264 seconds]
jhack has quit [Quit: jhack]
flashpoint9 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
harai_ has quit [Ping timeout: 264 seconds]
hanmac has joined #ruby
polysics has quit [Ping timeout: 256 seconds]
flashpoint9 has quit [Ping timeout: 245 seconds]
marchelzo has quit [Ping timeout: 268 seconds]
joebobjoe has joined #ruby
<joebobjoe> I asked this before but no one answered (and I had to /quit early). How do I make ruby invoke a debugger when the interpreter is called from an external program? Is there some sort of environment flag I can set?
<joebobjoe> I can't change the source code
eizua has joined #ruby
enyo_ has joined #ruby
houhoulis has quit [Remote host closed the connection]
JoshS has joined #ruby
montanonic has quit [Ping timeout: 245 seconds]
bilal80 has quit [Remote host closed the connection]
Robtop__ is now known as pwnd_nsfw
robnester has quit [Ping timeout: 245 seconds]
enyo_ has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
robnester has joined #ruby
jgt2 has joined #ruby
nankyokusei has joined #ruby
harfangk has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
AndrewIsHere has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
AndrewIsHere has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 252 seconds]
AndrewIsHere has joined #ruby
aremaref has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
montanonic has joined #ruby
Cra2yZer` has joined #ruby
raul782 has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 268 seconds]
raul782 has joined #ruby
braincrash has quit [Quit: bye bye]
Cra2yZer0 has quit [Ping timeout: 246 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
SeepingN has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
maattdd has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
dnicole has quit [Remote host closed the connection]
Rodya_ has quit [Quit: Leaving...]
maattdd has quit [Ping timeout: 260 seconds]
meshsmith has joined #ruby
luckyruby has quit [Quit: Leaving...]
SteenJobs has joined #ruby
meshsmith_ has joined #ruby
meshsmith has quit [Ping timeout: 258 seconds]
meshsmith_ has quit [Remote host closed the connection]
meshsmith has joined #ruby
blackbom1 has quit [Ping timeout: 260 seconds]
fzxi has joined #ruby
braincrash has joined #ruby
polysics has joined #ruby
aremaref has quit [Ping timeout: 250 seconds]
dnicole has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 250 seconds]
polysics has quit [Ping timeout: 258 seconds]
dtzu has quit [Quit: WeeChat 1.4]
dnicole has quit [Ping timeout: 245 seconds]
<zenspider> joebobjoe: you can use $RUBYOPT to inject flags
<zenspider> joebobjoe: eg RUBYOPT=-rdebug ruby -e 42
spenser has joined #ruby
milardovich has joined #ruby
gix has quit [Ping timeout: 268 seconds]
milardovich has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
gix has joined #ruby
dnicole has joined #ruby
<tau> hi guys. it says on this tutorial https://www.tutorialspoint.com/ruby/ruby_tk_guide.htm
<tau> that Tk is the default GUI for ruby.
dnicole has quit [Remote host closed the connection]
<tau> is it outdated? i have read somewhere it is no more maintained. so not sure.
dnicole has joined #ruby
<tau> oh. great, it comes with tk. lol
<tau> nice.
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
dcluna_ has joined #ruby
gusrub has joined #ruby
Derderde1d has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
meshsmith has quit [Remote host closed the connection]
Derderderd has quit [Ping timeout: 260 seconds]
dcluna has quit [Ping timeout: 252 seconds]
dcluna_ is now known as dcluna
gusrub has quit [Ping timeout: 250 seconds]
dviola has quit [Quit: WeeChat 1.6]
milardovich has quit [Ping timeout: 252 seconds]
tubuliferous has joined #ruby
Derderderd has joined #ruby
Derderde1d has quit [Ping timeout: 268 seconds]
brent__ has joined #ruby
johnny56 has quit [Ping timeout: 246 seconds]
johnny56_ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
jz has joined #ruby
jz is now known as Guest19940
johnzorn has quit [Ping timeout: 250 seconds]
tubuliferous has quit [Ping timeout: 252 seconds]
Channel6 has quit [Quit: Leaving]
harai_ has joined #ruby
dnicole has joined #ruby
chadhs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polysics has joined #ruby
dnicole has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 258 seconds]
dnicole has joined #ruby
last_staff has joined #ruby
enyo has joined #ruby
troys_ is now known as troys
aremaref has joined #ruby
dar123 has joined #ruby
spenser has quit [Ping timeout: 240 seconds]
dnicole has quit [Ping timeout: 245 seconds]
enyo has quit [Ping timeout: 245 seconds]
polysics has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ur5us has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
_ZerGabriel_ has quit []
nankyokusei has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
jgt2 has joined #ruby
AndrewIsHere has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
jgt2 has quit [Ping timeout: 252 seconds]
tau has quit [Remote host closed the connection]
the_drow has quit [Ping timeout: 268 seconds]
the_drow has joined #ruby
AndrewIsHere has quit [Ping timeout: 258 seconds]
aremaref has quit [Ping timeout: 258 seconds]
tmtwd has joined #ruby
Madper|ASUS is now known as iMadper|AI
milardovich has joined #ruby
dionysus69 has joined #ruby
bocaneri has joined #ruby
milardovich has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 250 seconds]
milardovich has joined #ruby
sigu has joined #ruby
sigu has left #ruby [#ruby]
sigu has joined #ruby
kareelee has joined #ruby
sigu has quit [Quit: sigu]
mkali has joined #ruby
astrobunny has joined #ruby
cippaciong has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
BrianJ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cippacio1 has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
troys has quit [Quit: Bye]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rippa has joined #ruby
raul782 has quit [Remote host closed the connection]
antoniobeyah has quit [Ping timeout: 256 seconds]
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
pawnbox has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
antoniobeyah has joined #ruby
matp has quit [Remote host closed the connection]
matp has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
kareelee has quit [Ping timeout: 258 seconds]
tmtwd has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
CloCkWeRX has joined #ruby
tmtwd has quit [Remote host closed the connection]
ddffg has joined #ruby
teclator has quit [Remote host closed the connection]
teclator has joined #ruby
milardovich has quit []
kies has quit [Ping timeout: 268 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
doubleemms has quit [Remote host closed the connection]
rykou has joined #ruby
mkali has quit [Ping timeout: 248 seconds]
<dminuoso> Wow. So I had my first SIGBUS error in library *without* a self-written extension.
<dminuoso> That was followed by tons of bizarre errors, segmentation faults.
<dminuoso> Ruby crashing over and over again.
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dminuoso> All because this stupid library is not thread safe. :(
kies has joined #ruby
byte512 has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
eggshke has joined #ruby
enyo has joined #ruby
Dimik has quit []
Derderderd has quit [Quit: leaving]
mkali has joined #ruby
<joebobjoe> zenspider: thanks
Devalo has joined #ruby
polysics has joined #ruby
enyo has quit [Ping timeout: 265 seconds]
tubuliferous has joined #ruby
teclator has quit [Remote host closed the connection]
muelleme has joined #ruby
doubleemms has joined #ruby
Devalo has quit [Ping timeout: 247 seconds]
amclain has quit [Quit: Leaving]
doubleemms has quit [Ping timeout: 258 seconds]
dnicole has joined #ruby
konsolebox has joined #ruby
spenser has joined #ruby
testuser1 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
dnicole has quit [Ping timeout: 258 seconds]
jtdoncas has quit [Ping timeout: 265 seconds]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 248 seconds]
kassav has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
Robtop__ has joined #ruby
nankyokusei has joined #ruby
ur5us has joined #ruby
jgt2 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 268 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
jgt2 has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has joined #ruby
kies has quit [Ping timeout: 246 seconds]
Robtop__ has quit [Ping timeout: 248 seconds]
qwertran2om has joined #ruby
mavenik[m] has joined #ruby
blaxter has joined #ruby
stevednd has joined #ruby
troulouliou_div2 has joined #ruby
<qwertran2om> hi,guys
<stevednd> is it possible to use kwargs multiple levels deep? {args: {stuff: 123}} is there a way to define the method signature so I can have a variable `stuff`?
tubuliferous has quit [Ping timeout: 250 seconds]
<dminuoso> stevednd: no and yes.
<dminuoso> stevednd: Just by showing the lexer that somewhere in your method there is an assignment to a variable "stuff", it adds this information to the method itself.
djbkd has joined #ruby
<dminuoso> asm>> if false; stuff = nil; end;
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/703313
<dminuoso> asm>> def foo; if false; stuff = nil; end; end
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/703314
mkali has quit [Ping timeout: 258 seconds]
<dminuoso> stevednd: ^- as you can see the variable "stuff" is added to the locals table, even though it's not used
pwnd_nsfw has joined #ruby
<stevednd> dminuoso: I'm not sure I follow. If I were to define a method `def do_things(args:); puts args; end` I will get an output of `{stuff: 123}`. I'm looking for something like `def do_things(args:stuff:); puts stuff; end` where I then get the value 123 printed out.
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
raul782 has joined #ruby
nofxxx has joined #ruby
muelleme has quit [Ping timeout: 256 seconds]
aganov has joined #ruby
kies has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
raul782 has quit [Ping timeout: 246 seconds]
h1fuelcell has quit [Remote host closed the connection]
<kke> terminology question. for example, the gem mutations, is there some more generic name for this kind of service objects?
pwnd_nsfw has quit [Ping timeout: 258 seconds]
vondruch has joined #ruby
SpiffTR has joined #ruby
pwnd_nsfw has joined #ruby
dionysus70 has joined #ruby
<kke> task = Task.new(args); task.valid? task.run; task.success?; task.result. maybe i go with task. it sounds ok.
dionysus69 has quit [Ping timeout: 250 seconds]
dionysus70 is now known as dionysus69
<testuser1> hello gents.. i am beginner to ruby. trying to implement a function that reads value from a file then iterate over values for another comparison…. looks like i am making some syntax mistake and stuck for a long time.. can someone help ?
<qwertran2om> Just ask
xrlk has joined #ruby
<qwertran2om> it's okay
doubleemms has joined #ruby
<testuser1> thanks!
walterheck has joined #ruby
<testuser1> added some comments https://eval.in/703341
bluOxigen has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
<qwertran2om> @testuser1 I choose Ruby 2.1 to run your code and the output reminds me that you missed a '('.
<dminuoso> stevednd: just do args: nil
<dminuoso> oh wait.
<dminuoso> mmm
djbkd has quit [Quit: Leaving...]
<dminuoso> stevednd: can you make a simple gist showing how you would define and call that method?
<nofxxx> testuser1, also, behold the absence of drudgery... just arr = anything.that_become_array
<stevednd> sure. I don't think there's a way though that I can conceive of to do it. I've tried a multitude of syntax combinations
<nofxxx> or, no need to pre-instantiate/create vars before in ruby
astrobunny has quit [Remote host closed the connection]
<testuser1> ok… i have issues in bottom part ( during elements iteration ) i.e. in for loop..
aupadhye has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
<testuser1> nofxxx: any suggestion to get this fixed ?
SpiffTR has quit [Quit: Leaving.]
doubleemms has quit [Remote host closed the connection]
doubleemms has joined #ruby
doubleemms has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 256 seconds]
h1fuelcell has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
eggshke has quit []
harai_ has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
<testuser1> anyone ?
anisha has joined #ruby
bluOxigen has joined #ruby
blaxter has quit [Quit: foo]
Mortomes|Work has joined #ruby
dnicole has joined #ruby
nettoweb has joined #ruby
elastix has joined #ruby
flying has joined #ruby
<stevednd> testuser1: you need to escape the forward slashes
<stevednd> /"\/bin\/su - item"/
<testuser1> now i am getting "11: unexpected return (LocalJumpError)"
<zenspider> stevednd: the answer to your question is: no. I have NO idea where dminuoso was going with that
<dminuoso> stevednd: Well it's definitely not possible syntax-wise what you are looking for. Usually you would just have a def foo(opts = {})
jgt2 has joined #ruby
<testuser1> thanks.. escape thing worked
<testuser1> but still getting "11: unexpected return (LocalJumpError)"
<zenspider> args[:stuff] will have to suffice
cibs has quit [Ping timeout: 268 seconds]
<dminuoso> Though.
<dminuoso> stevednd: I can think of a way to make it happen.
<zenspider> testuser1: top level return makes no sense to ruby
<dminuoso> stevednd: It just requires binding_of_caller..
aupadhye has joined #ruby
pwnd_nsfw` has joined #ruby
<dminuoso> stevednd: Essentially you could write a helper method, so that you could do def foo(opts={}); expose_nested opts, :stuff, :quux, :foo; end
cibs has joined #ruby
biberu has joined #ruby
<zenspider> testuser1: elements isn't defined as an array but you're enumerating over it. and you're not using interpolation for "item"
<zenspider> expose it how?
<testuser1> elements=arr.join(" ")
jenrzzz has joined #ruby
<testuser1> isn't that becomes array ?
<zenspider> read the doco on Array#join
<stevednd> zenspider: yeah, I didn't think so. I can't be the first one interested in it though. It's a feature that JS has, and it's definitely pretty nice.
<testuser1> okies
<zenspider> stevednd: meh. I prefer more explicit cleaner code myself.
<zenspider> wasn't aware that JS had that... what's it called? URL?
pwnd_nsfw has quit [Ping timeout: 252 seconds]
<zenspider> thanks
ishe_ua has joined #ruby
<zenspider> ok... so like a very simple version of ML or racket's matching
<stevednd> np. that example honestly makes it look horribly complicated, but I think it's just because they wanted to demonstrate the ability to rename on nested while also pulling out of an array
SpiffTR has joined #ruby
<zenspider> I don't like the way it reads tho
<stevednd> could just as easily have written it as {title: , translations: {locale:}}
<stevednd> def a(title:, translations: {locale:}) doesn't look too bad to me
<herwin> it looks to me as if a translation-object would be more suitable than a nested hash
teclator has joined #ruby
enyo has joined #ruby
troulouliou_div2 has quit [Ping timeout: 252 seconds]
<stevednd> you have to have the second set of braces because they also allow destructuring from an array. if you wanted to ust allow from hashes you could probably get away with `translations:locale:` or something of the sort
joebobjoe has quit [Ping timeout: 258 seconds]
<stevednd> herwin: maybe so, but that's not really the point.
<stevednd> not everything is always going to end up passed around in objects
astrobunny has joined #ruby
tvm has joined #ruby
<stevednd> dminuoso: yeah, the binding_of_caller option is definitely overkill. I was really just looking for the convenience
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stevednd> it's a neat idea though
<tvm> hi, non-rubyist here, what really happens when Foo::bar.new.run(blah,blah) is called ? I'd say that the class is instantiated without parameters, then the method run is called on the instance with given params, is that correct ?
enyo has quit [Ping timeout: 250 seconds]
<zenspider> tvm: mostly
qwertran2om has quit [Quit: leaving]
qwertran2om has joined #ruby
qwertran2om has quit [Client Quit]
<zenspider> probably should be Foo::Bar, in which case there is a constant lookup phase. that could call methods to resolve... then new w/o args. then blah and blah are evaluated (they could be calls)... THEN run is sent to the Foo::Bar instance with the results
qwertran2om has joined #ruby
j3r0 has quit [Ping timeout: 258 seconds]
<tvm> thank you
<zenspider> n/p
vuoto has joined #ruby
djbkd has quit []
troulouliou_div2 has joined #ruby
mim1k|work has joined #ruby
joebobjoe has joined #ruby
Jackneill has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
Devalo has joined #ruby
mim1k|wo1k has quit [Ping timeout: 258 seconds]
beilabs has quit []
frozengeek has joined #ruby
vuoto has quit [Remote host closed the connection]
joebobjoe has quit [Ping timeout: 258 seconds]
joebobjoe has joined #ruby
astrobunny has quit [Remote host closed the connection]
lenwood has joined #ruby
blackbom1 has joined #ruby
walterheck has quit [Ping timeout: 245 seconds]
astrobunny has joined #ruby
joebobjoe has quit [Ping timeout: 256 seconds]
beilabs has joined #ruby
<qwertran2om> Is there any Ruby projects or good open source code to read or pratice?
jaguarmagenta has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
enterprisey has quit [Remote host closed the connection]
<zenspider> yes, lots. what are you interested in studying?
jaguarmagenta has quit [Ping timeout: 264 seconds]
antoniobeyah has quit [Ping timeout: 250 seconds]
<zenspider> I *love* it when questions are asked with no intent of follow-up
doubleemms has joined #ruby
<testuser1> qwertran2om: fix my code https://eval.in/703356 :)
<qwertran2om> Oh, I thikn Ruby is cool, and I want practice more in OpenSource World, because my daiy work didn't give me the chance to use it. They use PHP mostly
eightbitraptor has joined #ruby
<zenspider> testuser1: I gave you enough hints to fix your code afaik
h1fuelcell has joined #ruby
<qwertran2om> @testuser1 I thinks the "Program Output" is quiet clear, and you can make it.
<testuser1> still struggling :(
<zenspider> testuser1: what are you struggling with?
postmodern has joined #ruby
<testuser1> string interpolation
joebobjoe has joined #ruby
zapata has quit [Ping timeout: 258 seconds]
<bhaak> there is no string interpolation in that code
<bhaak> line 14 should probably not be an end
<testuser1> i was enumerating over array ( in reality it's string )..
montanonic has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
<zenspider> testuser1: have you fixed the basic syntax problem in the output?
h1fuelcell has quit [Ping timeout: 248 seconds]
joebobjoe has quit [Ping timeout: 246 seconds]
AndrewIsHere has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
cfec0b8d has quit [Ping timeout: 265 seconds]
walterheck has joined #ruby
rodfersou has joined #ruby
blackbom1 has quit [Ping timeout: 246 seconds]
<zenspider> so you're still not having a problem with interpolation
<zenspider> look at the error you _have_, and deal with that first
<zenspider> get SOMETHING working, and then fix it
<zenspider> undefined method `each' for "[]":String
AndrewIsHere has quit [Ping timeout: 240 seconds]
nofxxx has quit [Ping timeout: 248 seconds]
zapata has joined #ruby
Hink has quit [Quit: quit from client]
Robtop__ has joined #ruby
Hink has joined #ruby
SpiffTR has quit [Ping timeout: 248 seconds]
blackbom1 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 248 seconds]
SpiffTR has joined #ruby
gbgdev has joined #ruby
Fernando-Basso has joined #ruby
astrobunny has quit [Remote host closed the connection]
joebobjoe has joined #ruby
montanonic has joined #ruby
dviola has joined #ruby
joebobjoe has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
StoneCypher has joined #ruby
dionysus69 has joined #ruby
StoneCypher has quit [Ping timeout: 245 seconds]
* qwertran2om test
joebobjoe has joined #ruby
marr has joined #ruby
teclator has quit [Remote host closed the connection]
teclator has joined #ruby
joebobjoe has quit [Ping timeout: 250 seconds]
kassav has quit [Quit: kassav]
kassav_ has joined #ruby
kassav_ is now known as kassav
doubleemms has quit [Ping timeout: 240 seconds]
SpiffTR has quit [Quit: Leaving.]
<PaulePanter> The second implementation always returns false, and I don’t see why.
<PaulePanter> My main question though is, if you can tell me other Ruby ways to do that elegantly.
<herwin> PaulePanter: I think you swapped the arguments in the block there
flashpoint9 has joined #ruby
montanonic has quit [Remote host closed the connection]
Tralin has quit [Quit: ZNC 1.6.2 - http://znc.in]
qwertran2om has quit [Quit: leaving]
qwertran1om has joined #ruby
charliesome has joined #ruby
qwertran1om has quit [Client Quit]
Tralin has joined #ruby
<zenspider> agreed... each_with_index do |value, index|
kareelee has joined #ruby
jaegerca has quit [Ping timeout: 256 seconds]
walterheck has quit [Ping timeout: 246 seconds]
obiwahn has quit [Quit: WeeChat 1.6-dev]
pwnd_nsfw has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troulouliou_div2 has joined #ruby
Robtop__ has quit [Ping timeout: 256 seconds]
demoo has joined #ruby
enyo has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
eggshke has joined #ruby
<apeiros> PaulePanter: you don't need the slicing with each_cons
<apeiros> and just as I said yesterday - just use .all?
<PaulePanter> herwin, zenspider: Indeed, that was it, thank you.
<apeiros> ary.each_cons(3).all? { |a,b,c| b == a + c }
troulouliou_div2 has quit [Quit: Leaving]
<apeiros> (use better fitting names than a,b,c)
sepp2k has joined #ruby
<PaulePanter> The second implemention now looks like http://paste.debian.net/904187/.
enyo has quit [Ping timeout: 250 seconds]
<PaulePanter> apeiros: I’ll take a look. Sorry for missing that yesterday.
frozengeek has quit [Quit: frozengeek]
Tralin has quit [Quit: ZNC 1.6.2 - http://znc.in]
frozengeek has joined #ruby
walterheck has joined #ruby
Tralin has joined #ruby
walterheck has quit [Max SendQ exceeded]
<PaulePanter> apeiros: Awesome. I like that. Hopefully I have time to benchmark all three implementations, just out of curiosity.
walterheck has joined #ruby
<demoo> hey all, I'm thinking of learning ruby on rails. I've never worked with any web framework before, is just following a tutorial the best course of action or would someone recommend I get some specific prior knowledge?
<dminuoso> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<demoo> thank you sir
ur5us has quit [Remote host closed the connection]
astrobunny has joined #ruby
testuser1 has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
last_staff has quit [Ping timeout: 258 seconds]
gregf_ has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
nowhereman has quit [Ping timeout: 268 seconds]
eightbit1aptor has joined #ruby
joebobjoe has joined #ruby
meshsmith has joined #ruby
eightbitraptor has quit [Ping timeout: 250 seconds]
doubleemms has joined #ruby
sepp2k has quit [Ping timeout: 258 seconds]
demoo has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 246 seconds]
eggshke has quit []
joebobjoe has quit [Ping timeout: 258 seconds]
lenwood has joined #ruby
cajone has joined #ruby
jaguarmagenta has joined #ruby
eightbit1aptor has quit [Quit: leaving]
eightbitraptor has joined #ruby
Phyllotaxis has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
jaguarmagenta has quit [Ping timeout: 268 seconds]
gbgdev_ has joined #ruby
marchelzo has joined #ruby
gbgdev has quit [Ping timeout: 256 seconds]
Guest33843 has joined #ruby
SpiffTR has joined #ruby
gbgdev_ has quit [Remote host closed the connection]
Guest33843 is now known as Imago
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
nankyokusei has joined #ruby
raul782 has joined #ruby
beilabs_ has joined #ruby
SpiffTR has quit [Quit: Leaving.]
Devalo has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 268 seconds]
beilabs has quit [Ping timeout: 250 seconds]
AndrewIsHere has joined #ruby
Hink has quit [Quit: quit from client]
Hink has joined #ruby
joebobjoe has joined #ruby
nettoweb1 has joined #ruby
manjaro-kde5 has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
lenwood has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
nettoweb has quit [Ping timeout: 246 seconds]
AndrewIsHere has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
mwlang has quit [Quit: mwlang]
astrobunny has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
colegatron has quit [Ping timeout: 258 seconds]
joebobjoe has quit [Ping timeout: 250 seconds]
Imago has quit [Quit: leaving]
anisha has joined #ruby
Devalo has joined #ruby
kareelee_ has joined #ruby
Hink has quit [Quit: quit from client]
GodFather has joined #ruby
Hink has joined #ruby
AlexRussia has joined #ruby
blackbom1 has quit [Ping timeout: 264 seconds]
kareelee has quit [Ping timeout: 250 seconds]
blackbom1 has joined #ruby
kareelee_ is now known as kareelee
doubleemms has quit [Ping timeout: 258 seconds]
manjaro-kde5 has quit [Quit: Konversation terminated!]
manjaro-kde5 has joined #ruby
colegatron has joined #ruby
last_staff has joined #ruby
StoneCypher has joined #ruby
opt9 has quit [Quit: Bye bye]
MrBusiness2 has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
opt9 has joined #ruby
opt9 is now known as Guest66925
mikecmpbll has joined #ruby
StoneCypher has quit [Ping timeout: 258 seconds]
jhack has joined #ruby
SesMan has joined #ruby
shinnya has joined #ruby
psycho_one has quit [Ping timeout: 246 seconds]
jtdoncas has joined #ruby
Hink has quit [Quit: quit from client]
<marchelzo> if a module Foo has a method bar, do you write Foo::bar or Foo.bar to call it?
<marchelzo> they both seem to work
Hink has joined #ruby
manjaro-kde5 has quit [Ping timeout: 258 seconds]
jtdoncas has quit [Ping timeout: 268 seconds]
beilabs_ has quit [Remote host closed the connection]
Guest66925 has quit [Quit: Bye bye]
konsolebox has quit [Quit: Leaving]
jhack has quit [Quit: jhack]
pwnd_nsfw` has joined #ruby
gbgdev has joined #ruby
kareelee has quit [Read error: Connection reset by peer]
cajone has quit [Remote host closed the connection]
gbgdev has quit [Remote host closed the connection]
mwlang has joined #ruby
enyo has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
<dminuoso> marchelzo: You can, though the name resolution operator should not be used for it.
<marchelzo> so Foo.bar is preferred?
<dminuoso> marchelzo: Yeah. Note that its not a method of the module Foo though.
<dminuoso> It's a method of its singleton class.
A124 has quit [Read error: No route to host]
<marchelzo> ah, i see
<dminuoso> >> module Foo; def bar; end; end # marchelzo: here the module Foo has a method bar, but you cannot call this with Foo.bar
<ruby[bot]> dminuoso: # => :bar (https://eval.in/703551)
<marchelzo> what is the point of giving modules methods? is it just for mixins?
cajone has joined #ruby
<dminuoso> marchelzo: Correct.
<marchelzo> so the name resolution operator is only used to access module constants?
<dminuoso> marchelzo: By convention, yes.
<marchelzo> thank you
kareelee has joined #ruby
barkode has joined #ruby
eightbitraptor has quit [Ping timeout: 250 seconds]
barkode has left #ruby [#ruby]
A124 has joined #ruby
enyo has quit [Ping timeout: 264 seconds]
manjaro-kde5 has joined #ruby
j3r0 has joined #ruby
enyo has joined #ruby
lightstalker has quit [Ping timeout: 256 seconds]
dionysus70 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
lightstalker has joined #ruby
flying has quit [Ping timeout: 248 seconds]
flying has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cajone has quit [Remote host closed the connection]
rodferso1 has joined #ruby
opt9` has joined #ruby
enyo has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
_sfiguser has joined #ruby
hightower2 has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
opt9` has quit [Client Quit]
synthroid has joined #ruby
johnmilton has joined #ruby
cajone has joined #ruby
astrobunny has joined #ruby
fzxi has quit [Ping timeout: 252 seconds]
xen0fon has quit [Quit: xen0fon]
walterheck has quit [Ping timeout: 258 seconds]
xen0fon has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 258 seconds]
synthroi_ has joined #ruby
Robtop__ has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
opt9 has joined #ruby
opt9 is now known as Guest42991
synthroid has quit [Ping timeout: 258 seconds]
Guest42991 is now known as opt9`
opt9` has quit [Client Quit]
pwnd_nsfw` has quit [Ping timeout: 268 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
Hink has quit [Quit: quit from client]
doubleemms has joined #ruby
tubuliferous has joined #ruby
Hink has joined #ruby
opt9` has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
opt9` has quit [Client Quit]
hightower3 has joined #ruby
__Yiota has joined #ruby
hightower2 has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
tubuliferous has quit [Ping timeout: 264 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
ledestin has joined #ruby
manjaro-kde5 has quit [Ping timeout: 268 seconds]
blackbom1 has quit [Ping timeout: 252 seconds]
Mia has joined #ruby
hightower2 has joined #ruby
tenderlove has quit [Ping timeout: 264 seconds]
opt9` has joined #ruby
pwnd_nsfw has joined #ruby
kareelee has quit [Remote host closed the connection]
opt9` has quit [Client Quit]
gcds has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
gcds has quit [Client Quit]
Robtop__ has quit [Ping timeout: 258 seconds]
Kug3lis has joined #ruby
teclator has quit [Remote host closed the connection]
Kug3lis is now known as Kug3lis_off
anisha has quit [Ping timeout: 258 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has quit [Ping timeout: 265 seconds]
jeffreylevesque has joined #ruby
teclator has joined #ruby
eightbitraptor has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
beilabs has joined #ruby
jaguarmagenta has joined #ruby
mkali has joined #ruby
qwertrandom has joined #ruby
beilabs has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 250 seconds]
kassav has quit [Remote host closed the connection]
kassav has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 250 seconds]
h1fuelcell has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 250 seconds]
teclator has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
_sfiguser has quit [Ping timeout: 258 seconds]
beilabs has joined #ruby
doubleemms has quit [Ping timeout: 258 seconds]
tvm has quit [Ping timeout: 265 seconds]
jhack has joined #ruby
nankyokusei has joined #ruby
andrewvos has joined #ruby
tvm has joined #ruby
blackbom1 has joined #ruby
<andrewvos> If the user were given access to this method through a Rails param, can anyone think of a way they could break out of `dir`? https://gist.github.com/AndrewVos/aa06b0f981c11d88563975e21ff642e7
hightower2 has joined #ruby
sepp2k has quit [Quit: Leaving.]
JamesDH has joined #ruby
<andrewvos> Like, get access to files outside that content directory
last_staff has quit [Quit: last_staff]
Devalo has joined #ruby
opt9 has joined #ruby
hightower3 has quit [Ping timeout: 246 seconds]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
opt9 is now known as Guest14068
Guest14068 is now known as opt9`
nankyokusei has quit [Ping timeout: 268 seconds]
JamesDH is now known as JamesDHendrick
AndrewIsHere has joined #ruby
tvm has quit [Ping timeout: 258 seconds]
<andrewvos> Dir.glob("**/..") does not appear to work as I would expect.
AndrewIsHere has quit [Ping timeout: 258 seconds]
<andrewvos> Which is a good thing in that case obvs
opt9` has quit [Quit: Bye bye]
nadir has joined #ruby
_sfiguser has joined #ruby
opt9 has joined #ruby
AlexRussia has joined #ruby
opt9 is now known as Guest43529
Guest43529 has quit [Client Quit]
manjaro-kde5 has joined #ruby
opt9 has joined #ruby
_sfiguser has quit [Remote host closed the connection]
opt9 has quit [Client Quit]
opt9 has joined #ruby
opt9 has quit [Client Quit]
opt9 has joined #ruby
rodferso1 is now known as rodfersou|lunch
vuoto has joined #ruby
h1fuelce_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 268 seconds]
<yorickpeterse> andrewvos: don't think so
jhack has quit [Quit: jhack]
<yorickpeterse> since there's IIRC no way of escaping things in glob patterns
h1fuelcell has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
<andrewvos> Heya yorickpeterse! Do you mean it should be safe *because* there's no way of escaping things?
kirun has joined #ruby
<yorickpeterse> Yes, I think it's safe
<andrewvos> Oh cool, yeah it also seems like it to me. Not the best code though but oh well
<marchelzo> so do i, and i've been learning ruby for 3 days now
<marchelzo> so i'm pretty much an authority
<andrewvos> marchelzo thanks your input is really important
<marchelzo> any time
<andrewvos> hope that didn't sound mean, I was legit trying to make a joke
<andrewvos> I am not good at jokes
<andrewvos> or ruby
StoneCypher has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
tubuliferous has joined #ruby
<marchelzo> don't worry i understood
sepp2k has joined #ruby
<marchelzo> i crept your github profile
<marchelzo> you've been doing ruby for at least 6 years so you must be pretty good by now
ishe_ua has quit [Remote host closed the connection]
<andrewvos> you would think so
chadhs has joined #ruby
manjaro-kde5 has quit [Ping timeout: 260 seconds]
JamesDHendrick has quit [Quit: Textual IRC Client: www.textualapp.com]
StoneCypher has quit [Ping timeout: 260 seconds]
beilabs has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
DLSteve has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
enyo has joined #ruby
jaguarmagenta has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
jtdoncas has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.6]
enyo has quit [Ping timeout: 260 seconds]
eizua has quit [Quit: Leaving]
<blackbom1> marchelzo: what happened to 15 minutes? :D
matp has quit [Quit: Bye!]
<marchelzo> ruby is not easy
saslam has joined #ruby
jtdoncas has quit [Ping timeout: 245 seconds]
joebobjoe has joined #ruby
StoneCypher has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
<atmosx> marchelzo: i think it is easy to learn (I can do it! Everybody can) - but as most things, it's hard to master (much like the guitar)
<atmosx> I find concepts in ruby much clealer than say JS (e.g. showing what a class is)
enyo has joined #ruby
<qwertrandom> yes, feel so too
chadhs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marchelzo> really?
<marchelzo> i find javascript's object model a lot easier to grok
Devalo has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
gbgdev has joined #ruby
saslam has quit [Ping timeout: 248 seconds]
gbgdev has quit [Remote host closed the connection]
gbgdev has joined #ruby
joebobjoe has quit [Ping timeout: 256 seconds]
StoneCypher has quit [Ping timeout: 258 seconds]
flashpoint9 has quit [Remote host closed the connection]
enyo has quit [Ping timeout: 250 seconds]
spenser has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
JohnChristie has joined #ruby
brendan- has joined #ruby
Kug3lis_off has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
joebobjoe has joined #ruby
johnmilton has quit [Remote host closed the connection]
frozengeek has quit [Quit: frozengeek]
doubleemms has joined #ruby
Kug3lis has joined #ruby
qwertrandom has left #ruby [#ruby]
chadhs has joined #ruby
yeticry has quit [Remote host closed the connection]
joebobjoe has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
ddffg has quit [Remote host closed the connection]
chadhs has quit [Client Quit]
doubleemms has quit [Ping timeout: 240 seconds]
eightbitraptor has quit [Ping timeout: 248 seconds]
raatiniemi has quit [Read error: Connection reset by peer]
tvm has joined #ruby
raatiniemi has joined #ruby
chouhoulis has joined #ruby
SpiffTR has joined #ruby
dionysus69 has joined #ruby
spenser has joined #ruby
matp has joined #ruby
AndrewIsHere has joined #ruby
d0nn1e has quit [Ping timeout: 265 seconds]
d0nn1e has joined #ruby
mkali has quit [Ping timeout: 250 seconds]
SpiffTR has quit [Quit: Leaving.]
AndrewIsHere has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
flashpoint9 has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
h1fuelce_ has quit [Remote host closed the connection]
polishdub has joined #ruby
BrianJ has joined #ruby
Axy has joined #ruby
siddart has joined #ruby
SpiffTR has quit [Client Quit]
beilabs has joined #ruby
teclator has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 246 seconds]
aryaching has joined #ruby
teclator has joined #ruby
cfec0b8d has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
JoshS has quit [Ping timeout: 250 seconds]
brendan- has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
Devalo has quit [Ping timeout: 252 seconds]
Kug3lis is now known as Kug3lis_off
Kug3lis_off is now known as Kug3lis
<soahccc> So I updated a few system libraries and a few gems are broken which I can fix with "gem pristine". What can I do about readline stuff? Do I have to rebuild ruby and if, can I use the same directory with ruby-build (sort of installing over the existing installation)
kith has quit [Quit: kith]
ponga has joined #ruby
doubleemms has joined #ruby
SpiffTR has joined #ruby
Guest57838 has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
astrobunny has quit [Ping timeout: 250 seconds]
PaulCapestany has quit [Quit: .]
kareelee has joined #ruby
doubleemms has quit [Ping timeout: 240 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
cfec0b8d has quit [Ping timeout: 248 seconds]
PaulCapestany has joined #ruby
JohnChristie has quit [Quit: ragequit]
meshsmith has quit [Remote host closed the connection]
<andrewvos> just remove it first maybe
gregf_ has quit [Quit: Page closed]
teclator has quit [Remote host closed the connection]
Kug3lis is now known as Kug3lis_off
h1fuelcell has joined #ruby
brian_penguin has joined #ruby
jgt2 has quit [Ping timeout: 258 seconds]
dar123 has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
Mortomes|Train has joined #ruby
muelleme has joined #ruby
Guest19940 is now known as johnzorn
Kug3lis_off has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 252 seconds]
<marchelzo> readline is overrated
<marchelzo> i use pry-coolline
dar123 has quit [Ping timeout: 245 seconds]
CorthValira has joined #ruby
dionysus69 has joined #ruby
<blackbom1> marchelzo: you learn fast
<marchelzo> blackbom1: what do you mean
<blackbom1> you've been learning ruby for a day, maybe a few and already you've discovered gems most people don't use.
cyphase has quit [Ping timeout: 260 seconds]
Kug3lis has joined #ruby
nankyokusei has joined #ruby
newbie1 has joined #ruby
brian_penguin has quit [Quit: Leaving]
PaulCapestany has quit [Quit: .]
cyphase has joined #ruby
aganov has quit [Quit: Leaving]
Kug3lis has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
PaulCapestany has joined #ruby
muelleme has quit [Ping timeout: 245 seconds]
synthroi_ has quit [Remote host closed the connection]
vondruch has left #ruby [#ruby]
eightbitraptor has joined #ruby
CorthValira has quit [Quit: CorthValira]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
ben__ has joined #ruby
CorthValira has joined #ruby
SteenJobs has joined #ruby
PaulCapestany has quit [Quit: .]
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Client Quit]
rodfersou|lunch is now known as rodfersou
PaulCapestany has joined #ruby
ryan_notabot has quit [Ping timeout: 252 seconds]
zacts has joined #ruby
ryan_notabot has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
eightbitraptor has quit [Ping timeout: 265 seconds]
SpiffTR1 has joined #ruby
cyphase has joined #ruby
<johnzorn> Anyone use cfndsl? Is there a way of dividing your template into parts and including/requiring them?
antoniobeyah has joined #ruby
jrafanie has joined #ruby
SpiffTR has quit [Ping timeout: 252 seconds]
PaulCapestany has quit [Quit: .]
jrafanie has quit [Client Quit]
balazs has quit [Remote host closed the connection]
enyo has joined #ruby
PaulCapestany has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
Axy has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
enyo has quit [Ping timeout: 248 seconds]
roflmyeggo has joined #ruby
yardenbar has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
ryan_notabot has quit [Quit: Leaving]
doubleemms has joined #ruby
Mia has joined #ruby
yardenbar has quit [Ping timeout: 248 seconds]
SteenJobs has quit [Quit: SteenJobs]
SpiffTR1 has quit [Quit: Leaving.]
doubleemms has quit [Ping timeout: 245 seconds]
hightower3 has joined #ruby
Mortomes|Train has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
JoshS has joined #ruby
eightbitraptor has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
vuoto has quit [Remote host closed the connection]
byte512 has quit [Ping timeout: 245 seconds]
andrewvos has quit [Ping timeout: 252 seconds]
hightower3 has joined #ruby
SpiffTR has joined #ruby
eightbitraptor has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
mkali has joined #ruby
SpiffTR has quit [Read error: Connection reset by peer]
hightower3 has quit [Ping timeout: 258 seconds]
vulcam has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
gigetoo has joined #ruby
brian_penguin has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
siddart has quit [Read error: Connection reset by peer]
<vulcam> y deanker pegger
<vulcam> Fun buns. Five a lump. Rash neh. Five trump. Rump. I said daddy deaddy dean to bun thing. I said a reanker pegger puh nigger
<vulcam> Fun baddy dean I said a run trum thinking. Somethinkinking. I'm to be a rean to bad dean I am trum thinking a lum.en I said daddy dean bun uh puh-pum. Rump. I said a reanker pegger puh pum puh muh nigger. Rump. I said am rum thinking. Ass nigger. Ass nigger puh muh muh puh nigger
<vulcam> Funs. Rump. A can be a rean bun thing am pum. Rump-pump-puh-pum. I said a lum run uh pump. Somethinking. A canking. Rump. Rash neh. Rash nigger. A canker pegger. Rump. I'm puh muh when I said daddy buns. Rash nigger. Rum puh muh puh puh-pum.m run buns. Rum puh pegger. A canker pegger. Five trum pegger. A can bad dead daddy deaddy bun uh muh puh-pump-puh-pump-pum. Rum thing about rum
<vulcam> thing about rum thinking. Rash nigger
<vulcam> Funs. Five thinking. Five to be a lump-pump. Somethinkinking. Something am thing. I'm thing. Five trun to bun uh puh puh pump. Ass nigger
<vulcam> Fun I am to be am thing. Somethinking about runs. I said am run to bun baddy be a lump-pum.ss nigger. A can bun uh when I said daddy buns. I said a lump. Rump. A cankinking am puh-pum. Something. Rump-puh muh muh puh pum. Rump. Rump-pum. Rash nigger. A can bad dead a lump-pump. Five trump-puh puh nigger
<vulcam> Fun buns. Five to be a lum pum puh muh puh muh muh muh puh neh. Rump. I'm run uh puh puh muh nigger. Ass neh. A can be trump-pump. I a rum. A canker pegger. Rump-puh puh muh neh. I'm thinking about run bun trun uh pegger. Rum.A canking about rump-pump-pum. Rump-pum pump. A canking. A canking about rump-puh pum. Something. I'm thinking. Ass nigger
<havenwood> !spam vulcam
vulcam was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
siddart has joined #ruby
sepp2k has quit [Quit: Leaving.]
antoniobeyah has joined #ruby
vondruch has joined #ruby
CorthValira has quit [Quit: CorthValira]
elastix has quit [Quit: Leaving]
CorthValira has joined #ruby
<apeiros> oy, bad case of verbal dysentery
joebobjoe has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
mkali has quit [Quit: mkali]
gusrub has joined #ruby
GodFather has quit [Remote host closed the connection]
SpiffTR has joined #ruby
manjaro-kde5 has joined #ruby
joebobjoe has quit [Ping timeout: 258 seconds]
SpiffTR has quit [Client Quit]
<marchelzo> looks like a markov chain with not enough input
GodFather has joined #ruby
anisha has joined #ruby
brian_penguin has quit [Quit: Leaving]
Guest57838 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
xen0fon1 has joined #ruby
libastral has quit [Quit: ZNC - http://znc.in]
jenrzzz has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
xen0fon has quit [Ping timeout: 245 seconds]
xen0fon1 is now known as xen0fon
tubuliferous has joined #ruby
dnicole has quit [Remote host closed the connection]
Devalo has joined #ruby
kirun_ has joined #ruby
joebobjoe has joined #ruby
kirun has quit [Ping timeout: 246 seconds]
tildes has joined #ruby
h1fuelcell has quit [Ping timeout: 256 seconds]
doubleemms has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
kuSuSE has joined #ruby
doubleemms has quit [Client Quit]
kassav has quit [Ping timeout: 258 seconds]
manjaro-kde5 has quit [Ping timeout: 260 seconds]
ryan_notabot has joined #ruby
harai_ has joined #ruby
exchgr has quit [Quit: ZNC - http://znc.in]
vuoto has joined #ruby
<johnzorn> Is it possible to create a function import('relative_path') not within the same file but in a library file?
exchgr has joined #ruby
enilsen16 has joined #ruby
<havenwood> johnzorn: Say more?
aremaref has joined #ruby
<havenwood> johnzorn: What do you mean by import? What are you trying to do?
Ishido has joined #ruby
<johnzorn> I created a function that basically used File.expand_path(filename, __dir__), I moved it into a utils library and of course it doesn't work anymore
<johnzorn> I would need the __dir__ of the caller
<havenwood> johnzorn: There's #require_relative for requiring relative to the requiring file's path.
<marchelzo> if only ruby had macros
<johnzorn> my function imports a yaml file and converts it to objects
<marchelzo> use cpp
<havenwood> marchelzo: What are you trying to do that you would use macros for? Maybe we can show you how with metaprogramming.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marchelzo> havenwood: i'm referring to what johnzorn is trying to do
<havenwood> marchelzo: ah, yeah no need for macros to do that!
<marchelzo> how
<havenwood> The other year at RubyConf Matz answered "is Ruby going to get macros" with: Short answer, "no." Long answer, "no way."
<johnzorn> havenwood, so how would I create my own require_relative that can be used in any file regardless of location?
<havenwood> johnzorn: Here's an example of implementing a require_relative with tail-call-optimization that might give you some leads: https://gist.github.com/havenwood/3c5a5e1476c811460992
<lupine> it's ok, you can always run your ruby code through a preprocessor
<havenwood> johnzorn: I still don't quite get what you're trying to do but I'm still waking up.
vuoto has quit [Read error: Connection reset by peer]
<marchelzo> they don't want to load a ruby file, they want to load a yaml file, i think
<marchelzo> they want to be able to pass relative paths to a method that lives in another file
<marchelzo> like require 'some_yaml_thing'; foo = SomeYamlThing.load_relative('abc')
<marchelzo> but have the path be expanded relative to *that* source file, not the one that defines the load_relative method
<johnzorn> marchelzo, exaclty
<Papierkorb> "#{__dir__}/foo.yml" ?
<johnzorn> I want a function data = myimport(relative_pathname)
<Papierkorb> johnzorn: What's wrong with writing __dir__?
<johnzorn> Papierkorb, ya one way, I thought it would be possible to have myimport('foo.yml')
<Papierkorb> Not without ugly hacks.
<Papierkorb> Which you don't want to do to avoid writing those 10 chars
<marchelzo> 11
cyphase has quit [Ping timeout: 265 seconds]
gbgdev has quit [Remote host closed the connection]
<marchelzo> do you actually know a way to do it with ugly hacks?
nankyokusei has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Papierkorb> Oh you just need binding_of_caller which does funny things in the VM to grab the caller(s) Binding object which you can then #eval to get the __FILE__ and do File.dirname on it, as __dir__ will only give ".". This is something you don't want to do, if you can simply use a helper method instead for instance.
chouhoulis has joined #ruby
<Papierkorb> Every hack that costs you more time than to do it the right way™ is stupid.
<Papierkorb> Use them where it won't work without for whatever arcane reason
flying has quit [Remote host closed the connection]
<marchelzo> binding_of_caller
flying has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
duderonomy has quit [Ping timeout: 268 seconds]
<marchelzo> oh it's a gem
cyphase has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
barnett has joined #ruby
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
tildes has quit [Ping timeout: 250 seconds]
Devalo has quit [Remote host closed the connection]
biox has quit [Quit: brb servers are ded]
biox has joined #ruby
Devalo has joined #ruby
<marchelzo> cool
gusrub has quit [Remote host closed the connection]
<marchelzo> i didn't even know about Binding
<marchelzo> i have a lot to learn
anisha has quit [Quit: This computer has gone to sleep]
vuoto has joined #ruby
enyo has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<marchelzo> Papierkorb: i tried it out
<marchelzo> File.dirname b.eval('__FILE__') gave me .
<marchelzo> and b.eval('__dir__') gave me the full path
hahuang65 has joined #ruby
<Papierkorb> Tried in pry, was the other way around. But it's a hack, different and weird results may occur.
konsolebox has joined #ruby
hahuang65 has quit [Client Quit]
eightbitraptor has joined #ruby
hahuang65 has joined #ruby
SpiffTR has joined #ruby
enyo has quit [Ping timeout: 256 seconds]
muelleme has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 264 seconds]
inoperable has quit [Quit: ZNC 1.6.3 - http://znc.in]
Fernando-Basso has joined #ruby
jshjsh has joined #ruby
konsolebox has quit [Quit: Leaving]
JoshS has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
eightbitraptor has quit [Ping timeout: 258 seconds]
vuoto has quit [Quit: Lost terminal]
A124 has quit [Quit: '']
enterprisey has joined #ruby
harai_ has quit [Ping timeout: 265 seconds]
walterheck has joined #ruby
skweek has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
h1fuelcell has joined #ruby
solocshaw has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
__Yiota has joined #ruby
h1fuelcell has quit [Ping timeout: 258 seconds]
blackbom1 has quit [Ping timeout: 245 seconds]
SpiffTR has quit [Quit: Leaving.]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
A124 has joined #ruby
gusrub has joined #ruby
SpiffTR has joined #ruby
jtdoncas has joined #ruby
ianmethyst has joined #ruby
duderonomy has joined #ruby
blackbom1 has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.6]
ianmethyst has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
jtdoncas has quit [Ping timeout: 252 seconds]
millerti has joined #ruby
barnett has quit [Remote host closed the connection]
barnett has joined #ruby
sepp2k has quit [Ping timeout: 248 seconds]
blackbom1 has quit [Ping timeout: 250 seconds]
cyphase has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.6]
ianmethyst has joined #ruby
dionysus69 has quit [Quit: dionysus69]
ianmethyst has quit [Client Quit]
barnett has quit [Ping timeout: 256 seconds]
barnett has joined #ruby
matp_ has joined #ruby
opt9 has quit [Ping timeout: 256 seconds]
hightower3 has joined #ruby
sarbs has quit [Ping timeout: 250 seconds]
spenser has quit [Ping timeout: 256 seconds]
kies has quit [Ping timeout: 250 seconds]
SJr has quit [Ping timeout: 250 seconds]
matp has quit [Ping timeout: 260 seconds]
hightower2 has quit [Ping timeout: 264 seconds]
sarbs has joined #ruby
testuser1 has joined #ruby
AndrewIsHere has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marchelzo has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
opt9 has joined #ruby
SJr has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
marchelzo has joined #ruby
CorthValira has quit [Quit: CorthValira]
cdg has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
hightower3 has quit [Ping timeout: 256 seconds]
flashpoint9 has joined #ruby
djbkd has joined #ruby
spenser has joined #ruby
brianpWins has joined #ruby
brianpWins has quit [Client Quit]
kies has joined #ruby
JoshS has joined #ruby
djbkd has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 258 seconds]
SeepingN has joined #ruby
sepp2k has joined #ruby
jshjsh has quit [Ping timeout: 268 seconds]
Devalo has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.6]
Devalo has joined #ruby
Lord_of_Life has quit [Excess Flood]
ianmethyst has joined #ruby
muelleme has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
Lord_of_Life has joined #ruby
siddart_ has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
gusrub has quit [Remote host closed the connection]
siddart has quit [Ping timeout: 265 seconds]
vuoto has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
rodferso1 has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.6]
vuoto has quit [Client Quit]
symm- has joined #ruby
rodfersou has quit [Ping timeout: 268 seconds]
webhat has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
joebobjoe has quit [Quit: leaving]
gusrub has joined #ruby
dviola has joined #ruby
dviola has quit [Client Quit]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as dviola
jenrzzz has quit [Ping timeout: 268 seconds]
SpiffTR has quit [Quit: Leaving.]
solocshaw has quit [Ping timeout: 245 seconds]
JoshS has quit [Ping timeout: 268 seconds]
kareelee has quit [Remote host closed the connection]
SpiffTR has joined #ruby
kareelee has joined #ruby
SpiffTR has quit [Client Quit]
libastral has joined #ruby
marr has quit [Ping timeout: 258 seconds]
Devalo has joined #ruby
aremaref has quit [Ping timeout: 265 seconds]
flashpoint9 has joined #ruby
dling` has joined #ruby
pilne has joined #ruby
djbkd has joined #ruby
barnett has quit [Remote host closed the connection]
barnett has joined #ruby
gusrub has quit [Remote host closed the connection]
kristofferR has joined #ruby
barnett has quit [Ping timeout: 246 seconds]
enyo has joined #ruby
nankyokusei has joined #ruby
ben__ has quit []
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
siddart has joined #ruby
Devalo has quit [Remote host closed the connection]
harai_ has joined #ruby
Devalo has joined #ruby
synthroid has quit []
cyphase has quit [Ping timeout: 246 seconds]
siddart_ has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
enyo has quit [Ping timeout: 268 seconds]
aremaref has joined #ruby
marr has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
elementaru has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
siddart_ has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
jeffreylevesque has quit [Ping timeout: 258 seconds]
cyphase has joined #ruby
siddart has quit [Ping timeout: 256 seconds]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
ianmethyst has joined #ruby
vuoto has joined #ruby
saslam has joined #ruby
AlexRussia has joined #ruby
vuoto has quit [Client Quit]
CorthValira has joined #ruby
testuser1 has quit [Quit: Leaving.]
GodFather has quit [Ping timeout: 258 seconds]
enilsen16 has quit [Quit: enilsen16]
Devalo has joined #ruby
gusrub has joined #ruby
<havenwood> /me peers into the mysterious future: https://github.com/ruby/ruby/releases/tag/v2_4_0
ianmethyst has quit [Quit: WeeChat 1.6]
barnett has joined #ruby
<havenwood> Oh right, this is irc.
aryaching has quit [Ping timeout: 258 seconds]
enilsen16 has joined #ruby
vuoto has joined #ruby
hightower2 has joined #ruby
<havenwood> Anyone here doing Advent of Code this year in Ruby?
rodferso1 has quit [Quit: leaving]
SpiffTR has joined #ruby
CorthValira has quit [Quit: CorthValira]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
edwinvdgraaf has joined #ruby
CorthValira has joined #ruby
ianmethyst has joined #ruby
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
raul782 has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 245 seconds]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
raul782 has joined #ruby
CorthValira has joined #ruby
pawnbox has quit [Remote host closed the connection]
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
GodFather has joined #ruby
naprimer_2 has joined #ruby
CorthValira has quit [Client Quit]
Xeago has joined #ruby
naprimer_3 has quit [Ping timeout: 246 seconds]
edwinvdgraaf has quit [Ping timeout: 258 seconds]
__Yiota has joined #ruby
meadmoon has joined #ruby
vuoto has quit [Remote host closed the connection]
hightower3 has joined #ruby
aryaching has joined #ruby
JoshS has joined #ruby
hightower2 has quit [Ping timeout: 245 seconds]
walterheck has quit [Quit: Leaving]
__Yiota has quit [Ping timeout: 246 seconds]
skweek has quit [Remote host closed the connection]
skweek has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
<Yxhuvud> I'm doing it in Crystal. close enough? :)
<marchelzo> havenwood: i was doing it in my own toy language, but i sort of forgot about it
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
Limix has joined #ruby
jgt2 has joined #ruby
hightower3 has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
<marchelzo> havenwood: are you doing it in ruby?
<havenwood> marchelzo: yup, I'm playing catchup but I've done Ruby solutions up to day 11
<marchelzo> can i see your day 2 part 1?
hightower3 has joined #ruby
<marchelzo> that's mine
ianmethyst has quit [Quit: WeeChat 1.6]
<havenwood> marchelzo: I didn't save my part ones, I just overwrote them with part two.
<marchelzo> aw
ianmethyst has joined #ruby
elastix has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
skweek has quit [Ping timeout: 250 seconds]
axl__ has joined #ruby
axl__ has quit [Client Quit]
__Yiota has joined #ruby
houhoulis has joined #ruby
<havenwood> Yxhuvud: Nice!
enterprisey has quit [Remote host closed the connection]
ianmethyst has quit [Quit: WeeChat 1.6]
Devalo has quit [Remote host closed the connection]
matthewd has quit [Ping timeout: 246 seconds]
hightower3 has quit [Ping timeout: 245 seconds]
Devalo has joined #ruby
pwnd_nsfw has joined #ruby
tubuliferous has joined #ruby
ianmethyst has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hightower3 has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Madplatypus has joined #ruby
Azure has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
meshsmith has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
Azure has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.6]
CorthValira has joined #ruby
GinoManWorks has quit [Quit: Leaving]
blackbom1 has joined #ruby
mustmodify has joined #ruby
<mustmodify> What would you expect from `Inequality.new('> 5') < 10` ?false, nil or an exception?
houhoulis has quit [Remote host closed the connection]
<mustmodify> Same question for `Inequality.new('< 5') < 3`
ruid has quit [Ping timeout: 258 seconds]
blackbom1 has quit [Ping timeout: 268 seconds]
hightower3 has quit [Ping timeout: 264 seconds]
matthewd has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristofferR has joined #ruby
barnett has quit []
jenrzzz has joined #ruby
siddart_ has quit [Quit: WeeChat 1.4]
__Yiota has joined #ruby
edwinvdgraaf has joined #ruby
axl__ has joined #ruby
walterheck has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
ruid has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
Limix has quit [Quit: Limix]
<apeiros> mustmodify: I don't understand how Inequality is supposed to be used
<mustmodify> Well, in medicine, sometimes it's hard to measure small quantities of something. In this case, a hormone called FSH.
<mustmodify> So you can get back a discrete value OR a value like "< 0.7 uL/dL"
<mustmodify> (or whatever units)
djbkd has quit [Quit: Leaving...]
<mustmodify> so the value is Inequality.new('< 0.7')
<mustmodify> In my case I'm testing that it's > 60, which obviously it isn't. But since I'm writing this, I feel obligated to handle edge cases.
<apeiros> and why is there Inequality#< ?
<mustmodify> I'm writing it.
<mustmodify> duck typing
<apeiros> that method doesn't seem to make sense to me.
<apeiros> I'd expect something like "match?" or similar
<mustmodify> Well, datum have values. Typically they are discrete.
<mustmodify> But occasionally they are inqualities.
tvm has quit [Quit: leaving]
Jackneill has quit [Read error: Connection reset by peer]
<apeiros> ok. I still don't really get the semantics. but thankfully <=>'s semantics are clear. return nil if not comparable.
<apeiros> >> 1 <=> :foo
<ruby[bot]> apeiros: # => nil (https://eval.in/703716)
<mustmodify> Ah!
<mustmodify> Perfect. Thanks.
hahuang65 has quit [Remote host closed the connection]
muelleme has joined #ruby
flying has quit []
kuSuSE has quit [Quit: Konversation terminated!]
aryaching_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aryaching__ has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
djbkd has quit [Client Quit]
aryaching_ has quit [Ping timeout: 246 seconds]
enilsen16 has quit [Quit: enilsen16]
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
enyo_ has joined #ruby
walterheck has quit [Ping timeout: 245 seconds]
enyo_ has quit [Ping timeout: 246 seconds]
elastix has quit [Quit: Leaving]
uranellus has quit [Ping timeout: 258 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has joined #ruby
pawelb has joined #ruby
enilsen16 has joined #ruby
johnzorn has quit [Ping timeout: 258 seconds]
troulouliou_dev has joined #ruby
meadmoon has quit [Quit: I am functioning within established parameters.]
cyphase has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
edwinvdgraaf has quit [Ping timeout: 268 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Remote host closed the connection]
machinewar has joined #ruby
<machinewar> is there any public api for just returning my request
<machinewar> to test an api client
<machinewar> not sending any sensitive info
Devalo has quit [Remote host closed the connection]
cyphase has joined #ruby
<apeiros> machinewar: write a small rackup file. shouldn't be more than a couple of lines
Devalo has joined #ruby
<machinewar> apeiros: yep will prob end up doing that, was just curious if anyone has already hosted one
<machinewar> would be a cool service to have
nankyokusei has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
<marchelzo> machinewar: http://echo.jpillora.com/
<machinewar> marchelzo: nice this is just what I was looking for thanks!
enterprisey has joined #ruby
muelleme has quit [Ping timeout: 245 seconds]
<marchelzo> np
perniciouscaffei has joined #ruby
perniciouscaffei has quit [Client Quit]
Devalo has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
SpiffTR has quit [Quit: Leaving.]
perniciouscaffei has joined #ruby
tau has joined #ruby
tildes has joined #ruby
olivierjanss has quit [Ping timeout: 250 seconds]
rideh has quit [Ping timeout: 250 seconds]
LyndsySimon has quit [Ping timeout: 250 seconds]
TomyLobo has quit [Ping timeout: 250 seconds]
GGMethos has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
rideh has joined #ruby
TomyLobo has joined #ruby
aryaching__ has quit [Ping timeout: 260 seconds]
LyndsySimon has joined #ruby
brendan- has joined #ruby
blackjid has joined #ruby
SpiffTR has joined #ruby
dukedave has quit [Ping timeout: 250 seconds]
pizzaops has quit [Ping timeout: 250 seconds]
webopsx has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
pizzaops has joined #ruby
axl__ has quit [Quit: axl__]
tau has quit [Remote host closed the connection]
dukedave has joined #ruby
tau has joined #ruby
mwlang has quit [Quit: mwlang]
mustmodify has left #ruby [#ruby]
rideh has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
rideh has joined #ruby
ur5us has joined #ruby
Devalo has joined #ruby
jgt2 has quit [Ping timeout: 258 seconds]
polishdub has quit [Quit: Leaving]
infernix has joined #ruby
tildes has quit [Ping timeout: 248 seconds]
Devalo has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 252 seconds]
kuSuSE has joined #ruby
kirun_ has quit [Quit: Konversation terminated!]
h1fuelcell has joined #ruby
ur5us has joined #ruby
bronson has quit [Remote host closed the connection]
Guest45778 has joined #ruby
h1fuelcell has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 256 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flashpoint9 has joined #ruby
marxarelli|afk is now known as marxarelli
raul782 has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 246 seconds]
raul782 has joined #ruby
yokel has joined #ruby
GGMethos has joined #ruby
spenser has quit [Ping timeout: 246 seconds]
roflmyeggo has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
uranellus has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
machinewar has quit []
tubuliferous has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
tubuliferous has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
CorthValira has quit [Quit: CorthValira]
enilsen16 has quit [Quit: enilsen16]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
SpiffTR has quit [Quit: Leaving.]
CorthValira has quit [Client Quit]
enilsen16 has joined #ruby
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
CorthValira has joined #ruby
CorthValira has quit [Client Quit]
arescorpio has joined #ruby
enterprisey has quit [Remote host closed the connection]
Guest45778 has quit [Ping timeout: 252 seconds]
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
saslam has quit [Ping timeout: 258 seconds]
jge_ has left #ruby ["WeeChat 1.2"]
bruce_lee has quit [Remote host closed the connection]
Fernando-Basso has quit [Quit: WeeChat 1.6]
Azure has quit [Quit: Oops.]
rykou has quit [Ping timeout: 252 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ledestin has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
rakm has joined #ruby
maloik89 has joined #ruby
maloik has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
djbkd2 has joined #ruby
h1fuelcell has joined #ruby
libastral has quit [Ping timeout: 250 seconds]
<pilne> i'm starting to feel like rack is truly ruby's secret weapon when it comes to software development of the future, granted, i see "cloud" applications as a "very good/strong" thing of the future, so rack's ability to build that might bias me
libastral has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
enyo_ has joined #ruby
bronson has joined #ruby
h1fuelcell has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
xen0fon has quit [Remote host closed the connection]
enyo_ has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 252 seconds]
raul782 has quit [Remote host closed the connection]
AndrewIsHere has quit []
jenrzzz has quit [Ping timeout: 268 seconds]
Pisuke has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
Azure has joined #ruby
Madplatypus has left #ruby [#ruby]
troulouliou_dev has quit [Quit: Leaving]