[ruby-cvs:61873] nagachika:r54711 (ruby_2_3): merge revision(s) 53382, 53511, 53512: [Backport #11916]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Sat Apr 23 00:24:35 JST 2016


nagachika	2016-04-23 00:24:35 +0900 (Sat, 23 Apr 2016)

  New Revision: 54711

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

  Log:
    merge revision(s) 53382,53511,53512: [Backport #11916]
    
    fix commit miss
    
    * test/test_forwardable.rb: add tests for r53381.
    * lib/forwardable.rb: Convert given accessors to String.
      r53381 changed to accept only Symbol or String for accessors, but
      there are several rubygems that pass classes (e.g. Array,
      Hash, ...) as accessors. Prior r53381, it was accepted because Class#to_s
      returns its class name. After r53381 given accessors are checked
      with define_method, but it accepts only Symbol or String, otherwise
      raises TypeError.
          def_delegator Foo, :some_method
      This change is to revert unwanted incompatibility. But this behavior
      may change in the future.
      This change is to revert unexpected incompatibility. But this behavior

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/lib/forwardable.rb
    branches/ruby_2_3/test/test_forwardable.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list