« first day (1896 days earlier)      last day (1359 days later) » 

10:29 AM
I don't understand how I can find out what version of a gem e.g. the gem sqlite3 is being used. For example, I know I can do gem list, but that just shows the list of versions installed and seems like it's maybe sorted in descending order. In the case of rails I can see which one is being used by doing rails -v, and I can change which one is used in the Gemfile. I can find out which rails gem is being used by checking the Gemfile, or by doing rails -v, but not gem list.
It seems with sqlite3, the only option is to look at the Gemfile to find out what version is in use. There's no more definitive way. I can do sqlite3 --version but it shows 3.16.0 which is completely different to what gem list shows sqlite3 (1.4.0, 1.3.13)
 
10:41 AM
@barlop Gemfile.lock should have the specific version of the gems that are being used.
 
thanks
 
 
3 hours later…
1:16 PM
I seem to have lost my rails executable after trying as a test to reverse to a very early version of rails. gem uninstall rails -v0.8.0 (the rails version I had reverted to that broke my rails command), prompted me to remove the executable, I did. Doing gem install rails -v5.2.2.1 didn't help. It gave no error but rails doesn't run anything.
 
1:54 PM
Are you using rvm or rbenv to manage your Ruby and gem versions?
 
no
 
Hmm. So when you install or remove a gem, are you having to use the "sudo" command or otherwise do the installation as root?
 
I tried installing with sudo then rails -v still didn't work, then I tried starting a new terminal, rails -v still didn't work
am on osx
not sure where rails file should be located?
 
Try running "gem list | grep sqlite"
 
oh the sqlite thing was an old issue
this is about rails
I have many rails versions installed as shown by that gem list grep line, grepping for rails.
 
2:00 PM
Are you using gemset?
 
it all went ass upwards when in a project I reverted to rails 0.8.0 and it had a global impact
no I don't think so, as I haven't heard of gemset
 
You should create a separate gemset for each project
4
Q: RVM per project gemsets

ZeophliteI'm having difficulty understanding RVM per project gemsets. I've installed RVM and the 1.9.2 and 1.8.7 rubies, as per http://beginrescueend.com/interpreters/ruby/ , and when I want to start a new project, I've been cd ~/Code rvm use 1.9.2 rvm gemset create test1 rvm gemset use test1 gem insta...

Hope that helps!
 
2:17 PM
i'm not using rvm so I don't think gemsets apply to me?
i am not using any version control
am going to do brew install rails, will see how that goes!
 
You would benefit greatly from using rvm and using version control. Together, they make the problem you are having now less likely, and easier to recover from. But good luck, I hope you can get it sorted.
 
thanks
ah I see there is no brew install for rails, it's gem install rails , though I did that already.
Fixed.. I had to uninstall it first! gem uninstall rails, then I chose to remove all versions. Then installing it worked
 
2:51 PM
Nice! Not nice what you had to do, but nice that it's working now.
 
thanks
 
 
3 hours later…
 
4 hours later…

« first day (1896 days earlier)      last day (1359 days later) »