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
GinoMan1423 has joined #ruby
mochiyoda has joined #ruby
wnd has quit [Write error: Broken pipe]
Guest34215 has quit [Excess Flood]
GinoMan2440 has quit [Remote host closed the connection]
wnd has joined #ruby
forgot has joined #ruby
Rich_Morin_ has quit [Ping timeout: 255 seconds]
forgot is now known as Guest57153
nadir has quit [Quit: Connection closed for inactivity]
mochiyoda_ has quit [Ping timeout: 245 seconds]
belmoussaoui_ is now known as belmoussaoui
Rich_Morin has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ddffg has quit [Ping timeout: 240 seconds]
Rich_Morin has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
zipace has quit [Ping timeout: 255 seconds]
t-recx has quit [Quit: t-recx]
lxsameer has quit [Ping timeout: 255 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
moei has quit [Quit: Leaving...]
quobo has quit [Quit: Connection closed for inactivity]
jolamb has quit [Ping timeout: 260 seconds]
jolamb has joined #ruby
_whitelogger has joined #ruby
troys_ is now known as troys
N0ATN has quit [Quit: ZNC 1.7.x-git-775-96c92ef8 - https://znc.in]
N0ATN has joined #ruby
charliesome has joined #ruby
KeyJoo has quit [Ping timeout: 255 seconds]
cjhowe7 has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
jgt2 has quit [Ping timeout: 260 seconds]
moei has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
belmoussaoui_ has joined #ruby
Bock has quit [Read error: Connection reset by peer]
belmoussaoui has quit [Ping timeout: 255 seconds]
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
d^sh has quit [Ping timeout: 246 seconds]
GinoMan1423 has quit [Read error: Connection reset by peer]
d^sh has joined #ruby
kies has joined #ruby
JoshS has joined #ruby
N0ATN has quit [Read error: Connection reset by peer]
N0ATN has joined #ruby
micahjam97 has joined #ruby
N0ATN has quit [Ping timeout: 260 seconds]
Definity2 has joined #ruby
<micahjam97> hey so I was wondering. I was playing around with .methods, 2.methods for example returns an array of symbols of the names of methods you can use on 2. It got me thinking. Lets say you had an array of symbols with method names. is there a clear way of calling that method on that object using only variables to contain the name? The only way I can come up with is eval "object.#{method}"
<lupine> micahjam97: see `send`
<lupine> object.send(method)
<micahjam97> sweet. exactly what I was looking for. ruby has built in methods for everything
N0ATN has joined #ruby
`tim` has joined #ruby
`tim` is now known as justbleed
gizmore|2 has joined #ruby
N0ATN has quit [Ping timeout: 260 seconds]
N0ATN has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
N0ATN has quit [Client Quit]
troys is now known as troys_
sneakerhax has quit [Ping timeout: 240 seconds]
N0ATN has joined #ruby
bilal80 has quit [Ping timeout: 260 seconds]
ignarps has quit [Quit: ZNC - http://znc.in]
N0ATN- has joined #ruby
N0ATN has quit [Ping timeout: 260 seconds]
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
Bob8989 has quit [Read error: Connection reset by peer]
jameser has joined #ruby
jameser has quit [Client Quit]
jameser has joined #ruby
micahjam97 has quit [Quit: Page closed]
genpaku has quit [Remote host closed the connection]
jameser has quit [Client Quit]
genpaku has joined #ruby
bruce_lee has quit [Remote host closed the connection]
PatrikasZvaigzde has quit [Ping timeout: 245 seconds]
N0ATN- has quit [Ping timeout: 245 seconds]
shinnya has quit [Quit: ZNC - http://znc.in]
N0ATN has joined #ruby
shinnya has joined #ruby
ignarps has joined #ruby
bmurt has joined #ruby
N0ATN has quit [Ping timeout: 255 seconds]
jackjackdripper has joined #ruby
N0ATN has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
N0ATN- has joined #ruby
dasher00 has quit [Ping timeout: 260 seconds]
N0ATN has quit [Read error: Connection reset by peer]
bkxd_ has quit [Ping timeout: 272 seconds]
bkxd has joined #ruby
dasher00 has joined #ruby
PatrikasZvaigzde has joined #ruby
enterprisey has joined #ruby
tristanp has joined #ruby
cb has left #ruby [#ruby]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alina-malina has quit [Ping timeout: 240 seconds]
tristanp has quit [Remote host closed the connection]
Alina-malina has joined #ruby
tristanp has joined #ruby
N0ATN- is now known as N0ATN
jackjackdripper has quit [Quit: Leaving.]
tristanp has quit [Ping timeout: 260 seconds]
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
armyriad has quit [Quit: Leaving]
skixlix has joined #ruby
<skixlix> hey
gregf_ has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
<skixlix> is this channel for the programming language
<skixlix> nvm it is, but what is purpose of this channel? Can learners ask questions
mesamoo has joined #ruby
charliesome has joined #ruby
armyriad has joined #ruby
<skixlix> nvm again I read the rules I have my answer :)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
gix has joined #ruby
tristanp has joined #ruby
bkxd has joined #ruby
segmond has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quazimodo has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
ZacNoMore has quit [Ping timeout: 258 seconds]
skixlix has quit [Ping timeout: 240 seconds]
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haylon has joined #ruby
haylon has quit [Remote host closed the connection]
mesamoo has quit [Excess Flood]
cjhowe7 has joined #ruby
mesamoo has joined #ruby
cbarratt has quit [Ping timeout: 245 seconds]
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
__Yiota has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
__Yiota has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
jgnagy has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #ruby
Antiarc has quit [Ping timeout: 246 seconds]
mtkd has joined #ruby
patr0clus is now known as s3nd1v0g1us
Definity2 has quit [Quit: Nettalk6 - www.ntalk.de]
Antiarc has joined #ruby
iomotoko has joined #ruby
iomotoko has quit [Quit: WeeChat 1.5]
iomotoko has joined #ruby
Antiarc has quit [Ping timeout: 272 seconds]
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
skixlix has joined #ruby
skixlix has quit [Client Quit]
Antiarc has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
kristofferR has joined #ruby
rohitpaulk has quit [Ping timeout: 268 seconds]
mtkd has quit [Ping timeout: 255 seconds]
belmoussaoui_ is now known as belmoussaoui
symm- has joined #ruby
jameser has joined #ruby
rohitpaulk has joined #ruby
symm- has quit [Client Quit]
jameser has quit [Client Quit]
jameser has joined #ruby
jameser has quit [Client Quit]
mtkd has joined #ruby
enterprisey has quit [Quit: Leaving]
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
\tau has joined #ruby
justbleed has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
David has joined #ruby
jameser has joined #ruby
mathys has quit [Remote host closed the connection]
mathys has joined #ruby
troys_ is now known as troys
jameser has quit [Client Quit]
postmodern has quit [Quit: Leaving]
jameser has joined #ruby
herbmillerjr has joined #ruby
jameser has quit [Client Quit]
AnoHito has joined #ruby
AnoHito_ has quit [Ping timeout: 260 seconds]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
_whitelogger has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 255 seconds]
belmoussaoui has joined #ruby
armyriad has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
govg has joined #ruby
Derperpe- has quit [Quit: Peace out]
Derperperd has joined #ruby
rohitpaulk has quit [Ping timeout: 268 seconds]
mtkd has quit [Ping timeout: 240 seconds]
AnoHito_ has joined #ruby
troys is now known as troys_
AnoHito has quit [Ping timeout: 240 seconds]
`tim` has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
armyriad has joined #ruby
AnoHito has joined #ruby
`tim` has quit [Ping timeout: 246 seconds]
AnoHito_ has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
ta has quit [Quit: Leaving...]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
jgnagy has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 246 seconds]
taurgal has joined #ruby
roamingdog has quit []
cfec0b8d has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
mtkd has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
quazimodo has joined #ruby
belmoussaoui__ has joined #ruby
belmoussaoui has quit [Ping timeout: 255 seconds]
zipace has joined #ruby
_whitelogger has joined #ruby
rippa has joined #ruby
taurgal has quit [Ping timeout: 255 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antgel has joined #ruby
CacoS has joined #ruby
morfin has joined #ruby
<morfin> hello
<havenwood> morfin: hi
quazimodo has quit [Ping timeout: 240 seconds]
<morfin> seems like OptionParser is capable to handle something ling --foo "bar" --foo="baz" etc?
govg has quit [Ping timeout: 260 seconds]
<morfin> oops
<morfin> --foo "bar" --foo "barN" etc
dkam has joined #ruby
Phanes has joined #ruby
<Phanes> what is `yarn check` actually doing?
<havenwood> Phanes: JavaScript things. (This is #ruby :-P.)
Bock has joined #ruby
Bock has quit [Max SendQ exceeded]
_main_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
_main_ has joined #ruby
<Phanes> oh. good to know.
_main_ has quit [Read error: Connection reset by peer]
KeyJoo has joined #ruby
govg has joined #ruby
_main_ has joined #ruby
__main__ has quit [Ping timeout: 260 seconds]
Bock has joined #ruby
<havenwood> morfin: Yeah, you can do as many as you like. It's up to you do decide what to do with the values.
nofxxxx has joined #ruby
<havenwood> morfin: Try something like: foos = []; opt_parser = OptionParser.new { |opts| opts.on('-f', '--foo [FOO]') { |foo| foos << foo } }; opt_parser.parse(ARGV); p foos
_main_ is now known as __main__
nofxxx has quit [Ping timeout: 268 seconds]
marr has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doublemalt__ has joined #ruby
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
taurgal has joined #ruby
Farioko has joined #ruby
taurgal has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
laekur has joined #ruby
laekur has quit [Quit: Peace]
taurgal has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
\tau has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
bkxd_ has joined #ruby
<Farioko> I'm trying to build a small rest API using sinatra and activerecord. The API is storing papers and they may contain several tags. How do I set up the relations?
quazimodo has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
lele has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
lele has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
lxsameer has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
rohitpaulk has joined #ruby
bpmedley has quit [Ping timeout: 268 seconds]
rohitpaulk has quit [Ping timeout: 255 seconds]
konsolebox_ has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
Psy-Q has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox_ has quit [Client Quit]
Psy-Q has joined #ruby
dkam has quit [Quit: Be back later ...]
dkam has joined #ruby
fxa90id has joined #ruby
rohitpaulk has joined #ruby
fxa90id has quit [Quit: Leaving]
fxa90id has joined #ruby
mikecmpbll has joined #ruby
MichaelBurge has joined #ruby
konsolebox has joined #ruby
A124 has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 268 seconds]
rohitpaulk has quit [Read error: Connection reset by peer]
jane_booty_doe has joined #ruby
jane_booty_doe has quit [Client Quit]
Sembei has quit [Read error: Connection reset by peer]
bkxd has quit [Read error: Connection reset by peer]
Sembei has joined #ruby
ddffg has joined #ruby
rohitpaulk has joined #ruby
bast has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
tomphp has joined #ruby
govg has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
jusa has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
Farioko has quit [Quit: Page closed]
ShekharReddy has joined #ruby
<morfin> Paper should has_an_belongs_to_many :tag?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morfin> has_and_belongs_to_many :tag
<morfin> so one tag can have many papers and one paper can has many tags
arquebus has joined #ruby
arquebus has quit [Client Quit]
taurgal has quit [Ping timeout: 255 seconds]
antgel has quit [Ping timeout: 255 seconds]
dn` has quit [Quit: dn`]
<zenspider> havenwood/morfin iirc there's also a way to tell it that it is explicitly an array arg
<morfin> ah he left
<zenspider> morfin: that's fine. they'll be back.
<zenspider> morfin: ah... stating it is an array means you can do --foo 1,2,3
<morfin> hmm
<zenspider> eg: parser.on("--list x,y,z", Array, "Example 'list' of arguments") do |list|
<zenspider> ri OptionParser and look for Array
<zenspider> ok... bed for me
<morfin> is parser capable to parse syntax with = and without = for short/long syntax?
<morfin> -u 1,33,5 or --users=1,33,5
<morfin> that's how args usually handled in many programs
bast has joined #ruby
bast has quit [Changing host]
bast has joined #ruby
<zenspider> morfin: please look at the doco. Try `ri OptionParser`
<morfin> ok
pankaj has joined #ruby
cjhowe7 has joined #ruby
meshsmith has joined #ruby
stormbytes has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 240 seconds]
mitt3ns has joined #ruby
ecuanaso has joined #ruby
agent_white has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
mitt3ns has quit [Ping timeout: 255 seconds]
belmoussaoui__ has quit [Read error: Connection reset by peer]
belmoussaoui__ has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
jameser has joined #ruby
jameser has quit [Client Quit]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
art-solopov has joined #ruby
cfec0b8d has joined #ruby
chalkmonster has quit [Quit: Daddy's flown, 'cross the ocean.]
laekur has joined #ruby
jane_booty_doe has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
jdawgaz has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
pankaj has quit [Quit: Leaving]
beawesomeinstead has quit [Quit: Connection closed for inactivity]
im0nde has joined #ruby
quazimodo has joined #ruby
cadillac__ has joined #ruby
ecuanaso has joined #ruby
rohitpaulk has quit [Ping timeout: 268 seconds]
laekur has quit [Quit: Leaving]
leitz has joined #ruby
antgel has joined #ruby
im0nde has quit [Ping timeout: 246 seconds]
laekur has joined #ruby
rohitpaulk has joined #ruby
Mon_Ouie has joined #ruby
MichaelBurge has quit [Remote host closed the connection]
MichaelBurge has joined #ruby
chalkmonster has joined #ruby
doublemalt_ has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 268 seconds]
im0nde has joined #ruby
doublemalt__ has quit [Ping timeout: 255 seconds]
A124 has joined #ruby
nanoz has joined #ruby
Fernando-Basso has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
mahlon has quit [Read error: Connection reset by peer]
devyn has quit [Ping timeout: 240 seconds]
mahlon has joined #ruby
devyn has joined #ruby
jdawgaz has quit [Quit: Textual IRC Client: www.textualapp.com]
guardianx has joined #ruby
ikoma has joined #ruby
guardianx has quit [Remote host closed the connection]
guardianxx has joined #ruby
s3nd1v0g1us has quit [Quit: tempusfugit]
bkxd has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
omab has joined #ruby
cadillac__ has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 245 seconds]
taurgal has joined #ruby
bkxd has joined #ruby
im0nde has quit [Ping timeout: 255 seconds]
Robtop__ has joined #ruby
guardianxx has left #ruby [#ruby]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
Alina-malina has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
cdg has joined #ruby
amosbird has joined #ruby
<amosbird> hello, how can I fix this bash script using ruby? echo '{"args":["$@"], "target_arg":"", "protocol_version":1}' | socat - UNIX-CONNECT:"${socket[0]}"
<amosbird> konsolebox: hi
<konsolebox> amosbird: this is my quick answer: ruby -e 'printf "{\"args\":[%s], \"target_arg\":\"\", \"protocol_version\":1}", ARGV.map{ |e| e.inspect }.join(", ")' -- "$@" | socat ...
<konsolebox> amosbird: but it can be done less hackily with JSON class
<amosbird> konsolebox: ok, do you mean it's better using jq?
<konsolebox> amosbird: no, JSON class of Ruby
<amosbird> konsolebox: well, this doesn't work
<konsolebox> amosbird: what's wrong with it?
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doublemalt_ has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
<amosbird> konsolebox: well i'm not sure. The output seems fine
<amosbird> something went wrong when piping it to the socet
<konsolebox> amosbird: wait i'll give a JSON solution
<amosbird> socket
<amosbird> oh
<amosbird> I seee
<amosbird> i see what's wrong
<amosbird> there is a trilling return char
<amosbird> trailing
ShekharReddy has quit [Quit: Connection closed for inactivity]
<konsolebox> amosbird: printf is not supposed to do that. it doesn't even to have a newline. i didn't add "\n", neither "\r"
<konsolebox> amosbird: this is the other less hacky solution: ruby -r json -e 'printf "{\"args\":%s, \"target_arg\":\"\", \"protocol_version\":1}", JSON.generate(ARGV)' -- "$@" | ...
<konsolebox> # ruby -r json -e 'printf "{\"args\":%s, \"target_arg\":\"\", \"protocol_version\":1}", JSON.generate(ARGV)' -- "a b" c d
<konsolebox> ok nothing happens
<amosbird> well, this still generates the trailing char
<amosbird> this bash solution works fine :) https://la.wentropy.com/hXcK
MichaelBurge has quit [Remote host closed the connection]
<konsolebox> amosbird: what do you get with: `ruby -r json -e 'printf "{\"args\":%s, \"target_arg\":\"\", \"protocol_version\":1}", JSON.generate(ARGV)' -- "a b" c d | hexdump -C`?
chalkmonster has quit [Ping timeout: 260 seconds]
ncthom91 has joined #ruby
<konsolebox> amosbird: well maybe it's good enough
<konsolebox> amosbird: just don't use quotes or other characters that need backslash quoting
chalkmonster has joined #ruby
im0nde has joined #ruby
<amosbird> konsolebox: .....
<amosbird> the shell indicates that it misses a return at the end
<amosbird> this works : ruby -r json -e 'printf "{\"args\":%s, \"target_arg\":\"\", \"protocol_version\":1}\n", JSON.generate(ARGV)' -- "a b" c d
<amosbird> thank you
<konsolebox> good if it does. np
<amosbird> ok, so the ruby solution is better than bash one
<konsolebox> the ruby solution quotes characters properly
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
taurgal has quit [Ping timeout: 260 seconds]
guardianx has joined #ruby
acalycine has joined #ruby
<acalycine> Is this the correct way to rescue this error? Error and code in this gist: https://gist.github.com/fd3b707353eb28f715625ec47bc47f1e
guardianx has quit [Read error: Connection reset by peer]
guardianx has joined #ruby
gigetoo has joined #ruby
im0nde has quit [Ping timeout: 255 seconds]
guardianx has left #ruby [#ruby]
<konsolebox> acalycine: if you're not confident about the class mentioned by the message, you can temporarily add another rescue after that rescue block (`Exception => e`) and have something like: puts "Thrown error's class was: #{e.class}, message was #{e.message}". optionally raise the exception back if you like. at least that's what i'd do.
<acalycine> But, surely the class is "OpenURI::HTTPError"?
<acalycine> It just doesn't seem to rescue when I try it
vuoto has joined #ruby
<acalycine> What do you mean raise back?
nowhere_man has quit [Ping timeout: 240 seconds]
<konsolebox> acalycine: rescue Exception => ex; puts "Message here..."; raise ex; end
<konsolebox> acalycine: i'd prefer to raise back critical errors.
<konsolebox> or fatal ones
<elomatreb> Don't rescue Exception, it will block signals
psychicist__ has joined #ruby
<acalycine> That's what I have now.
<konsolebox> ^ and that's the reason why i'd rescue it back
<konsolebox> *one of the reasons
<elomatreb> Remove the end in line 5 for your second rescue to work
amosbird has left #ruby ["WeeChat 1.8"]
<acalycine> Ah.
<acalycine> Why don't I need to end the begin block?
<elomatreb> You do, after all the rescues are done
<konsolebox> i thought that was just part of another block
<acalycine> I removed it, and still get the error.
<elomatreb> It *might* still work since Ruby has an implicit begin around most scopes, but still
<acalycine> I've ended both rescue blocks.
<konsolebox> acalycine: there's only one 'end' needed: begin ...; rescue E1 => ex; ...; rescue => E2 => ex2; ...; end
nowhere_man has joined #ruby
<acalycine> ah
bkutil has joined #ruby
<acalycine> Somehow I don't get the error anymore. I was inducing the error by placing too many requests to this API thing, but now I don't get it at all, and the code runs normally!
<acalycine> I wouldn't have thought rescue would have been a work-around for rate-limiting, if it's working like that
<elomatreb> Still, your rescue seems to me like it should have worked
<acalycine> Hmm, I thought so.
<acalycine> Okay, I have another question.
<acalycine> I'm currently using "ruby -W0", but I want to put that in the script.
<acalycine> But using the $VERBOSE global variable doesn't seem to work.
<acalycine> `$VERBOSE = nil` should be the same as `-W0`, but it doesn't seem to work.
<elomatreb> Settings that only affects code after it, are your warnings being printed before you set it?
<acalycine> I'd say so. They're just weird warnings about EventManager that I don't want on the console.
<acalycine> But even setting the global variable *before* all my requirements doesn't work.
<elomatreb> I'm not sure how verbosity behaves wrt threading, and EventManager sounds like it may involve them
ikoma has quit [Quit: ikoma]
<acalycine> ` Setting this to nil disables warnings, including from Kernel#warn.`
vuoto has quit [Remote host closed the connection]
minimalism has joined #ruby
sepp2k has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
omab has quit [Ping timeout: 255 seconds]
<acalycine> It should surpress it, elomatreb. `$VERBOSE = nil` is the same as `-W0`, so it should work.
im0nde has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
govg has joined #ruby
<konsolebox> acalycine: consider creating a script that could reproduce the issue (i.e., something that still produces a warning or any unexpected message even when $VERBOSE is set to nil), and then submit it to github.com/ruby/ruby, or maybe in ruby's mailing list. don't forget to tell the version of ruby you're using.
KeyJoo has quit [Ping timeout: 260 seconds]
<acalycine> ah, okay
<acalycine> perhaps i could just resolve the issue through fixing the errors given through the EventManager
<acalycine> Even though it's not the actual EventManager gem. I'm doing `require 'em/pure_ruby'`
<acalycine> And have just realised that I'm still getting the error.
<elomatreb> But -W0 works?
<acalycine> For the verbose issue, yes.
<acalycine> That's my full code.
shinnya has quit [Ping timeout: 255 seconds]
DLSteve has joined #ruby
ZacNoMore has joined #ruby
belmoussaoui__ has quit [Read error: Connection reset by peer]
belmoussaoui__ has joined #ruby
charliesome has joined #ruby
vuoto has joined #ruby
im0nde has quit [Quit: im0nde]
im0nde has joined #ruby
govg has quit [Ping timeout: 240 seconds]
leitz has quit [Quit: Nappy time]
jgnagy has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
cdg_ has joined #ruby
SenpaiSilver has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
oleo has quit [Quit: irc client terminated!]
acalycine has quit [Quit: bye]
vuoto has quit [Quit: Lost terminal]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
immensus has joined #ruby
vuoto has joined #ruby
vuoto has quit [Client Quit]
meshsmith has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
meshsmith has joined #ruby
immensus has left #ruby [#ruby]
vuoto has joined #ruby
vuoto has quit [Client Quit]
charliesome has joined #ruby
im0nde has quit [Ping timeout: 260 seconds]
<mathys> what is the best application server per ruby?
codelurker has joined #ruby
rohitpaulk has quit [Ping timeout: 260 seconds]
im0nde has joined #ruby
rohitpaulk has joined #ruby
troys_ is now known as troys
rohitpaulk has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<morfin> i have no idea why hash can has strings and symbols but it always confusing me :(
oleo has joined #ruby
im0nde has quit [Ping timeout: 268 seconds]
GodFather_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 1.7.1]
ecuanaso has joined #ruby
meshsmith has quit [Remote host closed the connection]
<konsolebox> mathys: declaring one would be subjective. but take a look at rails or sinatra.
GodFather has joined #ruby
<mathys> passenger could be a good application server?
GodFather has quit [Client Quit]
GodFather has joined #ruby
spastorino has joined #ruby
jgnagy has quit [Remote host closed the connection]
<konsolebox> i haven't heard of that yet
codelurker has quit [Quit: Leaving]
jgnagy has joined #ruby
ruurd has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjhowe7 has joined #ruby
PaulCapestany has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
im0nde has joined #ruby
brent__ has quit [Remote host closed the connection]
qsx has left #ruby ["WeeChat 1.7.1"]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui__ has quit [Read error: Connection reset by peer]
konsolebox has quit [Quit: .]
belmoussaoui__ has joined #ruby
im0nde has quit [Ping timeout: 245 seconds]
nadir has quit [Quit: Connection closed for inactivity]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
im0nde has joined #ruby
stormbytes has joined #ruby
ddffg has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
LastWhisper____ has joined #ruby
quobo has joined #ruby
<bkutil> mathys: 'best' => 'it depends' :) You can try passenger, unicorn or puma - all of them are fine. Nate Berkopec discusses the servers in https://www.speedshop.co/2015/07/29/scaling-ruby-apps-to-1000-rpm.html (Connecting to your server section), from performance/robustness perspective, but he also describes the architecture nicely.
belmoussaoui__ has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 260 seconds]
chalkmonster has quit [Quit: Daddy's flown, 'cross the ocean.]
<mathys> I'm getting 500 error when load the url but the static content work fine, what could be the issue?
ecuanaso has joined #ruby
ddffg has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
jgnagy has quit [Remote host closed the connection]
dviola has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
gizmore|2 has quit [Remote host closed the connection]
<havenwood> mathys: Puma is the default. Use that until you have a reason to move off the default.
spastorino has quit []
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
dar123 has joined #ruby
t-recx has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
sepp2k has quit [Read error: Connection reset by peer]
tomphp_ has joined #ruby
tomphp_ has quit [Client Quit]
ledestin has joined #ruby
cdg_ has quit [Remote host closed the connection]
marr has joined #ruby
CacoS has quit [Remote host closed the connection]
crazycoolzac has joined #ruby
<morfin> puma use Event Machine and ActionCable use that
<morfin> since whole server is event-drive
<morfin> n
<morfin> woops that's only about Rails, but i guess it's possible to implement similar thing with Sinatra/whatever
dionysus69 has joined #ruby
dar123 has quit [Quit: Textual IRC Client: www.textualapp.com]
ZacNoMore has quit [Ping timeout: 260 seconds]
<morfin> always keep doing same mistake
<morfin> :items and "items" :\
<morfin> i guess i need use HashWithIndifferentAccess
brent__ has joined #ruby
raumzeit has joined #ruby
rt has quit [Quit: Life is too short to wait.]
cczac1 has joined #ruby
rt has joined #ruby
raumzeit has quit [Client Quit]
crazycoolzac has quit [Ping timeout: 260 seconds]
<havenwood> morfin: Puma doesn't use EventMachine. Are you thinking of Thin?
troys is now known as troys_
A124 has quit [Ping timeout: 240 seconds]
<havenwood> morfin: ActionCable doesn't use EventMachine either. It did in an early prototype.
A124 has joined #ruby
<havenwood> morfin: Puma has its own reactor: https://github.com/puma/puma/blob/master/lib/puma/reactor.rb
enterprisey has joined #ruby
<morfin> ah
<morfin> sorry Thin use it
<morfin> but Puma is still event-driven
<morfin> nio4r?
<havenwood> morfin: Puma uses forking for workers, threads for threads and its own evented reactor.
<morfin> that's some attempt to create thing similar to JAVA nio?
<morfin> &Java
<havenwood> morfin: kgio is more that. nio4r is rather simple but has good bindings to kqueue and epoll from what i recall.
brent__ has quit [Remote host closed the connection]
nanoz has quit [Quit: <3]
<havenwood> ah, right, and then java nio wrapper as well.
<havenwood> and a pure ruby fallback.
<morfin> i guess with JRuby you can use native NIO
pazzaz has joined #ruby
<morfin> hmm
<havenwood> jruby is a first-class citizen with nio4r
<havenwood> yeah
<pazzaz> Does anyone here know why ruby-doc is down?
<havenwood> pazzaz: nope
<havenwood> pazzaz: you might want to ping james@neurogami.com
<morfin> and JRuby use SnakeYAML for yaml?
<havenwood> pazzaz: he's in this channel sometimes, i don't know the nick
<havenwood> pazzaz: or #haskell
<morfin> which is capable to handle aliases when even C++ implementations aren't even when they're 1.2 :(
DLSteve has joined #ruby
meshsmith has joined #ruby
haylon has joined #ruby
Cohedrin has joined #ruby
art-solopov has quit [Quit: Leaving]
sagax has quit [Ping timeout: 268 seconds]
opencw has joined #ruby
nadir has joined #ruby
David has quit [Quit: Page closed]
gheegh has quit [Ping timeout: 240 seconds]
sagax has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
cyphase has quit [Ping timeout: 255 seconds]
chalkmonster has joined #ruby
mtkd has joined #ruby
dviola has quit [Quit: WeeChat 1.8]
diego1 has joined #ruby
diego1 has quit [Client Quit]
cyphase has joined #ruby
workmad3 has joined #ruby
BSaboia has joined #ruby
ecuanaso has joined #ruby
mathys has quit [Quit: Leaving]
KeyJoo has joined #ruby
pen has quit [Remote host closed the connection]
<synstack> ruby is nice
_sfiguser has joined #ruby
yeticry_ has quit [Quit: leaving]
dviola has joined #ruby
yeticry has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 260 seconds]
CacoS has joined #ruby
laekur has quit [Quit: Leaving]
jgnagy has joined #ruby
Immune has quit [Quit: ZzzZZZzzzz]
<morfin> well, i like Ruby much more than PHP :)
<cerulean> i like ruby and php both, but i usually dont mess with php anymore
jgnagy has quit [Ping timeout: 240 seconds]
<nofxxxx> cerulean, I like my $ with numbers after, thank you
<cerulean> not saying to use php, i only go back for when people need like drupal or something
<cerulean> and then i only install and dont edit
<cerulean> php variable syntax is retarded
chalkmonster has quit [Ping timeout: 245 seconds]
patarr has joined #ruby
taurgal has joined #ruby
<morfin> sometimes i dream about no not cheese :) just about being able to avoid some PHP projects i have to support
<morfin> *not about cheese
KatyJones has joined #ruby
<morfin> but i still forget about hashes keys differences :(
patarr has quit [Ping timeout: 255 seconds]
Bock has quit [Read error: Connection reset by peer]
<sagax> [04.06.17 21:28:54] <synstack> ruby is nice
<sagax> true
jgt2 has joined #ruby
<KatyJones> Can anyone advise how I can DRY this code up? https://pastebin.com/vxCXdxR1
<ruby[bot]> KatyJones: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/b591c64dcfc7c52f0a9fb473f5dda506
<ruby[bot]> KatyJones: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<morfin> pastebin is garbage
<ljarvis> KatyJones: move the constants to a shared level
<morfin> weird
<morfin> sleep 1.second hangs up my Ruby
<morfin> why that can happen? If i ctrl+c it says that execution has been interrupted in sleep
sepp2k has joined #ruby
Jayson_Virissimo has joined #ruby
opencw has quit [Quit: Quantumcommunicationsspacestationarraynetwork offline]
<ljarvis> KatyJones: sure, that works
<ljarvis> I would probably have a top class Request and have subclasses that override options myself, though
tomphp has joined #ruby
<morfin> i think i should trottle my speed only when API reports that i send requests too quickly
<KatyJones> Hmm that's an interesting idea
enterprisey has quit [Remote host closed the connection]
<havenwood> morfin: 1.second is a Rails ActiveSupport::Duration. It should work with Kernel#sleep.
<morfin> i use activesupport )
<morfin> but sometimes i get hangup in sleep which is weird
<havenwood> morfin: If for some reason it's not working you might try explicitly turning it into an Integer, like: sleep 1.minute.to_i
tomphp_ has joined #ruby
<havenwood> morfin: 1.minute.to_i #=> 60
<havenwood> morfin: or create your own throttling that respects the API limits
<morfin> i think i should throttle
<morfin> because e.code == 6 => too many requests => need sleep a bit and repeat
<havenwood> morfin: or, don't request too many
<havenwood> morfin: throttle yourself to respect the API limits rather than backing off when they 420 error you
<havenwood> assuming the API rate limits are known
<havenwood> they usually publish them
tomphp has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
<KatyJones> Does it make sense for a base class to call methods that only belong in the subclass? https://gist.github.com/anonymous/e3b6b97b42818abcd585b74f14224962
tomphp_ has quit [Max SendQ exceeded]
jusa has joined #ruby
<ljarvis> KatyJones: yes, you could also define options on the base class with some defaults, and do `super.merge(timeout: 15)` or something
<ljarvis> there's many ways
<morfin> worst part that sleep 1 hangs up too
<ljarvis> morfin: is sleep being overridden?
<KatyJones> Thanks ljarvis
czerasz has joined #ruby
DarrinStephens has joined #ruby
<DarrinStephens> Hi
acemo has quit []
<morfin> hmm idk i use ruby-vk which use Faraday
<DarrinStephens> hey morfin
phenix has joined #ruby
konsolebox has joined #ruby
texasmynsted has joined #ruby
<texasmynsted> Where is the ruby online docs?
tomphp has joined #ruby
<texasmynsted> I thought is was here —-> http://ruby-doc.org/
<texasmynsted> but that site is down or does not exist
<ljarvis> texasmynsted: it is there, it's just down right now
<texasmynsted> It there a way to install those docs locally?
<morfin> hi, daed
<morfin> DarrinStephens
blackwind_123 has joined #ruby
haylon has quit [Quit: Leaving]
fxa has joined #ruby
<havenwood> texasmynsted: Yes. How'd you install Ruby?
<morfin> hmm
<havenwood> texasmynsted: You can find stdlib docs here: https://docs.ruby-lang.org/en/2.4.0/
<morfin> seems like my issue not with sleeping
<morfin> except maybe i sleep not much =)
<havenwood> texasmynsted: gem install rdoc-data && rdoc-data --install
fxa90id has quit [Ping timeout: 240 seconds]
<morfin> it seems to be an issue with implementation of API
<havenwood> texasmynsted: Or say if you're using RVM: rvm docs generate
<havenwood> texasmynsted: Check if you already have ri setup: ri Array
KatyJones has quit [Ping timeout: 260 seconds]
BSaboia has quit [Ping timeout: 240 seconds]
taurgal has quit [Ping timeout: 255 seconds]
<havenwood> texasmynsted: Or there are ruby-docs packages. Anyhow, you probably already have the docs installed or it's not hard to install them.
<havenwood> It depends on how you installed Ruby whether you already have them or need to add them.
<morfin> eventually i will install Ruby in Msys2 )
pen has joined #ruby
<texasmynsted> thank you
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jusa has quit [Ping timeout: 245 seconds]
herbmillerjr has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
pen has quit [Remote host closed the connection]
_sfiguser has quit [Ping timeout: 240 seconds]
matthewd has quit [Ping timeout: 260 seconds]
matthewd has joined #ruby
czerasz_ has joined #ruby
dcunit3d has quit [Read error: Connection reset by peer]
czerasz has quit [Ping timeout: 245 seconds]
dcunit3d has joined #ruby
bpmedley has joined #ruby
_sfiguser has joined #ruby
pen has joined #ruby
Asher has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
herbmillerjr has joined #ruby
pen has quit [Ping timeout: 260 seconds]
matthewd has quit [Ping timeout: 260 seconds]
matthewd has joined #ruby
nyuszika7h has quit [Disconnected by services]
morfin60 has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
pelegreno_____ has joined #ruby
Antiarc_ has joined #ruby
nyuszika7h_ has joined #ruby
rikai_ has joined #ruby
czerasz_ has quit [Quit: Ex-Chat]
abort_ has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
diegok has joined #ruby
ij- has joined #ruby
synstack_ has joined #ruby
synstack_ has joined #ruby
synstack_ has quit [Changing host]
Kilobyte22 has joined #ruby
nchamber- has joined #ruby
benjen- has joined #ruby
nfsnobody has joined #ruby
RealMarc has joined #ruby
`derpy has joined #ruby
ledestin has quit [*.net *.split]
morfin has quit [*.net *.split]
Antiarc has quit [*.net *.split]
iomotoko has quit [*.net *.split]
spectra has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
sspreitzer has quit [*.net *.split]
bauruine_ has quit [*.net *.split]
Marc- has quit [*.net *.split]
_derpy has quit [*.net *.split]
dgs_ has quit [*.net *.split]
pelegreno____ has quit [*.net *.split]
lipoqil has quit [*.net *.split]
cstrahan has quit [*.net *.split]
diego_k has quit [*.net *.split]
Qommand0r has quit [*.net *.split]
Tony-St4rk has quit [*.net *.split]
bcavileer has quit [*.net *.split]
rfv has quit [*.net *.split]
mrsolo has quit [*.net *.split]
rikai has quit [*.net *.split]
rann has quit [*.net *.split]
pizzaops has quit [*.net *.split]
benjen has quit [*.net *.split]
abort has quit [*.net *.split]
ij has quit [*.net *.split]
gmcintire has quit [*.net *.split]
seanh has quit [*.net *.split]
Majost has quit [*.net *.split]
dman[m] has quit [*.net *.split]
M107262[m] has quit [*.net *.split]
johnson[m] has quit [*.net *.split]
intermo[m] has quit [*.net *.split]
bascht has quit [*.net *.split]
znz_jp has quit [*.net *.split]
synstack has quit [*.net *.split]
Guest37310 has quit [*.net *.split]
dunk has quit [*.net *.split]
nchambers has quit [*.net *.split]
scorphus has quit [*.net *.split]
andersh has quit [*.net *.split]
tpendragon has quit [*.net *.split]
jimeh has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
ewilliam__ has quit [*.net *.split]
deimos has quit [*.net *.split]
rrichardsr3 has quit [*.net *.split]
mattwc has quit [*.net *.split]
avdi has quit [*.net *.split]
mnemon has quit [*.net *.split]
Heero__ has quit [*.net *.split]
nebben has quit [*.net *.split]
pmarreck has quit [*.net *.split]
nfsnobody- has quit [*.net *.split]
spiette has quit [*.net *.split]
Meow-J has quit [*.net *.split]
hsiktas has quit [*.net *.split]
troter__________ has quit [*.net *.split]
petems has quit [*.net *.split]
nchamber- is now known as nchambers
workmad3 has quit [Ping timeout: 246 seconds]
spiette has joined #ruby
sspreitz has joined #ruby
rrichardsr3 has joined #ruby
rann has joined #ruby
cstrahan has joined #ruby
iomotoko has joined #ruby
lipoqil has joined #ruby
ledestin has joined #ruby
mnem has joined #ruby
dgs has joined #ruby
dman[m] has joined #ruby
Majost has joined #ruby
mrsolo has joined #ruby
seanh has joined #ruby
gmcintire has joined #ruby
intermo[m] has joined #ruby
Guest37310 has joined #ruby
bascht has joined #ruby
Tony-St4rk has joined #ruby
johnson[m] has joined #ruby
bcavileer has joined #ruby
andersh has joined #ruby
dunk has joined #ruby
M107262[m] has joined #ruby
avdi has joined #ruby
Heero__ has joined #ruby
jimeh has joined #ruby
mattwc has joined #ruby
ewilliam__ has joined #ruby
troter__________ has joined #ruby
pmarreck has joined #ruby
M107262[m] has quit [Max SendQ exceeded]
cerulean has left #ruby [#ruby]
petems has joined #ruby
mnem is now known as Guest37009
Qommand0r has joined #ruby
NightMonkey has joined #ruby
tekk has quit [Ping timeout: 240 seconds]
mkaito has quit [Ping timeout: 240 seconds]
hsiktas has joined #ruby
nebben has joined #ruby
stormbytes has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
velu_aon[m] has quit [Ping timeout: 240 seconds]
jonjits[m] has quit [Ping timeout: 240 seconds]
thulsa_legume[m] has quit [Ping timeout: 240 seconds]
jakebriggs[m] has quit [Ping timeout: 240 seconds]
voltai[m] has quit [Ping timeout: 264 seconds]
daveyboi[m] has quit [Ping timeout: 246 seconds]
Giphy[m] has quit [Ping timeout: 246 seconds]
deimos has joined #ruby
testnick[m] has quit [Ping timeout: 258 seconds]
kp666[m] has quit [Ping timeout: 258 seconds]
aviraldg has quit [Ping timeout: 255 seconds]
dman[m] has quit [Ping timeout: 272 seconds]
johnson[m] has quit [Ping timeout: 272 seconds]
intermo[m] has quit [Ping timeout: 272 seconds]
bascht has quit [Ping timeout: 272 seconds]
zeroDivisible has quit [Ping timeout: 260 seconds]
vircung has quit [Ping timeout: 260 seconds]
pizzaops has joined #ruby
Meow-J has joined #ruby
rfv has joined #ruby
el_ocho[m] has quit [Ping timeout: 264 seconds]
heftig has quit [Ping timeout: 264 seconds]
KevinMGranger has quit [Ping timeout: 240 seconds]
jinie has quit [Ping timeout: 240 seconds]
bauruine has joined #ruby
Psy-Q has quit [Ping timeout: 260 seconds]
torarne has quit [Ping timeout: 258 seconds]
Tagami[m] has quit [Ping timeout: 276 seconds]
tpendragon has joined #ruby
turt2live has quit [Ping timeout: 255 seconds]
zeroDivisible has joined #ruby
tekk has joined #ruby
ytti has quit [Ping timeout: 260 seconds]
mkaito has joined #ruby
vircung has joined #ruby
ytti has joined #ruby
jinie has joined #ruby
Psy-Q has joined #ruby
dasher00 has quit [Ping timeout: 260 seconds]
xikuukawaii has joined #ruby
ij- is now known as ij
ij has joined #ruby
ij has quit [Changing host]
ij has left #ruby ["WeeChat 1.7.1"]
<xikuukawaii> How do I iterate a loop once every x minutes?
spectra has joined #ruby
<xikuukawaii> Nvm just found sleep
xikuukawaii has quit [Client Quit]
stormbytes has joined #ruby
pen has joined #ruby
pen has quit [Remote host closed the connection]
dasher00 has joined #ruby
herbmillerjr has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fxa has quit [Quit: Leaving]
cfec0b8d has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
herbmillerjr has quit [Quit: Konversation terminated!]
Tagami[m] has joined #ruby
nicolai86 has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 260 seconds]
matthewd has quit [Ping timeout: 240 seconds]
nicolai86 has joined #ruby
matthewd has joined #ruby
jane_booty_doe has quit [Quit: Leaving]
herbmillerjr has joined #ruby
nicolai86 has quit [Remote host closed the connection]
CacoS has quit [Ping timeout: 240 seconds]
kp666[m] has joined #ruby
johnson[m] has joined #ruby
intermo[m] has joined #ruby
daveyboi[m] has joined #ruby
M107262[m] has joined #ruby
bascht has joined #ruby
jonjits[m] has joined #ruby
thulsa_legume[m] has joined #ruby
dman[m] has joined #ruby
jakebriggs[m] has joined #ruby
torarne has joined #ruby
heftig has joined #ruby
aviraldg has joined #ruby
Giphy[m] has joined #ruby
turt2live has joined #ruby
voltai[m] has joined #ruby
ecuanaso has joined #ruby
KevinMGranger has joined #ruby
velu_aon[m] has joined #ruby
testnick[m] has joined #ruby
el_ocho[m] has joined #ruby
meshsmith has quit [Remote host closed the connection]
Jayson_Virissimo has quit []
nicolai86 has joined #ruby
nicolai86 has quit [Remote host closed the connection]
nicolai86 has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
nowhere_man has joined #ruby
nicolai86 has quit [Remote host closed the connection]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfec0b8d has joined #ruby
nicolai86 has joined #ruby
saltsa has quit [Ping timeout: 240 seconds]
saltsa has joined #ruby
<yorickpeterse> konsolebox: regarding #append being silly, I think it's silly because basically every language out there already uses "push", and "push" itself should be clear enough
im0nde has quit [Quit: im0nde]
morfin60 has quit []
im0nde has joined #ruby
GodFather has joined #ruby
* apeiros doesn't like the alias-itis ruby has
<apeiros> it makes code actually less readable
<apeiros> why? because it means unless you have a perfect memory of all aliases, you have to look up whether there's subtle differences…
nicolai86 has quit [Remote host closed the connection]
nicolai86 has joined #ruby
brent__ has joined #ruby
nicolai86 has quit [Remote host closed the connection]
meshsmith has joined #ruby
nicolai86 has joined #ruby
nertzy has joined #ruby
im0nde has quit [Ping timeout: 272 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jusa has joined #ruby
nicolai86 has quit [Remote host closed the connection]
jusa has quit [Ping timeout: 255 seconds]
nertzy has quit [Quit: Leaving]
nicolai86 has joined #ruby
nyuszika7h_ is now known as nyuszika7h
nertzy has joined #ruby
im0nde has joined #ruby
jpterry_ has joined #ruby
brent__ has quit [Remote host closed the connection]
jpterry has quit [Ping timeout: 268 seconds]
jpterry_ is now known as jpterry
hogetaro has quit [Quit: Leaving...]
Bock has joined #ruby
chouhoul_ has joined #ruby
djbkd has joined #ruby
Myk267 has quit [Quit: Leaving]
Myk267 has joined #ruby
Myk267 has quit [Client Quit]
Myk267 has joined #ruby
<nofxxxx> the coolest thing in 2.5 is reversed backtrace error... that's something that really saves time
roshanavand has quit [Quit: roshanavand]
<nofxxxx> not to mention mental sanity
ahrs has quit [Remote host closed the connection]
<nofxxxx> 'reversed' in relation to old way... it's actually the correct way imho (only thing that was done correctly in python and not in ruby btw)
PaulCapestany has joined #ruby
ahrs has joined #ruby
<nofxxxx> apeiros, the fun with aliases is that some will be the 'prefered' lint thing way hehe... so goes like "yeah, you could write that way, but please don't"
herbmillerjr has joined #ruby
PaulCape_ has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.8]
ecuanaso has joined #ruby
PaulCapestany has quit [Ping timeout: 260 seconds]
herbmillerjr has quit [Remote host closed the connection]
troys_ is now known as troys
KeyJoo has quit [Ping timeout: 255 seconds]
jgnagy has joined #ruby
alveric1 has joined #ruby
jgnagy has quit [Ping timeout: 272 seconds]
jgt2 has joined #ruby
herbmillerjr has joined #ruby
elcontrastador has joined #ruby
PaulCape_ has quit [Ping timeout: 272 seconds]
jpterry has quit [Ping timeout: 268 seconds]
PaulCapestany has joined #ruby
jpterry has joined #ruby
PaulCapestany has quit [Ping timeout: 258 seconds]
PaulCape_ has joined #ruby
alveric1 is now known as lordalveric
PatrikasZvaigzde has quit [Ping timeout: 240 seconds]
PatrikasZvaigzde has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
PaulCapestany has joined #ruby
PaulCape_ has quit [Ping timeout: 240 seconds]
ledestin has quit [Ping timeout: 272 seconds]
zipace has quit [Ping timeout: 268 seconds]
marr has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
_sfiguser has quit [Quit: Leaving]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|ifei5g00d has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
im0nde has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
MichaelBurge has joined #ruby
MichaelBurge has quit [Remote host closed the connection]
ecuanaso has joined #ruby
ineb has joined #ruby
<zenspider> need help understanding this oddity: https://gist.github.com/801d9cef0f71a257e7266b8570d93f58
<zenspider> basically, if I try to make this purely declarative (extend is INSIDE), then it doesn't work
<zenspider> I can't see why tho
<zenspider> SHIT. derp. precedence of do/end vs {}...
<apeiros> oh, nice spotting
<apeiros> so `extend Module.new do` is the culprit
* apeiros still thinks methods should raise when not taking a block
herbmillerjr has quit [Quit: Konversation terminated!]
ptx0 has quit [Ping timeout: 245 seconds]
im0nde has joined #ruby
<manveru> is there any release of 2.5 yet?
<manveru> i thought it's christmas
<manveru> i guess https://bugs.ruby-lang.org/versions/34 is the status
DLSteve has joined #ruby
lupine has quit [Ping timeout: 255 seconds]
ledestin has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
lupine has joined #ruby
alveric1 has joined #ruby