havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: 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 || Books: https://goo.gl/wpGhoQ
Dimik has quit [Ping timeout: 246 seconds]
SteenJobs_ has joined #ruby
SteenJobs_ has quit [Client Quit]
SteenJobs_ has joined #ruby
hutch34_ has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ta_ has joined #ruby
nadir has joined #ruby
mim1k has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
eelster has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
zebird has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
__Yiota has joined #ruby
hutch34_ has joined #ruby
gusrub has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
amclain has quit [Quit: Leaving]
blindMoe has joined #ruby
zebird has quit [Ping timeout: 240 seconds]
<blindMoe> Is there a trick to checking the existing of a variable deep down into an array stack without checking every step? Ie: if !session[:foobar][:this][:that]['test'].nil? In this case if session[:foobar] is nil it throws an error and checking if every level is defined does not seem very elegant
<havenwood> blindMoe: #dig
<blindMoe> ahh nice
<blindMoe> thank you very much
<havenwood> you're welcome. happy coding!
<blindMoe> so essentially if session.dig(:foobar, :this, :that, 'test') ?
<blindMoe> my god that is so much cleaner :)
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Renich has joined #ruby
boombox_ has joined #ruby
marr has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Remote host closed the connection]
<blindMoe> havenwood: any method that compares for ruby < 2.3 ?
millerti has joined #ruby
eckhardt has joined #ruby
oliv_____ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<blindMoe> found a gem for it.. thanks again!
SteenJobs_ has quit [Quit: SteenJobs_]
SteenJobs_ has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
tacoboy has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
kculpis has joined #ruby
wingedsnake has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
boombox_ has quit [Remote host closed the connection]
BlkDynmt has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarmiena_ has quit [Quit: sarmiena_]
gusrub has joined #ruby
tacoboy has joined #ruby
SteenJobs_ has quit [Quit: SteenJobs_]
cagomez has quit [Remote host closed the connection]
ar1a_ has quit [Ping timeout: 246 seconds]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
gusrub has quit [Ping timeout: 260 seconds]
ar1a has joined #ruby
wnd has quit [Excess Flood]
cagomez has quit [Ping timeout: 240 seconds]
wnd has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wingedsnake has quit [Remote host closed the connection]
bronson has joined #ruby
vee_ has quit [Ping timeout: 248 seconds]
swills has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 240 seconds]
PatrikasZvaigzde has quit [Quit: Leaving]
naprimer has joined #ruby
nacsurte has quit [Ping timeout: 248 seconds]
swills has joined #ruby
swills has quit [Changing host]
swills has joined #ruby
marxarelli is now known as marxarelli|afk
muzik has joined #ruby
vee_ has joined #ruby
nacsurte has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
d^sh_ has joined #ruby
Pacra has joined #ruby
gizmore|2 has joined #ruby
vee_ has quit [Ping timeout: 268 seconds]
d^sh has quit [Ping timeout: 255 seconds]
gizmore has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
sarmiena_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
vee_ has joined #ruby
punnie has joined #ruby
shiranuidong has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
olivi____ has quit [Ping timeout: 258 seconds]
digitalnomad has joined #ruby
Rodya_ has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
mostlybadfly has joined #ruby
digitalnomad has quit [Client Quit]
oliv_____ has joined #ruby
oli______ has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
cagomez has joined #ruby
oli______ has quit [Remote host closed the connection]
ol_______ has joined #ruby
bruno- has joined #ruby
oliv_____ has quit [Ping timeout: 276 seconds]
hutch34_ has quit [Ping timeout: 276 seconds]
cagomez has quit [Ping timeout: 248 seconds]
ol_______ has quit [Ping timeout: 276 seconds]
cdg has joined #ruby
charliesome has joined #ruby
rundor has joined #ruby
ta_ has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
digitalnomad has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
jameser has quit [Client Quit]
bronson has joined #ruby
jameser has joined #ruby
cdg has quit [Remote host closed the connection]
rundor has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 255 seconds]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
guardianxx has joined #ruby
ur5us has quit [Remote host closed the connection]
kies has quit [Ping timeout: 240 seconds]
hutch34_ has joined #ruby
AxelAlex has joined #ruby
guardianxx has quit []
BlkDynmt has quit [Quit: BlkDynmt]
mim1k has joined #ruby
rundor has joined #ruby
wilbert has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
nacsurte has quit [Ping timeout: 246 seconds]
rundor has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 1.9]
HoierM has quit [Ping timeout: 248 seconds]
wilbert has quit [Ping timeout: 240 seconds]
z0mbee has quit [Ping timeout: 248 seconds]
Dreamer3_ has joined #ruby
Dreamer3_ has quit [Remote host closed the connection]
eckhardt has joined #ruby
rundor has joined #ruby
gibranlp has joined #ruby
haylon has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dreamer3_ has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElFerna has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
skweek has quit [Ping timeout: 255 seconds]
skweek has joined #ruby
lacuna has joined #ruby
SeepingN has joined #ruby
jameser has joined #ruby
ur5us has joined #ruby
Pacra has quit [Ping timeout: 255 seconds]
lacuna has quit [Ping timeout: 246 seconds]
sleepee has quit [Remote host closed the connection]
ur5us has quit [Client Quit]
haylon has quit [Quit: Bye]
hutch34_ has quit [Ping timeout: 258 seconds]
ElFerna has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
gix has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
gix has joined #ruby
bronson has joined #ruby
gibranlp has quit [Quit: gibranlp]
sleepee has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
sleepee has quit [Max SendQ exceeded]
sleepee has joined #ruby
enterprisey has quit [Quit: Leaving]
enterprisey has joined #ruby
eckhardt has quit [Ping timeout: 255 seconds]
kwesidev has joined #ruby
uZiel has quit [Remote host closed the connection]
wilbert has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
kies has joined #ruby
tacoboy has quit [Remote host closed the connection]
guardianxx has joined #ruby
Rodya_ has joined #ruby
hutch34_ has joined #ruby
uZiel has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
agent_white has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
renchan has joined #ruby
_whitelogger_ has joined #ruby
_whitelogger has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
ar1a_ has joined #ruby
ar1a has quit [Ping timeout: 260 seconds]
Ropeney has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
kwesidev has quit [Read error: Connection reset by peer]
SteenJobs_ has joined #ruby
SteenJobs_ has quit [Client Quit]
bronson has joined #ruby
ur5us has joined #ruby
t-recx has quit [Quit: t-recx]
scott4000 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
digitalnomad has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
kwesidev has joined #ruby
KeyJoo has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 260 seconds]
digitalnomad has left #ruby ["Textual IRC Client: www.textualapp.com"]
profsimm has quit [Ping timeout: 260 seconds]
code_zombie has quit [Quit: Leaving]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
kwesidev has quit [Ping timeout: 268 seconds]
oleo has quit [Quit: irc client terminated!]
__Yiota has quit [Ping timeout: 276 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrontechnosoft has joined #ruby
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
Rodya_ has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 268 seconds]
Rodya_ has quit [Remote host closed the connection]
patrontechnosoft has quit [Remote host closed the connection]
sarbs has joined #ruby
nunchuck has quit [Ping timeout: 240 seconds]
jaruga has joined #ruby
Rodya_ has joined #ruby
hutch34_ has quit [Ping timeout: 255 seconds]
johnzorn has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
aurelien` has joined #ruby
jameser has joined #ruby
AxelAlex has quit [Quit: AxelAlex]
aurelien has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 248 seconds]
high_fiver has joined #ruby
bruno- has joined #ruby
Bock has joined #ruby
bronson has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
alveric1 has quit [Quit: WeeChat 1.9]
high_fiver has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
Dimik has joined #ruby
high_fiver has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nunchuck has joined #ruby
rabajaj has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
jaruga has joined #ruby
sarmiena_ has joined #ruby
KeyJoo has joined #ruby
anisha has joined #ruby
grant has joined #ruby
minimalism has joined #ruby
uZiel has joined #ruby
enterprisey has quit [Remote host closed the connection]
guardianxx has quit []
AxelAlex has joined #ruby
TomyLobo2 has joined #ruby
muzik is now known as muzik_gone
Asher has quit [Quit: Leaving.]
lxsameer has joined #ruby
high_fiver has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
uZiel has quit [Remote host closed the connection]
bronson has joined #ruby
hutch34_ has joined #ruby
ur5us has quit [Remote host closed the connection]
rabajaj has quit [Ping timeout: 255 seconds]
muzik_gone has quit [Ping timeout: 240 seconds]
sarmiena_ has quit [Quit: sarmiena_]
bronson has quit [Ping timeout: 240 seconds]
AxelAlex has quit [Quit: AxelAlex]
hutch34_ has quit [Ping timeout: 255 seconds]
TomyLobo2 has quit [Ping timeout: 255 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nacsurte has joined #ruby
antgel has joined #ruby
nacsurte has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
blindMoe has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
jinie- has quit [Ping timeout: 240 seconds]
jinie_ has joined #ruby
ta_ has joined #ruby
apofis has joined #ruby
aurelien` has quit [Changing host]
aurelien` has joined #ruby
cam27 has quit [Quit: cam27]
aufi has joined #ruby
mzelin has joined #ruby
KeyJoo has quit [Ping timeout: 240 seconds]
high_fiver has joined #ruby
alveric has joined #ruby
Asher has joined #ruby
<mzelin> hey. I wanna mount a usb stick via my ruby script, when it gets unplugged it should get umounted. this works already. Then, when mounted, I want to write into a file on it. Works too. Problem: when I exit my program while mounted, it gets umounted and the file is saved. good. But when I unplug while running, the file is not permanently saved. While
<mzelin> it is plugged in, the file content is what it should be, looking at it with an external editor. But when unplugging, the file modification is lost. why? script: https://bpaste.net/show/dbc5c516ef6e
kculpis has quit [Quit: Leaving]
<mzelin> in line 22 i write to it and close the file, so it should be saved, and like i told you already, watching the file tells me that it is saved ...
<dminuoso> mzelin: Stop abusing Ruby for this.
<mzelin> Sorry? what you mean?
<dminuoso> mzelin: Look at udev.
<mzelin> okay, but i still wanna know what I've done wrong
<dminuoso> mzelin: The entire attempt is ill-conceived in my perspective.
<mzelin> nono, cause the log file is getting bigger and bigger all time, so i need handling what is on stick already and waht not
olivi____ has joined #ruby
<dminuoso> mzelin: Sure, but the interaction to figure out when devices are mounted or not is something you should do with udev rules.
opekktar_ has joined #ruby
<dminuoso> It's trivial.
<mzelin> dminuoso: my mounting works, so this is no topic. saving the file is a topic or not?
<dminuoso> Sorry I'm not going to assist in writing horrible system scripts. I've seen far too much bullshit like that in our infrastructure from admins that are no longer around.
<dminuoso> Use udev rules.
<mzelin> for what? mounting?
<dminuoso> Or autofs perhaps.
<mzelin> oh i jsut need to mount it with -o sync ... i forgot about that option. thanks anyway dminuoso ;)
<mzelin> of course i'll listen to you, but I don't understand why i should do it complicated when I can use my already-working-stuff
olivi____ has quit [Ping timeout: 246 seconds]
<dminuoso> mzelin: That thing will clog up CPU by permanently doing a system("") calls, which in turn use `ls` for absolutely no good reason.
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<mzelin> dminuoso: you are right, for performance reasons it is bullshit. but it is a hacking script. I don't know why, but i like such hacks
aaoiki has joined #ruby
<dminuoso> mzelin: It's not a hack.
<mzelin> sure it is
<dminuoso> mzelin: There's nothing even remotely elegant about the solution. You could do it in _half_ the code by just using udev rules to take care of the mounting part.
opekktar_ has quit []
kahra has joined #ruby
<dminuoso> Or autofs, but I think udev might be a bit shorter.
<mzelin> okay, so you think at least the mounting i should do in duev rules?
ShekharReddy has joined #ruby
<dminuoso> mzelin: mounting/unmounting. have the "manager" emit a pid file, on unmount you can then just signal the process to terminate.
<mzelin> maybe you convinced me .. but so, you need to explain me more detailed
<dminuoso> And then the manager can just a simple loop {} with lines 21-23
<mzelin> I haven't understand how I should realizhe that
<mzelin> so, udev is mounting and umounting automatically, well
<mzelin> how let my program determine that?
<mzelin> i mean if it is mounted
<dminuoso> your program does not care
<mzelin> ?
<dminuoso> It just runs when it is mounted.
<dminuoso> and udev will ensure that your program only runs when it is.
<mzelin> this could be an idea, yeah
<mzelin> dminuoso: this is a good solution, wow
high_fiver has quit [Ping timeout: 240 seconds]
<mzelin> one problem: i am working on a freebsd system, there is no udev ...
<ineb> lol, what a twist.
hkdsun has quit [Ping timeout: 255 seconds]
<mzelin> yeah :D
vuoto has joined #ruby
<ineb> there is /etc/devd.conf on freebsd for such things. but i dont know much about that
hkdsun has joined #ruby
vuoto has quit [Remote host closed the connection]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
high_fiver has joined #ruby
mark_66 has joined #ruby
bronson has joined #ruby
Mortomes|Work has joined #ruby
cgfbee has joined #ruby
<Radar> lol
nofxxxx has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
nofxxx has quit [Ping timeout: 255 seconds]
djbkd has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 248 seconds]
aaoiki has quit [Quit: leaving]
charliesome has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
muzik has joined #ruby
high_fiver has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
mzelin has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mikecmpbll has joined #ruby
Terens has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
aufi has quit [Ping timeout: 255 seconds]
<Terens> hello
<Terens> Which is a good way to get progress for a future in concurrent ruby/
tunaBee_ has quit [Ping timeout: 255 seconds]
rundor has quit [Ping timeout: 246 seconds]
Silthias1 has joined #ruby
<dminuoso> ?xy Terens
<ruby[bot]> Terens: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
cagomez has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
marr has joined #ruby
mim1k has joined #ruby
<Terens> Ok I will give an example. I create a Future that downloads a file and I can get how many bytes are downloaded. What is the best way to share its progress?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 268 seconds]
jackjackdripper has joined #ruby
garethrees has joined #ruby
<herwin> the future doesn't have any notion of the amount of downloaded bytes
<herwin> or even that it's downloading
<Terens> Using threads i could store a local variable with progress self[:progress]=.... . Any other suggestion then?
aufi has joined #ruby
sysvalve has joined #ruby
bronson has joined #ruby
rundor has joined #ruby
Rodya_ has quit [Quit: Leaving...]
clamstar has quit [Ping timeout: 240 seconds]
nug has quit [Ping timeout: 246 seconds]
<dminuoso> Terens: I don't think a Future is a good fit for that.
sirecote has quit [Ping timeout: 246 seconds]
<Terens> which one is?
jasondotstar has quit [Ping timeout: 240 seconds]
kitallis has quit [Ping timeout: 240 seconds]
brixen has quit [Ping timeout: 240 seconds]
sindork_ has quit [Ping timeout: 246 seconds]
SirFunk has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
g3funk has quit [Ping timeout: 268 seconds]
Gnubie__ has quit [Ping timeout: 240 seconds]
utkarsh_ has quit [Ping timeout: 240 seconds]
Muz has quit [Ping timeout: 240 seconds]
ironcamel has quit [Ping timeout: 240 seconds]
\13k has quit [Ping timeout: 240 seconds]
forgot has quit [Ping timeout: 258 seconds]
rundor has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
DoubleMalt has joined #ruby
qmr has quit [Ping timeout: 258 seconds]
SirFunk has joined #ruby
utkarsh has joined #ruby
aufi has quit [Ping timeout: 248 seconds]
Gnubie_ has joined #ruby
webnanners has quit [Ping timeout: 268 seconds]
bodie_ has quit [Quit: ZNC - http://znc.in]
<ljarvis> "Using threads i could ..." -- but you don't want to use threads directly?
utkarsh has quit [Client Quit]
utkarsh has joined #ruby
ironcamel has joined #ruby
webnanners has joined #ruby
gnarld_ has joined #ruby
sindork has joined #ruby
rundor has joined #ruby
sirecote has joined #ruby
\13k has joined #ruby
Beams has joined #ruby
Muz has joined #ruby
forgot has joined #ruby
g3funk has joined #ruby
jasondotstar has joined #ruby
qmr has joined #ruby
bodie_ has joined #ruby
kitallis has joined #ruby
InfinityFye has joined #ruby
brixen has joined #ruby
rundor has quit [Ping timeout: 258 seconds]
clamstar has joined #ruby
<dminuoso> Or better yet.. coroutines!
<dminuoso> Never not Fiber in Ruby I say.
aufi has joined #ruby
TomyWork has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
workmad3 has joined #ruby
rundor has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 240 seconds]
rundor has joined #ruby
rundor_ has joined #ruby
rundor_ has quit [Read error: Connection reset by peer]
rundor_ has joined #ruby
rundor_ has quit [Read error: Connection reset by peer]
rundor has quit [Read error: Connection reset by peer]
badrsahla has joined #ruby
gnarld_ is now known as nug
vuoto has joined #ruby
rundor has joined #ruby
aupadhye has joined #ruby
rundor has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
govg has quit [Quit: leaving]
badrsahla has quit []
bronson has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 260 seconds]
minimalism has quit [Ping timeout: 248 seconds]
vali has joined #ruby
Serpent7776 has joined #ruby
vuoto has quit [Quit: Lost terminal]
jackjackdripper has quit [Quit: Leaving.]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
tunaBee__ has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
antgel has quit [Ping timeout: 276 seconds]
romankapitonov has joined #ruby
tunaBee__ has quit [Ping timeout: 260 seconds]
umaaji has joined #ruby
ur5us has quit [Remote host closed the connection]
biberu has joined #ruby
runescape07rsps has quit [Ping timeout: 248 seconds]
tunaBee_ has joined #ruby
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
bronson has joined #ruby
moeabdol has joined #ruby
govg has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
x0f has quit [Ping timeout: 255 seconds]
x0f has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
muzik has quit [Quit: Going offline, see ya! (www.adiirc.com)]
roshanavand has joined #ruby
rgtk has joined #ruby
tvw has joined #ruby
antgel has joined #ruby
someuser has joined #ruby
pandaant has quit [Remote host closed the connection]
govg has quit [Ping timeout: 268 seconds]
anisha has quit [Ping timeout: 240 seconds]
conta has joined #ruby
nicolai86 has quit [Remote host closed the connection]
nicolai86 has joined #ruby
Ishido has joined #ruby
conta has quit [Ping timeout: 268 seconds]
anisha has joined #ruby
govg has joined #ruby
nicolai86 has quit [Remote host closed the connection]
nicolai86 has joined #ruby
nicolai86 has quit [Remote host closed the connection]
nicolai86 has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
sgen has quit [Remote host closed the connection]
someuser has quit [Quit: Lost terminal]
bronson has joined #ruby
conta has joined #ruby
pootiscoder has joined #ruby
someuser has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby
Snowy has joined #ruby
ldnunes has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
garethrees has quit [Quit: garethrees]
jameser has joined #ruby
rundor has joined #ruby
ar1a_ has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
vee_ has quit [Ping timeout: 260 seconds]
ar1a has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
rundor has quit [Ping timeout: 255 seconds]
brent__ has quit [Ping timeout: 260 seconds]
apparition47 has joined #ruby
__Yiota has joined #ruby
ElFerna has joined #ruby
millerti has joined #ruby
conta has quit [Ping timeout: 260 seconds]
adlerdias has joined #ruby
ElFerna has quit [Ping timeout: 268 seconds]
runescape07rsps has joined #ruby
charliesome has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pacra has joined #ruby
charliesome has quit [Ping timeout: 248 seconds]
zapata has quit [Ping timeout: 255 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 248 seconds]
jameser has joined #ruby
Tungki has joined #ruby
fe80 has joined #ruby
bronson has joined #ruby
tvw has joined #ruby
jameser has quit [Client Quit]
charliesome has joined #ruby
jameser has joined #ruby
millerti has joined #ruby
zapata has joined #ruby
ElFerna has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
aupadhye has quit [Quit: Leaving]
aupadhye has joined #ruby
alex`` has joined #ruby
nfk has joined #ruby
t-recx has joined #ruby
tacoboy has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
phinxy has quit [Quit: Leaving]
AgentVenom has joined #ruby
monument has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhaller has joined #ruby
synthroid has joined #ruby
jameser has joined #ruby
dhaller has quit [Client Quit]
Awsy has joined #ruby
ghr has joined #ruby
rundor has joined #ruby
synthroi_ has joined #ruby
dhaller has joined #ruby
Snowy has quit [Remote host closed the connection]
synthro__ has joined #ruby
synthroid has quit [Ping timeout: 268 seconds]
rundor has quit [Ping timeout: 246 seconds]
synthroi_ has quit [Ping timeout: 240 seconds]
conta has joined #ruby
umaaji has quit [Ping timeout: 240 seconds]
dhaller has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 248 seconds]
dh64 has joined #ruby
gnufied has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
Tungki has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
eljimbo has joined #ruby
cagomez has quit [Ping timeout: 268 seconds]
Tungki has joined #ruby
Tungki has quit [Max SendQ exceeded]
sleepee has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
sleepee has joined #ruby
charliesome has joined #ruby
oliv_____ has joined #ruby
jphase has joined #ruby
Pacra has quit [Ping timeout: 255 seconds]
oliv_____ has quit [Client Quit]
someuser has quit [Ping timeout: 260 seconds]
jameser has quit [Read error: Connection reset by peer]
oliv_____ has joined #ruby
jameser has joined #ruby
conta has quit [Ping timeout: 246 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
tvw has quit [Read error: Connection reset by peer]
fe80 has quit [Quit: Leaving.]
tvw has joined #ruby
Xiti` has joined #ruby
cagmz_ has joined #ruby
ForeignBiscuit has joined #ruby
BSAlb has joined #ruby
bronson has joined #ruby
DLSteve_ has joined #ruby
<octomancer> hi, i can't understand something, i'm hoping someone can help ... the following ruby works fine:
<octomancer> out << ("%s %s - %s %s %s") % (l.slice(:one, :two, :three, :four, :five).values)
<octomancer> but this gives an error:
jamal7_ has joined #ruby
MyMind has joined #ruby
<octomancer> puts ("loops %d %d") % (pass_count,loop_count)
<octomancer> i have to use:
nicolai86_ has joined #ruby
watersoul_ has joined #ruby
<octomancer> puts "loops %d %d" % [pass_count,loop_count]
nahra``` has joined #ruby
<octomancer> i don't understand why
boto has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Awsm has joined #ruby
Luyt_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<octomancer> the error is:
cagmz has quit [Read error: Connection reset by peer]
Eiam has quit [Read error: Connection reset by peer]
BSaboia has quit [Read error: Connection reset by peer]
ResidentBiscuit has quit [Read error: Connection reset by peer]
jamal7 has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Read error: Connection reset by peer]
Sembei has quit [Read error: Connection reset by peer]
nicolai86 has quit [Quit: ZNC - http://znc.in]
apofis has quit [Read error: Connection reset by peer]
nahra`` has quit [Remote host closed the connection]
watersoul has quit [Remote host closed the connection]
Luyt has quit [Read error: Connection reset by peer]
Awsy has quit [Read error: Connection reset by peer]
[reed] has quit [Ping timeout: 260 seconds]
PaulCape_ has joined #ruby
knight- has quit [Quit: No Ping reply in 180 seconds.]
<octomancer> code.rb:<line>: syntax error, unexpected ')', expecting '='
webnanners has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 260 seconds]
shortdudey123 has quit [Ping timeout: 260 seconds]
<octomancer> %d") % (pass_count,loop_count)
<octomancer> ^
oleo has joined #ruby
webnanners has joined #ruby
Xiti has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
mim1k has joined #ruby
shortdudey123 has joined #ruby
baweaver is now known as Guest2003
vircung has quit [Ping timeout: 259 seconds]
<octomancer> btw, this doesn't work either:
<octomancer> out << ("loops %d %d") % (pass_count,loop_count)
<octomancer> same error
bronson has quit [Ping timeout: 276 seconds]
knight- has joined #ruby
[reed] has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
jameser has joined #ruby
vircung has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has quit [Client Quit]
<herwin> octomancer: () doesn't create an array, and you need an array here, that's why [] does work
cam27 has joined #ruby
<herwin> (you can skip the parens in the l.slice-line
<herwin> 'puts ("loops %d %d") % (pass_count,loop_count)' is being executed as '(puts("...")) % ...'
<herwin> the puts first, than the sprintf
<herwin> which makes the code much more readable
jameser has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has quit [Read error: Connection reset by peer]
ElFerna has quit [Ping timeout: 276 seconds]
nfk has joined #ruby
polishdub has joined #ruby
dviola has joined #ruby
seas has joined #ruby
adlerdias has left #ruby [#ruby]
antgel has quit [Ping timeout: 240 seconds]
Rapture has joined #ruby
antgel has joined #ruby
ltem has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
barx has joined #ruby
lewls has joined #ruby
<octomancer> thanks
<barx> why would one put a colon after function arguments? e.g. http://bit.ly/2v4rHzV
lewls has quit [Changing host]
lewls has joined #ruby
mark_66 has quit [Read error: Connection reset by peer]
moeabdol has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
pootiscoder has quit [Ping timeout: 240 seconds]
lewls is now known as pootiscoder
<barx> aaaahhhhhhh, thank you herwin
bruno- has joined #ruby
<dminuoso> Soo!
<dminuoso> I want methods with pattern matching.
lewls has joined #ruby
chouhoulis has joined #ruby
lewls has quit [Changing host]
lewls has joined #ruby
SteppenII has joined #ruby
chouhoul_ has joined #ruby
mim1k has joined #ruby
pootiscoder has quit [Ping timeout: 248 seconds]
lewls is now known as pootiscoder
* octomancer rewrites % to sprintf calls
<octomancer> herwin: thanks again
mark_66 has joined #ruby
ElFerna has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> I want to be able to do something like.... defmethod(:length, []) &-> { 0 }; defmethod(:length, [:first, :"*Rest"]) &-> { (first, rest) 1 + length(rest) }
oliv_____ has quit [Quit: Leaving...]
<Papierkorb> Me not :D
<pootiscoder> why isn't there a fat arrow function like javascript in ruby? it's so much faster
oliv_____ has joined #ruby
<dminuoso> pootiscoder: ther eis.
<dminuoso> pootiscoder: I just used it in fact.
chouhoulis has quit [Ping timeout: 246 seconds]
<dminuoso> pootiscoder: ruby blocks/procs/lambdas are the equivalent.
<pootiscoder> ik
<pootiscoder> syntax tho
bkxd has quit [Ping timeout: 240 seconds]
<dminuoso> -> { |a| }
<dminuoso> (a) -> {}
<pootiscoder> like this (arg1, arg2) => {}
<dminuoso> not too terribly different.
<pootiscoder> oh cool
<Papierkorb> ->(x){ } *
<dminuoso> that
<pootiscoder> can you do it with do/end?
<dminuoso> I suck at Ruby.
mim1k has quit [Ping timeout: 246 seconds]
<dminuoso> pootiscoder: You can use them interexchangablebalbly
<Papierkorb> of course. `lambda do |x| .. end`
<dminuoso> pootiscoder: it's just common to use do/end for multiline things
<pootiscoder> interexchangablebalby
<Papierkorb> though if you want to pass in some logic, you probably meant to use a block
<dminuoso> pootiscoder: I started typing and couldn't figure out the spelling.
<dminuoso> Just added enough letters until it looked about right.
<dminuoso> Or...
<dminuoso> use pattern matching!
<pootiscoder> dminuoso you probably know cos you are in #reactjs too, you were just answering someone
<dminuoso> defmethod(:length, []) &->() { 0 }; defmethod(:length, [:first, :"*Rest"]) &->(first, rest) { 1 + length(rest) }
theunraveler has joined #ruby
<Papierkorb> I must say, I had a Haskell course last semester, and I wasn't impressed
<dminuoso> Papierkorb: haskell people would eat me for breakfast on that one
<dminuoso> because its not curried
<pootiscoder> rubymasterrace
<dminuoso> Papierkorb: I just started with elixir :)
* pootiscoder coughs
<pootiscoder> i meant to say:
<pootiscoder> pythonmasterrace
<Papierkorb> uargh
barx has quit [Quit: barx]
<octomancer> herwin: now i remember why i wrote it with % ... i couldn't get sprintf to work! please tell me what's wrong with this:
<octomancer> out << sprintf("%s %s - %s %s %s", l.slice(:neigh, :asn, :asname, :time, :pfx).values)
<octomancer> i get "too few arguments (ArgumentError)"
<dminuoso> octomancer: you need to splat the array
<Papierkorb> octomancer: Is there a reason you don't use string interpolation?
<dminuoso> Papierkorb: Are you crazy?
<dminuoso> for that?
mim1k has joined #ruby
<dminuoso> >> printf("%s %s", *[1,2]) # octomancer
<ruby[bot]> dminuoso: # => 1 2nil (https://eval.in/837399)
oliv_____ has quit [Remote host closed the connection]
SuperL4g is now known as SuperLag
olivi____ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dhaller has joined #ruby
<octomancer> dminuoso: idgi ... a) what does the * do and b) how does that apply to my line of code ;-)
bronson has joined #ruby
<octomancer> i've written a lot of perl, where there is a subtle difference between a list and an array, am i falling foul of something similar in ruby?
<Papierkorb> Thankfully, not
<Papierkorb> Ruby is funny, but not insane like perl
<octomancer> heh
mikecmpbll has joined #ruby
hutch34_ has joined #ruby
<Papierkorb> octomancer: The leading star is the (unary) splat operator. it takes the following array and 'expands' it on the stack, effectively turning the array into a list of arguments you can pass into a method.
<ytti> python is the new perl
<ytti> first langauge people pick-up, not because they want to program
<ytti> but because they have to automate something
<ytti> consequently like perl, there is tons of really poor quality python code
<ytti> no classes, long functions
<ytti> but this of course also means python won
<ytti> which makes me sad
<octomancer> Papierkorb: that sounds exactly like the Perlish difference between a list and an array which you denied i was falling foul of ;-)
<Papierkorb> octomancer: The difference is, that ruby has no "list"
bronson has quit [Ping timeout: 255 seconds]
<Papierkorb> octomancer: you can't accidentally splat something, like you can use a list without even knowing in Perl
warrshrike has joined #ruby
<polishdub> ytti: If There was more of a push to use Ruby beyond RoR, then Ruby might see more usage
<octomancer> well, stap me vitals, this worked: out << sprintf("%s %s - %s %s %s", *l.slice(:neigh, :asn, :asname, :time, :pfx).values)
<polishdub> but because people only see it as a single purpose, they discard it
<octomancer> thanks all :-)
<Papierkorb> polishdub: I'm not even sure if loosing cargo-cult developers is such a bad thing
<Papierkorb> They moved on to NodeJS, and probably then to whatever is hip after that. Eh.
<octomancer> i'm of the opinion that if you are coding for fun then the concept of cargo-culting does not even exist. not saying people should get paid for it though
bruno- has quit [Ping timeout: 246 seconds]
dhaller has quit [Read error: Connection timed out]
<Papierkorb> When I code for fun, I don't get paid. When I get paid, coding is hopefully fun, but it's not the main objective. (Do not mis-read that as "if it's never fun, that's fine")
<octomancer> i tend to agree. work should be as much fun as possible, but sometimes it's just work
<dminuoso> octomancer: * is kind of like ... in javascript
<dminuoso> it kind of can be used in all the same places and it usually has the same effect everywhere
<dminuoso> Papierkorb: Im not sure why you think that node js has lots of cargo cult programming
pootiscoder has quit [Quit: pootiscoder]
<Papierkorb> dminuoso: I don't care and only used nodejs as example.
<dminuoso> Fair enough
rippa has joined #ruby
d4ybl1nd has joined #ruby
<d4ybl1nd> hi
mikecmpbll has quit [Quit: inabit. zz.]
tvw has quit []
tvw has joined #ruby
mikecmpbll has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
Awsm has quit [Ping timeout: 276 seconds]
[Butch] has joined #ruby
wisegopher has joined #ruby
wisegopher has left #ruby [#ruby]
vee_ has joined #ruby
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
[Butch] has quit [Quit: I'm out . . .]
Toledo has joined #ruby
bruno- has joined #ruby
barx has joined #ruby
synthro__ has quit [Remote host closed the connection]
aufi has quit [Quit: Leaving]
someuser has joined #ruby
radic_ has quit [Quit: ZNC - http://znc.in]
warrshrike has quit [Ping timeout: 260 seconds]
runescape07rsps has quit [Quit: Leaving]
radic has joined #ruby
ramfjord has joined #ruby
mim1k has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
mark_66 has quit [Remote host closed the connection]
rgtk has joined #ruby
Toledo is now known as croberts
synthroid has joined #ruby
cagomez has joined #ruby
code_zombie has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 260 seconds]
anisha has quit [Ping timeout: 268 seconds]
nicolai86_ has quit [Quit: ZNC - http://znc.in]
nicolai86 has joined #ruby
Renich has quit [Quit: Renich]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has joined #ruby
bronson has joined #ruby
eelster has joined #ruby
brent__ has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
brent__ has joined #ruby
TomyLobo2 has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
eelster_ has joined #ruby
eelster has quit [Client Quit]
eelster_ is now known as eelster
brent___ has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
sepp2k has joined #ruby
[Butch] has joined #ruby
cdg has joined #ruby
cdg_ has joined #ruby
nacsurte has joined #ruby
d4ybl1nd has quit [Ping timeout: 268 seconds]
cdg has quit [Ping timeout: 260 seconds]
apparition47 has quit [Quit: Bye]
ElFerna has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Remote host closed the connection]
kwesidev has joined #ruby
ghr has quit [Read error: Connection reset by peer]
naprimer2 has joined #ruby
jackjackdripper has joined #ruby
eelster_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]
eelster_ has quit [Client Quit]
naprimer has quit [Ping timeout: 260 seconds]
eelster has quit [Quit: Textual IRC Client: www.textualapp.com]
nicolai86_ has joined #ruby
amclain has joined #ruby
Serpent7776 has quit [Quit: Leaving]
gusrub has joined #ruby
rundor has joined #ruby
Phage- has joined #ruby
ramfjord has joined #ruby
artmann__ has joined #ruby
Dimik has joined #ruby
nicolai86 has quit [Quit: ZNC - http://znc.in]
Phage has quit [Ping timeout: 260 seconds]
sysvalve has quit [Quit: Leaving]
rundor has quit [Ping timeout: 240 seconds]
chrisarcand has quit [Ping timeout: 260 seconds]
rcs- has joined #ruby
uZiel has joined #ruby
mayamai has joined #ruby
Salih has joined #ruby
rcs has quit [Ping timeout: 260 seconds]
chrisarcand has joined #ruby
pecan has quit [Ping timeout: 260 seconds]
iamayam has quit [Ping timeout: 260 seconds]
hkri has joined #ruby
artmann_ has quit [Quit: No Ping reply in 180 seconds.]
hkri has quit [Ping timeout: 260 seconds]
drcode has quit [Ping timeout: 260 seconds]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
chouhoulis has joined #ruby
\13k has quit [Ping timeout: 260 seconds]
hkri has joined #ruby
rundor has quit [Remote host closed the connection]
\13k has joined #ruby
Snowy has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
rundor has joined #ruby
bokayio has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
jinie_ has quit [Ping timeout: 240 seconds]
cjk101010 has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 248 seconds]
A124 has quit [Ping timeout: 260 seconds]
barx has quit [Quit: barx]
rabajaj has joined #ruby
rundor has quit [Read error: Connection reset by peer]
jinie_ has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
cjk101010 has joined #ruby
A124 has joined #ruby
anisha has joined #ruby
hkri has left #ruby [#ruby]
Tralin has quit [Ping timeout: 260 seconds]
\13k has quit [Ping timeout: 260 seconds]
olivi____ has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 260 seconds]
graft has quit [Ping timeout: 260 seconds]
olivi____ has joined #ruby
MarcWeber has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
Tralin has joined #ruby
guacamol_ has joined #ruby
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
futilegames has joined #ruby
MarcWeber has joined #ruby
\13k has joined #ruby
rundor has joined #ruby
futilegames has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
ElFerna has joined #ruby
someuser has quit [Quit: Lost terminal]
olivi____ has quit [Ping timeout: 268 seconds]
someuser has joined #ruby
kwesidev has quit [Ping timeout: 260 seconds]
pwned has joined #ruby
jinie_ has quit [Ping timeout: 260 seconds]
gf3 has quit [Ping timeout: 260 seconds]
Guest2003 is now known as baweaver
baweaver has quit [Changing host]
baweaver has joined #ruby
jinie_ has joined #ruby
gf3 has joined #ruby
baweaver is now known as DioBrando
DioBrando is now known as baweaver
tacoboy has quit [Quit: No Ping reply in 180 seconds.]
uZiel has joined #ruby
andikr has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
pecan has joined #ruby
tacoboy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
antgel has quit [Ping timeout: 258 seconds]
enterprisey has joined #ruby
tynamite has joined #ruby
ForeignBiscuit is now known as ResidentBiscuit
rundor has quit [Remote host closed the connection]
MarcWebe1 has joined #ruby
ihme-TTilus has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
ldnunes has quit [Ping timeout: 248 seconds]
rundor has joined #ruby
rundor has quit [Read error: Connection reset by peer]
<tynamite> How can I add ruby to my wamp server? http://imgur.com/a/ahW8D
bronson has joined #ruby
<tynamite> I'm on my windows laptop, for windows
chouhoulis has joined #ruby
rundor has joined #ruby
Bish has quit [Ping timeout: 260 seconds]
Bish has joined #ruby
MarcWeber has quit [Ping timeout: 260 seconds]
TTilus has quit [Ping timeout: 260 seconds]
hurricanehrndz has quit [Ping timeout: 260 seconds]
nishiki has quit [Ping timeout: 260 seconds]
nishiki has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
adlerdias has joined #ruby
<havenwood> tynamite: A UniServer? An X away from greatness!
chouhoulis has quit [Remote host closed the connection]
<havenwood> tynamite: https://rubyinstaller.org/
<tynamite> uniform server for windows, it's portable
<tynamite> yes but ruby installer wants me to use WEBrick
<tynamite> I'm thinking more of adding ruby on windows to an existing server
<havenwood> Install the Puma gem. WEBrick is just he dumb default.
<tynamite> How is puma better than webrick?
jinie_ has quit [Ping timeout: 240 seconds]
Snowy_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
<havenwood> tynamite: The typical setup is to reverse proxy from Nginx/Apache/whatev to a port or socket running WEBrick/Puma/Unicorn/etc.
dionysus69 has joined #ruby
<tynamite> I'm not a sysadmin so I wouldn't know how to do that.
<tynamite> Is there a tutorial somewhere?
<havenwood> tynamite: Puma adds multi-process via workers, threads via thread pool, and event machines on each thread.
<tynamite> cool!
<havenwood> tynamite: http://puma.io/
<havenwood> tynamite: It's as simple as adding Puma to your Gemfile typically.
rundor has quit [Remote host closed the connection]
<tynamite> I'm a web developer, not a sysadmin so I wouldn't know about how to reverse proxy all that stuff and set it up. Is there a tutorial somewhere?
apeiros has joined #ruby
rundor has joined #ruby
jinie_ has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
_sfiguser has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
adlerdias has quit [Quit: adlerdias]
hurricanehrndz has joined #ruby
Snowy has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
rgtk has joined #ruby
<havenwood> tynamite: Are you using Windows Server or Apache or?
<havenwood> IIS?
<tynamite> apache
<tynamite> on my windows laptop
oliv_____ has joined #ruby
<tynamite> I'll use puma in future thank you havenwood
bonhoeffer has joined #ruby
<havenwood> tynamite: You should find a bunch of options if you search for: reverse proxy apache puma
<havenwood> tynamite: no prob, you're welcome
oliv_____ has quit [Remote host closed the connection]
kies has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
<havenwood> tynamite: Puma is the Rails default option now. Unicorn, Passenger, Thin, etc are nice alternatives.
<tynamite> I'll look into that now. Lots of good results I think came up.
<tynamite> I don't use Rails I use Ramaze.
<tynamite> Because I can't find any good rails tutorials smh
<havenwood> tynamite: Ah, nice. Even Rack itself should choose Puma when available.
<tynamite> Looks like I'm going to change from webrick to puma
<havenwood> tynamite: The Rails docs themselves are very polished. There could be more of them but they are solid.
<tynamite> Maybe they've improved it since I checked 5 years ago.
<havenwood> tynamite: Switching from WEBrick to Puma is a good idea! It should be more reliable and faster.
mtkd has quit [Ping timeout: 268 seconds]
<guacamol_> hi friends, does anyone have a good recommendation for a gem that will format phone #s based on country? looked into carr/phone and floere/phoney but wondering if there are other good alternatives out there
mtkd has joined #ruby
olivi____ has quit [Remote host closed the connection]
SteppenII has quit [Remote host closed the connection]
oliv_____ has joined #ruby
marxarelli|afk is now known as marxarelli
<havenwood> guacamol_: Another to consider: https://github.com/mobi/telephone_number
enterprisey has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 258 seconds]
<havenwood> guacamol_: And hi!
<guacamol_> havenwood hello!
<guacamol_> thank you looking into it
oliv_____ has quit [Ping timeout: 246 seconds]
olivi____ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ElFerna has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
olivi____ has quit [Ping timeout: 246 seconds]
Beams has quit [Quit: .]
renchan has quit [Quit: Leaving...]
chouhoulis has joined #ruby
rgtk has quit [Ping timeout: 255 seconds]
xuanrui has quit [Ping timeout: 248 seconds]
Snowy_ has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
duderonomy has joined #ruby
olivi____ has joined #ruby
<tynamite> I can't figure out how to change my ramaze app from webrick to puma
mim1k has joined #ruby
enterprisey has joined #ruby
adlerdias has joined #ruby
bonhoeffer has quit [Ping timeout: 260 seconds]
olivi____ has quit [Ping timeout: 246 seconds]
tvw has quit []
mim1k has quit [Ping timeout: 255 seconds]
<guacamol_> tynamite i'm not that familiar with ramaze, does it have a gem file?
kamilkucharski has joined #ruby
<tynamite> It doesn't come with a gemfile but you can create one if your web host requires one.
bronson has joined #ruby
<guacamol_> puma isn't listed as an adapter on the ramaze docs, but Thin is (also better than webrick)
seas has quit [Quit: WeeChat 1.4]
aupadhye has quit [Ping timeout: 260 seconds]
<guacamol_> also there's a #ramaze channel, have you checked it out tynamite?
<guacamol_> tynamite https://github.com/manveru/ramaze-wiki-pages/blob/master/en/Innate.org under "usage" you can see how to switch your adapter
<tynamite> I'll ask there.
guacamol_ has quit [Quit: Textual IRC Client: www.textualapp.com]
guacamol_ has joined #ruby
<guacamol_> tynamite good luck!
olivi____ has joined #ruby
<tynamite> Looking at the code in the link I gave you, it looks like all you have to do is change :webrick to :puma but that doesn't work.
<guacamol_> i think you need the puma gem to do that, maybe try making that gemfile?
<tynamite> Ramaze isn't very active so I suppose I'll email manveru instead.
<tynamite> I've put puma in my gemfile and my app.rb file
bronson has quit [Ping timeout: 260 seconds]
<guacamol_> did you bundle?
<tynamite> I'll do that now.
<guacamol_> out of curiousity, does it work if you change :webrick to :thin? just asking because that's on the list of adapters in the docs (puma isn't listed there)
<havenwood> tynamite: gem install bundler && bundle
<tynamite> no
<manveru> tynamite: yo
<manveru> I didn't think anyone still users it
<tynamite> hello manveru
cam27 has quit [Quit: cam27]
<tynamite> I use ramaze for my debate and Q&A website.
<tynamite> I suppose that's the only active use for it to my knowledge.
<manveru> hehe
olivi____ has quit [Ping timeout: 246 seconds]
<manveru> well for puma you might need to fork Ramaze
<manveru> because innate uses very old rack
sarmiena_ has joined #ruby
<manveru> I'm mobile at the moment. but I can maybe help you tonight
kies has joined #ruby
raspado has joined #ruby
MichaelBurge has joined #ruby
<tynamite> gem rdiscount failed to install
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tynamite> Here's the error from the log file.
<tynamite> C:\mowes\ruby\lib\ruby\gems\1.9.1\gems\rdiscount-2.1.8\ext/conftest.c:8: undefined reference to `random'
<tynamite> I'm going to have to use an old version of rdiscount to work with ruby 1.9.3
eckhardt has joined #ruby
ResidentBiscuit is now known as SageBiscuit
MrBismuth has joined #ruby
cdg__ has joined #ruby
cam27 has joined #ruby
cdg_ has quit [Ping timeout: 260 seconds]
MrBusiness has quit [Ping timeout: 276 seconds]
monument has quit [Remote host closed the connection]
Eiam has joined #ruby
MrBismuth has quit [Ping timeout: 240 seconds]
MrBusiness has joined #ruby
olivi____ has joined #ruby
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bayed has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
bayed has joined #ruby
high_fiver has joined #ruby
csk has quit [Ping timeout: 240 seconds]
csk has joined #ruby
high_fiver_ has joined #ruby
jackjackdripper has joined #ruby
high_fiver has quit [Read error: Connection reset by peer]
SageBiscuit is now known as Guest90210
olivi____ has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
olivi____ has joined #ruby
chouhoulis has joined #ruby
ur5us has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
dionysus70 is now known as dionysus69
ozcanesen has joined #ruby
SeepingN has joined #ruby
jaruga has joined #ruby
guacamol_ has joined #ruby
Bock has quit [Ping timeout: 240 seconds]
<tynamite> How do I change my ramaze adapter from webrick to thin manveru?
uZiel has quit [Ping timeout: 248 seconds]
[Butch] has quit [Quit: I'm out . . .]
wilbert has joined #ruby
bronson has joined #ruby
xuanrui has joined #ruby
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tynamite has left #ruby [#ruby]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Quit: roshanavand]
bronson has quit [Ping timeout: 255 seconds]
gusrub has quit []
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
gusrub has joined #ruby
high_fiver_ has quit [Ping timeout: 255 seconds]
Prutheus has joined #ruby
<Prutheus> Hello! I am working with https://github.com/gushonorato/google-scraper ... wanna run their example, but get an error: /lib/capybara/node/finders.rb:49:in `block in find': Unable to find css "#pnnext" (Capybara::ElementNotFound)
kamilkucharski has quit [Ping timeout: 240 seconds]
<Prutheus> this should be a mistake, google has the element #pnnext at its page
<Prutheus> what should i do?
conta3 has joined #ruby
enterprisey has quit [Ping timeout: 260 seconds]
eelster has joined #ruby
pwned has quit [Ping timeout: 268 seconds]
rundor has joined #ruby
jaruga has quit [Quit: jaruga]
eelster has quit [Client Quit]
<Prutheus> could someone please tell me why this error occurs?
eelster has joined #ruby
MrBusiness has quit [Ping timeout: 240 seconds]
<adam12> Prutheus: Maybe it actually doesn't, when the scraper sees it. Maybe the scraper sees the captcha/bot activity page.
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
<Prutheus> adam12: the what?
<adam12> Prutheus: I don't know what your code looks like, but you could try rescuing Capybara::ElementNotFound and outputting the HTML of what is currently being parsed.
<adam12> Prutheus: You've never seen it? Google can spot scrapers and forces a captcha.
cdg__ has quit [Ping timeout: 260 seconds]
<adam12> I see it all the time if I'm using DuckDuckGo and using the !g bang too often.
Fraeon has quit [Ping timeout: 268 seconds]
Fraeon has joined #ruby
<naitian> :wq
jtd has quit [Quit: No Ping reply in 180 seconds.]
jtd has joined #ruby
Eiam has quit [Max SendQ exceeded]
rabajaj has quit [Quit: Leaving]
ledestin has joined #ruby
enterprisey has joined #ruby
Eiam has joined #ruby
cagomez has quit [Remote host closed the connection]
guacamol_ has joined #ruby
cagomez has joined #ruby
Salih has left #ruby ["Leaving"]
<havenwood> naitian: 'readonly' option is set (add ! to override)
_sfiguser has quit [Ping timeout: 240 seconds]
domgetter has joined #ruby
quobo has joined #ruby
jenrzzz has joined #ruby
t-recx has quit [Quit: t-recx]
cagomez has quit [Ping timeout: 260 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
Guest90210 is now known as ResidentBiscuit
gusrub has quit [Ping timeout: 240 seconds]
_sfiguser has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
gusrub has joined #ruby
raspado_ has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
romankapitonov has joined #ruby
raspado has quit [Ping timeout: 240 seconds]
<Prutheus> adam12: i am using the example posted on their github, can't modify the lib code right now, no access, could you please check this up for me?
conta3 has quit [Ping timeout: 255 seconds]
ElFerna has joined #ruby
bronson has joined #ruby
lxsameer has joined #ruby
Snowy has joined #ruby
InfinityFye has joined #ruby
InfinityFye has quit [Client Quit]
bronson has quit [Ping timeout: 268 seconds]
brent___ has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
MrBusiness has joined #ruby
cagomez has joined #ruby
cdg has joined #ruby
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
_2easy has quit [Quit: leaving]
cagomez has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 260 seconds]
MrBusiness has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
Asher has joined #ruby
ta_ has joined #ruby
mtkd has joined #ruby
eckhardt has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
moeabdol has quit [Quit: WeeChat 1.9]
Snowy has quit [Remote host closed the connection]
adlerdias has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
<Prutheus> `/quit
Prutheus has quit [Quit: leaving]
Dbugger has joined #ruby
ElFerna has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
Dbugger has quit [Quit: Leaving]
brent__ has joined #ruby
rRru has joined #ruby
rRru has left #ruby [#ruby]
pwned has joined #ruby
jtd has quit [Quit: No Ping reply in 180 seconds.]
jtd has joined #ruby
t-recx has joined #ruby
ozcanesen has quit [Max SendQ exceeded]
jtd has quit [Client Quit]
cagomez has joined #ruby
jtd has joined #ruby
romankapitonov has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
loincloth has joined #ruby
cagomez has joined #ruby
romankapitonov has joined #ruby
HoierM has joined #ruby
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
cagomez has quit [Ping timeout: 240 seconds]
tunaBee_2 has joined #ruby
rundor has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
MrBusiness has joined #ruby
tunaBee_ has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
dviola has joined #ruby
sepp2k has quit [Quit: Leaving.]
bronson has quit [Ping timeout: 248 seconds]
moeabdol has joined #ruby
ElFerna has joined #ruby
synthroid has quit []
enterprisey has quit [Read error: Connection reset by peer]
moei has quit [Quit: Leaving...]
ta_ has joined #ruby
DoubleMalt has joined #ruby
cagomez has joined #ruby
marxarelli is now known as marxarelli|afk
milardovich has joined #ruby
jenrzzz has joined #ruby
gusrub has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
herbmillerjr has quit [Excess Flood]
raspado has joined #ruby
hays has quit [Quit: No Ping reply in 180 seconds.]
herbmillerjr has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
hays has joined #ruby
pwned has quit [Ping timeout: 240 seconds]
raspado_ has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
milardov_ has joined #ruby
ElFerna has quit [Ping timeout: 255 seconds]
wilbert has quit [Ping timeout: 260 seconds]
knight33 has joined #ruby
ta_ has quit [Remote host closed the connection]
dmtd has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
Xentil has joined #ruby
rundor has joined #ruby
milardov_ has quit []
lianj has quit [Read error: Connection reset by peer]
electrostat has quit [Ping timeout: 255 seconds]
Mrgoose2 has joined #ruby
<Mrgoose2> im using GRPC and getting a return object of type :Google::Protobuf::RepeatedField . How do i turn that into json?
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
theunraveler has quit []
mim1k has joined #ruby
anjen has joined #ruby
romankapitonov has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
anjen has quit [Client Quit]
segmond has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
gizmore|2 has quit [Read error: Connection reset by peer]
bronson has joined #ruby
Murda has joined #ruby
jenrzzz has joined #ruby
loincloth has quit []
gizmore has joined #ruby
oleo has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 262 seconds]
KeyJoo has joined #ruby
moei has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
MrBusiness has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Ping timeout: 240 seconds]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 255 seconds]
electrostat has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
elcontrastador has joined #ruby
futilegames has joined #ruby
TomyLobo2 has quit [Ping timeout: 255 seconds]
biberu has quit []
johnny56 has joined #ruby
marxarelli|afk is now known as marxarelli
_sfiguser has quit [Quit: Leaving]
gusrub has quit [Remote host closed the connection]
caffeinate_360 has joined #ruby
hutch34_ has quit [Quit: WeeChat 1.5]
MrBusiness has joined #ruby
gusrub has joined #ruby
anjen has joined #ruby
<elcontrastador> I'm struggling with ERB newline suppression with both ERB and Erubis. Any help would be appreciated: https://gist.github.com/elcontrastador/f0fb129de07477d80c3d618abc29404b
guacamol_ has quit [Quit: Textual IRC Client: www.textualapp.com]
guacamol_ has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
eckhardt has joined #ruby
iloveitaly has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
Moosashi has joined #ruby
chouhoulis has quit [Remote host closed the connection]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ltem has quit [Quit: Leaving]
ta_ has joined #ruby
bronson has joined #ruby
oliv_____ has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 248 seconds]
oliv_____ has joined #ruby
caffeinate_360 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
nfk has quit [Remote host closed the connection]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anjen has quit [Quit: anjen]
bronson has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
govg has quit [Ping timeout: 260 seconds]
eelster is now known as eelster[away]
theunraveler has joined #ruby
theunraveler has quit [Remote host closed the connection]
setient has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElFerna has joined #ruby
xuanrui has quit [Ping timeout: 240 seconds]
futilegames has quit [Quit: futilegames]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
ecuanaso has joined #ruby
eckhardt has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
cagomez_ has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez_ has quit [Client Quit]
eljimbo has quit [Quit: This computer has gone to sleep]
eljimbo has joined #ruby
cagomez has joined #ruby
ramfjord has joined #ruby
eljimbo has quit [Client Quit]
eljimbo has joined #ruby
olivi____ has quit [Remote host closed the connection]
eljimbo has quit [Client Quit]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
AxelAlex has joined #ruby
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<zenspider> no commit in 2 years. readme says: Future: Add tests, Improve this README... seems legit
olivi____ has quit [Remote host closed the connection]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
<zenspider> elcontrastador: nil lines aren't nil. they're (usually) nil.to_s, which is ""
olivi____ has joined #ruby
<elcontrastador> stdlib CSV returns nil
<zenspider> you could post-process between the eval and the puts. a simple gsub should suffice
<zenspider> that doesn't matter
<zenspider> `<%= nil ->` is what you're doing
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elcontrastador> i found a workaround but interested in what you're saying here... so gsub for ""?
segmond has joined #ruby
eckhardt has joined #ruby
eelster[away] is now known as eelster
<zenspider> <%= "callgroup = #{@l.call_group}" if @l.call_group %> -> <%= "callgroup = #{@l.call_group}" if false %> -> <%= nil %> ...
<zenspider> >> require "erb"; ERB.new("<%= nil %>\n<%= nil %>\n").src
<ruby[bot]> zenspider: # => "#coding:UTF-8\n_erbout = ''; _erbout.concat(( nil ).to_s); _erbout.concat \"\\n\"\n; _erbout.concat ...check link for more (https://eval.in/837658)
sarmiena_ has quit [Quit: sarmiena_]
Pacra has joined #ruby
<havenwood> #=> "#coding:UTF-8\n" + "..."
<zenspider> >> require "erb"; ERB.new("<%= nil %>\n<%= nil %>\n").result
<ruby[bot]> zenspider: # => "\n\n" (https://eval.in/837660)
ecuanaso has joined #ruby
deep-book-gk_ has joined #ruby
Murda has quit [Quit: Murda]
boombox_ has joined #ruby
<zenspider> elcontrastador: you should probably be using .result instead of eval
deep-book-gk_ has left #ruby [#ruby]
cagomez has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
<elcontrastador> I was using erb.result(binding) when i was using ERB... this example is shown using Erubis as described in their docs. I agree, thought that was odd using eval
oliv_____ has joined #ruby
jameser has joined #ruby
cagomez has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
cagomez has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
gusrub has joined #ruby
mim1k has joined #ruby
jameser has quit [Client Quit]
spiette has quit [Quit: :qa!]
mim1k has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
oliv_____ has quit [Remote host closed the connection]
iloveitaly has quit [Quit: Textual IRC Client: www.textualapp.com]
boombox_ has quit [Remote host closed the connection]
bronson has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
rundor has quit [Remote host closed the connection]
<zenspider> elcontrastador: I was looking at the erubis tutorial when I suggested you should use result.
oliv_____ has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
<elcontrastador> interesting...ok. will do. I think i got that from the erubis readme on github. Thanks for suggestion.
eckhardt has quit [Ping timeout: 240 seconds]
alveric1 has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
alveric has quit [Ping timeout: 240 seconds]
knight33 has quit [Ping timeout: 260 seconds]
eckhardt has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
jameser has joined #ruby
phinxy has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
quobo has quit [Quit: Connection closed for inactivity]
guacamol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
jameser has quit [Client Quit]
polishdub has quit [Quit: leaving]