neat-pages 0.1.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/Gemfile +2 -0
- data/LICENSE +1 -1
- data/README.md +58 -22
- data/app/assets/javascripts/neat_pages/base.coffee +8 -1
- data/lib/.reek +12 -0
- data/lib/neat-pages.rb +2 -1
- data/lib/neat_pages/base.rb +5 -7
- data/lib/neat_pages/engine.rb +3 -1
- data/lib/neat_pages/errors.rb +9 -0
- data/lib/neat_pages/helpers.rb +8 -10
- data/lib/neat_pages/helpers/builder.rb +26 -16
- data/lib/neat_pages/helpers/navigation.rb +39 -27
- data/lib/neat_pages/helpers/status.rb +14 -0
- data/lib/neat_pages/implants/action_controller_implant.rb +3 -0
- data/lib/neat_pages/implants/mongoid_implant.rb +12 -10
- data/lib/neat_pages/{implants/railtie.rb → railtie.rb} +7 -4
- data/neat-pages.gemspec +23 -0
- data/spec/controllers/application_controller_spec.rb +24 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/examples_controller.rb +11 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +18 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +5 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/standard_rails_initializers.rb +9 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/neat_pages/base_spec.rb +31 -5
- data/spec/neat_pages/helpers/builder_spec.rb +109 -0
- data/spec/neat_pages/helpers/navigation_spec.rb +105 -0
- data/spec/neat_pages/helpers/status_spec.rb +65 -0
- data/spec/neat_pages/helpers_spec.rb +67 -0
- data/spec/neat_pages/implants/mongoid_implant_spec.rb +43 -0
- data/spec/spec_helper.rb +21 -6
- data/spec/support/views_helper.rb +16 -0
- data/vendor/assets/javascripts/jquery.hashchange.min.js +1 -1
- metadata +134 -42
- data/lib/neat_pages/implants.rb +0 -12
metadata
CHANGED
@@ -1,123 +1,215 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neat-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sebastien Rosa
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
20
25
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0
|
26
|
+
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
22
34
|
type: :development
|
23
35
|
prerelease: false
|
24
36
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
37
|
requirements:
|
27
|
-
- -
|
38
|
+
- - '>='
|
28
39
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0
|
40
|
+
version: '0'
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
|
-
name: rspec
|
42
|
+
name: rspec-rails
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
|
-
- -
|
45
|
+
- - '>='
|
36
46
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
47
|
+
version: '0'
|
38
48
|
type: :development
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
|
-
- -
|
52
|
+
- - '>='
|
44
53
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
54
|
+
version: '0'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
56
|
+
name: simplecov
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- -
|
59
|
+
- - '>='
|
52
60
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
61
|
+
version: '0'
|
54
62
|
type: :development
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - '>='
|
60
67
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov-rcov-text
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: coveralls
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
62
97
|
description: A simple pagination API to paginate Mongoid Models.
|
63
98
|
email:
|
64
|
-
-
|
99
|
+
- srosa@alchimik.com
|
65
100
|
executables: []
|
66
101
|
extensions: []
|
67
|
-
extra_rdoc_files:
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- .gitignore
|
105
|
+
- .travis.yml
|
106
|
+
- Gemfile
|
68
107
|
- LICENSE
|
69
108
|
- README.md
|
70
|
-
|
109
|
+
- Rakefile
|
71
110
|
- app/assets/javascripts/neat_pages/base.coffee
|
72
111
|
- app/assets/javascripts/neat_pages/index.js
|
73
112
|
- app/assets/stylesheets/neat_pages/base.css.scss
|
74
113
|
- app/assets/stylesheets/neat_pages/index.css
|
75
114
|
- config/locales/en.yml
|
76
115
|
- config/locales/fr.yml
|
116
|
+
- lib/.reek
|
77
117
|
- lib/neat-pages.rb
|
78
118
|
- lib/neat_pages/base.rb
|
79
119
|
- lib/neat_pages/engine.rb
|
80
120
|
- lib/neat_pages/errors.rb
|
121
|
+
- lib/neat_pages/helpers.rb
|
81
122
|
- lib/neat_pages/helpers/builder.rb
|
82
123
|
- lib/neat_pages/helpers/navigation.rb
|
83
124
|
- lib/neat_pages/helpers/status.rb
|
84
|
-
- lib/neat_pages/helpers.rb
|
85
125
|
- lib/neat_pages/implants/action_controller_implant.rb
|
86
126
|
- lib/neat_pages/implants/mongoid_implant.rb
|
87
|
-
- lib/neat_pages/
|
88
|
-
-
|
127
|
+
- lib/neat_pages/railtie.rb
|
128
|
+
- neat-pages.gemspec
|
129
|
+
- spec/controllers/application_controller_spec.rb
|
130
|
+
- spec/dummy/Rakefile
|
131
|
+
- spec/dummy/app/controllers/application_controller.rb
|
132
|
+
- spec/dummy/app/controllers/examples_controller.rb
|
133
|
+
- spec/dummy/app/helpers/application_helper.rb
|
134
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
135
|
+
- spec/dummy/bin/bundle
|
136
|
+
- spec/dummy/bin/rails
|
137
|
+
- spec/dummy/bin/rake
|
138
|
+
- spec/dummy/config.ru
|
139
|
+
- spec/dummy/config/application.rb
|
140
|
+
- spec/dummy/config/boot.rb
|
141
|
+
- spec/dummy/config/database.yml
|
142
|
+
- spec/dummy/config/environment.rb
|
143
|
+
- spec/dummy/config/environments/development.rb
|
144
|
+
- spec/dummy/config/environments/production.rb
|
145
|
+
- spec/dummy/config/environments/test.rb
|
146
|
+
- spec/dummy/config/initializers/standard_rails_initializers.rb
|
147
|
+
- spec/dummy/config/locales/en.yml
|
148
|
+
- spec/dummy/config/routes.rb
|
149
|
+
- spec/dummy/db/test.sqlite3
|
89
150
|
- spec/neat-pages_spec.rb
|
90
151
|
- spec/neat_pages/base_spec.rb
|
152
|
+
- spec/neat_pages/helpers/builder_spec.rb
|
153
|
+
- spec/neat_pages/helpers/navigation_spec.rb
|
154
|
+
- spec/neat_pages/helpers/status_spec.rb
|
155
|
+
- spec/neat_pages/helpers_spec.rb
|
156
|
+
- spec/neat_pages/implants/mongoid_implant_spec.rb
|
91
157
|
- spec/spec_helper.rb
|
158
|
+
- spec/support/views_helper.rb
|
92
159
|
- vendor/assets/javascripts/jquery.hashchange.min.js
|
93
|
-
- LICENSE
|
94
|
-
- README.md
|
95
|
-
- Rakefile
|
96
|
-
- Gemfile
|
97
160
|
homepage: https://github.com/demarque/neat-pages
|
98
161
|
licenses:
|
99
162
|
- MIT
|
163
|
+
metadata: {}
|
100
164
|
post_install_message:
|
101
165
|
rdoc_options: []
|
102
166
|
require_paths:
|
103
167
|
- lib
|
104
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
169
|
requirements:
|
107
|
-
- -
|
170
|
+
- - '>='
|
108
171
|
- !ruby/object:Gem::Version
|
109
172
|
version: '0'
|
110
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
174
|
requirements:
|
113
|
-
- -
|
175
|
+
- - '>='
|
114
176
|
- !ruby/object:Gem::Version
|
115
177
|
version: '0'
|
116
178
|
requirements: []
|
117
|
-
rubyforge_project:
|
118
|
-
rubygems_version: 1.
|
179
|
+
rubyforge_project:
|
180
|
+
rubygems_version: 2.1.5
|
119
181
|
signing_key:
|
120
|
-
specification_version:
|
182
|
+
specification_version: 4
|
121
183
|
summary: A simple pagination API to paginate Mongoid Models.
|
122
|
-
test_files:
|
184
|
+
test_files:
|
185
|
+
- spec/controllers/application_controller_spec.rb
|
186
|
+
- spec/dummy/Rakefile
|
187
|
+
- spec/dummy/app/controllers/application_controller.rb
|
188
|
+
- spec/dummy/app/controllers/examples_controller.rb
|
189
|
+
- spec/dummy/app/helpers/application_helper.rb
|
190
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
191
|
+
- spec/dummy/bin/bundle
|
192
|
+
- spec/dummy/bin/rails
|
193
|
+
- spec/dummy/bin/rake
|
194
|
+
- spec/dummy/config.ru
|
195
|
+
- spec/dummy/config/application.rb
|
196
|
+
- spec/dummy/config/boot.rb
|
197
|
+
- spec/dummy/config/database.yml
|
198
|
+
- spec/dummy/config/environment.rb
|
199
|
+
- spec/dummy/config/environments/development.rb
|
200
|
+
- spec/dummy/config/environments/production.rb
|
201
|
+
- spec/dummy/config/environments/test.rb
|
202
|
+
- spec/dummy/config/initializers/standard_rails_initializers.rb
|
203
|
+
- spec/dummy/config/locales/en.yml
|
204
|
+
- spec/dummy/config/routes.rb
|
205
|
+
- spec/dummy/db/test.sqlite3
|
206
|
+
- spec/neat-pages_spec.rb
|
207
|
+
- spec/neat_pages/base_spec.rb
|
208
|
+
- spec/neat_pages/helpers/builder_spec.rb
|
209
|
+
- spec/neat_pages/helpers/navigation_spec.rb
|
210
|
+
- spec/neat_pages/helpers/status_spec.rb
|
211
|
+
- spec/neat_pages/helpers_spec.rb
|
212
|
+
- spec/neat_pages/implants/mongoid_implant_spec.rb
|
213
|
+
- spec/spec_helper.rb
|
214
|
+
- spec/support/views_helper.rb
|
123
215
|
has_rdoc:
|
data/lib/neat_pages/implants.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
module NeatPages
|
2
|
-
module Implants
|
3
|
-
end
|
4
|
-
end
|
5
|
-
|
6
|
-
if defined? Rails::Railtie
|
7
|
-
require 'neat_pages/implants/railtie'
|
8
|
-
elsif defined? Rails::Initializer
|
9
|
-
raise "neat-pages is not compatible with Rails 2.3 or older"
|
10
|
-
end
|
11
|
-
|
12
|
-
require 'neat_pages/implants/mongoid_implant'
|