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.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +2 -0
  5. data/LICENSE +1 -1
  6. data/README.md +58 -22
  7. data/app/assets/javascripts/neat_pages/base.coffee +8 -1
  8. data/lib/.reek +12 -0
  9. data/lib/neat-pages.rb +2 -1
  10. data/lib/neat_pages/base.rb +5 -7
  11. data/lib/neat_pages/engine.rb +3 -1
  12. data/lib/neat_pages/errors.rb +9 -0
  13. data/lib/neat_pages/helpers.rb +8 -10
  14. data/lib/neat_pages/helpers/builder.rb +26 -16
  15. data/lib/neat_pages/helpers/navigation.rb +39 -27
  16. data/lib/neat_pages/helpers/status.rb +14 -0
  17. data/lib/neat_pages/implants/action_controller_implant.rb +3 -0
  18. data/lib/neat_pages/implants/mongoid_implant.rb +12 -10
  19. data/lib/neat_pages/{implants/railtie.rb → railtie.rb} +7 -4
  20. data/neat-pages.gemspec +23 -0
  21. data/spec/controllers/application_controller_spec.rb +24 -0
  22. data/spec/dummy/Rakefile +6 -0
  23. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  24. data/spec/dummy/app/controllers/examples_controller.rb +11 -0
  25. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  26. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  27. data/spec/dummy/bin/bundle +3 -0
  28. data/spec/dummy/bin/rails +4 -0
  29. data/spec/dummy/bin/rake +4 -0
  30. data/spec/dummy/config.ru +4 -0
  31. data/spec/dummy/config/application.rb +18 -0
  32. data/spec/dummy/config/boot.rb +5 -0
  33. data/spec/dummy/config/database.yml +5 -0
  34. data/spec/dummy/config/environment.rb +5 -0
  35. data/spec/dummy/config/environments/development.rb +29 -0
  36. data/spec/dummy/config/environments/production.rb +80 -0
  37. data/spec/dummy/config/environments/test.rb +36 -0
  38. data/spec/dummy/config/initializers/standard_rails_initializers.rb +9 -0
  39. data/spec/dummy/config/locales/en.yml +5 -0
  40. data/spec/dummy/config/routes.rb +3 -0
  41. data/spec/dummy/db/test.sqlite3 +0 -0
  42. data/spec/neat_pages/base_spec.rb +31 -5
  43. data/spec/neat_pages/helpers/builder_spec.rb +109 -0
  44. data/spec/neat_pages/helpers/navigation_spec.rb +105 -0
  45. data/spec/neat_pages/helpers/status_spec.rb +65 -0
  46. data/spec/neat_pages/helpers_spec.rb +67 -0
  47. data/spec/neat_pages/implants/mongoid_implant_spec.rb +43 -0
  48. data/spec/spec_helper.rb +21 -6
  49. data/spec/support/views_helper.rb +16 -0
  50. data/vendor/assets/javascripts/jquery.hashchange.min.js +1 -1
  51. metadata +134 -42
  52. 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.1.7
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-09-19 00:00:00.000000000 Z
11
+ date: 2013-11-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: rake
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.8.7
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.8.7
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: '2.0'
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: '2.0'
54
+ version: '0'
46
55
  - !ruby/object:Gem::Dependency
47
- name: rails
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: '3.0'
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: '3.0'
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
- - sebastien@demarque.com
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
- files:
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/implants/railtie.rb
88
- - lib/neat_pages/implants.rb
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: neat-pages
118
- rubygems_version: 1.8.24
179
+ rubyforge_project:
180
+ rubygems_version: 2.1.5
119
181
  signing_key:
120
- specification_version: 3
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:
@@ -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'