Skip to content

Commit 07b87cd

Browse files
committed
* lib/rubygems: Update to RubyGems HEAD(e53c54a).
* test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 30253e6 commit 07b87cd

18 files changed

+62
-32
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Fri Jan 9 23:20:04 2015 SHIBATA Hiroshi <[email protected]>
2+
3+
* lib/rubygems: Update to RubyGems HEAD(e53c54a).
4+
* test/rubygems: ditto.
5+
16
Fri Jan 9 11:13:01 2015 Nobuyoshi Nakada <[email protected]>
27

38
* parse.y (assocs, assoc): eliminate splatting empty literal

lib/rubygems/basic_specification.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ def contains_requirable_file? file
6161
@contains_requirable_file ||= {}
6262
@contains_requirable_file[file] ||=
6363
begin
64-
if instance_variable_defined?(:@ignored) or
65-
instance_variable_defined?('@ignored') then
64+
if instance_variable_defined?(:@ignored) then
6665
return false
6766
elsif missing_extensions? then
6867
@ignored = true

lib/rubygems/commands/help_command.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class Gem::Commands::HelpCommand < Gem::Command
176176
Ruby Version and Engine Dependency
177177
==================================
178178
179-
You can specifiy the version, engine and engine version of ruby to use with
179+
You can specify the version, engine and engine version of ruby to use with
180180
your gem dependencies file. If you are not running the specified version
181181
RubyGems will raise an exception.
182182
@@ -223,7 +223,7 @@ class Gem::Commands::HelpCommand < Gem::Command
223223
The #group method allows multiple groups.
224224
225225
The #gemspec development dependencies are placed in the :development group by
226-
default. This may be overriden with the :development_group option:
226+
default. This may be overridden with the :development_group option:
227227
228228
gemspec development_group: :other
229229

lib/rubygems/commands/yank_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def description # :nodoc:
2121
data you will need to change them immediately and yank your gem.
2222
2323
If you are yanking a gem due to intellectual property reasons contact
24-
http://help.rubygems.org for permanant removal. Be sure to mention this
24+
http://help.rubygems.org for permanent removal. Be sure to mention this
2525
as the reason for the removal request.
2626
EOF
2727
end

lib/rubygems/dependency_installer.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,17 @@ def find_gems_with_sources dep, best_only=false # :nodoc:
218218
tuples, errors = Gem::SpecFetcher.fetcher.search_for_dependency dep
219219

220220
if best_only && !tuples.empty?
221-
tuples.sort! { |a,b| b[0].version <=> a[0].version }
221+
tuples.sort! do |a,b|
222+
if b[0].version == a[0].version
223+
if b[0].platform != Gem::Platform::RUBY
224+
1
225+
else
226+
-1
227+
end
228+
else
229+
b[0].version <=> a[0].version
230+
end
231+
end
222232
tuples = [tuples.first]
223233
end
224234

lib/rubygems/path_support.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ def initialize(env=ENV)
4242

4343
private
4444

45-
##
46-
# Set the Gem home directory (as reported by Gem.dir).
47-
48-
def home=(home)
49-
@home = home.to_s
50-
end
51-
5245
##
5346
# Set the Gem search path (as reported by Gem.path).
5447

lib/rubygems/psych_additions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This exists just to satify bugs in marshal'd gemspecs that
1+
# This exists just to satisfy bugs in marshal'd gemspecs that
22
# contain a reference to YAML::PrivateType. We prune these out
33
# in Specification._load, but if we don't have the constant, Marshal
44
# blows up.

lib/rubygems/remote_fetcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def api_endpoint(uri)
103103
# filename. Returns nil if the gem cannot be located.
104104
#--
105105
# Should probably be integrated with #download below, but that will be a
106-
# larger, more emcompassing effort. -erikh
106+
# larger, more encompassing effort. -erikh
107107

108108
def download_to_cache dependency
109109
found, _ = Gem::SpecFetcher.fetcher.spec_for_dependency dependency

lib/rubygems/security/signer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def sign data
122122
# ~/.gem/gem-public_cert.pem.expired.%Y%m%d%H%M%S
123123
#
124124
# If the signing certificate can be re-signed the expired certificate will
125-
# be saved as ~/.gem/gem-pubilc_cert.pem.expired.%Y%m%d%H%M%S where the
125+
# be saved as ~/.gem/gem-public_cert.pem.expired.%Y%m%d%H%M%S where the
126126
# expiry time (not after) is used for the timestamp.
127127

128128
def re_sign_key # :nodoc:

lib/rubygems/specification.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ def lib_files
19321932
# Singular accessor for #licenses
19331933

19341934
def license
1935-
val = licenses and val.first
1935+
licenses.first
19361936
end
19371937

19381938
##

0 commit comments

Comments
 (0)