havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.0, 2.5.3, 2.4.5: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
drale2k_ has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
cschneid has joined #ruby
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 250 seconds]
Azure has joined #ruby
clemens3 has quit [Ping timeout: 272 seconds]
hutch has joined #ruby
donofrio has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4350 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
cschneid has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem has quit [Remote host closed the connection]
akem has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
connermcd has joined #ruby
AJA4350 has joined #ruby
apparition has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
connermcd has quit [Quit: WeeChat 2.3]
hutch has quit [Ping timeout: 258 seconds]
r29v has quit [Quit: r29v]
tdy has joined #ruby
jottr_ has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
ghormoon has quit [Remote host closed the connection]
cd has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
tdy has joined #ruby
ss_much has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
cschneid has joined #ruby
<cnsvc> https://dpaste.de/T3JM is this a ruby issue?
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> It's an issue with old versions of the mysql2 gem.
<baweaver> or rather it's an incompatibility with newer versions of Ruby > 2.4ish iirc
<cnsvc> i can reproduce this error when using the latest mysql2 gem v0.5.2
<baweaver> Hrm. What version of Rails are you on?
<baweaver> It may be you found a 2.6 bug, there are a few edges around still
AJA4350 has joined #ruby
<cnsvc> Rails is 4.2.10
rkazak has joined #ruby
<cnsvc> Ruby 2.5.3 has the same error.. I guess it's related to my setup. No idea how to figure out..
<baweaver> There are already some 2.6 errors ereported
<baweaver> Though 4.2 is also old and pretty well in security only mode.
<baweaver> Can you see if it happens with a later version of Rails?
<cnsvc> sure i'll have a try
<baweaver> Worst case I'd report this on the Rails github page as something screwy is going on there
tdy has quit [Ping timeout: 272 seconds]
<hays> is this use of class_eval the way to implement something like attr_reader? https://mikeyhogarth.wordpress.com/2011/12/01/creating-your-own-attr_accessor-in-ruby/
<hays> interpolating strings like this makes me a little nervous
<baweaver> Good
<baweaver> It should
<baweaver> define_instance_method if I remember right
<hays> great way to inject code into a class
<baweaver> Ah, it was just define method
<baweaver> define_method(name, &function)
cschneid has quit [Remote host closed the connection]
ghormoon has joined #ruby
AJA4350 has quit [Remote host closed the connection]
<Iambchop> cnsvc: it looks like the BigDecimal warning was fixed in Rails 5.x: https://github.com/rails/rails/pull/31435 I don't know about the segfault :)
rkazak has quit [Quit: Sleep.....ing....]
<hays> baweaver: this seems to be best way? https://bpaste.net/show/9e33a4b3d28b
<hays> still seems a bit iffy. i guess i can type check that its a symbol
duderonomy has joined #ruby
<cnsvc> Iambchop: that's right for warning
<cnsvc> i tried on latst rails it has the same error.
<cnsvc> it must be related to mysql now - since sqlite is ok
<cnsvc> let me dig more
tdy has joined #ruby
poprocks has joined #ruby
<poprocks> Dumb question, but I just upgraded from 2.2.10 to 2.5.3, and I now want to migrate my gems from /usr/lib/ruby/gems/2.2.0/* to 2.5.0/. Is there a simple 'gem' command (other than a for loop with a shell script running 'gem install' on all gems in 2.2.0 to migrate these to 2.5.0?
<poprocks> I landed up just doing it with a shell script. Very silly, but I know there has to be a better way (maybe this "rvm" thing is the answer).
tdy has quit [Ping timeout: 268 seconds]
Renich has joined #ruby
apparition has quit [Quit: Bye]
tdy has joined #ruby
braincrash has quit [Quit: bye bye]
_whitelogger has joined #ruby
uplime has joined #ruby
millerti has quit [Ping timeout: 245 seconds]
arthurnn has quit [Ping timeout: 268 seconds]
arthurnn has joined #ruby
kapil____ has joined #ruby
Renich has quit [Quit: Renich]
houhoulis has quit [Remote host closed the connection]
_whitelogger has joined #ruby
rippa has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
rkazak has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jordanm has quit [Read error: Connection reset by peer]
jordanm has joined #ruby
poprocks has left #ruby [#ruby]
cschneid has joined #ruby
cschneid has quit [Ping timeout: 244 seconds]
_whitelogger has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
tdy has quit [Remote host closed the connection]
tdy has joined #ruby
al2o3-cr-tmp has joined #ruby
al2o3-cr is now known as Guest77189
al2o3-cr-tmp is now known as al2o3-cr
Dbugger has joined #ruby
masterasia has quit [Ping timeout: 246 seconds]
tdy has quit [Ping timeout: 268 seconds]
SuperLag has quit [Ping timeout: 246 seconds]
SuperLag has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
cschneid has joined #ruby
elomatreb has quit [Quit: mep mep]
elomatreb has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
Spitfire has quit [Ping timeout: 268 seconds]
phredus_ has joined #ruby
phredus__ has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
thinkpad has quit [Quit: lawl]
thinkpad has joined #ruby
\void has quit [Read error: Connection reset by peer]
dellavg_ has joined #ruby
gix has joined #ruby
_whitelogger has joined #ruby
reber has joined #ruby
mikecmpbll has joined #ruby
conta has joined #ruby
<phaul> hays: define_method takes a symbol no need to convert. instance_variable_get also takes a symbol. As you were saying passing strings feels iffy but all these reflective methods work without strings, symbol is always an option
conta has quit [Ping timeout: 272 seconds]
conta has joined #ruby
reber has quit [Remote host closed the connection]
conta has quit [Ping timeout: 250 seconds]
clemens3 has joined #ruby
uplime has quit [Quit: WeeChat 2.2]
code_zombie has quit [Quit: Leaving]
cliluw has quit [Ping timeout: 268 seconds]
cliluw has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
phredus__ has quit [Quit: Leaving]
phredus_ has quit [Quit: Leaving]
drale2k_ has joined #ruby
AlHafoudh has quit [Quit: ZNC - http://znc.in]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiroaki has joined #ruby
conta has joined #ruby
conta has quit [Remote host closed the connection]
conta1 has joined #ruby
conta1 has quit [Ping timeout: 250 seconds]
phaul has quit [Quit: bye]
rubydoc has quit [Remote host closed the connection]
calaveraDeluxe has joined #ruby
cschneid has joined #ruby
phredus__ has joined #ruby
calaveraDeluxe has quit [Quit: Page closed]
phredus__ has quit [Client Quit]
phredus has joined #ruby
phredus has quit [Remote host closed the connection]
conta has joined #ruby
postmodern has quit [Quit: Leaving]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiroaki has quit [Ping timeout: 268 seconds]
hiroaki has joined #ruby
AJA4350 has joined #ruby
phaul has joined #ruby
rubydoc has joined #ruby
BTRE has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 246 seconds]
BTRE has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4350 has joined #ruby
<hays> phaul: this is what i ended up with https://bpaste.net/show/7fc6cf24970f
<hays> not sure how to get rid of all the string interpolation
<hays> since one has to put the @ in front of the symbol and stick the = on the end
AJA4351 has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
<phaul> there is :"@#{a}" but yes, that is still string interpolation.
<phaul> but I would remove the if a.is_a symbol. and consider that a code smell.
<phaul> for your method a can be anything that define_method accepts. why narrow it down. If define_method doesn't accept something it will raise exception, why do it's job half way?
<phaul> also if define_method accepts something new in the future or stops accepting something, it can handle it, your code wouldn't need to be modified.
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
<phaul> thinking about it, if one really wants to avoid instance_variable_get one could with instance_eval with a block and getting the value out into an outer local variable. But it's really just overcomplicating things.
<phaul> although the instance_var name still would be assembled as string, never mind
hiroaki has quit [Ping timeout: 260 seconds]
hiroaki has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
lucasb has joined #ruby
AJA4350 has joined #ruby
themsay has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
hiroaki has quit [Ping timeout: 268 seconds]
ixti has joined #ruby
reber has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
lunarkittychan has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 272 seconds]
AJA4350 has joined #ruby
rkazak has joined #ruby
KeyJoo has joined #ruby
AJA4351 has joined #ruby
<hays> hmm...
AJA4350 has quit [Ping timeout: 250 seconds]
<hays> i guess i can rely on those methods to not inject something stupid
AJA4351 has quit [Ping timeout: 258 seconds]
dviola has joined #ruby
<hays> although maybe not
<hays> attr_accessor "a#{2+2}"
<hays> i guess its fine as long as user input isn't going in there
lunarkittychan has joined #ruby
AJA4350 has joined #ruby
fiachetti has joined #ruby
dviola has quit [Quit: WeeChat 2.3]
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
fiachetti has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
fiachetti has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
dellavg_ has quit [Ping timeout: 258 seconds]
arquebus has joined #ruby
cschneid has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
crankharder has joined #ruby
tdy has joined #ruby
dellavg_ has joined #ruby
AJA4350 has joined #ruby
jinie_ has joined #ruby
conta has quit [Quit: conta]
cschneid has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 244 seconds]
rawrg has joined #ruby
conta has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
AJA4350 has joined #ruby
conta has quit [Ping timeout: 250 seconds]
rkazak has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
Guest77189 has quit [Quit: WeeChat 2.3]
al2o3-cr has joined #ruby
Aqo has joined #ruby
orbyt_ has joined #ruby
rawrg has quit [Remote host closed the connection]
rawrg has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has joined #ruby
orbyt_ has joined #ruby
davidw_ has joined #ruby
catbusters has joined #ruby
tdy has joined #ruby
reber has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
conta has joined #ruby
rkazak has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
AJA4351 has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
cthu| has joined #ruby
conta has quit [Ping timeout: 258 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
johnny56_ has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nicmavr has joined #ruby
AJA4351 has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4351 is now known as AJA4350
AJA4351 has joined #ruby
UserOO7 has quit [Quit: binarynumber.xyz]
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
conta has joined #ruby
johnny56_ has joined #ruby
conta has quit [Ping timeout: 246 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
cnsvc has joined #ruby
hutch has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
tiff has joined #ruby
themsay has quit [Ping timeout: 246 seconds]
davidw_ has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Ping timeout: 246 seconds]
uplime has joined #ruby
tdy has joined #ruby
AJA4350 has joined #ruby
scrptktty has quit [Quit: Connection closed for inactivity]
hurricanehrndz has quit [Quit: Goodbye]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
davidw_ has joined #ruby
hurricanehrndz has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
crankharder has quit [Quit: leaving]
crankharder has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
akem has quit [Remote host closed the connection]
akem has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
davidw_ has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
faraazahmad has joined #ruby
<faraazahmad> Hi!, I've been using Ruby for quite a while now and I want to start making some contributions to it
AJA4351 has joined #ruby
<faraazahmad> Is there an issue tracker or something
AJA4350 has quit [Ping timeout: 252 seconds]
AJA4351 is now known as AJA4350
<faraazahmad> @ruby[bot]: help
<go|dfish> faraazahmad: you mean https://bugs.ruby-lang.org/issues/ ?
<faraazahmad> Thanks yeah
<faraazahmad> Is there any beginner stuff i could do? it doesn't seem to have any filters for that
armyriad has quit [Quit: Leaving]
<go|dfish> faraazahmad: i'm not sure, sorry. hopefully someone with more knowledge can help.
blaguvest has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
themsay has joined #ruby
orbyt_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
akem has quit [Remote host closed the connection]
akem has joined #ruby
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
armyriad has joined #ruby
tdy has joined #ruby
<havenwood> faraazahmad: Documentation improvements is one nice thing that's more accessible.
<havenwood> faraazahmad: If Ruby is your strong suit, consider contributing to an implementation that is written in a much higher percent Ruby - like TruffleRuby.
solocshaw has joined #ruby
<havenwood> faraazahmad: For example, you could implement Array#append and Array#prepend from Ruby 2.5. You can see those failing specs with:
<havenwood> PRETEND_RUBY_VERSION=2.5.0 jt test spec/ruby/core/integer/digits_spec.rb
<havenwood> oops
<havenwood> PRETEND_RUBY_VERSION=2.5.0 jt test spec/ruby/core/array
solocshaw has quit [Ping timeout: 244 seconds]
tiff has joined #ruby
<havenwood> Actually, that one looks fun. I'm going to do it right now. Feel free to join me!
<havenwood> There are lots to do. Many new features in 2.5 and 2.6. :)
<havenwood> faraazahmad: There're also some doable RubyGems issues in Ruby. Or lots of Gems to contribute to, of course.
<havenwood> faraazahmad: Of if you're in a shell mood, I have lots of chruby, ruby-install and RVM issues to triage if you want to pair on one of those.
gix has quit [Disconnected by services]
<faraazahmad> havenwood: thanks! I'll jump into it
tdy has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
conta has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
cd has quit [Quit: cd]
conta has quit [Ping timeout: 258 seconds]
cnsvc has quit [Remote host closed the connection]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
szulak_ has joined #ruby
tdy has joined #ruby
cnsvc has joined #ruby
hutch has quit [Ping timeout: 246 seconds]
TiglatePileser has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
dellavg_ has quit [Ping timeout: 252 seconds]
shv4 has joined #ruby
hutch has joined #ruby
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 240 seconds]
tdy has joined #ruby
uplime has quit [Quit: WeeChat 2.2]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hutch has quit [Ping timeout: 250 seconds]
\void has joined #ruby
duderonomy has joined #ruby
rkazak has joined #ruby
<hays> writing tests seems like a good way to start too maybe
hahuang6- has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
uplime has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
Swyper has joined #ruby
Aqo has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
Swyper has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Quit: KeyJoo]
cnsvc has quit [Remote host closed the connection]
tdy has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
hutch has joined #ruby
shv4 has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 240 seconds]
lunarkittychan has quit [Ping timeout: 252 seconds]
TiglatePileser has quit []
faraazahmad has quit [Quit: Connection closed for inactivity]
Swyper has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
uplime has quit [Quit: WeeChat 2.2]
d10n-work has joined #ruby
conta has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
conta has quit [Ping timeout: 268 seconds]
uplime has joined #ruby
nadir has joined #ruby
tiff has joined #ruby
tiff has quit [Client Quit]
rkazak has quit [Quit: Sleep.....ing....]
Dbugger has quit [Ping timeout: 268 seconds]
tdy has joined #ruby
sameerynho has quit [Ping timeout: 258 seconds]
houhoulis has joined #ruby
Swyper has quit [Remote host closed the connection]