adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
furincleavagesit has joined #ruby
michigan has quit [Quit: Connection closed for inactivity]
<weaksauce> yeah this is why it's smart to use bundler from the get to
<weaksauce> get go
<weaksauce> seems that API changed or something
<nesoi> rake?
<nesoi> how would a bundler help that?
<weaksauce> what rake task are you doing?
<weaksauce> well all the deps need to interact well together
<weaksauce> that's what bundler helps with
<nesoi> I need to recreate the db, so I'm just trying to do migrate
<nesoi> from 0
<weaksauce> rake db:create well rails in more current versions of rails
<weaksauce> rails db:create
<nesoi> not using rails tho
<nesoi> just using activerecord
<weaksauce> gist your code maybe?
<nesoi> which code?
<weaksauce> rakefile up to the entire repository
<weaksauce> rakefile to start but the entire thing would be useful
<newton> if it's an _old_ app the version of activerecord that it was built with might not be compatible with the version installed
<nesoi> seems simple?
<weaksauce> yeah you probably want to start by finding out when active record dropped that method
<weaksauce> yeah running old code on new gems is most likely not going to work
<nesoi> ok so why do I need new gems?
<nesoi> I just want to run this the way it used to run
<newton> if you did `gem install activerecord` it would have installed the latest activerecord
<newton> which could be multiple major versions different than when it was used with that app
<weaksauce> again, since you installed gems manually without specifying versions it's going to pull the latest and greatest
<weaksauce> which is the problem that bundler solves in the first place
<weaksauce> BUT you needed to have used it THEN to reap the benefits of versioning the gems now
adam126 has joined #ruby
adam12 has quit [Ping timeout: 240 seconds]
adam126 is now known as adam12
<weaksauce> anyway i'd just figure out what version of rails was around at the time that ruby 2.4 was recent and install that version
<weaksauce> then blow out your gemfile.lock and run bundle install again with that update gemfile
<nesoi> how do you install an old version?
<nesoi> and what is "blow out your gemfile.lock"?
<weaksauce> delete
<nesoi> where's gemfile.lock?
<weaksauce> add , "version" after the gem name in the gemfile
<nesoi> hm. not sure what versions exist
<nesoi> I found a reference saying it changed after version 5.2
<nesoi> thanks
michigan has joined #ruby
<nesoi> it says ERROR: Could not find a valid gem '5.1.7' (>= 0) in any repository
<weaksauce> read above again
<nesoi> I don't know where gemfile.lock is
<weaksauce> where your gemfile is
<nesoi> I'm not using a gemfile
<nesoi> didn't figure it out yet
<weaksauce> alright good luck then
<nesoi> :(
<weaksauce> sorry. gave you the examples but you gotta want to help you
<nesoi> I don't know what "# Specify your gem's dependencies in haml-rails.gemspec" means
<nesoi> or what the syntax of the gemfile means
<nakilon> this sound like a quote from some smelly practice
<nakilon> it's when you use the gem with badly defined .gemspec
<nakilon> so you have to override by making your own gemspec for the gem, based on the source one from github
<weaksauce> yum michigan
<newton> nesoi, what file is telling you to do that?
<nesoi> [!] There was an error parsing `Gemfile`: syntax error, unexpected tIDENTIFIER, expecting end-of-input - gem 'activerecord' version 5.1.7
<nesoi> ^~~~~~~. Bundler cannot continue.
<newton> if you look at the line you can copy from "gemfile" on this page you'll see the correct syntax https://rubygems.org/gems/activerecord/versions/5.1.7
<nesoi> it installed 5.2.6 instead and doesn't work
<nesoi> using gem 'activerecord', '~> 5.1', '>= 5.1.7'
<nesoi> why would it install a later version than specified?
<nesoi> tried it with gem 'activerecord', '~> 5.1', '>= 5.1.6.2'
<nesoi> still installed 5.2.6
<newton> yeah that's my bad. it's better if you just do '5.1.7' as the second param and remove the third: gem 'activerecord', '5.1.7'
<nesoi> yay, that worked! thanks!
<nesoi> still doesn't find the method :(
<newton> how are you running the script
<nesoi> rake migrate
<newton> try bundle exec rake migrate
<nesoi> cool that worked!
<newton> if you're going to try to run this app anywhere else you should add the rest of the dependencies you `gem install`'d to that gemfile too
<nesoi> right. I wasn't planning to though :)
<nesoi> now I have more errors anyway on the actual program
<newton> lol
<nesoi> thanks everyone!!! back later
<nesoi> maybe I need the old version of that gem too
<weaksauce> i mean you might want to run it later so just bundle add gemname
<weaksauce> and adjust the versions accordingly
steinomead has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
sam113101 has quit [Quit: WeeChat 2.8]
Rounin has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
steinomead has quit [Quit: term]
vaillancourtmax has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 245 seconds]
neshpion has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
sam113101 has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
roadie has joined #ruby
ur5us has joined #ruby
Skyfire has quit [Quit: WeeChat 3.2]
Skyfire has joined #ruby
michigan has quit [Quit: Connection closed for inactivity]
sam113101 has quit [Quit: WeeChat 3.2]
sam113101 has joined #ruby
mcspud has quit [Ping timeout: 258 seconds]
neshpion has quit [Quit: neshpion]
roadie has quit [Ping timeout: 240 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY_ has joined #ruby
furincleavagesit has quit [Remote host closed the connection]
roadie has joined #ruby
jpw has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 245 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
jpw has quit [Remote host closed the connection]
michigan has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
gggp has joined #ruby
jpw has joined #ruby
nesoi has quit [Quit: Leaving.]
NightMonkey has quit [Quit: ZNC - http://znc.in]
NightMonkey has joined #ruby
jpw has quit [Remote host closed the connection]
lunarkitty has joined #ruby
roadie has joined #ruby
gggp_ has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
kiki_lamb has joined #ruby
gggp has quit [Ping timeout: 268 seconds]
Oxfuxxx has quit [Quit: leaving]
roadie has joined #ruby
Oxfuxxx has joined #ruby
Rounin has joined #ruby
fdan has joined #ruby
Oxfuxxx has quit [Quit: leaving]
justache has quit [Ping timeout: 252 seconds]
Oxfuxxx has joined #ruby
justache has joined #ruby
dachi has joined #ruby
justache has quit [Read error: Connection reset by peer]
justache has joined #ruby
gr33n7001 has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
dachi is now known as dachi_
dachi_ is now known as dachi__
dachi__ is now known as dachi_
dachi_ is now known as dachi
ur5us has joined #ruby
rubion has joined #ruby
MalkbabY_ has quit [Remote host closed the connection]
MalkbabY has joined #ruby
gggp_ has quit [Read error: Connection reset by peer]
gggp_ has joined #ruby
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 245 seconds]
michigan has quit [Quit: Connection closed for inactivity]
flooose has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
jhawthorn_ has quit [Ping timeout: 272 seconds]
jhawthorn has joined #ruby
fdan has quit [Ping timeout: 246 seconds]
ikke has joined #ruby
phryk has joined #ruby
<phryk> I have 0 ruby contact and have to use a gem because the tool isn't available from my distros package manager. I found the --user-install parameter to install non-globally (which is what I want) but the gem isn't getting installed to ~/.local like my system expects it to – how is this usually done?
ur5us has quit [Ping timeout: 240 seconds]
ikke has left #ruby [WeeChat 3.2]
ur5us has joined #ruby
<phryk> nvm, -n
ur5us has quit [Ping timeout: 245 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 268 seconds]
rubion has quit [Ping timeout: 240 seconds]
rubion has joined #ruby
roadie has quit [Ping timeout: 245 seconds]
Guest0 has joined #ruby
<Tuor> I do generally use a rbenv, but any similar programme would do the trick. I generally try to never use the operating systems ruby. Then I can control the ruby version and everything which does with it my self. Maybe it's overkill, but for me it works well.
gr33n7001 is now known as gr33n7007h
roadt__ has quit [Ping timeout: 245 seconds]
roadt has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
michigan has joined #ruby
roadie has joined #ruby
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 258 seconds]
Guest0 has quit [Ping timeout: 246 seconds]
gggp__ has quit [Ping timeout: 268 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
crankharder has joined #ruby
nemesit has joined #ruby
rubion has quit [Ping timeout: 240 seconds]
rubion has joined #ruby
MalkbabY has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 268 seconds]
roadt has joined #ruby
factor has quit [Read error: Connection reset by peer]
dachi is now known as dachin
dachin has left #ruby [Leaving]
dachinat has joined #ruby
factor has joined #ruby
xuochi has joined #ruby
kiki_lamb has quit [Ping timeout: 268 seconds]
mrkz_c has joined #ruby
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 268 seconds]
fdan has joined #ruby
fdan has quit [Client Quit]
fdan has joined #ruby
bandithijo has joined #ruby
bandithijo has quit [Client Quit]
kiki_lamb has joined #ruby
_ht has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
fdan has quit [Ping timeout: 246 seconds]
bit4bit has joined #ruby
mjh has joined #ruby
kiki_lamb has joined #ruby
csmrfx has joined #ruby
<mjh> hello! I have a large number of gems that need to be installed on a server. the version of ruby (for reasons....) is quite old at 2.5.8. if I gem install them as a long list or bundle install them as a single gemfile the install takes about 2 hours as the dependencies can not be bulk downloaded but a dep file for each version of every gem is downloaded independantly for the dependency graph to be built locally. I'm sure I'm doing this wrong...
kiki_lamb has quit [Ping timeout: 252 seconds]
csmrfx is now known as cAMP
<adam12> mjh: How many is a large number?
jetchisel has joined #ruby
<mjh> hi, thanks for asking. I'm not sure how this is going to paste or if maybe a gist is better.
<adam12> mjh: Prefer it in a gist if possible.
<mjh> ok
<jhass[m]> Sounds like a job for https://bundler.io/man/bundle-cache.1.html perhaps?
kiki_lamb has joined #ruby
<mjh> I have managed to replicate the issue with the command "gem install sensu-plugins-aws --verbose
<mjh> " Note the 422 response from rubygems.org
<mjh> I know this is old.... I'm working on a project to replace it, just need it to work for a wee bit longer.
<adam12> mjh: Also share `gem -v` and `bundler -v`
<mjh> gem -v 2.7.6.2
<mjh> Bundler version 2.2.26
<adam12> I see it. Looks like the aws-sdk-resources omnibus package. https://rubygems.org/gems/aws-sdk-resources/versions/3.108.0
Tuor has left #ruby [https://quassel-irc.org - Chat comfortably. Anywhere.]
<adam12> mjh: It might be worth opening an issue on the rubygems repo. https://github.com/rubygems/rubygems
kiki_lamb has quit [Ping timeout: 240 seconds]
<adam12> I'm presuming you might be ratelimited, since it makes a GET to every one of those dependencies (I didn't wait for it to finish so I don't know what it tries to do after that).
<mjh> I'm not sure that I've been ratelimited yet, unfortunately I dont think that they will be able to as this is a AWS build - I imagine that every time I start a new build I will be sending requests from a new ip address. I doubt they will want to rate limit all of aws... Which means I need to be careful.
mattil has joined #ruby
<mjh> Thanks, I'm opening an issue. meanwhile I'm going to see if I can figure a work around.
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 252 seconds]
michigan has quit [Quit: Connection closed for inactivity]
orbyt has joined #ruby
lessless has left #ruby [Textual IRC Client: www.textualapp.com]
michigan has joined #ruby
kiki_lamb has joined #ruby
flooose has quit [Ping timeout: 240 seconds]
lunarkitty has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
jpw has joined #ruby
lad has quit [Ping timeout: 240 seconds]
kiki_lamb has joined #ruby
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt has joined #ruby
nesoi has joined #ruby
kiki_lamb has quit [Ping timeout: 268 seconds]
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 245 seconds]
mattil has quit [Read error: Connection reset by peer]
lad has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 252 seconds]
<rapha> i
<rapha> hi
<rapha> with GEM_HOME="$HOME/.local/share/gem/ruby/2.7.0/gems/" and bundler 1.17.3 installed there, and `which bundle` returning /home/jrs/.local/share/gem/ruby/2.7.0/bin/bundle, `bundle --version` still says 2.2.5. what am I missing to get bundler 1.17.3 working for that user?
kiki_lamb has joined #ruby
<adam12> rapha: bundle _1.17.3_ --version
nesoi has quit [Quit: Leaving.]
kiki_lamb has quit [Ping timeout: 248 seconds]
<rapha> oh. wow.
kiki_lamb has joined #ruby
kiki_lamb has quit [Ping timeout: 240 seconds]
Oxfuxxx has quit [Ping timeout: 268 seconds]
Oxfuxxx has joined #ruby
kiki_lamb has joined #ruby
lad has quit [Quit: Leaving]
nesoi has joined #ruby
flooose has joined #ruby
rubion has quit [Remote host closed the connection]
kiki_lamb has quit [Ping timeout: 240 seconds]
rubion has joined #ruby
kiki_lamb has joined #ruby
dviola has quit [Ping timeout: 268 seconds]
dviola has joined #ruby
flooose has quit [Ping timeout: 240 seconds]
kiki_lamb has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
kiki_lamb has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
kiki_lamb has quit [Ping timeout: 240 seconds]
motherr has joined #ruby
kiki_lamb has joined #ruby
lessless has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
kiki_lamb has quit [Ping timeout: 252 seconds]
code has joined #ruby
rubion has quit [Ping timeout: 252 seconds]
jhass has quit [Quit: Bye]
kiki_lamb has joined #ruby
jhass has joined #ruby
kiki_lamb has quit [Ping timeout: 252 seconds]
_ht has quit [Remote host closed the connection]
rubion has joined #ruby
Oxfuxxx has quit [Ping timeout: 248 seconds]
Oxfuxxx has joined #ruby
kiki_lamb has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
lunarkitty has joined #ruby
flooose has joined #ruby
michigan has quit [Quit: Connection closed for inactivity]
kiki_lamb has quit [Quit: Lost terminal]
<havenwood> rapha: that's a convention across gems, not just bundle too
ur5us has joined #ruby
pgib has joined #ruby
ur5us has quit [Quit: Leaving]
ur5us has joined #ruby
<rapha> TIL...
nmollerup has joined #ruby
* rapha feels a little ashamed, having started with Ruby in '99 :-(
motherr has quit [Quit: zzz]
nesoi has quit [Quit: Leaving.]
Guest17 has joined #ruby
orbyt has quit [Quit: Textual IRC Client: www.textualapp.com]
Oxfuxxx has quit [Quit: leaving]
Guest73 has joined #ruby
Guest73 has quit [Client Quit]
Guest56 has joined #ruby
Guest17 has quit [Ping timeout: 246 seconds]
Guest56 has quit [Quit: Textual IRC Client: www.textualapp.com]
venue has joined #ruby
crankharder has quit [Ping timeout: 252 seconds]
venue has quit [Quit: Textual IRC Client: www.textualapp.com]
venue has joined #ruby
mrkz_c has joined #ruby
crankharder has joined #ruby
bit4bit has quit [Ping timeout: 252 seconds]
venue has left #ruby [adios]
venuex has joined #ruby
rubion has quit [Ping timeout: 258 seconds]
venuex has quit [Changing host]
venuex has joined #ruby
nesoi has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
postmodern has joined #ruby
code has left #ruby [#ruby]
jetchisel has quit [Ping timeout: 240 seconds]
Rounin has quit [Ping timeout: 268 seconds]
crankharder has quit [Ping timeout: 240 seconds]
<nesoi> trying to debug a ruby program (on macos) what's good to use?
MalkbabY has joined #ruby
<nesoi> for some reason visual studio code isn't working
<nesoi> maybe not a good plugin?