ruby-changes:16018
From: nobu <ko1@a...>
Date: Sun, 23 May 2010 17:49:10 +0900 (JST)
Subject: [ruby-changes:16018] Ruby:r27967 (trunk, ruby_1_9_2): * ext/openssl/lib/openssl/x509-internal.rb, lib/forwardable.rb,
nobu 2010-05-23 17:48:44 +0900 (Sun, 23 May 2010) New Revision: 27967 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27967 Log: * ext/openssl/lib/openssl/x509-internal.rb, lib/forwardable.rb, lib/irb/cmd/fork.rb, lib/mutex_m.rb, lib/shell/process-controller.rb, lib/sync.rb, object.c: suppress warnings patched by Benoit Daloze at [ruby-core:30366]. Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/ext/openssl/lib/openssl/x509-internal.rb branches/ruby_1_9_2/lib/forwardable.rb branches/ruby_1_9_2/lib/irb/cmd/fork.rb branches/ruby_1_9_2/lib/mutex_m.rb branches/ruby_1_9_2/lib/shell/process-controller.rb branches/ruby_1_9_2/lib/sync.rb branches/ruby_1_9_2/object.c trunk/ChangeLog trunk/ext/openssl/lib/openssl/x509-internal.rb trunk/lib/forwardable.rb trunk/lib/irb/cmd/fork.rb trunk/lib/mutex_m.rb trunk/lib/shell/process-controller.rb trunk/lib/sync.rb trunk/object.c Index: ChangeLog =================================================================== --- ChangeLog (revision 27966) +++ ChangeLog (revision 27967) @@ -1,5 +1,10 @@ -Sun May 23 17:40:34 2010 Nobuyoshi Nakada <nobu@r...> +Sun May 23 17:48:39 2010 Nobuyoshi Nakada <nobu@r...> + * ext/openssl/lib/openssl/x509-internal.rb, lib/forwardable.rb, + lib/irb/cmd/fork.rb, lib/mutex_m.rb, + lib/shell/process-controller.rb, lib/sync.rb, object.c: + suppress warnings patched by Benoit Daloze at [ruby-core:30366]. + * parse.y (warn_balanced): no warning for singleton class. [ruby-core:30366] Index: object.c =================================================================== --- object.c (revision 27966) +++ object.c (revision 27967) @@ -608,7 +608,7 @@ * def self.one() end * def two() end * def Chatty.three() end - * class <<self + * class << self * remove_method :three * remove_method :one * end Index: lib/mutex_m.rb =================================================================== --- lib/mutex_m.rb (revision 27966) +++ lib/mutex_m.rb (revision 27967) @@ -52,7 +52,7 @@ defined? unlock and defined? try_lock and defined? synchronize) - Mutex_m.define_aliases(class<<self;self;end) + Mutex_m.define_aliases(singleton_class) end mu_initialize end Index: lib/forwardable.rb =================================================================== --- lib/forwardable.rb (revision 27966) +++ lib/forwardable.rb (revision 27967) @@ -135,7 +135,7 @@ FORWARDABLE_VERSION = "1.1.0" @debug = nil - class<<self + class << self attr_accessor :debug end Index: lib/irb/cmd/fork.rb =================================================================== --- lib/irb/cmd/fork.rb (revision 27966) +++ lib/irb/cmd/fork.rb (revision 27967) @@ -18,7 +18,7 @@ def execute(&block) pid = send ExtendCommand.irb_original_method_name("fork") unless pid - class<<self + class << self alias_method :exit, ExtendCommand.irb_original_method_name('exit') end if iterator? Index: lib/shell/process-controller.rb =================================================================== --- lib/shell/process-controller.rb (revision 27966) +++ lib/shell/process-controller.rb (revision 27967) @@ -23,7 +23,7 @@ @BlockOutputMonitor = Mutex.new @BlockOutputCV = ConditionVariable.new - class<<self + class << self extend Forwardable def_delegator("@ProcessControllersMonitor", Index: lib/sync.rb =================================================================== --- lib/sync.rb (revision 27966) +++ lib/sync.rb (revision 27967) @@ -106,7 +106,7 @@ defined? unlock and defined? try_lock and defined? synchronize) - Sync_m.define_aliases(class<<self;self;end) + Sync_m.define_aliases(singleton_class) end sync_initialize end Index: ext/openssl/lib/openssl/x509-internal.rb =================================================================== --- ext/openssl/lib/openssl/x509-internal.rb (revision 27966) +++ ext/openssl/lib/openssl/x509-internal.rb (revision 27967) @@ -135,7 +135,7 @@ end end - class <<self + class << self def parse_rfc2253(str, template=OBJECT_TYPE_TEMPLATE) ary = OpenSSL::X509::Name::RFC2253DN.scan(str) self.new(ary, template) Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 27966) +++ ruby_1_9_2/ChangeLog (revision 27967) @@ -1,5 +1,10 @@ -Sun May 23 17:40:34 2010 Nobuyoshi Nakada <nobu@r...> +Sun May 23 17:48:39 2010 Nobuyoshi Nakada <nobu@r...> + * ext/openssl/lib/openssl/x509-internal.rb, lib/forwardable.rb, + lib/irb/cmd/fork.rb, lib/mutex_m.rb, + lib/shell/process-controller.rb, lib/sync.rb, object.c: + suppress warnings patched by Benoit Daloze at [ruby-core:30366]. + * parse.y (warn_balanced): no warning for singleton class. [ruby-core:30366] Index: ruby_1_9_2/object.c =================================================================== --- ruby_1_9_2/object.c (revision 27966) +++ ruby_1_9_2/object.c (revision 27967) @@ -608,7 +608,7 @@ * def self.one() end * def two() end * def Chatty.three() end - * class <<self + * class << self * remove_method :three * remove_method :one * end Index: ruby_1_9_2/lib/mutex_m.rb =================================================================== --- ruby_1_9_2/lib/mutex_m.rb (revision 27966) +++ ruby_1_9_2/lib/mutex_m.rb (revision 27967) @@ -52,7 +52,7 @@ defined? unlock and defined? try_lock and defined? synchronize) - Mutex_m.define_aliases(class<<self;self;end) + Mutex_m.define_aliases(singleton_class) end mu_initialize end Index: ruby_1_9_2/lib/forwardable.rb =================================================================== --- ruby_1_9_2/lib/forwardable.rb (revision 27966) +++ ruby_1_9_2/lib/forwardable.rb (revision 27967) @@ -135,7 +135,7 @@ FORWARDABLE_VERSION = "1.1.0" @debug = nil - class<<self + class << self attr_accessor :debug end Index: ruby_1_9_2/lib/irb/cmd/fork.rb =================================================================== --- ruby_1_9_2/lib/irb/cmd/fork.rb (revision 27966) +++ ruby_1_9_2/lib/irb/cmd/fork.rb (revision 27967) @@ -18,7 +18,7 @@ def execute(&block) pid = send ExtendCommand.irb_original_method_name("fork") unless pid - class<<self + class << self alias_method :exit, ExtendCommand.irb_original_method_name('exit') end if iterator? Index: ruby_1_9_2/lib/shell/process-controller.rb =================================================================== --- ruby_1_9_2/lib/shell/process-controller.rb (revision 27966) +++ ruby_1_9_2/lib/shell/process-controller.rb (revision 27967) @@ -23,7 +23,7 @@ @BlockOutputMonitor = Mutex.new @BlockOutputCV = ConditionVariable.new - class<<self + class << self extend Forwardable def_delegator("@ProcessControllersMonitor", Index: ruby_1_9_2/lib/sync.rb =================================================================== --- ruby_1_9_2/lib/sync.rb (revision 27966) +++ ruby_1_9_2/lib/sync.rb (revision 27967) @@ -106,7 +106,7 @@ defined? unlock and defined? try_lock and defined? synchronize) - Sync_m.define_aliases(class<<self;self;end) + Sync_m.define_aliases(singleton_class) end sync_initialize end Index: ruby_1_9_2/ext/openssl/lib/openssl/x509-internal.rb =================================================================== --- ruby_1_9_2/ext/openssl/lib/openssl/x509-internal.rb (revision 27966) +++ ruby_1_9_2/ext/openssl/lib/openssl/x509-internal.rb (revision 27967) @@ -135,7 +135,7 @@ end end - class <<self + class << self def parse_rfc2253(str, template=OBJECT_TYPE_TEMPLATE) ary = OpenSSL::X509::Name::RFC2253DN.scan(str) self.new(ary, template) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/