ruby-changes:31472
From: naruse <ko1@a...>
Date: Wed, 6 Nov 2013 15:23:32 +0900 (JST)
Subject: [ruby-changes:31472] naruse:r43551 (trunk): Suppress Warnings: instance variable @installed_by_version not initialized
naruse 2013-11-06 15:23:27 +0900 (Wed, 06 Nov 2013) New Revision: 43551 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43551 Log: Suppress Warnings: instance variable @installed_by_version not initialized Modified files: trunk/lib/rubygems/specification.rb Index: lib/rubygems/specification.rb =================================================================== --- lib/rubygems/specification.rb (revision 43550) +++ lib/rubygems/specification.rb (revision 43551) @@ -2293,7 +2293,7 @@ class Gem::Specification < Gem::BasicSpe https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L2293 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/