Have used Rails a bit but am a bit confused as to this problem that I’m having.
I have two depdencies for xpath, one for 0.1.4 and one for 1.0
if I just run the following, it errors out:
Thu Feb 14$ rspec spec/requests/static_pages_spec.rb
/Users/jt/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find xpath (~> 1.0.0) amongst ...
but prepending bundle exec works.
$bundle exec rspec spec/requests/static_pages_spec.rb
I am curious how I could get this xpath issue resolved via my Gemfile. I thought this was the type of thing that bundler is supposed to handle. I know that bundle exec is supposed to be normal but I’d prefer to not have to use it.
What am I not undersanding and how do I resolve it?
thx in advance
Inside your Gemfile, you can force the version of a gem by appending to it the version number. If you require version up to 1.0.0, then you can write
You can get more info on how to manage gem versions in the bundler site.