will_paginate_mongoid 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module WillPaginateMongoid
|
|
18
18
|
def self.base_options(options)
|
19
19
|
options[:page] ||= 1
|
20
20
|
options[:per_page] ||= 10
|
21
|
-
options[:offset] = (options[:page].to_i - 1) * options[:per_page]
|
21
|
+
options[:offset] = (options[:page].to_i - 1) * options[:per_page].to_i
|
22
22
|
options
|
23
23
|
end
|
24
24
|
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate_mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 17
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
version: 1.0.3
|
5
|
+
version: 1.0.4
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Lucas Souza
|
@@ -15,7 +10,8 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2012-
|
13
|
+
date: 2012-03-08 00:00:00 -03:00
|
14
|
+
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
21
17
|
name: mongoid
|
@@ -25,10 +21,6 @@ dependencies:
|
|
25
21
|
requirements:
|
26
22
|
- - ~>
|
27
23
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 11
|
29
|
-
segments:
|
30
|
-
- 2
|
31
|
-
- 4
|
32
24
|
version: "2.4"
|
33
25
|
type: :runtime
|
34
26
|
version_requirements: *id001
|
@@ -40,10 +32,6 @@ dependencies:
|
|
40
32
|
requirements:
|
41
33
|
- - ~>
|
42
34
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 5
|
44
|
-
segments:
|
45
|
-
- 1
|
46
|
-
- 5
|
47
35
|
version: "1.5"
|
48
36
|
type: :runtime
|
49
37
|
version_requirements: *id002
|
@@ -55,11 +43,6 @@ dependencies:
|
|
55
43
|
requirements:
|
56
44
|
- - ~>
|
57
45
|
- !ruby/object:Gem::Version
|
58
|
-
hash: 3
|
59
|
-
segments:
|
60
|
-
- 3
|
61
|
-
- 0
|
62
|
-
- 2
|
63
46
|
version: 3.0.2
|
64
47
|
type: :runtime
|
65
48
|
version_requirements: *id003
|
@@ -85,6 +68,7 @@ files:
|
|
85
68
|
- spec/integration/mongoid_paginator_spec.rb
|
86
69
|
- spec/spec_helper.rb
|
87
70
|
- will_paginate_mongoid.gemspec
|
71
|
+
has_rdoc: true
|
88
72
|
homepage: ""
|
89
73
|
licenses: []
|
90
74
|
|
@@ -98,25 +82,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
82
|
requirements:
|
99
83
|
- - ">="
|
100
84
|
- !ruby/object:Gem::Version
|
101
|
-
hash: 3
|
102
|
-
segments:
|
103
|
-
- 0
|
104
85
|
version: "0"
|
105
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
87
|
none: false
|
107
88
|
requirements:
|
108
89
|
- - ">="
|
109
90
|
- !ruby/object:Gem::Version
|
110
|
-
hash: 3
|
111
|
-
segments:
|
112
|
-
- 0
|
113
91
|
version: "0"
|
114
92
|
requirements: []
|
115
93
|
|
116
94
|
rubyforge_project: will_paginate_mongoid
|
117
|
-
rubygems_version: 1.
|
95
|
+
rubygems_version: 1.5.0
|
118
96
|
signing_key:
|
119
97
|
specification_version: 3
|
120
98
|
summary: An extension that becomes possible use paginate method with Mongoid
|
121
|
-
test_files:
|
122
|
-
|
99
|
+
test_files:
|
100
|
+
- spec/fake_app.rb
|
101
|
+
- spec/integration/mongoid_paginator_spec.rb
|
102
|
+
- spec/spec_helper.rb
|