diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-09 07:05:26 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-09 07:05:26 +0000 |
commit | d1a4390eedb54094a883993dc11b2355df9a9a31 (patch) | |
tree | ff10eb8ed0c4c05091c4ec36e0a7141411e0e6f3 /lib/rubygems/specification.rb | |
parent | f795d0f4180a3e46b93af72303d75bde80c11b8e (diff) | |
download | ruby-d1a4390eedb54094a883993dc11b2355df9a9a31.tar.gz |
* lib/rubygems/source_index.rb: rename unused variable.
* lib/rubygems/specification.rb: rename unused variable.
* lib/rubygems/specification.rb: remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r-- | lib/rubygems/specification.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 4c5a02d39c..c9a4a0c640 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -671,7 +671,7 @@ class Gem::Specification private :same_attributes? def hash # :nodoc: - @@attributes.inject(0) { |hash_code, (name, default_value)| + @@attributes.inject(0) { |hash_code, (name, _)| n = self.send(name).hash hash_code + n } @@ -703,7 +703,7 @@ class Gem::Specification def to_yaml(opts = {}) # :nodoc: return super if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? - yaml = YAML.quick_emit object_id, opts do |out| + YAML.quick_emit object_id, opts do |out| out.map taguri, to_yaml_style do |map| encode_with map end |