Specific gem install for my Projects - ruby-on-rails

I need the rails_12factor gem to install into my gem file for my app in order to successfully deploy to Heroku. I was able to to install the gem (gem install rails_12factor) and if I run gem list it shows that it is installed locally. How do I get that particular gem to be installed in my bundle? Not sure if I am asking this right but as you can see below it is installed locally as I stated.
4.0.0)
actionpack (4.0.1, 4.0.0)
activemodel (4.0.1, 4.0.0)
activerecord (4.0.1, 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.1, 4.0.0)
addressable (2.3.5)
arel (4.0.1)
atomic (1.1.14)
bigdecimal (1.2.3, 1.2.0)
builder (3.2.2, 3.1.4)
bundler (1.3.5)
coffee-rails (4.0.1)
coffee-script (2.2.0)
coffee-script-source (1.6.3)
erubis (2.7.0)
excon (0.30.0, 0.25.3)
execjs (2.0.2)
heroku-api (0.3.15)
hike (1.2.3)
i18n (0.6.5)
io-console (0.4.2)
jbuilder (1.5.2)
jquery-rails (3.0.4)
json (1.8.1, 1.7.7)
launchy (2.4.2, 2.4.1)
mail (2.5.4)
mime-types (2.0, 1.25.1, 1.25)
minitest (5.0.8, 4.7.5, 4.3.2)
multi_json (1.8.2)
mysql2 (0.3.14)
netrc (0.7.7)
pg (0.17.0 x86-mingw32)
polyglot (0.3.3)
psych (2.0.2, 2.0.0)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.1, 4.0.0)
**rails_12factor (0.0.2)
rails_serve_static_assets (0.0.1)
rails_stdout_logging (0.0.3)**
railties (4.0.1, 4.0.0)
rake (10.1.0, 0.9.6)
rdoc (4.0.1, 4.0.0, 3.12.2)
rest-client (1.6.7)
rubygems-update (2.1.11)
rubyzip (1.1.0)
sass (3.2.12)
sass-rails (4.0.1)
sdoc (0.3.20)
sprockets (2.10.1)
sprockets-rails (2.0.1)
sqlite3 (1.3.8 x86-mingw32)
test-unit (2.5.5, 2.0.0.0)
thor (0.18.1)
thread_safe (0.1.3)
tilt (1.4.1)
treetop (1.4.15)
turbolinks (1.3.1)
tzinfo (1.1.0, 0.3.38)
uglifier (2.3.1)
However it is not in my bundle below:
c:\dev\project2>bundle
Using rake (10.1.0)
Using i18n (0.6.5)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.0)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.0)
Using coffee-rails (4.0.1)
Using hike (1.2.3)
Using jbuilder (1.5.2)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using mysql2 (0.3.14)
Using bundler (1.3.5)
Using tilt (1.4.1)
Using sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.0)
Using rdoc (3.12.2)
Using sass (3.2.12)
Using sass-rails (4.0.1)
Using sdoc (0.3.20)
Using turbolinks (1.3.1)
Using uglifier (2.3.1)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
I am able to find rails_12factor-0.02.gemspec in this path C:\Users\vern.gem\specs\rubygems.org%443\quick\Marshal.4.8
I notice it's a gem spec file however I do not know how to get it installed as part of my gem bundle for my project
Below is what I get when I push to heroku:
c:\dev\project2>git push heroku master
Enter passphrase for key '/c/Users/vern/.ssh/id_rsa':
Counting objects: 87, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (76/76), done.
Writing objects: 100% (87/87), 16.24 KiB | 0 bytes/s, done.
Total 87 (delta 20), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bund
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0)
Using i18n (0.6.5)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Installing activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Installing actionpack (4.0.0)
Installing mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Installing actionmailer (4.0.0)
Installing activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Installing activerecord (4.0.0)
Using bundler (1.3.2)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Installing railties (4.0.0)
Using coffee-rails (4.0.1)
Using hike (1.2.3)
Using jbuilder (1.5.2)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Installing mysql2 (0.3.14)
Using tilt (1.4.1)
Installing sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Installing rails (4.0.0)
Using rdoc (3.12.2)
Using sass (3.2.12)
Using sass-rails (4.0.1)
Using sdoc (0.3.20)
Using turbolinks (1.3.1)
Using uglifier (2.3.1)
Your bundle is complete! It was installed into ./vendor/bundle
Bundle completed (17.19s)
Cleaning up the bundler cache.
Removing sass-rails (3.2.6)
Removing kgio (2.8.1)
Removing tzinfo (0.3.37)
Removing jbuilder (1.5.1)
Removing raindrops (0.12.0)
Removing activerecord (3.2.14)
Removing builder (3.0.4)
Removing rails (3.2.14)
Removing activesupport (3.2.14)
Removing actionmailer (3.2.14)
Removing bcrypt-ruby (3.0.1)
Removing unicorn (4.6.3)
Removing mime-types (1.25)
Removing rails_stdout_logging (0.0.2)
Removing rails_stdout_logging (0.0.3)
Removing sprockets (2.2.2)
Removing execjs (2.0.1)
Removing json (1.8.0)
Removing rack-ssl (1.3.3)
Removing rack-cache (1.2)
Removing puma (2.6.0)
Removing journey (1.0.4)
Removing activesupport (4.0.1)
Removing activemodel (4.0.1)
Removing activemodel (3.2.14)
Removing sass (3.2.10)
Removing nokogiri (1.6.0)
Removing multi_json (1.8.0)
Removing actionpack (4.0.1)
Removing uglifier (2.2.1)
Removing railties (3.2.14)
Removing rails (4.0.1)
Removing arel (3.0.2)
Removing rails_serve_static_assets (0.0.1)
Removing rails_12factor (0.0.2)
Removing activeresource (3.2.14)
Removing bcrypt-ruby (3.1.2)
Removing actionmailer (4.0.1)
Removing sprockets (2.10.0)
Removing coffee-rails (3.2.2)
Removing mini_portile (0.5.1)
Removing activerecord (4.0.1)
Removing pg (0.17.0)
Removing rack (1.4.5)
Removing actionpack (3.2.14)
Removing railties (4.0.1)
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
I, [2013-11-29T23:11:27.829492 #1297] INFO -- : Writing /tmp/build_55e1f130-6b0f-4106-871a-45
lic/assets/application-fee71c53d09a01d2ff7501990d2c3307.js
I, [2013-11-29T23:11:27.856160 #1297] INFO -- : Writing /tmp/build_55e1f130-6b0f-4106-871a-45
lic/assets/application-96a552b03ca0e7ebcbfc44b89ca097a6.css
Asset precompilation completed (7.77s)
Cleaning assets
-----> WARNINGS:
Include 'rails_12factor' gem to enable all platform features
See https://devcenter.heroku.com/articles/rails-integration-gems for more information.
Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby -> console, rake, web, worker
-----> Compiled slug size: 21.0MB
-----> Launching... done, v5
http://fast-lake-6950.herokuapp.com deployed to Heroku
To git#heroku.com:fast-lake-6950.git
* [new branch] master -> master
c:\dev\project2>
As you can see it removes the rails_12 factor gem so I am not quite sure what to do. I also get the warning
WARNINGS:
Include 'rails_12factor' gem to enable all platform features
See https://devcenter.heroku.com/articles/rails-integration-gems for more information. Perhaps there is a solution that I did not realize any help would be appreciated. Thanks
Ruby Version 2.0.0
Rails 4.0.0
Windows 7 64bit

Trying putting rails_12factor gem only in production
gem 'rails_12factor', group: :production
So this will not install the gem in your development environment but will do it in your production environment (when you push to heroku).
Hope this helps

Related

Unable to start any debugging session in Aptana 3

I cannot seem to launch any debugging session from within Aptana Studio 3. I click "Debug Server" but nothing shows up anywhere and nothing happens.
I have found a couple various posts, none of which actually solved my problem. I'm a noob when it comes to ruby on rails development (I'm a seasoned Visual Studio user, however) so I imagine there's something I'm doing that's dumb.
Here is my setup:
1) $ rails -v Rails 4.1.0
2) $ ruby -v
ruby -v
ruby 2.0.0p451 (2014-02-24) [x64-mingw32]
3) DevKit is installed
4) ruby-debug-ide is installed:
$ gem list
* LOCAL GEMS *
actionmailer (4.1.0)
actionpack (4.1.0)
actionview (4.1.0)
activemodel (4.1.0)
activerecord (4.1.0)
activesupport (4.1.0)
arel (5.0.1.20140414130214)
bigdecimal (1.2.0)
builder (3.2.2)
bundler (1.6.2)
coffee-rails (4.0.1)
coffee-script (2.2.0)
coffee-script-source (1.7.0)
debase (0.0.9)
debugger-ruby_core_source (1.3.2)
erubis (2.7.0)
execjs (2.0.2)
hike (1.2.3)
i18n (0.6.9)
io-console (0.4.2)
jbuilder (2.0.7)
jquery-rails (3.1.0)
json (1.8.1, 1.7.7)
mail (2.5.4)
mime-types (1.25.1)
minitest (5.3.3, 4.3.2)
multi_json (1.9.3)
polyglot (0.3.4)
psych (2.0.0)
rack (1.5.2)
rack-test (0.6.2)
rails (4.1.0)
railties (4.1.0)
rake (10.3.1, 0.9.6)
rbx-require-relative (0.0.9)
rdoc (4.1.1, 4.0.0)
ruby-debug-ide (0.4.22)
sass (3.2.19)
sass-rails (4.0.3)
sdoc (0.4.0)
sprockets (2.12.1, 2.11.0)
sprockets-rails (2.1.3)
sqlite3 (1.3.9 x64-mingw32)
test-unit (2.0.0.0)
thor (0.19.1)
thread_safe (0.3.3)
tilt (1.4.1)
treetop (1.4.15)
turbolinks (2.2.2)
tzinfo (1.1.0)
uglifier (2.5.0)
3) Aptana Studio 3
4) Windows 7, 64-bit.
I made a quick YouTube video of me showing the issue as well as showing some locally installed gems, etc. Perhaps this reveal what I'm doing wrong.
http://www.youtube.com/watch?v=5QcK_cKYxCs&feature=youtu.be
Thanks in advance.
Rails 4.0 project not starting through aptana studio 3
Ooops. It was found already. The problem was my error was different (I was seeing no output); but the resolution was the same.
Basically just create a Script folder in the project directory and copy over the "rails" executable (found within your bin folder) to this directory.

What am I missing: Could not find i18n-0.6.4 in any of the source, but it is

Output of bundle install:
Using rake (10.1.0)
Using i18n (0.6.4)
Using multi_json (1.7.8)
Using activesupport (3.2.7)
Using builder (3.0.4)
Using activemodel (3.2.7)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.1.3)
Using actionpack (3.2.7)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.4.4)
Using actionmailer (3.2.7)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.7)
Using activeresource (3.2.7)
Using coffee-script-source (1.6.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.8.0)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.7)
Using coffee-rails (3.2.2)
Using jquery-rails (3.0.4)
Using bundler (1.1.5)
Using rails (3.2.7)
Using sass (3.2.10)
Using sass-rails (3.2.6)
Using sqlite3 (1.3.7)
Using uglifier (2.1.2)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
MacBook:tickets michael$
MacBook:tickets michael$ rake db:migration
Could not find i18n-0.6.4 in any of the sources
Run `bundle install` to install missing gems.
What am I missing?
Use bundle exec rake db:migrate
Have you tried
bundle install again.
And then do rake db:migrate
Try running bundle exec bundle (yes, bundle two times).

"bundle install" not creating Gemfile.lock when issued from a Rails console system command

I have an odd use-case where I need to issue "bundle install" (as a system() command) from a Rails application on another freshly-made Rails application without a Gemfile.lock.
I'm aware that this is usually done from the command line but I need to do it within Rails.
As a point of reference, this is easily achievable with irb. It fetches the gems based on the Gemfile as expected and generates a Gemfile.lock.
For some reason, when I am in a Rails console (from another app) and I issue the same series of commands, the bundle command does not actually fetch or update the gems and does not generate the Gemfile.lock.
As tadman pointed out, I believe this is due to the environment changing between irb and rails console. The bundle install command, when executed from system(), is acting on the Rails app that launched the Rails console instead of the target application.
Even when trying to match ENV variables in the Rails console to the ones in irb I still cannot figure it out (see attempts below).
Steps to test this:
cd && rails new myapp --skip-bundle
From another/full Rails app launch rails console
Dir.chdir("/home/user/myapp")
system("bundle install")
This will not actually fetch the gems in myapp and it will not create Gemfile.lock
With irb (successful):
1.9.3p429 :002 > Dir.chdir("/home/user/myapp")
=> 0
1.9.3p429 :003 > system("bundle install")
Updating git://github.com/plataformatec/devise.git
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0)
Using i18n (0.6.4)
Using minitest (4.7.5)
Using multi_json (1.7.7)
Using atomic (1.1.10)
Using thread_safe (0.1.0)
Using tzinfo (0.3.37)
Using activesupport (4.0.0.beta1)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0.beta1)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.5.4)
Using actionmailer (4.0.0.beta1)
Using activemodel (4.0.0.beta1)
Using activerecord-deprecated_finders (0.0.3)
Using arel (4.0.0)
Using activerecord (4.0.0.beta1)
Using bcrypt-ruby (3.0.1)
Using bundler (1.3.5)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using json (1.8.0)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (4.0.0.beta1)
Using coffee-rails (4.0.0)
Using orm_adapter (0.4.0)
Using warden (1.2.1)
Using devise (2.2.4) from git://github.com/plataformatec/devise.git (at rails4)
Using google-analytics-rails (0.0.4)
Using hike (1.2.3)
Using jbuilder (1.0.2)
Using jquery-rails (3.0.1)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Using sprockets-rails (2.0.0)
Using rails (4.0.0.beta1)
Using sass (3.2.9)
Using sass-rails (4.0.0)
Using sqlite3 (1.3.7)
Using turbolinks (1.2.0)
Using uglifier (2.1.1)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
With rails console (unsuccessful):
[1] pry(main)> Dir.chdir("/home/erik/facebook")
=> 0
[2] pry(main)> system("bundle install")
Using rake (10.1.0)
Using i18n (0.6.4)
Using minitest (4.7.5)
Using multi_json (1.7.7)
Using atomic (1.1.10)
Using thread_safe (0.1.0)
Using tzinfo (0.3.37)
Using activesupport (4.0.0.beta1)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0.beta1)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.5.4)
Using actionmailer (4.0.0.beta1)
Using activemodel (4.0.0.beta1)
Using activerecord-deprecated_finders (0.0.3)
Using arel (4.0.0)
Using activerecord (4.0.0.beta1)
Using addressable (2.3.5)
Using annotate (2.5.0)
Using json (1.8.0)
Using mini_portile (0.5.0)
Using nokogiri (1.6.0)
Using uuidtools (2.1.4)
Using aws-sdk (1.11.1)
Using bcrypt-ruby (3.0.1)
Using browser (0.1.6)
Using xpath (2.0.0)
Using capybara (2.1.0)
Using ffi (1.9.0)
Using childprocess (0.3.9)
Using coderay (1.0.9)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (4.0.0.beta1)
Using coffee-rails (4.0.0)
Using diff-lcs (1.2.4)
Using gherkin (2.12.0)
Using cucumber (1.3.2)
Using cucumber-rails (1.3.0)
Using curb (0.8.4)
Using database_cleaner (1.0.1)
Using orm_adapter (0.4.0)
Using warden (1.2.1)
Using devise (2.1.3)
Using dotenv (0.8.0)
Using eco-source (1.1.0.rc.1)
Using eco (1.0.0)
Using ejs (1.0.0)
Using launchy (2.3.0)
Using email_spec (1.4.0)
Using factory_girl (4.2.0)
Using factory_girl_rails (4.2.1)
Using foreman (0.63.0)
Using hike (1.2.3)
Using jquery-rails (3.0.1)
Using kgio (2.8.0)
Using messengerjs-rails (1.3.3)
Using method_source (0.8.1)
Using pg (0.15.1)
Using protected_attributes (1.0.2)
Using slop (3.4.5)
Using pry (0.9.12.2)
Using pry-rails (0.3.1)
Using bundler (1.3.5)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Using sprockets-rails (2.0.0)
Using rails (4.0.0.beta1)
Using rails-backbone (0.7.2)
Using rails_serve_static_assets (0.0.1)
Using rails_stdout_logging (0.0.1)
Using rails_12factor (0.0.2)
Using rails_on_heroku (0.0.2)
Using raindrops (0.11.0)
Using rspec-core (2.13.1)
Using rspec-expectations (2.13.0)
Using rspec-mocks (2.13.1)
Using rspec (2.13.0)
Using rspec-rails (2.13.2)
Using rubyzip (0.9.9)
Using sass (3.2.9)
Using sass-rails (4.0.0)
Using websocket (1.0.7)
Using selenium-webdriver (2.33.0)
Using shoulda-matchers (2.2.0)
Using simplecov-html (0.7.1)
Using simplecov (0.7.1)
Using uglifier (2.1.1)
Using unicorn (4.6.3)
Using valid_email (0.0.4)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
EDIT 1: After tadman's consideration, I've tried this which throws a strange bundle error:
[6] pry(main)> system({"BUNDLE_GEMFILE" => nil}, "bundle install")
git://github.com/plataformatec/devise.git (at rails4) is not checked out. Please run `bundle install`
And:
[6] pry(main)> system({"BUNDLE_GEMFILE" => "/home/user/myapp/Gemfile"}, "bundle install")
git://github.com/plataformatec/devise.git (at rails4) is not checked out. Please run `bundle install`
Thank you!
Solved with:
Bundler.with_clean_env { Dir.chdir("/path/to/myapp") { `bundle install` } }
All credit goes to irc user indirect on #bundler for this.
in my case work with Bundler.with_clean_env { Dir.chdir "/path/to/myapp" { bundle install } }
note that is the same but without "(" and ")"

Deploying Rails App on OVH shared hosting

I'm very new to the RoR world (3 days), and I'm facing with the following problem: I have a shared hosting on OVH and I have to deploy my Rails app on it, how can I do it?
I have only access to the folder containing the www directory with FTP protocol. No SSH connection.
There is only one hint to how to deploy it, but it doesn't works:
http://help.ovh.co.uk/RubyOnRails .
When I follow the instructions, the InstantRails does not create any .htaccess in the main root.
Some experienced with the Rails world can help me?
PS: OVH doesn't provides Passenger, Capistrano and so forth.
Thank u!!
From my experience hosting a full-stack rails app on a shared hosting environment is next to impossible, there are many limitations towards the gems you can install and the web server you can use.
If you are able to then you should consider using a PaaS, like Heroku, Engineyard or OpenShift. Or if you are comfortable in linux environment - a VPS.
You could but you cannot install gem and this is the list of gem installed
$ gem list
*** LOCAL GEMS ***
actionmailer (4.1.8)
actionpack (4.1.8)
actionview (4.1.8)
activemodel (4.1.8)
activerecord (4.1.8)
activesupport (4.1.8)
arel (5.0.1.20140414130214)
atomic (1.1.16)
bigdecimal (1.2.4)
builder (3.2.2)
bundler (1.7.4)
celluloid (0.15.2)
cmdparse (2.0.6)
coffee-rails (4.0.1)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
daemons (1.1.9)
erubis (2.7.0)
execjs (2.2.1)
ffi (1.9.6)
hike (1.2.1)
i18n (0.6.9)
io-console (0.4.2)
jbuilder (2.1.3)
jquery-rails (3.1.2)
json (1.8.1)
listen (2.4.0)
log4r (1.1.10)
mail (2.6.1)
metaclass (0.0.4)
mime-types (1.25)
minitest (5.4.2, 4.7.5)
mocha (1.1.0)
multi_json (1.10.1)
ncursesw (1.4.8)
net-http-persistent (2.9)
oj (2.10.3)
polyglot (0.3.4)
psych (2.0.5)
rack (1.5.2)
rack-test (0.6.2)
rails (4.1.8)
railties (4.1.8)
rake (10.3.2, 10.1.0)
rb-inotify (0.9.5)
rdoc (4.1.0)
RedCloth (4.2.9)
ruby-shadow (2.3.4)
sass (3.4.6)
sass-rails (4.0.3)
sdoc (0.4.1)
spring (1.1.3)
sprockets (2.12.3)
sprockets-rails (2.1.3)
sqlite3 (1.3.9)
test-unit (2.1.5.0)
thor (0.19.1)
thread_safe (0.3.3)
tilt (1.4.1)
timers (1.1.0)
treetop (1.4.15)
turbolinks (2.2.2)
tzinfo (1.1.0)
uglifier (2.5.3)
yajl-ruby (1.2.0)

bundle updated then sprockets throw filenotfound error rails 3.2.3 ruby1.9.3p194

I have been running Rails 3.2.3 everything ran fine. Last night I did a bundle update to update every thing in my Gemfile and here's the update log.
Updating git://github.com/stefants/negative-captcha.git
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Using rake (0.9.2.2)
Using i18n (0.6.0)
Installing multi_json (1.3.4)
Using activesupport (3.2.3)
Using builder (3.0.0)
Using activemodel (3.2.3)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Installing sprockets (2.1.3)
Using actionpack (3.2.3)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.3)
Using arel (3.0.2)
Installing tzinfo (0.3.33)
Using activerecord (3.2.3)
Using activeresource (3.2.3)
Installing addressable (2.2.8)
Using bundler (1.1.3)
Using rack-ssl (1.3.2)
Installing json (1.7.1) with native extensions
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.3)
Using rails (3.2.3)
Using awesome_nested_fields (0.6.0)
Using xml-simple (1.1.1)
Using aws-s3 (0.6.2)
Using bcrypt-ruby (3.0.1)
Installing bson (1.6.2)
Installing bson_ext (1.6.2) with native extensions
Installing business_time (0.6.1)
Using cancan (1.6.7)
Installing carrierwave (0.6.2)
Installing mongo (1.6.2)
Installing mongoid (2.4.9)
Installing carrierwave-mongoid (0.2.0)
Using chronic (0.6.7)
Installing cocoon (1.0.20)
Installing coderay (1.0.6)
Installing coffee-script-source (1.3.1)
Installing execjs (1.3.2)
Using coffee-script (2.2.0)
Using coffee-rails (3.2.2)
Using coffeebeans (1.0.1)
Using datejs-rails (1.1.0)
Installing delayed_job (3.0.2)
Using delayed_job_mongoid (1.0.8)
Using orm_adapter (0.0.7)
Using warden (1.1.1)
Using devise (2.0.4)
Using ejs (1.0.0)
Using eventmachine (0.12.10)
Using em-websocket (0.3.6)
Installing excon (0.13.4)
Using faker (1.0.1)
Using multipart-post (1.1.5)
Using faraday (0.7.6)
Using ffi (1.0.11)
Using formatador (0.2.1)
Using net-ssh (2.3.0)
Using net-scp (1.0.4)
Using nokogiri (1.5.2)
Using ruby-hmac (0.4.0)
Using fog (1.3.1)
Using git (1.2.5)
Using term-ansicolor (1.0.7)
Installing grizzled-rails-logger (0.1.3)
Using rb-appscript (0.6.1)
Using growl_notify (0.0.3)
Installing guard (1.0.2)
Using guard-livereload (0.4.2)
Using hirb (0.6.2)
Using humane-rails (2.8.0.0.1.2)
Using jeweler (1.8.3)
Installing jquery-rails (2.0.2)
Installing jquery-ui-rails (0.4.0)
Using kaminari (0.13.0)
Using knockout-rails (1.0.1)
Using method_source (0.7.1)
Using momentjs-rails (1.5.0)
Using mongoid-data_table (1.3.3)
Using mongoid-eager-loading (0.3.1)
Using negative-captcha (0.1.0) from git://github.com/stefants/negative-captcha.git (at master)
Using nifty-generators (0.4.6)
Installing oauth (0.4.6)
Using oauth2 (0.5.2)
Using typhoeus (0.3.3)
Using panda (1.5.0)
Using slop (2.4.4)
Installing pry (0.9.9.4)
Using pry-rails (0.1.6)
Installing rails-backbone (0.7.2)
Using rb-fchange (0.0.5)
Installing rb-fsevent (0.9.1)
Using rb-inotify (0.8.8)
Using rest-client (1.6.7)
Installing sass (3.1.17)
Using sass-rails (3.2.5)
Installing simple_form (2.0.2)
Installing simple_oauth (0.1.7)
Using stripe (1.6.3)
Installing stylus-source (0.26.0)
Installing stylus (0.5.1)
Using uglifier (1.2.4)
Using underscore-rails (1.3.1)
Using webshims-rails (0.1)
Using wirble (0.1.3)
Using youtube_it (2.1.4)
Using zero-clipboard-rails (1.0.1)
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
Then I restarted the server and now Sprockets::FileNotFound errors are thrown for some #import "file.css" line in my sass files.
I did some research on the Sprockets gem, I found that the current version is 2.4.2. But my bundle update updated the sprockets to 2.1.3. Is this what is out there for your Rails apps, too, that the sprockets used by Rails is a few versions behind Github's? -- And how should I approach this Sprockets::FileNotFound problem?
APPEND: I just also saw that the sprockets in the gemfile.lock to be of version 2.1.2. yet bundle show sprockets says 2.1.3.
Thank you
try to remove Gemfile.lock (backup first) and run bundle install once again

Resources