ajax_pagination 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +12 -0
- data/README.md +25 -270
- data/Rakefile +7 -0
- data/lib/ajax_pagination/helper_additions.rb +14 -22
- data/lib/ajax_pagination/version.rb +1 -1
- data/lib/assets/javascripts/ajax_pagination.js.erb +242 -93
- data/lib/assets/stylesheets/ajax_pagination.css.erb +24 -0
- data/spec/SLOWPORT +1 -0
- data/spec/ajax_pagination/integration/ajaxpaginate_spec.rb +117 -55
- data/spec/ajax_pagination/integration/disabled_spec.rb +18 -0
- data/spec/ajax_pagination/integration/paginate_spec.rb +2 -1
- data/spec/ajax_pagination/integration/warnings_spec.rb +47 -0
- data/spec/rails_app/Gemfile +1 -1
- data/spec/rails_app/app/assets/stylesheets/application.css +1 -0
- data/spec/rails_app/app/controllers/application_controller.rb +4 -2
- data/spec/rails_app/app/controllers/pages_controller.rb +7 -0
- data/spec/rails_app/app/views/changelog/index.html.erb +1 -1
- data/spec/rails_app/app/views/layouts/application.html.erb +13 -0
- data/spec/rails_app/app/views/pages/warnings.html.erb +43 -0
- data/spec/rails_app/app/views/posts/index.html.erb +1 -1
- data/spec/rails_app/config/environment.rb +1 -0
- data/spec/rails_app/config/initializers/ajax_pagination.rb +1 -1
- data/spec/rails_app/config/routes.rb +1 -0
- data/spec/rails_app/db/development.sqlite3 +0 -0
- data/spec/spec_helper.rb +1 -2
- metadata +133 -91
@@ -6,7 +6,7 @@ AjaxPagination.config do |config|
|
|
6
6
|
# by default, warnings are active only if the environment is development
|
7
7
|
# to configure by environment otherwise, this configuration needs to be added to the environment specific files
|
8
8
|
# uncomment to turn warnings on in all environments
|
9
|
-
|
9
|
+
config.warnings = true
|
10
10
|
# or to turn off in all environments
|
11
11
|
# config.warnings = false
|
12
12
|
end
|
Binary file
|
data/spec/spec_helper.rb
CHANGED
@@ -7,8 +7,6 @@ require 'capybara/rspec'
|
|
7
7
|
require 'capybara'
|
8
8
|
require 'rake'
|
9
9
|
|
10
|
-
require 'ajax_pagination'
|
11
|
-
|
12
10
|
Rails.backtrace_cleaner.remove_silencers!
|
13
11
|
|
14
12
|
Capybara.app = RailsApp::Application
|
@@ -27,4 +25,5 @@ end
|
|
27
25
|
include Capybara::DSL
|
28
26
|
|
29
27
|
SERVERPORT = IO.read(File.expand_path("../PORT",__FILE__)).strip # port number that we are using
|
28
|
+
SERVERSLOWPORT = IO.read(File.expand_path("../SLOWPORT",__FILE__)).strip # a port with artificially slowed down loading
|
30
29
|
|
metadata
CHANGED
@@ -1,114 +1,147 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ajax_pagination
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Ronald Ping Man Chan
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-03-06 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rake
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
22
32
|
type: :development
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
26
35
|
name: rspec-rails
|
27
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
38
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
33
46
|
type: :development
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
37
49
|
name: sqlite3
|
38
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
52
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
44
60
|
type: :development
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
48
63
|
name: will_paginate
|
49
|
-
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
66
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
55
74
|
type: :development
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
75
|
+
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
59
77
|
name: capybara
|
60
|
-
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
80
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
hash: 3
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
66
88
|
type: :development
|
67
|
-
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
89
|
+
version_requirements: *id005
|
90
|
+
- !ruby/object:Gem::Dependency
|
70
91
|
name: rails
|
71
|
-
|
92
|
+
prerelease: false
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
94
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
hash: 5
|
99
|
+
segments:
|
100
|
+
- 3
|
101
|
+
- 1
|
102
|
+
version: "3.1"
|
77
103
|
type: :runtime
|
78
|
-
|
79
|
-
|
80
|
-
- !ruby/object:Gem::Dependency
|
104
|
+
version_requirements: *id006
|
105
|
+
- !ruby/object:Gem::Dependency
|
81
106
|
name: jquery-rails
|
82
|
-
|
107
|
+
prerelease: false
|
108
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
83
109
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
hash: 53
|
114
|
+
segments:
|
115
|
+
- 1
|
116
|
+
- 0
|
117
|
+
- 17
|
87
118
|
version: 1.0.17
|
88
119
|
type: :runtime
|
89
|
-
|
90
|
-
|
91
|
-
- !ruby/object:Gem::Dependency
|
120
|
+
version_requirements: *id007
|
121
|
+
- !ruby/object:Gem::Dependency
|
92
122
|
name: jquery-historyjs
|
93
|
-
|
123
|
+
prerelease: false
|
124
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
94
125
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
hash: 3
|
130
|
+
segments:
|
131
|
+
- 0
|
132
|
+
version: "0"
|
99
133
|
type: :runtime
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
load content with javascript in designated page containers. Each webpage can have
|
104
|
-
multiple page containers, each with a different set of pagination links. The page
|
105
|
-
containers can be nested. Degrades gracefully when javascript is disabled.
|
106
|
-
email:
|
134
|
+
version_requirements: *id008
|
135
|
+
description: Handles AJAX pagination for you, by hooking up the links you want to load content with javascript in designated page containers. Each webpage can have multiple page containers, each with a different set of pagination links. The page containers can be nested. Degrades gracefully when javascript is disabled.
|
136
|
+
email:
|
107
137
|
- ronalchn@gmail.com
|
108
138
|
executables: []
|
139
|
+
|
109
140
|
extensions: []
|
141
|
+
|
110
142
|
extra_rdoc_files: []
|
111
|
-
|
143
|
+
|
144
|
+
files:
|
112
145
|
- .gitignore
|
113
146
|
- .rspec
|
114
147
|
- .travis.yml
|
@@ -127,14 +160,18 @@ files:
|
|
127
160
|
- lib/ajax_pagination/version.rb
|
128
161
|
- lib/assets/images/ajax-loader.gif
|
129
162
|
- lib/assets/javascripts/ajax_pagination.js.erb
|
163
|
+
- lib/assets/stylesheets/ajax_pagination.css.erb
|
130
164
|
- lib/generators/ajax_pagination/install_generator.rb
|
131
165
|
- lib/generators/templates/ajax_pagination.rb
|
132
166
|
- spec/PORT
|
167
|
+
- spec/SLOWPORT
|
133
168
|
- spec/ajax_pagination/controller_additions_spec.rb
|
134
169
|
- spec/ajax_pagination/helper_additions_spec.rb
|
135
170
|
- spec/ajax_pagination/integration/ajaxpaginate_spec.rb
|
171
|
+
- spec/ajax_pagination/integration/disabled_spec.rb
|
136
172
|
- spec/ajax_pagination/integration/nojavascript_spec.rb
|
137
173
|
- spec/ajax_pagination/integration/paginate_spec.rb
|
174
|
+
- spec/ajax_pagination/integration/warnings_spec.rb
|
138
175
|
- spec/rails_app/.gitignore
|
139
176
|
- spec/rails_app/Gemfile
|
140
177
|
- spec/rails_app/README.rdoc
|
@@ -163,6 +200,7 @@ files:
|
|
163
200
|
- spec/rails_app/app/views/layouts/flash.html.erb
|
164
201
|
- spec/rails_app/app/views/pages/about.html.erb
|
165
202
|
- spec/rails_app/app/views/pages/readme.html.erb
|
203
|
+
- spec/rails_app/app/views/pages/warnings.html.erb
|
166
204
|
- spec/rails_app/app/views/pages/welcome.html.erb
|
167
205
|
- spec/rails_app/app/views/posts/_form.html.erb
|
168
206
|
- spec/rails_app/app/views/posts/_page.html.erb
|
@@ -208,32 +246,36 @@ files:
|
|
208
246
|
- vendor/assets/javascripts/jquery.url.js
|
209
247
|
homepage: https://github.com/ronalchn/ajax_pagination
|
210
248
|
licenses: []
|
249
|
+
|
211
250
|
post_install_message:
|
212
251
|
rdoc_options: []
|
213
|
-
|
252
|
+
|
253
|
+
require_paths:
|
214
254
|
- lib
|
215
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
255
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
216
256
|
none: false
|
217
|
-
requirements:
|
218
|
-
- -
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
|
221
|
-
segments:
|
257
|
+
requirements:
|
258
|
+
- - ">="
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
hash: 3
|
261
|
+
segments:
|
222
262
|
- 0
|
223
|
-
|
224
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
|
+
version: "0"
|
264
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
265
|
none: false
|
226
|
-
requirements:
|
227
|
-
- -
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
|
230
|
-
segments:
|
266
|
+
requirements:
|
267
|
+
- - ">="
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
hash: 3
|
270
|
+
segments:
|
231
271
|
- 0
|
232
|
-
|
272
|
+
version: "0"
|
233
273
|
requirements: []
|
274
|
+
|
234
275
|
rubyforge_project: ajax_pagination
|
235
|
-
rubygems_version: 1.8.
|
276
|
+
rubygems_version: 1.8.17
|
236
277
|
signing_key:
|
237
278
|
specification_version: 3
|
238
279
|
summary: Handles AJAX pagination, changing the content when certain links are followed.
|
239
280
|
test_files: []
|
281
|
+
|