adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.3, 2.7.5, 2.6.9: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
ur5us has quit [Ping timeout: 252 seconds]
graywolf has quit [Quit: WeeChat 3.3]
maroloccio has joined #ruby
ur5us has joined #ruby
tkonto has quit [Quit: tkonto]
ua_ has quit [Ping timeout: 256 seconds]
ua_ has joined #ruby
postmodern has joined #ruby
<postmodern> trying to call IRB::Irb#run with a custom config Hash (dup'ed from IRB.conf with some modifications), but it doesn't seem to work
<postmodern> if however, i directly modify IRB.conf and call IRB::Irb#run it works as expected. is this normal behavior or am i missing something?
BSaboia has joined #ruby
<adam12> postmodern: Likely a limitation of IRB. If you look through the hanami repos, I think Tim just worked through the exact same problem.
<postmodern> adam12, hmm not seeing it in hanami/hanami
<postmodern> what even confuses me more is i get different results on ruby-2.7 and ruby-3.0, likely due to some internal change to the irb gem
<postmodern> also it appears testing IRB within IRB, causes IRB.conf to be pre-populated
<adam12> postmodern: I think it's this one: https://github.com/hanami/cli/pull/6/files
<postmodern> hmm grepping around in irb's source shows lots of IRB.conf[...] instances, so doesn't look like i can pass in a custom local config
<adam12> Gotta run. Good luck.
<postmodern> guess i just have to keep hacking away at it
Rounin has joined #ruby
dohtem has quit [Quit: Connection closed for inactivity]
shlomo has joined #ruby
shlomo_ has joined #ruby
shlomo__ has joined #ruby
shlomo has quit [Ping timeout: 256 seconds]
shlomo_ has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
BSaboia has quit [Remote host closed the connection]
dohtem has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
apple-corps has joined #ruby
<apple-corps> Hi ruby folks. I have an array of objects or hashes (might be array of JSON like objects) and I'd like to take the first index of the array if it exists and check for a particular key. If the key does not exist I would like to throw an Exception and ideally I'd like to interpolate or display the array or object as part of the Exception message in a
<apple-corps> readable form. Is there a quick and  reasonable means to write this? I've currently satisfied the checking so my question is really how do I present the array when say arr = [...] IE "raise StandardErr.new "Non-empty Array without expected object arr.mkString()" where mkString or another method will hopefully provide a way to inspect the arrays
<apple-corps> contents.
<apple-corps> Maybe this is more appropriate for a ruby mailing list
shlomo__ has quit [Quit: Leaving]
postmodern has quit [Remote host closed the connection]
<apple-corps> Looks like simply arr.to_s should work... doh!
apple-corps has quit [Quit: Client closed]
Furai has quit [Quit: WeeChat 3.3]
kinduff6 has joined #ruby
Furai has joined #ruby
kinduff has quit [Ping timeout: 256 seconds]
kinduff6 is now known as kinduff
teclator has joined #ruby
dohtem has quit [Quit: Connection closed for inactivity]
_ht has joined #ruby
CrazyEddy has quit [Ping timeout: 240 seconds]
Bounga has joined #ruby
dostoyevsky2 has joined #ruby
<cAMP> Go Ryan!
<cAMP> This prez is a good candidate for intro into tdd/bdd, IMO.
_ht has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
tkonto has joined #ruby
tkonto_ has joined #ruby
tkonto has quit [Client Quit]
tkonto_ has quit [Ping timeout: 256 seconds]
keyvan has quit [Ping timeout: 240 seconds]
keyvan has joined #ruby
lipoqil has joined #ruby
tkonto has joined #ruby
tkonto has quit [Ping timeout: 240 seconds]
tkonto_ has joined #ruby
tkonto_ is now known as tkonto
tkonto has quit [Client Quit]
tkonto has joined #ruby
tkonto has quit [Quit: tkonto]
tkonto has joined #ruby
taupiqueur has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
taupiqueur_ has joined #ruby
taupiqueur has quit [Ping timeout: 265 seconds]
roadie has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
Guest2923 has joined #ruby
cornduck has quit [Ping timeout: 276 seconds]
cornduck has joined #ruby
Guest2923 is now known as Pip
Pip is now known as Guest2903
Guest2903 is now known as help
Hess has quit [Quit: Write your own quit message here.]
help is now known as Rafaleman
taupiqueur_ has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
Rafaleman is now known as pippip
constxd has joined #ruby
taupiqueur has joined #ruby
Oxfuxxx has quit [Ping timeout: 265 seconds]
Oxfuxxx has joined #ruby
pip has joined #ruby
pip is now known as Guest4613
taupiqueur has quit [Ping timeout: 240 seconds]
pippip has quit [Ping timeout: 265 seconds]
Guest4613 is now known as Pipipip
<dorian> hey question, is something like #to_a<ClassName> a legal parameter declaration in yard?
<dorian> if so, it's ostensibly not in the docs
<adam12> dorian: not sure I've seen a syntax like that before. Only the interface (#to_a)
<dorian> yeah just wanted a way to express that i don't care if the input *is* an array or not, but only that it can be made into one, but whatever it is it must contain the given types
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
Pipipip has quit [Read error: Connection reset by peer]
Pipipip has joined #ruby
Pipipip has quit [Read error: Connection reset by peer]
Pipipip has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
Bounga has joined #ruby
BSaboia has joined #ruby
Pipipip has quit [Quit: Leaving]
BSaboia has quit [Client Quit]
tkonto has quit [Quit: tkonto]
hololeap has quit [Ping timeout: 276 seconds]
roadie has joined #ruby
BSaboia has joined #ruby
TomyWork has joined #ruby
hololeap has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
niv has quit [Client Quit]
Bounga has quit [Ping timeout: 240 seconds]
niv has joined #ruby
taupiqueur has joined #ruby
_ht has joined #ruby
maroloccio has quit [Quit: WeeChat 3.0]
dohtem has joined #ruby
<nakilon> I don't get it; I need to load a file with multiple JSONs; both json-stream and oj throw an exception right when the second object comes; yajl does not work at all, saying uninitialized constant Yajl::Parser
<nakilon> ok, had to deinstall yajl and install yajl-ruby; seems working now
roadie has quit [Ping timeout: 252 seconds]
taupiqueur has quit [Ping timeout: 256 seconds]
gcd has quit [Remote host closed the connection]
ur5us has joined #ruby
Guest87 has joined #ruby
Guest87 has quit [Client Quit]
taupiqueur has joined #ruby
roadie has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
roadie has quit [Remote host closed the connection]
Rounin has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 252 seconds]
___nick___ has joined #ruby
taupiqueur has quit [Ping timeout: 245 seconds]
TCZ has joined #ruby
Guest42 has joined #ruby
puts has joined #ruby
TCZ has quit [Ping timeout: 256 seconds]
dohtem has quit [Quit: Connection closed for inactivity]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
Guest42 has quit [Quit: Client closed]
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
taupiqueur has joined #ruby
ur5us has joined #ruby
taupiqueur has quit [Ping timeout: 265 seconds]
roadie has joined #ruby
MeowcatWoofWoofF has quit [Ping timeout: 240 seconds]
andrea[m] has quit [Ping timeout: 240 seconds]
hsiktas[m] has quit [Ping timeout: 252 seconds]
manveru[m]1 has quit [Ping timeout: 250 seconds]
sixecho has quit [Ping timeout: 250 seconds]
jhass[m] has quit [Ping timeout: 250 seconds]
alex[m]121 has quit [Ping timeout: 250 seconds]
artemon has quit [Ping timeout: 268 seconds]
aximik[m] has quit [Ping timeout: 268 seconds]
saltrocklamp[m] has quit [Ping timeout: 268 seconds]
aximik[m] has joined #ruby
saltrocklamp[m] has joined #ruby
donofrio has joined #ruby
_aeris_ has joined #ruby
aeris has quit [Remote host closed the connection]
_aeris_ is now known as aeris
_ht has quit [Remote host closed the connection]
manveru[m]1 has joined #ruby
___nick___ has quit [Ping timeout: 268 seconds]
puts is now known as TCZ
TCZ has quit [Quit: Leaving]
TCZ has joined #ruby
taupiqueur has joined #ruby
taupiqueur has quit [Ping timeout: 250 seconds]
jhass[m] has joined #ruby
roadie has quit [Ping timeout: 265 seconds]
gcd has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
constxd has quit [Ping timeout: 265 seconds]
BSaboia has joined #ruby
artemon has joined #ruby
MeowcatWoofWoofF has joined #ruby
andrea[m] has joined #ruby
taupiqueur has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
roadie has joined #ruby
taupiqueur has quit [Ping timeout: 268 seconds]
TCZ has quit [Quit: Leaving]
roadie has quit [Ping timeout: 268 seconds]
hsiktas[m] has joined #ruby
ferr_ has quit [Read error: Connection reset by peer]
hsiktas[m] has quit [Write error: Connection reset by peer]
andrea[m] has quit [Write error: Connection reset by peer]
MeowcatWoofWoofF has quit [Write error: Connection reset by peer]
aximik[m] has quit [Read error: Connection reset by peer]
saltrocklamp[m] has quit [Write error: Connection reset by peer]
manveru[m]1 has quit [Write error: Connection reset by peer]
jhass[m] has quit [Read error: Connection reset by peer]
artemon has quit [Read error: Connection reset by peer]
fercell has joined #ruby
jhass[m] has joined #ruby
sixecho has joined #ruby
alex[m] has joined #ruby
hsiktas[m] has joined #ruby
artemon has joined #ruby
saltrocklamp[m] has joined #ruby
andrea[m] has joined #ruby
MeowcatWoofWoofF has joined #ruby
aximik[m] has joined #ruby
manveru[m] has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
shiru has joined #ruby
shiru has quit [Client Quit]
taupiqueur has joined #ruby
taupiqueur has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
sixecho has quit [Quit: Client limit exceeded: 20000]
jhass[m] has quit [Quit: Client limit exceeded: 20000]
artemon has quit [Quit: Client limit exceeded: 20000]
hsiktas[m] has quit [Quit: Client limit exceeded: 20000]
saltrocklamp[m] has quit [Quit: Client limit exceeded: 20000]
BSaboia has joined #ruby
alex[m] has quit [Quit: Client limit exceeded: 20000]
roadie has quit [Ping timeout: 250 seconds]
andrea[m] has quit [Quit: Client limit exceeded: 20000]
roadie has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
roadie has quit [Ping timeout: 250 seconds]
taupiqueur has joined #ruby
TCZ has joined #ruby
taupiqueur has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
taupiqueur has joined #ruby