diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-07-27 14:01:37 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-27 14:01:37 +0900 |
| commit | 42fb251d0affd83215c2a6f318550ccfc04dbcd7 (patch) | |
| tree | eb01c971b69cd6aca5178fdc297cc81c98960d2e /mrbgems | |
| parent | 3103da85709daa714f03663e5f0a3d2ba0aed164 (diff) | |
| parent | 778310260ca51b91125bd6deeb836c5032fa837e (diff) | |
| download | mruby-42fb251d0affd83215c2a6f318550ccfc04dbcd7.tar.gz mruby-42fb251d0affd83215c2a6f318550ccfc04dbcd7.zip | |
Merge pull request #4597 from shuujii/drop-dependency-from-mruby-array-ext-to-mruby-enum-ext
Drop dependency from `mruby-array-ext` to `mruby-enum-ext`
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-array-ext/mrbgem.rake | 1 | ||||
| -rw-r--r-- | mrbgems/mruby-array-ext/mrblib/array.rb | 4 |
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| |
