I have been using Rails for a couple years now and took a break away for a few months and just found myself back on a Rails application. The only problem is I don't know how to use bundler. I've been doing research and I find the command
bundle install
but what others are there and does this actually install the gems locally or just ...
This might sound as a strange thing to do. Is there a bundler way to extract the bundled gems (from a Gemfile or from .bundle) and install them as system gems outside of the bundler context?
Something like bundle package, but instead of caching them in vendor/cache, installs them as system gems.
...
When trying to install Bundler 0.8.1 on Ubuntu machine, it install fine but the executable "bundle" is no where to be seen. Other gems install successfully, including their executables.
using: "gem install bundler --version=0.8.1"
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-li...
update: This started out as a question, but after working on this for a bit I think it might not be fixable. I figured I would post this in case anyone else is seeing the same thing and is wondering what is going on inside rails and bundler.
Is anyone else seeing long load times in their Rails 3 apps? I placed timers in environment.rb...
I have a Rails application that uses Bundler for dependency management. I've got the following in my Gemfile:
# default group:
gem 'json'
group 'development' do
gem 'my_profiler'
end
group 'test' do
gem 'mocha'
end
group 'deployment' do
gem 'foo'
end
I call Bundler.setup(:default, RAILS_ENV.to_sym) and Bundler.require(:defaul...
I'm trying to get my app to package my gems before deployment (to heroku) One of my gems in my Gemfile is a custom gem that I've written and I'm using the :git option of bundler to use the specific tag of my interest as such:
gem "my_gem", :git => "[email protected]:my_username/my_gem.git", :tag => "v0.1.0"
When I run bundle package how...
So, I'm positive I once did a 'sudo' bundle install' out of desperation, which I now understand is a no-no. But now, when i try to run 'bundle install', I get the following error:
Installing culerity (0.2.12) /Library/Ruby/Site/1.8/rubygems/installer.rb:294:in `generate_bin': You don't have write permissions into the /Library/Ruby/Gems...
Hi!
I'm using Bundler gem 1.0.0.rc.6 and Rails 2.3.8
I specified a gem to be part of the production group in the Gemfile but, when I run a Rails console in dev env, that damn gem is loaded!
I strictly followed the setup found on http://gembundler.com/v1.0/rails23.html
Any idea ?
Thanks !
Edit: BTW the 'problematic' gem is not loaded...
Rails 3.0.0, Passenger 2.2.15:
Create a new Rails project
Add gem 'paperclip', :git => 'git://github.com/lmumar/paperclip.git', :branch => 'rails3'
to your Gemfile
Do bundle install
Everything OK, starting with rails/script server & accessing also works
However, when accessing with Passenger, it says:
git://github.com/lmumar/papercli...
I'm about to extract major functionality of a larger project into a ruby gem.
The little framework I created uses a few additional gems, for different import/export options. Ie.
FasterCSV (for ruby 1.8) for csv import/export
Nokogiri for csv import/export
GraphViz for graph ...
PDF
...
I don't want users of the gem to install and l...
I'm writing an app that will run scripts in a specified folder, and then record the numbers and graph them.
My problem is that if the script is a ruby file, the require statements fail inside the script because bundler seems to have done something funky with the load path.
Running rails runner Datasource.run_jobs fails:
class Datasou...
I'm working on upgrading one of our Rails 2.3.8 apps to Rails 3, and have run into an annoying problem with bundler and deployment. I develop the application on a Windows machine, but the production environment is running Ubuntu Linux. Now, my problem is that bundler is ignoring the mysql gem in the production environment, and Passenger ...
In my Gemfile in Rails I have these groups:
group :development, :test do
gem "capybara"
gem "database_cleaner"
gem "spork"
gem "launchy"
end
group :bdd do
gem "cucumber-rails"
gem "rspec-rails"
end
What does this mean?
...
In Rails 2.X, I could simply copy gems into vendor/gems/gem_name, or use the rake command rake gems:unpack. Since Rails3 uses bundler, it doesn't appear to work anymore. I have found the command bundle package, but it doesn't work the same way.
Edit:
So, just to elaborate a bit on this:
The way that rails 2 worked, I could easily grep...
When I try to run tests from TextMate in Rails3 i get an error that I trace back to boot.rb. When I try to run boot.rb via textmate I get this error:
LoadError: no such file to load — bundler
method gem_original_require in custom_require.rb at line 31
method require in custom_require.rb at line 31
at top level in boot.rb at line 4
...
I have such lines in Gemfile:
group :test do
...
gem 'cucumber', :git => "git://github.com/aslakhellesoy/cucumber.git"
...
end
When I try do deploy on server via bundle install --deployment --quiet --without development test, I get an error:
sh: git: command not found
** An error has occurred in git when running `git clone "g...
I'm trying to use bundler in a 2.3.4 rails app and am having problems with the win32-service gem. The gem was installed by issueing 'gem install win32-service --platform mswin32'. I installed it outside of bundler as bundler always tries to compile from source which fails miserably.
Output of 'gem list'
win32-service (0.7.1 x86-mswin32...
It seems that on development machines (like on the Macbook), if we use bundle install --deployment, all the gems will be installed into the vendor/bundle folder and it just use more disk space if we have multiple Rails 3 projects (some project just for testing Rails 3). If it is not --deployment, then the gems will be in the "generic" f...
The things described in the formal documentation are a bit complicated.
Does it merely add the following line to .bundle/config
BUNDLE_PATH: vendor/bundle
and then perform a bundle install, and that's it? (install will then install all the gems into vendor/bundle)
Then when the application runs, it will look for the gems in this pa...
I think the 5 sets of files or folder the Rails 3's Bundler create are:
Gemfile
Gemfile.lock
.bundle/config
vendor/bundle
vendor/cache
Is there any more? For each of them, should they be added to the repository? Gemfile and Gemfile.lock, I think so, because that's what let everybody use the same version of gems. For .bundle/config...