Suppress Warnings: instance variable @installed_by_version not initialized

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-11-06 06:23:27 +00:00
parent da10c47e49
commit 8e2a2a8a8d

View File

@ -2293,7 +2293,7 @@ class Gem::Specification < Gem::BasicSpecification
end
end
if @installed_by_version then
if defined?(@installed_by_version) && @installed_by_version then
result << nil
result << " s.installed_by_version = \"#{Gem::VERSION}\""
end