<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]
<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
<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.
<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]