ajax_pagination 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/CHANGELOG.md +6 -0
- data/Rakefile +6 -5
- data/lib/ajax_pagination/controller_additions.rb +11 -14
- data/lib/ajax_pagination/helper_additions.rb +7 -10
- data/lib/ajax_pagination/version.rb +1 -1
- data/lib/assets/javascripts/ajax_pagination.js.erb +83 -90
- data/spec/ajax_pagination/controller_additions_spec.rb +31 -29
- data/spec/ajax_pagination/helper_additions_spec.rb +2 -2
- data/spec/ajax_pagination/integration/warnings_spec.rb +0 -8
- data/spec/rails30_app/Gemfile.lock +96 -0
- data/spec/rails30_app/public/javascripts/ajax_pagination.js +84 -91
- data/spec/rails_app/Gemfile.lock +107 -0
- data/spec/rails_app/app/views/pages/warnings.html.erb +0 -7
- metadata +131 -86
@@ -0,0 +1,107 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
ajax_pagination (0.6.1.alpha)
|
5
|
+
jquery-historyjs
|
6
|
+
jquery-rails (>= 1.0.17)
|
7
|
+
rails (>= 3.0)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actionmailer (3.2.1)
|
13
|
+
actionpack (= 3.2.1)
|
14
|
+
mail (~> 2.4.0)
|
15
|
+
actionpack (3.2.1)
|
16
|
+
activemodel (= 3.2.1)
|
17
|
+
activesupport (= 3.2.1)
|
18
|
+
builder (~> 3.0.0)
|
19
|
+
erubis (~> 2.7.0)
|
20
|
+
journey (~> 1.0.1)
|
21
|
+
rack (~> 1.4.0)
|
22
|
+
rack-cache (~> 1.1)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.1.2)
|
25
|
+
activemodel (3.2.1)
|
26
|
+
activesupport (= 3.2.1)
|
27
|
+
builder (~> 3.0.0)
|
28
|
+
activerecord (3.2.1)
|
29
|
+
activemodel (= 3.2.1)
|
30
|
+
activesupport (= 3.2.1)
|
31
|
+
arel (~> 3.0.0)
|
32
|
+
tzinfo (~> 0.3.29)
|
33
|
+
activeresource (3.2.1)
|
34
|
+
activemodel (= 3.2.1)
|
35
|
+
activesupport (= 3.2.1)
|
36
|
+
activesupport (3.2.1)
|
37
|
+
i18n (~> 0.6)
|
38
|
+
multi_json (~> 1.0)
|
39
|
+
arel (3.0.2)
|
40
|
+
builder (3.0.0)
|
41
|
+
erubis (2.7.0)
|
42
|
+
hike (1.2.1)
|
43
|
+
i18n (0.6.0)
|
44
|
+
journey (1.0.3)
|
45
|
+
jquery-historyjs (0.2.2)
|
46
|
+
railties (>= 3.0)
|
47
|
+
thor (>= 0.14)
|
48
|
+
jquery-rails (2.0.1)
|
49
|
+
railties (>= 3.2.0, < 5.0)
|
50
|
+
thor (~> 0.14)
|
51
|
+
json (1.6.5)
|
52
|
+
mail (2.4.1)
|
53
|
+
i18n (>= 0.4.0)
|
54
|
+
mime-types (~> 1.16)
|
55
|
+
treetop (~> 1.4.8)
|
56
|
+
mime-types (1.17.2)
|
57
|
+
multi_json (1.1.0)
|
58
|
+
polyglot (0.3.3)
|
59
|
+
rack (1.4.1)
|
60
|
+
rack-cache (1.2)
|
61
|
+
rack (>= 0.4)
|
62
|
+
rack-ssl (1.3.2)
|
63
|
+
rack
|
64
|
+
rack-test (0.6.1)
|
65
|
+
rack (>= 1.0)
|
66
|
+
rails (3.2.1)
|
67
|
+
actionmailer (= 3.2.1)
|
68
|
+
actionpack (= 3.2.1)
|
69
|
+
activerecord (= 3.2.1)
|
70
|
+
activeresource (= 3.2.1)
|
71
|
+
activesupport (= 3.2.1)
|
72
|
+
bundler (~> 1.0)
|
73
|
+
railties (= 3.2.1)
|
74
|
+
railties (3.2.1)
|
75
|
+
actionpack (= 3.2.1)
|
76
|
+
activesupport (= 3.2.1)
|
77
|
+
rack-ssl (~> 1.3.2)
|
78
|
+
rake (>= 0.8.7)
|
79
|
+
rdoc (~> 3.4)
|
80
|
+
thor (~> 0.14.6)
|
81
|
+
rake (0.9.2.2)
|
82
|
+
rdoc (3.12)
|
83
|
+
json (~> 1.4)
|
84
|
+
sprockets (2.1.2)
|
85
|
+
hike (~> 1.2)
|
86
|
+
rack (~> 1.0)
|
87
|
+
tilt (~> 1.1, != 1.3.0)
|
88
|
+
sqlite3 (1.3.5)
|
89
|
+
thor (0.14.6)
|
90
|
+
tilt (1.3.3)
|
91
|
+
treetop (1.4.10)
|
92
|
+
polyglot
|
93
|
+
polyglot (>= 0.3.1)
|
94
|
+
tzinfo (0.3.32)
|
95
|
+
will_paginate (3.0.3)
|
96
|
+
|
97
|
+
PLATFORMS
|
98
|
+
ruby
|
99
|
+
|
100
|
+
DEPENDENCIES
|
101
|
+
ajax_pagination!
|
102
|
+
jquery-historyjs
|
103
|
+
jquery-rails
|
104
|
+
json
|
105
|
+
rails (= 3.2.1)
|
106
|
+
sqlite3
|
107
|
+
will_paginate
|
@@ -35,10 +35,3 @@ This page gives examples of the warnings that may be given, from AJAX Pagination
|
|
35
35
|
<p><%= ajax_link_to "Load stuff in section named \"double\"", pages_warnings_path, :section_id => "double", :id => "doublesectionlink" %></p>
|
36
36
|
<% end %>
|
37
37
|
|
38
|
-
<%= content_tag :div, :class => "paginated_section", :style => "display: inline-block; width: 300px; height: 100px; border: 1px solid black; margin: 10px; padding: 10px; vertical-align: middle;" do %>
|
39
|
-
<%= content_tag :div, :class => "ajaxpagination" do %>
|
40
|
-
<p>If a link does not reference a section into which content can be loaded, AJAX will be cancelled, and the link will load in the whole window.</p>
|
41
|
-
<p>This warning/behaviour is deprecated.</p>
|
42
|
-
<p><%= link_to "Link without reference to any section", pages_warnings_path, :id => "missingreferencelink" %></p>
|
43
|
-
<% end %>
|
44
|
-
<% end %>
|
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: 5
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 6
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
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-14 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: 7
|
99
|
+
segments:
|
100
|
+
- 3
|
101
|
+
- 0
|
102
|
+
version: "3.0"
|
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
|
@@ -144,6 +177,7 @@ files:
|
|
144
177
|
- spec/ajax_pagination/integration/warnings_spec.rb
|
145
178
|
- spec/rails30_app/.gitignore
|
146
179
|
- spec/rails30_app/Gemfile
|
180
|
+
- spec/rails30_app/Gemfile.lock
|
147
181
|
- spec/rails30_app/Rakefile
|
148
182
|
- spec/rails30_app/app/controllers/application_controller.rb
|
149
183
|
- spec/rails30_app/app/controllers/changelog_controller.rb
|
@@ -204,6 +238,7 @@ files:
|
|
204
238
|
- spec/rails30_app/script/rails
|
205
239
|
- spec/rails_app/.gitignore
|
206
240
|
- spec/rails_app/Gemfile
|
241
|
+
- spec/rails_app/Gemfile.lock
|
207
242
|
- spec/rails_app/README.rdoc
|
208
243
|
- spec/rails_app/Rakefile
|
209
244
|
- spec/rails_app/app/assets/images/myajax-loader.gif
|
@@ -272,26 +307,36 @@ files:
|
|
272
307
|
- vendor/assets/javascripts/jquery.url.js
|
273
308
|
homepage: https://github.com/ronalchn/ajax_pagination
|
274
309
|
licenses: []
|
310
|
+
|
275
311
|
post_install_message:
|
276
312
|
rdoc_options: []
|
277
|
-
|
313
|
+
|
314
|
+
require_paths:
|
278
315
|
- lib
|
279
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
316
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
280
317
|
none: false
|
281
|
-
requirements:
|
282
|
-
- -
|
283
|
-
- !ruby/object:Gem::Version
|
284
|
-
|
285
|
-
|
318
|
+
requirements:
|
319
|
+
- - ">="
|
320
|
+
- !ruby/object:Gem::Version
|
321
|
+
hash: 3
|
322
|
+
segments:
|
323
|
+
- 0
|
324
|
+
version: "0"
|
325
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
326
|
none: false
|
287
|
-
requirements:
|
288
|
-
- -
|
289
|
-
- !ruby/object:Gem::Version
|
290
|
-
|
327
|
+
requirements:
|
328
|
+
- - ">="
|
329
|
+
- !ruby/object:Gem::Version
|
330
|
+
hash: 3
|
331
|
+
segments:
|
332
|
+
- 0
|
333
|
+
version: "0"
|
291
334
|
requirements: []
|
335
|
+
|
292
336
|
rubyforge_project: ajax_pagination
|
293
337
|
rubygems_version: 1.8.17
|
294
338
|
signing_key:
|
295
339
|
specification_version: 3
|
296
340
|
summary: Handles AJAX pagination, changing the content when certain links are followed.
|
297
341
|
test_files: []
|
342
|
+
|