Menu

SVN Commit Log


Commit Date  
[r2556] by kimuraw

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

2014-06-14 00:17:46 Tree
[r2555] by kimuraw

Fix wrong assertion in test_upto

2014-06-13 13:03:31 Tree
[r2554] by kimuraw

Compare RUBY_VERSION as string not by #to_f

- before: RUBY_VERSION.to_f >= 2.0
- after: RUBY_VERSION >= '2.0'

2014-06-13 13:03:20 Tree
[r2553] by kimuraw

Fix OSX::NSString#slice!(num) not delete by given position on ruby-2.x.

2014-06-12 22:10:05 Tree
[r2552] by kimuraw

Fix test_upto fails on ruby-2.x

Range#each yields String when its element responds to :to_str
on ruby-2.0 or later.
see range_each() in range.c of ruby source code.

str1 = OSX::NSString.stringWithString('A')
str2 = OSX::NSString.stringWithString('Z')
(str1..str2).each do |s|
# `s' is OSX::NSString on ruby-1.8
# `s' becomes String on ruby-2.0 or later
:
end

2014-06-12 22:09:53 Tree
[r2551] by kimuraw

Add encoding conversion between Ruby and NSString for ruby-2.x [WIP]

2014-06-12 20:31:26 Tree
[r2550] by kimuraw

Use $KCODE only for ruby-1.8

2014-06-12 12:22:27 Tree
[r2549] by kimuraw

delete unwanted

2014-06-12 12:22:12 Tree
[r2548] by kimuraw

Fix test_include fails on ruby-2.x

2014-06-11 14:05:10 Tree
[r2547] by kimuraw

Fix test_ref_nth fails on ruby-2.x

2014-06-11 14:04:59 Tree
Older >