bundler

Bundle install selected group into custom path

a 夏天 提交于 2019-12-25 03:48:07
问题 As a follow up to Bundle deployment only for selected gems, using the solution of blacklisting using --without option, for example: group :runtime do gem 'rails' ... end group :runtime_unpackaged do gem 'less2sass' end The runtime_unpackaged can be installed using the command: bundle --path vendor/bundle --without runtime The runtime group is installed through debian packages as the application itself is packaged as a .deb package. But then all other gems at group runtime won't be handled

rails 3 rake routes not working, no routes shown as output

若如初见. 提交于 2019-12-25 03:28:24
问题 When I execute bundle exec rake routes --trace the output is: NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.10/lib/bundler/shared_helpers.rb:3. NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.10/lib/bundler/source

Travis CI cache a single file at a specified location

久未见 提交于 2019-12-25 03:16:58
问题 I am building a Ruby project on Travis CI and I use Gemfile ans Bundler to manage dependencies. My .travis.yml contains only one line about caching: cache: bundler And I rely on this in other places (Travis's default install command, cache directories, plus an extra bundle clean before uploading cache). By default, Gemfile.lock is not cached. I want to cache it to make Bundler to skip dependency resolution and use the cached Gemfile.lock . I haven't found a valid solution for this. Any ideas?

Rails 3.1.1 deploy to Heroku failing

送分小仙女□ 提交于 2019-12-25 01:48:24
问题 After upgrading my Rails 3.0.9 app to 3.1.1, I'm getting the following bundler error when pushing to Heroku-cedar stack: -----> Heroku receiving push -----> Ruby/Rails app detected -----> Installing dependencies using Bundler version 1.1.rc Running: bundle install --without development:test --path vendor/bundle Updating git://github.com/sferik/rails_admin.git Fetching gem metadata from http://rubygems.org/........ Bundler could not find compatible versions for gem "rails": In Gemfile: rails

Ruby: Could not find rake-0.9.2 in any of the sources

与世无争的帅哥 提交于 2019-12-25 01:08:14
问题 Note: I retagged this question since I neglected to include the Aptana tag. The error occurs when choosing "run server" in Aptana Studio 3. Aptana tries to execute script/rails server, which results in the error below. Perhaps an Aptana guru can answer? I've looked through and tried the suggested solutions in all the similar questions I found. Most of the questions did not have an accepted answer. I've started a fresh Rails project to start on a tutorial, and when I try to run the server, I

When run on Phusion passenger, Bundler cannot find the Rails directory

穿精又带淫゛_ 提交于 2019-12-25 00:06:49
问题 So this is my problem. I used Capistrano to deploy my Rails 3 app to an Ubuntu server, which has Phusion Passenger 3 installed. Everything should have worked normal, but I kept getting this error message. Could not locate Gemfile in /var/www/rails/releases/20100916074325. (Bundler::GemfileNotFound) The directory in the error message (which I added for clarification) does exist on the system and so does the Gemfile. Underneath the error message, the stack trace showed the error is thrown

Updating ruby version with Rbenv but gems apparently not updated

强颜欢笑 提交于 2019-12-24 19:26:25
问题 I have just updated Ruby from version 1.9.3-p448 to 1.9.3-p484 using rbenv on a Ubuntu Production server. The updating seems to be successful. Ruby version shows the latest version I just updated. However when I look at the gems for this version 1.9.3-p484 under the directory: .rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems . I only find a few gems in that directory. And when I looked at the directory of the previous version, there is a whole bunch of gems in there. Did I miss a step

bundle install and ruby versions?

自闭症网瘾萝莉.ら 提交于 2019-12-24 14:03:57
问题 I'm using rbenv to set the ruby version. ruby -v produces the expected 1.9.3 I can do gem install paperclip without a problem. However, when I do bundle install it says: Installing paperclip (3.1.2) Gem::InstallError: paperclip requires Ruby version >= 1.9.2. An error occured while installing paperclip (3.1.2), and Bundler cannot continue. Make sure that `gem install paperclip -v '3.1.2'` succeeds before bundling. but, ruby -v says I'm running 1.9.3. Is bundler runnign as sudo? Have anyone

Building pry plugin(gem) with bundler

瘦欲@ 提交于 2019-12-24 13:16:38
问题 As explained here pry's plugin require pry- prefix. I have tried building using bundler: bundle gem pry-name but it messed up directory hierarchies(creating 2 instead of 1 directory): create pry-name/pry-name.gemspec create pry-name/lib/pry/name.rb create pry-name/lib/pry/name/version.rb In the gemspec it is using wrong directory structure: require 'pry/name/version' and in the same file it run this git command: spec.files = `git ls-files`.split($/) which gives, same as above, wrong structure

running scripts with bundle exec is slow [closed]

跟風遠走 提交于 2019-12-24 11:35:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . When running with bundle exec $ time bundle exec rails generate model student name:string age:number invoke active_record create db/migrate/20121215170617_create_students.rb create app/models/student.rb real 0m13.397s user 0m11.676s sys 0m0.597s Running directly $ time rails generate model student name:string