summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-07-26 11:48:53 +0900
committerKOBAYASHI Shuji <[email protected]>2019-07-26 11:48:53 +0900
commit778310260ca51b91125bd6deeb836c5032fa837e (patch)
treee6c0b162a824f8e4d09074f4437f9ef541f6ebe4 /mrbgems/mruby-array-ext
parent381a6ddddb7b9325b1024b8248f8902786840540 (diff)
downloadmruby-778310260ca51b91125bd6deeb836c5032fa837e.tar.gz
mruby-778310260ca51b91125bd6deeb836c5032fa837e.zip
Drop dependency from `mruby-array-ext` to `mruby-enum-ext`
Diffstat (limited to 'mrbgems/mruby-array-ext')
-rw-r--r--mrbgems/mruby-array-ext/mrbgem.rake1
-rw-r--r--mrbgems/mruby-array-ext/mrblib/array.rb4
2 files changed, 2 insertions, 3 deletions
diff --git a/mrbgems/mruby-array-ext/mrbgem.rake b/mrbgems/mruby-array-ext/mrbgem.rake
index 58d4428d4..882caf1ab 100644
--- a/mrbgems/mruby-array-ext/mrbgem.rake
+++ b/mrbgems/mruby-array-ext/mrbgem.rake
@@ -2,5 +2,4 @@ MRuby::Gem::Specification.new('mruby-array-ext') do |spec|
spec.license = 'MIT'
spec.author = 'mruby developers'
spec.summary = 'Array class extension'
- spec.add_test_dependency 'mruby-enumerator', core: 'mruby-enumerator'
end
diff --git a/mrbgems/mruby-array-ext/mrblib/array.rb b/mrbgems/mruby-array-ext/mrblib/array.rb
index 59b6087d2..1cd1eb643 100644
--- a/mrbgems/mruby-array-ext/mrblib/array.rb
+++ b/mrbgems/mruby-array-ext/mrblib/array.rb
@@ -903,8 +903,8 @@ class Array
column_count = nil
self.each do |row|
raise TypeError unless row.is_a?(Array)
- column_count ||= row.count
- raise IndexError, 'element size differs' unless column_count == row.count
+ column_count ||= row.size
+ raise IndexError, 'element size differs' unless column_count == row.size
end
Array.new(column_count) do |column_index|