From 4ed645b37eccdec18c48e42410aadd7a03032cfd Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 28 Nov 2012 01:05:36 +0900 Subject: [PATCH] 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 --- Gemfile | 2 +- guides/code/getting_started/Gemfile | 2 +- railties/lib/rails/generators/rails/app/templates/Gemfile | 2 +- .../lib/rails/generators/rails/plugin_new/templates/Gemfile | 2 +- 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 %>"