aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2012-11-28 01:05:36 +0900
committerAkira Matsuda <ronnie@dio.jp>2012-11-28 01:15:02 +0900
commit4ed645b37eccdec18c48e42410aadd7a03032cfd (patch)
tree09ee9d1783410a2dec407e827de22d71198697b0
parent0be0a978ef920384685537120da82d7ad60add1e (diff)
downloadrails-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
-rw-r--r--Gemfile2
-rw-r--r--guides/code/getting_started/Gemfile2
-rw-r--r--railties/lib/rails/generators/rails/app/templates/Gemfile2
-rw-r--r--railties/lib/rails/generators/rails/plugin_new/templates/Gemfile2
4 files changed, 4 insertions, 4 deletions
diff --git a/Gemfile b/Gemfile
index 35bcb68fb2..7b404565cc 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,4 @@
-source 'https://rubygems.org'
+source :rubygems
gemspec
diff --git a/guides/code/getting_started/Gemfile b/guides/code/getting_started/Gemfile
index 670a8523b0..19b46c36b3 100644
--- a/guides/code/getting_started/Gemfile
+++ b/guides/code/getting_started/Gemfile
@@ -1,4 +1,4 @@
-source 'https://rubygems.org'
+source :rubygems
gem 'rails', '3.2.3'
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 %>"