DruRly / gemrat

Save Time. Add the latest version of gems to your Gemfile from the command line.
http://bit.ly/18O9sNO
MIT License
170 stars 12 forks source link

Option to just print it, not inserting it #14

Open moonglum opened 11 years ago

moonglum commented 11 years ago

I suggest to add an option to gemrat, that will just print the line that would be added instead of inserting it into the Gemfile. This could be very useful in a vim plugin for example, just type :Gemrat sinatra and it will insert the correct version at the line your currently at. This will solve the problem for people that have a very strict order in their Gemfile :smile: Not sure yet how to name this option. Maybe --dry or --print?

mivanek commented 11 years ago

Sounds like a good idea to me, but I'll wait for @DruRly's input first. It shouldn't take too long to implement at first glance.

DruRly commented 11 years ago

If this is something you guys would find useful; I'm all for it! :thumbsup:

--print sounds like the better option name.

shime commented 11 years ago

:heart:

I like the idea!

Sorry for being away, super busy this week.