-
Notifications
You must be signed in to change notification settings - Fork 2
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
Standalone usage is not working #2
Comments
@cgeorgii Thank you for catching this and for providing all the info + suggested fix. The reason the tests failed is because However - I am not sure if standalone usage of StrongVersions would make much sense as it is so tightly integrated with Bundler. Either way, thanks for the help - those missing I will do a new release in a few days if no other issues come up. |
@bobf Glad you acted so quickly and thanks for fixing yourself. It's a very interesting tool and one that made me avoid thinking about an issue I had in the back of my mind for some time: what's the best approach for version declarations in Gemfiles. Regarding standalone usage - I believe it would be interesting to have the gem work without having to add it to the Gemfile of the project, even if only to allow experimentation. I personally tried to install the gem and run the command at the root of my project. As an example, this is what I expected to be able to do: $ gem install strong_versions
Successfully installed strong_versions-0.4.2
Done installing documentation for strong_versions after 0 seconds
1 gem installed
$ ls
Gemfile Gemfile.lock
$ strong_versions
StrongVersions Failure
`http`: [not specified]
Expected major and minor version or unstable version, e.g. 1.2 or 0.2.3, found: [not specified]
Suggested: '~> 4.3'
61 gem definitions inspected, 1 issue detected |
@cgeorgii Yes - I experienced the same kind of issue when I ran it in standalone mode. I hadn't thought of using it this way but I can see why it would be useful. The problems are that, since the gem uses Bundler to introspect on the currently-loaded Gemfile, StrongVersions would need to load the Gemfile and it would need to do it using the correct version of Ruby which might be quite difficult. I will take a look, though - if it's not too complicated then it would be a nice feature for sure. |
When installing the gem with
gem install strong_versions -v '0.4.2'
all commands fail with the following information:I've cloned the repository to fix it, as it seemed straightforward. The fixes can be seen here.
I would open a pull request, however the specs are not passing (but were not passing before the changes either):
I can help if necessary, just let me know how to proceed here.
The text was updated successfully, but these errors were encountered: