acts_as_ordinalized 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_ordinalized}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mandaryn"]
@@ -35,7 +35,7 @@ module ActsAsOrdinalized
35
35
  if collection_or_object.respond_to?(:current_page) && collection_or_object.respond_to?(:per_page)
36
36
  ordinal_base = (collection_or_object.current_page - 1) * collection_or_object.per_page + 1
37
37
  end
38
- if collection_or_object.is_a?(Array)
38
+ if collection_or_object.respond_to?(:each_with_index)
39
39
  collection_or_object.each_with_index do |item, index|
40
40
  item.ordinal_number = ordinal_base + index
41
41
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_ordinalized
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - mandaryn