Skip to content
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

[Feature Request] modify Gemfile, package.json, etc #11

Open
rmetzler opened this issue Oct 4, 2013 · 6 comments
Open

[Feature Request] modify Gemfile, package.json, etc #11

rmetzler opened this issue Oct 4, 2013 · 6 comments

Comments

@rmetzler
Copy link
Contributor

rmetzler commented Oct 4, 2013

As a developer
I would like to be able to do

veye update Gemfile

and veye would look up what are the latest versions of my Gems and replace it in the Gemfile.

I then would run

bundle install
git commit Gemfile Gemfile.lock -m"updated gems to latest versions"
git push origin

when I then reparse the project, versioneye.com would then say "dependencies are up to date"

@rmetzler
Copy link
Contributor Author

rmetzler commented Oct 4, 2013

maybe the command should be called replace?

veye replace Gemfile

@timgluz
Copy link
Contributor

timgluz commented Oct 4, 2013

Thanks, I like this idea - it's smt that makes continuous integration much better.

@reiz
Copy link
Member

reiz commented Oct 5, 2013

Yes. That's a good idea. I like it, too!

@rmetzler
Copy link
Contributor Author

rmetzler commented Oct 6, 2013

How should this feature be approached?

Is it better to use regexp to parse Gemfile and replace all versions to the latest version? (method A)
Or let Bundler parse the Gemfile and then use the internal AST of Bundler, to write it back with changes? (method B)

Should this feature be interactive?

@timgluz
Copy link
Contributor

timgluz commented Oct 6, 2013

I was thinking about method A - replace version-label by regexp pattern - less external dependencies, and most package managers follow quite similar structure. I already have similar project, that uses regex rules for matching: check this gist

Yes, it should be interactive - asks Y/N for every change, unless flag --all is specified. Smt similar to [lein-ancient plugin for Clojure project manager.

In future it should also have support for ignore list.

@rmetzler
Copy link
Contributor Author

rmetzler commented Oct 6, 2013

Yes, I'm working on a feature in Bundler to do something that would help resolve dependency conflicts. This would be something that would have to work with veye out of the box.

@timgluz timgluz added this to the 0.3 - auto-updater for Ruby milestone Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants