-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README.md clarification #472
Comments
Exporting What error did you get when you ran |
I'm on ruby-1.9.3-p545. I ran
|
This part is suspicious:
Surveyor doesn't list |
If I'm reading the code correctly, not specifying a RAILS_VERSION means that Gemfile.rails_version will evaluate to null. Therefore, the "eval" statement in Gemfile will also evaluate to null, and not insert a gem command for Rails. That means that the rails dependency specified in surveyor.gemspec will be used. Surveyor.gemspec has this line:
Rails version 3.0 has a dependency on `bundler '~> 1.0.0'``. You can check that out on the link here: https://rubygems.org/gems/rails/versions/3.0.0. Seems like bundler got it right on that one, though I haven't noodled out the others. |
A version specification of I have never investigated the cause, but it does seem that, when presented with a large number of possible dependency combinations, recent versions of bundler will give up after a while and give an inaccurate error message[1]. The fact that you can get past your problem by specifying a more constrained rails dependency — which, given the number of dependencies rails has, greatly reduces the search space — suggests that this is the problem you are seeing. Unfortunately, I don't know of a good solution that doesn't unnecessarily constrain the real-life dependencies of surveyor. [1]: This is preferable to previous versions, in which bundler would just keep looking forever and gradually use up all the memory in the machine. |
OK, that makes sense. |
* rails4: (37 commits) support whitelisted attributes in Rails 3.2 moving redcap feature to redcap spec removing surveyor_parser.feature (integrated into parser_spec) moving parser cucumber feature to parser spec. moving fixture surveys to fixture directory respect :clean_with_truncation whitelisted attributes for Rails 3.2 making changes backwards compatible with Rails 3.2. removing benchmark spec attempting to get travis to work dropping cucumber quote rails in Gemfile.rails_version allow full version specifications in ENV, e.g. RAILS_VERSION=3.2.0 test ruby 2.0 on travis travis ci matrix. default rails version. #472 adding .travis.yml more strong parameters dealing with strong parameters Hash#diff is deprecated new stub and activerecord query syntax use surveyor common operators instead of aliasing them through a class method in ValidationCondition refactoring classes with ActiveSupport::Concern ...
I was following the section for "Contribute/test" and was initially unsuccessful in running "bundle update".
I was able to succeed after setting a RAILS_VERSION environment variable. In my case, I set it as follows:
$ export RAILS_VERSION=3.2
If my understanding is correct, and that this is a necessary step in setting up a fresh Surveyor fork, it would be helpful to note in README.md.
The text was updated successfully, but these errors were encountered: