[前][次][番号順一覧][スレッド一覧]

ruby-changes:44270

From: hsbt <ko1@a...>
Date: Wed, 5 Oct 2016 11:36:42 +0900 (JST)
Subject: [ruby-changes:44270] hsbt:r56343 (trunk): * lib/delegate.rb: Added missing spaces and Removed needless spaces.

hsbt	2016-10-05 11:36:28 +0900 (Wed, 05 Oct 2016)

  New Revision: 56343

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56343

  Log:
    * lib/delegate.rb: Added missing spaces and Removed needless spaces.
      [fix GH-1454][ci skip] Patch by @bogdanvlviv

  Modified files:
    trunk/ChangeLog
    trunk/lib/delegate.rb
Index: lib/delegate.rb
===================================================================
--- lib/delegate.rb	(revision 56342)
+++ lib/delegate.rb	(revision 56343)
@@ -40,7 +40,7 @@ class Delegator < BasicObject https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L40
   kernel = ::Kernel.dup
   kernel.class_eval do
     alias __raise__ raise
-    [:to_s,:inspect,:=~,:!~,:===,:<=>,:eql?,:hash].each do |m|
+    [:to_s, :inspect, :=~, :!~, :===, :<=>, :eql?, :hash].each do |m|
       undef_method m
     end
     private_instance_methods.each do |m|
@@ -175,7 +175,7 @@ class Delegator < BasicObject https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L175
     ivars = instance_variables.reject {|var| /\A@delegate_/ =~ var}
     [
       :__v2__,
-      ivars, ivars.map{|var| instance_variable_get(var)},
+      ivars, ivars.map {|var| instance_variable_get(var)},
       __getobj__
     ]
   end
@@ -186,7 +186,7 @@ class Delegator < BasicObject https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L186
   def marshal_load(data)
     version, vars, values, obj = data
     if version == :__v2__
-      vars.each_with_index{|var, i| instance_variable_set(var, values[i])}
+      vars.each_with_index {|var, i| instance_variable_set(var, values[i])}
       __setobj__(obj)
     else
       __setobj__(data)
@@ -234,7 +234,7 @@ class Delegator < BasicObject https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L234
   end
 
   @delegator_api = self.public_instance_methods
-  def self.public_api   # :nodoc:
+  def self.public_api # :nodoc:
     @delegator_api
   end
 end
@@ -305,7 +305,7 @@ end https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L305
 #    Non-Nil:  7
 #     Unique:  6
 #
-class SimpleDelegator<Delegator
+class SimpleDelegator < Delegator
   # Returns the current object method calls are being delegated to.
   def __getobj__
     unless defined?(@delegate_sd_obj)
@@ -379,9 +379,9 @@ def DelegateClass(superclass) https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L379
   klass = Class.new(Delegator)
   methods = superclass.instance_methods
   methods -= ::Delegator.public_api
-  methods -= [:to_s,:inspect,:=~,:!~,:===]
+  methods -= [:to_s, :inspect, :=~, :!~, :===]
   klass.module_eval do
-    def __getobj__  # :nodoc:
+    def __getobj__ # :nodoc:
       unless defined?(@delegate_dc_obj)
         return yield if block_given?
         __raise__ ::ArgumentError, "not delegated"
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56342)
+++ ChangeLog	(revision 56343)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Oct  5 11:36:21 2016  SHIBATA Hiroshi  <hsbt@r...>
+
+	* lib/delegate.rb: Added missing spaces and Removed needless spaces.
+	  [fix GH-1454][ci skip] Patch by @bogdanvlviv
+
 Wed Oct  5 03:24:55 2016  Marc-Andre Lafortune  <ruby-core@m...>
 
 	* enum.c: Make Enumerable#chunk with no block return

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]