ruby-changes:27878
From: naruse <ko1@a...>
Date: Tue, 26 Mar 2013 03:51:03 +0900 (JST)
Subject: [ruby-changes:27878] naruse:r39929 (trunk): Suppress warnings
naruse 2013-03-26 03:50:48 +0900 (Tue, 26 Mar 2013) New Revision: 39929 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39929 Log: Suppress warnings Modified files: trunk/lib/rinda/ring.rb trunk/test/rinda/test_rinda.rb Index: lib/rinda/ring.rb =================================================================== --- lib/rinda/ring.rb (revision 39928) +++ lib/rinda/ring.rb (revision 39929) @@ -48,7 +48,7 @@ module Rinda https://github.com/ruby/ruby/blob/trunk/lib/rinda/ring.rb#L48 ## # Set to false to shutdown future requests using this Renewer - attr_accessor :renew + attr_writer :renew def initialize # :nodoc: @renew = true Index: test/rinda/test_rinda.rb =================================================================== --- test/rinda/test_rinda.rb (revision 39928) +++ test/rinda/test_rinda.rb (revision 39929) @@ -50,7 +50,7 @@ class MockClock https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L50 end def rewind - now ,= @ts.take([nil, :now]) + @ts.take([nil, :now]) @ts.write([@inf, :now]) @ts.take([nil, :now]) @now = 2 @@ -76,7 +76,7 @@ module Time https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L76 module_function :at def now - @m ? @m.now : 2 + defined?(@m) && @m ? @m.now : 2 end module_function :now -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/