diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | lib/bundler/dsl.rb | 2 | ||||
-rw-r--r-- | man/bundle-install.ronn | 6 | ||||
-rw-r--r-- | man/bundle-package.ronn | 2 | ||||
-rw-r--r-- | man/bundle-platform.ronn | 2 | ||||
-rw-r--r-- | man/bundle-update.ronn | 8 | ||||
-rw-r--r-- | man/gemfile.5.ronn | 2 | ||||
-rw-r--r-- | spec/install/gems/dependency_api_spec.rb | 2 | ||||
-rw-r--r-- | spec/realworld/edgecases_spec.rb | 2 |
9 files changed, 14 insertions, 13 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ef4b7ce0d9..9d9a4f29b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Features: - optimize resolver when too new of a gem is already activated (@rykov, #2248) + - `source :rubygems` now uses https://rubygems.org (#2314) ## 1.3.0.pre.7 (22 January 2013) diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 84346a8249..2ab4d82a00 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -107,7 +107,7 @@ module Bundler def source(source, options = {}) case source when :gemcutter, :rubygems, :rubyforge then - @rubygems_source.add_remote "http://rubygems.org" + @rubygems_source.add_remote "https://rubygems.org" return when String @rubygems_source.add_remote source diff --git a/man/bundle-install.ronn b/man/bundle-install.ronn index 29b3a90b4a..44f36a9805 100644 --- a/man/bundle-install.ronn +++ b/man/bundle-install.ronn @@ -192,7 +192,7 @@ third-party code being used in different environments.` For a simple illustration, consider the following Gemfile(5): - source "http://rubygems.org" + source "https://rubygems.org" gem "sinatra" @@ -288,7 +288,7 @@ same versions of all dependencies as it used before the update. Let's take a look at an example. Here's your original Gemfile(5): - source "http://rubygems.org" + source "https://rubygems.org" gem "actionpack", "2.3.8" gem "activemerchant" @@ -304,7 +304,7 @@ gems in your Gemfile(5). Next, you modify your Gemfile(5) to: - source "http://rubygems.org" + source "https://rubygems.org" gem "actionpack", "3.0.0.rc" gem "activemerchant" diff --git a/man/bundle-package.ronn b/man/bundle-package.ronn index 834959bfd0..610f820487 100644 --- a/man/bundle-package.ronn +++ b/man/bundle-package.ronn @@ -26,7 +26,7 @@ in `vendor/cache`. For instance, consider this Gemfile(5): - source "http://rubygems.org" + source "https://rubygems.org" gem "nokogiri" diff --git a/man/bundle-platform.ronn b/man/bundle-platform.ronn index 00b833d901..922a9f1a09 100644 --- a/man/bundle-platform.ronn +++ b/man/bundle-platform.ronn @@ -12,7 +12,7 @@ VM about your platform. For instance, using this Gemfile(5): - source "http://rubygems.org" + source "https://rubygems.org" ruby "1.9.3" diff --git a/man/bundle-update.ronn b/man/bundle-update.ronn index 8c6165d7c8..56bf3a4ef8 100644 --- a/man/bundle-update.ronn +++ b/man/bundle-update.ronn @@ -30,7 +30,7 @@ based on the latest versions of all gems available in the sources. Consider the following Gemfile(5): - source "http://rubygems.org" + source "https://rubygems.org" gem "rails", "3.0.0.rc" gem "nokogiri" @@ -38,7 +38,7 @@ Consider the following Gemfile(5): When you run [bundle install(1)][bundle-install] the first time, bundler will resolve all of the dependencies, all the way down, and install what you need: - Fetching source index for http://rubygems.org/ + Fetching source index for https://rubygems.org/ Installing rake (10.0.2) Installing abstract (1.0.0) Installing activesupport (3.0.0.rc) @@ -103,7 +103,7 @@ Sometimes, multiple gems declared in your Gemfile(5) are satisfied by the same second-level dependency. For instance, consider the case of `thin` and `rack-perftools-profiler`. - source "http://rubygems.org" + source "https://rubygems.org" gem "thin" gem "rack-perftools-profiler" @@ -111,7 +111,7 @@ second-level dependency. For instance, consider the case of `thin` and The `thin` gem depends on `rack >= 1.0`, while `rack-perftools-profiler` depends on `rack ~> 1.0`. If you run bundle install, you get: - Fetching source index for http://rubygems.org/ + Fetching source index for https://rubygems.org/ Installing daemons (1.1.0) Installing eventmachine (0.12.10) with native extensions Installing open4 (1.0.1) diff --git a/man/gemfile.5.ronn b/man/gemfile.5.ronn index 70443165a4..53c1c341aa 100644 --- a/man/gemfile.5.ronn +++ b/man/gemfile.5.ronn @@ -20,7 +20,7 @@ a number of methods used to describe the gem requirements. At the top of the `Gemfile`, add one line for each `Rubygems` source that might contain the gems listed in the `Gemfile`. - source "http://rubygems.org" + source "https://rubygems.org" source "http://gems.github.com" Each of these _source_s `MUST` be a valid Rubygems repository. Sources are diff --git a/spec/install/gems/dependency_api_spec.rb b/spec/install/gems/dependency_api_spec.rb index 8e3cd78c87..62b563b456 100644 --- a/spec/install/gems/dependency_api_spec.rb +++ b/spec/install/gems/dependency_api_spec.rb @@ -425,7 +425,7 @@ describe "gemcutter's dependency API" do context ".gemrc with sources is present" do before do File.open(home('.gemrc'), 'w') do |file| - file.puts({:sources => ["http://rubygems.org"]}.to_yaml) + file.puts({:sources => ["https://rubygems.org"]}.to_yaml) end end diff --git a/spec/realworld/edgecases_spec.rb b/spec/realworld/edgecases_spec.rb index 9ec244f425..3083ff09e0 100644 --- a/spec/realworld/edgecases_spec.rb +++ b/spec/realworld/edgecases_spec.rb @@ -141,7 +141,7 @@ describe "real world edgecases", :realworld => true do multi_json (~> 1.0) GEM - remote: http://rubygems.org/ + remote: https://rubygems.org/ specs: arel (3.0.2) builder (3.0.0) |