neat-pages 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d161d0f62f410512a2b7d681dee0816ad061f2a
4
- data.tar.gz: ecec8ccae6ea9a6f81a17a439245ccd1e27ca470
3
+ metadata.gz: 38382acc7ad285a051e2037eed0dc9ec09d97f65
4
+ data.tar.gz: e23684ac2ee0cecbd1319bebb38c5b4d4fa7c343
5
5
  SHA512:
6
- metadata.gz: f5d11c5a074f635cb9ad45e23b2efcb583a6c016668768fb04fe79b14fc4e244ecd1abbbfe08aafb5e49b687e40f6d6ead491b7b4dbf5b19c36719a405e73275
7
- data.tar.gz: 76d8427002003f06869f296f14ec5c75866bdb64b49a4267ca6dc8e970596e926c48aca4397ca2cbc21096da8e7e1ad1b0a8ba029f2bd2735cabce5326ea3e72
6
+ metadata.gz: 45b6000f05f81b7003a478b678fdfebf4c1f261ccea5ca0442f7f257cf942dd55f8379152557fc6e2f25a4ed5b8b51b73499cc14691b635d3e369df370ab63f8
7
+ data.tar.gz: ac7f25aab7ce15d9f498a6aeb8fb9eefc1391bed9d35f57b5cde0c357882329fef4b3d31878b09b6dc42a84b8d42089b817eceb5cfc8f5a93b1c98f103796680
@@ -1,23 +1,25 @@
1
1
  #*************************************************************************************
2
2
  # Insert a bunch of helper methods in the ActionView::Base of a Rails project.
3
3
  #*************************************************************************************
4
- module NeatPages::Helpers
5
- def neat_pages_ajax_items(partial_path, options={})
6
- options = { wrapper: :div }.merge(options)
4
+ module NeatPages
5
+ module Helpers
6
+ def neat_pages_ajax_items(partial_path, options={})
7
+ options = { wrapper: :div }.merge(options)
7
8
 
8
- ("<#{options[:wrapper]} id=\"neat-pages-ajax-wrapper\" class=\"first-load\">" + render(partial_path, options) + "</#{options[:wrapper]}>").html_safe
9
- end
9
+ ("<#{options[:wrapper]} id=\"neat-pages-ajax-wrapper\" class=\"first-load\">" + render(partial_path, options) + "</#{options[:wrapper]}>").html_safe
10
+ end
10
11
 
11
- # DEPRECATED : The options parameter is deprecated. I left it here for backward compatibility. (2013-11-20)
12
- def neat_pages_navigation(options={})
13
- NeatPages::Helpers::Navigation.new(pagination, request).generate
14
- end
12
+ # DEPRECATED : The options parameter is deprecated. I left it here for backward compatibility. (2013-11-20)
13
+ def neat_pages_navigation(options={})
14
+ NeatPages::Helpers::Navigation.new(pagination, request).generate
15
+ end
15
16
 
16
- def neat_pages_status
17
- NeatPages::Helpers::Status.new(pagination, request).generate
18
- end
17
+ def neat_pages_status
18
+ NeatPages::Helpers::Status.new(pagination, request).generate
19
+ end
19
20
 
20
- ::ActionView::Base.send :include, self
21
+ ::ActionView::Base.send :include, self
22
+ end
21
23
  end
22
24
 
23
25
  require 'neat_pages/helpers/builder'
@@ -3,7 +3,7 @@ Gem::Specification.new do |gem|
3
3
  gem.description = "A simple pagination API to paginate Mongoid Models."
4
4
  gem.summary = "A simple pagination API to paginate Mongoid Models."
5
5
  gem.homepage = "https://github.com/demarque/neat-pages"
6
- gem.version = "1.0.1"
6
+ gem.version = "1.0.2"
7
7
  gem.licenses = ["MIT"]
8
8
 
9
9
  gem.authors = ["Sebastien Rosa"]
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neat-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Rosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-21 00:00:00.000000000 Z
11
+ date: 2014-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov-rcov-text
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: A simple pagination API to paginate Mongoid Models.
@@ -101,8 +101,8 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - .gitignore
105
- - .travis.yml
104
+ - ".gitignore"
105
+ - ".travis.yml"
106
106
  - Gemfile
107
107
  - LICENSE
108
108
  - README.md
@@ -167,17 +167,17 @@ require_paths:
167
167
  - lib
168
168
  required_ruby_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
- - - '>='
170
+ - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  requirements:
175
- - - '>='
175
+ - - ">="
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  requirements: []
179
179
  rubyforge_project:
180
- rubygems_version: 2.1.5
180
+ rubygems_version: 2.2.0
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: A simple pagination API to paginate Mongoid Models.