RiotGamesCookbooks / rbenv-cookbook

Installs and configures rbenv
http://community.opscode.com/cookbooks/rbenv
Apache License 2.0
137 stars 109 forks source link

Update rbenv_gem to allow for local .gem installs #116

Open etdsoft opened 9 years ago

etdsoft commented 9 years ago

I believe this is the change your requested in #47.

A new code path is introduced where we detect a :source option that ends with ".gem" and don't include any "--source" arguments in our call to the gem command. This has the intended behavior of installing the .gem file passed as source.

For example:

rbenv_gem 'god' do
  ruby_version '2.0.0-p353'
  source '/tmp/god-0.13.4.gem'
end

Also took the opportunity to update the --source line from http:// to https://