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

Gemfile gem options #19

Open
samsm opened this issue Oct 4, 2013 · 3 comments
Open

Gemfile gem options #19

samsm opened this issue Oct 4, 2013 · 3 comments

Comments

@samsm
Copy link

samsm commented Oct 4, 2013

I'd like the ability to specify any of the options one might use in a Gemfile ...

gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',
                              :github => 'anjlab/bootstrap-rails'

I think it might look like this on the command line:

gemrat a b version:~2.0 c d github:foo/bar

... resulting in ...

gem "a", "[most recent version]"
gem "b", "~2.0"
gem "c", "[most recent version]"
gem "d", :github => "foo/bar"

Another possibility would be for the Gemrat Ruby API to have this capability while the command line does not.

My motivation is a generator gem I've been working on that, amongst other things, would add gems to a Gemfile. I'm taking a simplistic approach for now, but thought I'd find out what you thought of the above suggestion in the event I had some time to work on it.

@DruRly
Copy link
Owner

DruRly commented Oct 5, 2013

Hi Sam,

Your tentative API for making these options possible looks good. If you decide to make this possible, I'd be willing to accept the pull request.

Thanks for opening the issue.

@smcabrera
Copy link

Hi! Is anyone working on this? @DruRly would you be able to review a pull request if I submitted one?

@lesterzone
Copy link

Useful gem. It'll be awesome if some params are supported, some random ideas:

gemrat 'sprockets-es6' --require 'sprockets/es6' --development
gemrat  'sprockets-es6' --require 'sprockets/es6' --path git....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants