Reputation: 266
I'm attempting to fork the repo and run it locally. Steps I took so far are:
version.rb
to 1.4.0
because version is not available1.6.1
bundle install
Make sure that gem install gemname -v '1.4' succeeds before bundling.
gem install gemname -v '1.4'
and installed gem successfullybundle install
and I loop back to the error on step 5I clearly have surveyor installed but yet bundler doesn't seem to recognize this. I'm a novice and very rusty on Rails.
Thanks in advance for your help!
Upvotes: 0
Views: 162
Reputation: 165004
To depend on a version of a gem in a Git repo, tell the bundler to fetch the gem from the repo.
gem 'surveyor', '~> 1.4', git: 'https://github.com/scwong93/surveyor/'
And then run bundle
as normal. You should see...
Using surveyor 1.4.1.q from https://github.com/scwong93/surveyor/ (at master@e253789)
Look inside your Gemfile.lock
and see that it has indeed found the repo version 1.4.1q by pulling it from the repo's master branch.
GIT
remote: https://github.com/scwong93/surveyor/
revision: e25378983fd465db701610eb076179c74db98c11
specs:
surveyor (1.4.1.q)
formtastic (~> 2.2.1)
haml (>= 4.1.0.beta.1)
mustache (~> 0.99)
rabl (~> 0.6)
rails (>= 3.2)
sass
uuidtools (~> 2.1)
Upvotes: 1