diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-27 08:35:26 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-27 08:35:26 -0800 |
commit | 33b29e0112db62d3a8c798bb58f51c0a839d9e26 (patch) | |
tree | 4c54dec632ed65b46c9e22e4ed2a9ade8e815b88 /railties/lib | |
parent | ac8c729342e6b020a57d0d6887c8a8d5b39f96e0 (diff) | |
parent | 4ed645b37eccdec18c48e42410aadd7a03032cfd (diff) | |
download | rails-33b29e0112db62d3a8c798bb58f51c0a839d9e26.tar.gz rails-33b29e0112db62d3a8c798bb58f51c0a839d9e26.tar.bz2 rails-33b29e0112db62d3a8c798bb58f51c0a839d9e26.zip |
Merge pull request #8341 from amatsuda/bundle_source_rubygems
default source in Gemfiles to :rubygems rather than hardcoding the URL
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/templates/Gemfile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index 5b7a653a09..1c73b76bd9 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -1,4 +1,4 @@ -source 'https://rubygems.org' +source :rubygems <%= rails_gemfile_entry -%> diff --git a/railties/lib/rails/generators/rails/plugin_new/templates/Gemfile b/railties/lib/rails/generators/rails/plugin_new/templates/Gemfile index 7448b386c5..5c7676cc35 100644 --- a/railties/lib/rails/generators/rails/plugin_new/templates/Gemfile +++ b/railties/lib/rails/generators/rails/plugin_new/templates/Gemfile @@ -1,4 +1,4 @@ -source "http://rubygems.org" +source :rubygems <% if options[:skip_gemspec] -%> <%= '# ' if options.dev? || options.edge? -%>gem "rails", "~> <%= Rails::VERSION::STRING %>" |