[ruby-cvs:66585] nagachika:r59407 (ruby_2_4): merge revision(s) 58077, 58229: [Backport #13358]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Sun Jul 23 17:39:46 JST 2017


nagachika	2017-07-23 17:39:46 +0900 (Sun, 23 Jul 2017)

  New Revision: 59407

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

  Log:
    merge revision(s) 58077,58229: [Backport #13358]
    
    ostruct.rb: fix OpenStruct.allocate
    
    * lib/ostruct.rb (OpenStruct.allocate): initialize an instance
      variable directly, without calling `intialize` method which may
      be overridden in a subclass.  [ruby-core:80292] [Bug #13358]
    ostruct.rb: improve fix for OpenStruct.allocate + #respond_to?
    
    * lib/ostruct.rb (OpenStruct#respond_to_missing?): this makes
      OpenStruct#respond_to? works on any OpenStruct instance,
      just like Kernel#respond_to? does, without workarounds.
      [ruby-core:80292] [Bug #13358]

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/lib/ostruct.rb
    branches/ruby_2_4/test/ostruct/test_ostruct.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list