pagination 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -18,7 +18,7 @@ module Pagination
18
18
  def collection
19
19
  if @sort_by
20
20
  @dataset.sort_by @sort_by, sort_options
21
- elsif @dataset.respond_to?(:sort) && @dataset.method(:sort).arity > 0
21
+ elsif @dataset.respond_to?(:sort) && !@dataset.method(:sort).arity.zero?
22
22
  @dataset.sort sort_options
23
23
  else
24
24
  @dataset.all sort_options
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pagination}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cyril David"]
12
- s.date = %q{2010-05-02}
12
+ s.date = %q{2010-05-03}
13
13
  s.default_executable = %q{pagination}
14
14
  s.description = %q{Trying to make the pagination world a better place}
15
15
  s.email = %q{cyx.ucron@gmail.com}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Cyril David
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-02 00:00:00 +08:00
17
+ date: 2010-05-03 00:00:00 +08:00
18
18
  default_executable: pagination
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency