Gem tilt is used with sprockets for Rails assets precompile. We are having hard time to find the version running on our Rails 4 app as tilt --version returns version unknown:
$ tilt --version
tilt: version unknown
tilt --help give no info about how to find version. Is there way to find tilt version?
Use bundle show to get the versions of your installed gems. For a particular gem, like tilt, you can use bundle show tilt.
Related
I'm working through the Railstutorial with Rails 4.0.8. and Ruby 2.1.2. Recently Bundle Install, Rails Console and Rails Server seem to ALWAYS choose the alternate version of Ruby from whichever is specify in my Gemfile. When I enter ruby -v it also always suggests the OTHER version.
Is this a bash_profile problem and how can I set it to permanently leave the internal OS X Ruby (v2.0.0) alone and just use v 2.1.2 where all my gems are installed?
I'm using rvm and Homebrew... I suspect both may be adding to the confusion...
Any helpful tips?
First...
micanansmbp:sample_app micanan$ rails console
Your Ruby version is 2.1.2, but your Gemfile specified 2.0.0
Then...
micanansmbp:sample_app micanan$ bundle install
Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
Finally...
micanansmbp:sample_app micanan$ bundle install
Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
micanansmbp:sample_app micanan$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
micanansmbp:sample_app micanan$
So when gem info shows up, either in gem list output like so:
gem_name (1.1.0 ruby)
or in a bundler message like in the title:
Could not find gem 'gem_name (= 1.1.0) ruby' in the gems available on this machine.
What does the ruby word after the version mean?
I've also seen x86, x86-mingw32.. This leads me to believe it indicates a platform-specific version of the gem.
But i've also seen runtime, so not sure how that would fit in with this theory, and ruby itself doesn't seem to specify a platform.
i am currently working on a Linux environment, and i built and installed a custom/private gem on it, and it shows up in gem list --local output:
gem_name (1.1.0)
but i still get the bundler output:
Could not find gem 'gem_name (= 1.1.0) ruby' in the gems available on this machine.
I'm trying to follow the Railscasts on mongoid
http://railscasts.com/episodes/238-mongoid
When I install the mongoid and bson_ext gem it seems fine, but each time that I run a rails command, like:
rails g scaffold article name:string content:text
I get a warning in the console:
Able to load bson_ext version 1.3.1, but >= 1.4.1 is required.
But I can't find a bson_ext 1.4.1, current version seems to be 1.3.1 in the rubygems directory.
Is there an other step that I missed?
Finally found the answer to that bson 1.4 mistery
http://rubygems.org/gems/bson/versions/1.4.1-jruby
need to be installed with the -v flag
gem install bson -v 1.4.1
Default bson is 1.3, and ~> 1.4 has been pulled out from gems repo. Need to be download and installed manually. But they recommend to wait for 1.4.2 .
Issue is referenced here too:
Bundler: "Could not find bson-1.4.0 in any of the sources"
You need to run
gem update bson_ext
When I run bundle install after adding the omnisocial gem to my gem file, I get this when I have in fact already installed the latest version of the oa-core gem:
Bundler could not find compatible versions for gem "oa-core":
In Gemfile:
omnisocial depends on
oa-core (~> 0.1.2)
omniauth depends on
oa-core (0.2.6)
...
gem install oa-core
Successfully installed oa-core-0.2.6
1 gem installed
Installing ri documentation for oa-core-0.2.6...
Installing RDoc documentation for oa-core-0.2.6...
Do I need to update my version of rails?
The problem is that the omnisocial gem's dependencies have not been updated to match the latest oa-core release. Bundler will attempt to resolve all the dependencies for all the gems.
In this situation, omnisocial says it is quite happy with any of the 0.1.x releases (as long as it's the 0.1.2 release or one after that) of oa-core (this is what the ~> operator means) but omniauth says it must have 0.2.6. Obviously, 0.2.6 is not a part of the 0.1.x set of releases and so you are getting this error.
omnisocial's gem dependencies must be upgraded to match the latest oa-core version. That is the problem.
Alternatively, you could use omniauth which is designed to work with this latest version of the oauth suite, rather than using omnisocial.
so I'm installing rails with
gem install rails
and I didn't have any version of rails prior to the one I'm installing (3.0.9).
By the time the installation finishes I get the documentation error
Installing ri documentation for rails-3.0.9...
file 'lib' not found
Installing RDoc documentation for rails-3.0.9...
Even though it says that rails 3.0.9 was installed successfully.
If I run
gem list rails
it shows me version 3.0.9, but when I run
rails -v
it shows me version 2.3.5 ( I don't know here that came from ).
See: http://cl.ly/353h1o1b3y3T260L3F3p
Any help please?
If you don't really care, just remove rails 2.3.5 with gem uninstall rails and chose the appropriate one when it asks you which.