From: <ki...@us...> - 2014-06-14 00:17:51
|
Revision: 2556 http://sourceforge.net/p/rubycocoa/svn/2556 Author: kimuraw Date: 2014-06-14 00:17:46 +0000 (Sat, 14 Jun 2014) Log Message: ----------- Raise ArgumentError by `NSArray#[range]=nil` on ruby-2.x # ruby-1.8 deletes elements when the given value is nil ary = [1, 2, 3, 4, 5] ary[1..2] = nil ary # => [1, 4, 5] # ruby-2.1 sets nil ary = [1, 2, 3, 4, 5] ary[1..2] = nil ary # => [1, nil, 4, 5] # NSArray cannot contain nil value. nsary = OSX::NSArray.arrayWithArray([1, 2, 3, 4, 5]) nsary[1..2] = nil # => ArgumentError Modified Paths: -------------- trunk/src/ChangeLog trunk/src/framework/src/ruby/osx/objc/oc_attachments.rb trunk/src/tests/tc_nsarray.rb This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |