diff options
author | Akira Matsuda <ronnie@dio.jp> | 2012-11-28 01:05:36 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2012-11-28 01:15:02 +0900 |
commit | 4ed645b37eccdec18c48e42410aadd7a03032cfd (patch) | |
tree | 09ee9d1783410a2dec407e827de22d71198697b0 /railties/lib | |
parent | 0be0a978ef920384685537120da82d7ad60add1e (diff) | |
download | rails-4ed645b37eccdec18c48e42410aadd7a03032cfd.tar.gz rails-4ed645b37eccdec18c48e42410aadd7a03032cfd.tar.bz2 rails-4ed645b37eccdec18c48e42410aadd7a03032cfd.zip |
default source in Gemfiles to :rubygems rather than hardcoding the URL
* I guess this would be the preferrable default for Bundler
* current version of Bundler converts :rubygems into 'http://rubygems.org', not https://,
and that will help those who are working on a very poor network environment that doesn't allow SSL
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 %>" |