summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/source_index.rb2
-rw-r--r--lib/rubygems/specification.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/source_index.rb b/lib/rubygems/source_index.rb
index f9b8ea0f81..4700fbbb89 100644
--- a/lib/rubygems/source_index.rb
+++ b/lib/rubygems/source_index.rb
@@ -357,7 +357,7 @@ class Gem::SourceIndex
begin
fetcher = Gem::SpecFetcher.fetcher
remotes = fetcher.find_matching dependency
- remotes = remotes.map { |(name, version,_),_| version }
+ remotes = remotes.map { |(_,version,_),_| version }
rescue Gem::RemoteFetcher::FetchError => e
raise unless fetcher.warn_legacy e do
require 'rubygems/source_info_cache'
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