veye
veye copied to clipboard
[Feature Request] modify Gemfile, package.json, etc
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"
maybe the command should be called replace
?
veye replace Gemfile
Thanks, I like this idea - it's smt that makes continuous integration much better.
Yes. That's a good idea. I like it, too!
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?
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.
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.