diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-25 00:53:19 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-25 00:53:19 +0000 |
commit | 8eb39185810a59ad8d3aa874ba8f6c9a7b0949ac (patch) | |
tree | 790b26abda56b06c1d25a7a0036d882c32df7609 /lib/rubygems/specification.rb | |
parent | 61f3a787f6f12c794299871d5739cfdfa01ec617 (diff) |
* lib/rubygems: Fix CVE-2013-4363. Miscellaneous minor improvements.
* test/rubygems: Tests for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r-- | lib/rubygems/specification.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 6de8c3bc77..0952cb25e1 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1509,7 +1509,6 @@ class Gem::Specification < Gem::BasicSpecification # [depending_gem, dependency, [list_of_gems_that_satisfy_dependency]] def dependent_gems - # REFACTOR: out = []; each; out; ? Really? No #collect love? out = [] Gem::Specification.each do |spec| spec.dependencies.each do |dep| @@ -1937,7 +1936,6 @@ class Gem::Specification < Gem::BasicSpecification q.group 2, 'Gem::Specification.new do |s|', 'end' do q.breakable - # REFACTOR: each_attr - use in to_yaml as well @@attributes.each do |attr_name| current_value = self.send attr_name if current_value != default_value(attr_name) or @@ -2186,10 +2184,6 @@ class Gem::Specification < Gem::BasicSpecification # Returns a Ruby code representation of this specification, such that it can # be eval'ed and reconstruct the same specification later. Attributes that # still have their default values are omitted. - # - # REFACTOR: This, plus stuff like #ruby_code and #pretty_print, should - # probably be extracted out into some sort of separate class. SRP, do you - # speak it!??! def to_ruby mark_version |