veye icon indicating copy to clipboard operation
veye copied to clipboard

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

Open rmetzler opened this issue 11 years ago • 6 comments

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 avatar Oct 04 '13 12:10 rmetzler

maybe the command should be called replace?

veye replace Gemfile

rmetzler avatar Oct 04 '13 12:10 rmetzler

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

timgluz avatar Oct 04 '13 15:10 timgluz

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

reiz avatar Oct 05 '13 21:10 reiz

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?

rmetzler avatar Oct 06 '13 12:10 rmetzler

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.

timgluz avatar Oct 06 '13 12:10 timgluz

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.

rmetzler avatar Oct 06 '13 13:10 rmetzler