mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
f795d0f418
commit
d1a4390eed
3 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Mon Aug 9 15:59:02 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/rubygems/source_index.rb: rename unused variable.
|
||||||
|
|
||||||
|
* lib/rubygems/specification.rb: rename unused variable.
|
||||||
|
|
||||||
|
* lib/rubygems/specification.rb: remove unused variable.
|
||||||
|
|
||||||
Mon Aug 9 14:10:06 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
Mon Aug 9 14:10:06 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* ext/nkf/nkf-utf8/nkf.c: Fix type of mimeout_state.buf.
|
* ext/nkf/nkf-utf8/nkf.c: Fix type of mimeout_state.buf.
|
||||||
|
|
|
@ -357,7 +357,7 @@ class Gem::SourceIndex
|
||||||
begin
|
begin
|
||||||
fetcher = Gem::SpecFetcher.fetcher
|
fetcher = Gem::SpecFetcher.fetcher
|
||||||
remotes = fetcher.find_matching dependency
|
remotes = fetcher.find_matching dependency
|
||||||
remotes = remotes.map { |(name, version,_),_| version }
|
remotes = remotes.map { |(_,version,_),_| version }
|
||||||
rescue Gem::RemoteFetcher::FetchError => e
|
rescue Gem::RemoteFetcher::FetchError => e
|
||||||
raise unless fetcher.warn_legacy e do
|
raise unless fetcher.warn_legacy e do
|
||||||
require 'rubygems/source_info_cache'
|
require 'rubygems/source_info_cache'
|
||||||
|
|
|
@ -671,7 +671,7 @@ class Gem::Specification
|
||||||
private :same_attributes?
|
private :same_attributes?
|
||||||
|
|
||||||
def hash # :nodoc:
|
def hash # :nodoc:
|
||||||
@@attributes.inject(0) { |hash_code, (name, default_value)|
|
@@attributes.inject(0) { |hash_code, (name, _)|
|
||||||
n = self.send(name).hash
|
n = self.send(name).hash
|
||||||
hash_code + n
|
hash_code + n
|
||||||
}
|
}
|
||||||
|
@ -703,7 +703,7 @@ class Gem::Specification
|
||||||
def to_yaml(opts = {}) # :nodoc:
|
def to_yaml(opts = {}) # :nodoc:
|
||||||
return super if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck?
|
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|
|
out.map taguri, to_yaml_style do |map|
|
||||||
encode_with map
|
encode_with map
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue