Tag: bundler

Install *gem file with bundle

I try to develop a gem. I include it in my rails application through Gemfile with :path option for testing purpose, but there are some errors that appear when I build it and release to rubygems that does not appear when gem included from local path. How can I install gem from *gem file (made […]

What is the best and quickest process for adding a gem in rails

Is there a way to automatically add a gem and its current version to my Gemfile? The closest thing I’ve found is the gem ‘Gemrat’ here: https://github.com/DruRly/gemrat It doesn’t seem to be actively supported so I thought perhaps someone has discovered a better process / tool. It just seems like an extra step at times […]

bundle install: TypeError: Arguments to path.resolve must be strings

I get this error when trying to use bundle install – does anyone have any idea what might be causing it? $ bundle install path.js:439 throw new TypeError(‘Arguments to path.resolve must be strings’); ^ TypeError: Arguments to path.resolve must be strings at Object.posix.resolve (path.js:439:13) at Object.<anonymous> (/usr/local/lib/node_modules/script/bin/bundle:38:24) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load […]

what does ~> mean in gemspec dependencies?

Possible Duplicate: Meaning of tilde-greater-than (~>) in version requirement? I see something like this a lot in gemspecs: s.add_dependency ‘some_gem’, ‘~> 1.5.0’ What does ~> mean?

'bundle update' reporting gems with no compatible version, with contradicting version requirements

‘bundle update’ is giving me some very strange errors. arel, activemodel and rack are listed below as not having compatible versions. Each is listed twice, with contradictory version requirements: $ bundle update Updating https://github.com/bborn/communityengine.git Updating https://github.com/bborn/authlogic.git Updating https://github.com/paneq/calendar_date_select.git Fetching source index for http://rubygems.org/ Bundler could not find compatible versions for gem “arel”: In Gemfile: community_engine […]

Ruby On Rails — installing git-based gems 'not ckecked out' problem

Having a problem with git-based gems. gem file contents: … gem ‘spree’, :git => ‘git://github.com/spree/spree.git’, :branch => ‘0-60-stable’ … then ‘bundle install’ and it installs the gem but after I make ‘bundle check’ I get this error: ‘git://github.com/spree/spree.git (at master) is not checked out. Please run bundle install’ I have this error for ANY gem […]

Bundler confusion during cleanup

Running gem cleanup I’m warned about removing a gem. But they all appear to be ok with a version more current than what they specify. Why am I being warned? $ gem list bundler bundler (1.0.13, 1.0.12) $ gem cleanup You have requested to uninstall the gem: bundler-1.0.12 gherkin-2.3.7 depends on [bundler (>= 1.0.10)] haml-rails-0.3.4 […]

how do I resolve dependency error => Net is not missing constant HTTPResponse

I did a no-no: I blindly did a bundle update without saving my previous configuration. Now when I call Mechanize’s get(), I get the following error message from activesupport. I’ve included the backtrace to make it clear what versions are involved. Have I messed up the dependencies somehow? What’s the best way to resolve this? […]

gem dependency version conflicts between a gem's spec, bundler, and gem install

I’m trying to install a gem, meta_search-1.1.0.pre2. The gem’s spec, bundler, and rubygems each report/install different dependency version requirements. I have a new rails3 project (here are my rails, ruby, rubygems and installed gem versions), with one new line in my Gemfile: gem ‘meta_search’, ‘1.1.0.pre2′ meta_search’s page on rubygems.org reports these dependencies: actionpack ~> 3.1.0.alpha […]

Using Bundler with :path option in gemfile in Rails app

I am working on a rails app which uses a gem also in development. In my rails app, I have gem ‘somegem’, :path => ‘~/r/somegem’ However, when I make changes to the code in somegem it does not update in my rails app. I’m not sure which bundler commands I should be using after making […]

Ruby is the best programming language in the world - Ruby on Rails.