ajax_pagination 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/LICENSE +174 -16
- data/README.md +22 -5
- data/Rakefile +13 -12
- data/ajax_pagination.gemspec +5 -2
- data/lib/ajax_pagination.rb +6 -0
- data/lib/ajax_pagination/controller_additions.rb +7 -1
- data/lib/ajax_pagination/helper_additions.rb +11 -5
- data/lib/ajax_pagination/rails.rb +6 -0
- data/lib/ajax_pagination/version.rb +7 -1
- data/lib/assets/javascripts/ajax_pagination.js.erb +53 -25
- data/lib/assets/stylesheets/ajax_pagination.css +7 -0
- data/lib/generators/ajax_pagination/assets_generator.rb +6 -0
- data/lib/generators/ajax_pagination/install_generator.rb +6 -0
- data/spec/ajax_pagination/helper_additions_spec.rb +1 -1
- data/spec/ajax_pagination/integration/ajaxpaginate_spec.rb +59 -42
- data/spec/ajax_pagination/integration/disabled_spec.rb +1 -1
- data/spec/ajax_pagination/integration/paginate_spec.rb +3 -3
- data/spec/ajax_pagination/integration/rails30_spec.rb +2 -2
- data/spec/ajax_pagination/integration/warnings_spec.rb +4 -4
- data/spec/rails_app/app/assets/stylesheets/application.css +6 -2
- data/spec/rails_app/app/views/layouts/application.html.erb +1 -1
- data/spec/rails_app/config/environments/test.rb +6 -0
- data/spec/spec_helper.rb +2 -1
- metadata +120 -130
- data/COPYING +0 -674
- data/COPYING.LESSER +0 -165
@@ -1,3 +1,10 @@
|
|
1
|
+
/* Copyright (c) 2012 Ronald Ping Man Chan
|
2
|
+
*
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
6
|
+
*/
|
7
|
+
|
1
8
|
.ajaxpagination-loadzone > .margin-top {
|
2
9
|
height: 50px;
|
3
10
|
max-height: 12.5%;
|
@@ -1,3 +1,9 @@
|
|
1
|
+
# Copyright (c) 2012 Ronald Ping Man Chan
|
2
|
+
#
|
3
|
+
# This Source Code Form is subject to the terms of the Mozilla Public
|
4
|
+
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
5
|
+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
6
|
+
|
1
7
|
require 'rails'
|
2
8
|
require 'erb'
|
3
9
|
|
@@ -1,3 +1,9 @@
|
|
1
|
+
# Copyright (c) 2012 Ronald Ping Man Chan
|
2
|
+
#
|
3
|
+
# This Source Code Form is subject to the terms of the Mozilla Public
|
4
|
+
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
5
|
+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
6
|
+
|
1
7
|
module AjaxPagination
|
2
8
|
module Generators
|
3
9
|
class InstallGenerator < Rails::Generators::Base
|
@@ -18,7 +18,7 @@ describe AjaxPagination::HelperAdditions do
|
|
18
18
|
@view.should_receive(:render).with('global')
|
19
19
|
@view.ajax_section
|
20
20
|
@view.should_receive(:render).with('page2')
|
21
|
-
@view.ajax_section :id =>
|
21
|
+
@view.ajax_section :id => :page2 # renders the partial named :id if :partial not defined
|
22
22
|
@view.should_receive(:render).with('page3')
|
23
23
|
@view.ajax_section :render => 'page3' # if partial defined, renders partial
|
24
24
|
@view.should_receive(:render).with('pageX')
|
@@ -10,12 +10,12 @@ describe 'paginating with javascript on', :js => true do
|
|
10
10
|
it 'displays a loading image' do
|
11
11
|
retry_exceptions do
|
12
12
|
# following lines to warm up loading image
|
13
|
-
visit("http
|
13
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}") # goes to welcome page
|
14
14
|
sleep(3)
|
15
15
|
click_link 'Changelog'
|
16
16
|
sleep(3)
|
17
17
|
|
18
|
-
visit("http
|
18
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}") # goes to welcome page
|
19
19
|
page.should have_no_selector('.ajaxpagination-loader')
|
20
20
|
sleep(1.5)
|
21
21
|
click_link 'About'
|
@@ -29,25 +29,38 @@ describe 'paginating with javascript on', :js => true do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
it 'displays a loading image with nested and multiple paginated sections' do
|
32
|
-
retry_exceptions
|
32
|
+
retry_exceptions do
|
33
33
|
# following lines to warm up
|
34
|
-
visit("http
|
34
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}") # goes to welcome page
|
35
35
|
sleep(3)
|
36
36
|
click_link 'Changelog'
|
37
37
|
sleep(3)
|
38
38
|
|
39
|
-
visit("http
|
39
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/changelog")
|
40
40
|
sleep(2)
|
41
41
|
page.should have_selector('#changelogpagetitle')
|
42
42
|
find('#page').find('.next_page').click
|
43
43
|
page.should have_selector('.ajaxpagination-loader')
|
44
44
|
sleep(1.5)
|
45
45
|
page.should have_no_selector('.ajaxpagination-loader')
|
46
|
-
|
47
|
-
|
46
|
+
end
|
47
|
+
retry_exceptions(10) do |i| # has trouble finding sign-in link (rbx slow? or ...?)
|
48
|
+
sleep(2)
|
49
|
+
case i%4
|
50
|
+
when 0
|
51
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}") # goes to welcome page
|
52
|
+
when 1
|
53
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/pages/about") # goes to welcome page
|
54
|
+
when 2
|
55
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/changelog") # goes to welcome page
|
56
|
+
when 3
|
57
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/posts") # goes to welcome page
|
58
|
+
end
|
48
59
|
find('#signin').click
|
49
60
|
sleep(2)
|
50
|
-
|
61
|
+
end
|
62
|
+
retry_exceptions do
|
63
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/posts")
|
51
64
|
sleep(2)
|
52
65
|
page.should have_selector('#postspagetitle')
|
53
66
|
find('#page').find('.next_page').click
|
@@ -64,29 +77,29 @@ describe 'paginating with javascript on', :js => true do
|
|
64
77
|
it 'shows the configured loading image' do
|
65
78
|
retry_exceptions do
|
66
79
|
# warmup images
|
67
|
-
visit("http
|
80
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/changelog")
|
68
81
|
find('#page').find('.next_page').click
|
69
82
|
sleep(3)
|
70
|
-
visit("http
|
83
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/posts")
|
71
84
|
find('#page').find('.next_page').click
|
72
85
|
sleep(3)
|
73
86
|
|
74
|
-
visit("http
|
87
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/changelog")
|
75
88
|
find('#page').find('.next_page').click
|
76
89
|
page.should have_xpath("//img[@class='ajaxpagination-loader' and @src = '/assets/myajax-loader.gif']")
|
77
90
|
sleep(1.5)
|
78
|
-
visit("http
|
91
|
+
visit("http://#{SERVERIP}:#{SERVERSLOWPORT}/posts")
|
79
92
|
find('#page').find('.next_page').click
|
80
93
|
page.should have_xpath("//img[@class='ajaxpagination-loader' and @src = '/assets/ajax-loader.gif']")
|
81
94
|
end
|
82
95
|
end
|
83
96
|
it 'works with browser back and forward buttons' do
|
84
|
-
visit("http
|
97
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/about") # warmup serverport
|
85
98
|
sleep(3)
|
86
99
|
page.should have_selector('#aboutpagetitle')
|
87
100
|
|
88
101
|
# actual test
|
89
|
-
visit("http
|
102
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/changelog")
|
90
103
|
sleep(1)
|
91
104
|
page.should have_selector('#changelogpagetitle')
|
92
105
|
click_link 'About'
|
@@ -107,7 +120,7 @@ describe 'paginating with javascript on', :js => true do
|
|
107
120
|
page.should have_selector('#aboutpagetitle')
|
108
121
|
end
|
109
122
|
it 'has correct reload behaviour on history' do
|
110
|
-
visit("http
|
123
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/about")
|
111
124
|
sleep(3) # rbx has long warmup time
|
112
125
|
page.should have_selector('#aboutpagetitle')
|
113
126
|
click_link 'Readme' # History will have [about,readme]
|
@@ -120,7 +133,7 @@ describe 'paginating with javascript on', :js => true do
|
|
120
133
|
page.should have_selector('#aboutpagetitle')
|
121
134
|
end
|
122
135
|
it 'has correct reload behaviour when jumping between history with the same url' do
|
123
|
-
visit("http
|
136
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/about")
|
124
137
|
sleep(3) # allow warmup time (zzz... rbx)
|
125
138
|
page.should have_selector('#aboutpagetitle')
|
126
139
|
click_link 'Readme' # History will have [about,readme]
|
@@ -138,15 +151,15 @@ describe 'paginating with javascript on', :js => true do
|
|
138
151
|
find("#aboutpagetitle").text.should == "ReloadReferenceToken" # hasn't reloaded if token is still there
|
139
152
|
end
|
140
153
|
it 'displays error pages within div' do
|
141
|
-
visit("http
|
154
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}") # goes to welcome page
|
142
155
|
sleep(1)
|
143
156
|
click_link("AJAX Pagination Example Application")
|
144
|
-
page.current_url.should == "http
|
157
|
+
page.current_url.should == "http://#{SERVERIP}:#{SERVERPORT}/broken%20link"
|
145
158
|
page.should have_content("AJAX Pagination Example Application")
|
146
159
|
page.should have_content("No route matches")
|
147
160
|
end
|
148
161
|
it 'changes url to match redirection' do
|
149
|
-
visit("http
|
162
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}")
|
150
163
|
sleep(1)
|
151
164
|
click_link("Posts")
|
152
165
|
sleep(1)
|
@@ -157,14 +170,14 @@ describe 'paginating with javascript on', :js => true do
|
|
157
170
|
page.current_url.should == myurl
|
158
171
|
end
|
159
172
|
it 'submits ajax_form_tag form via post' do
|
160
|
-
visit("http
|
173
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/about")
|
161
174
|
count = page.find("#submits").html.to_i
|
162
175
|
click_button("Submit")
|
163
176
|
page.should have_content("#{count+1} submit")
|
164
177
|
page.should have_selector('#aboutpagetitle') # ensures loading was via AJAX Pagination
|
165
178
|
end
|
166
179
|
it 'history does not change if :history => false' do
|
167
|
-
visit("http
|
180
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/about")
|
168
181
|
myurl = page.current_url # to get the canonical url
|
169
182
|
count = page.find("#submits").html.to_i
|
170
183
|
click_button("Submit")
|
@@ -173,13 +186,13 @@ describe 'paginating with javascript on', :js => true do
|
|
173
186
|
end
|
174
187
|
it 'submits ajax_form_for form via POST and DELETE link' do
|
175
188
|
retry_exceptions do
|
176
|
-
visit("http
|
189
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/")
|
177
190
|
find('#signin').click if !page.has_selector?('#signout')
|
178
191
|
click_link("Posts")
|
179
192
|
sleep(1)
|
180
193
|
page.should have_content("New Post")
|
181
194
|
myurl = page.current_url # to get the canonical url
|
182
|
-
visit("http
|
195
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/posts/new")
|
183
196
|
sleep(1)
|
184
197
|
within("#new_post") do
|
185
198
|
fill_in 'Title', :with => 'very unique title for test'
|
@@ -204,27 +217,31 @@ describe 'paginating with javascript on', :js => true do
|
|
204
217
|
# This spec does not work in rbx on travis.
|
205
218
|
# Tested to work in rbx-1.2.4 on local machine. Also works using MRI ruby on travis.
|
206
219
|
it 'submits ajax_form_for form via PUT link' do
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
220
|
+
retry_exceptions do
|
221
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}")
|
222
|
+
find('#signin').click
|
223
|
+
sleep(2)
|
224
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/posts/2")
|
225
|
+
click_link("Edit");
|
226
|
+
sleep(2)
|
227
|
+
within(".edit_post") do
|
228
|
+
fill_in 'Content', :with => 'some supercontent'
|
229
|
+
end
|
230
|
+
count = ajaxCount
|
231
|
+
click_button("Update Post");
|
232
|
+
sleep(3)
|
233
|
+
# page.should have_content("Post was successfully updated.") # does not work in rbx on travis (????)
|
234
|
+
page.should have_content("some supercontent")
|
235
|
+
ajaxCount.should == count + 1
|
215
236
|
end
|
216
|
-
count = ajaxCount
|
217
|
-
click_button("Update Post");
|
218
|
-
sleep(3)
|
219
|
-
# page.should have_content("Post was successfully updated.") # does not work in rbx on travis (????)
|
220
|
-
page.should have_content("some supercontent")
|
221
|
-
ajaxCount.should == count + 1
|
222
237
|
end
|
223
238
|
it 'changes title' do
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
239
|
+
retry_exceptions do
|
240
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}")
|
241
|
+
title = page.evaluate_script("document.title") # because what is between the <title> tags and what is shown in the window title can differ (document.title gets set by javascript)
|
242
|
+
click_link("About");
|
243
|
+
page.should have_selector('#aboutpagetitle') # ensures loading was via AJAX Pagination
|
244
|
+
page.evaluate_script("document.title").should_not == title
|
245
|
+
end
|
229
246
|
end
|
230
247
|
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe 'disabled with javascript', :js => true do
|
4
4
|
before :each do
|
5
|
-
visit("http
|
5
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/warnings")
|
6
6
|
find("#disablehistoryjslink").click
|
7
7
|
page.driver.browser.switch_to.alert.accept
|
8
8
|
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe 'paginating with javascript on', :type => :request, :driver => :selenium, :js => true do
|
4
4
|
it 'works' do
|
5
|
-
visit("http
|
5
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}") # goes to welcome page
|
6
6
|
page.should have_no_selector('#aboutpagetitle')
|
7
7
|
click_link 'About'
|
8
8
|
page.should have_selector('#aboutpagetitle')
|
@@ -12,12 +12,12 @@ describe 'paginating with javascript on', :type => :request, :driver => :seleniu
|
|
12
12
|
page.should have_no_selector('#aboutpagetitle')
|
13
13
|
end
|
14
14
|
it 'works with nested and multiple paginated sections' do
|
15
|
-
visit("http
|
15
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/changelog")
|
16
16
|
page.should have_selector('.previous_page.disabled')
|
17
17
|
find('#page').find('.next_page').click
|
18
18
|
page.should have_no_selector('.previous_page.disabled')
|
19
19
|
find('#signin').click
|
20
|
-
visit("http
|
20
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/posts")
|
21
21
|
page.should have_selector('#page .previous_page.disabled')
|
22
22
|
find('#page').find('.next_page').click
|
23
23
|
sleep(1)
|
@@ -4,7 +4,7 @@ describe 'rails3.0 support', :type => :request, :driver => :selenium do
|
|
4
4
|
include Retryable
|
5
5
|
it 'displays a loading image' do
|
6
6
|
retry_exceptions do
|
7
|
-
visit("http
|
7
|
+
visit("http://#{SERVERIP}:#{R30SERVERPORT}") # goes to welcome page
|
8
8
|
page.should have_no_selector('.ajaxpagination-loader')
|
9
9
|
sleep(1.5)
|
10
10
|
click_link 'About'
|
@@ -25,7 +25,7 @@ describe 'rails3.0 support', :type => :request, :driver => :selenium do
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
it 'submits ajax_form_tag form via post' do
|
28
|
-
visit("http
|
28
|
+
visit("http://#{SERVERIP}:#{R30SERVERPORT}/pages/about")
|
29
29
|
count = page.find("#submits").html.to_i
|
30
30
|
click_button("Submit")
|
31
31
|
sleep(1.5)
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe 'javascript warnings', :js => true do
|
4
4
|
it 'warns about excess page content' do
|
5
|
-
visit("http
|
5
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/warnings")
|
6
6
|
find("#fullpagelink").click
|
7
7
|
sleep(0.5)
|
8
8
|
alertmsg = page.driver.browser.switch_to.alert.text
|
@@ -12,7 +12,7 @@ describe 'javascript warnings', :js => true do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'warns about missing dependencies' do
|
15
|
-
visit("http
|
15
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/warnings")
|
16
16
|
find("#disablehistoryjslink").click
|
17
17
|
sleep(0.5)
|
18
18
|
alertmsg = page.driver.browser.switch_to.alert.text
|
@@ -22,7 +22,7 @@ describe 'javascript warnings', :js => true do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'warns about reference to more than one section of same id' do
|
25
|
-
visit("http
|
25
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/warnings")
|
26
26
|
find("#doublesectionlink").click
|
27
27
|
alertmsg = page.driver.browser.switch_to.alert.text
|
28
28
|
alertmsg.should include("UNIQUE_SECTION_NOT_FOUND")
|
@@ -30,7 +30,7 @@ describe 'javascript warnings', :js => true do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
it 'warns about reference to section which does not exist' do
|
33
|
-
visit("http
|
33
|
+
visit("http://#{SERVERIP}:#{SERVERPORT}/pages/warnings")
|
34
34
|
find("#nosectionlink").click
|
35
35
|
alertmsg = page.driver.browser.switch_to.alert.text
|
36
36
|
alertmsg.should include("UNIQUE_SECTION_NOT_FOUND")
|
@@ -13,13 +13,17 @@
|
|
13
13
|
*= require_tree .
|
14
14
|
*/
|
15
15
|
|
16
|
+
.menu ul {
|
17
|
+
padding: 0px;
|
18
|
+
}
|
19
|
+
|
16
20
|
.menu ul li {
|
17
21
|
display: inline-block;
|
18
22
|
border: 1px solid black;
|
19
23
|
}
|
20
24
|
.menu ul li a {
|
21
|
-
padding-left:
|
22
|
-
padding-right:
|
25
|
+
padding-left: 15px;
|
26
|
+
padding-right: 15px;
|
23
27
|
}
|
24
28
|
|
25
29
|
#alert {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<title><%= (params[:controller] + " " + params[:action]).titleize %> - RailsApp</title>
|
5
5
|
<%= stylesheet_link_tag "application", :media => "all" %>
|
6
|
-
<%= javascript_include_tag "application" %>
|
6
|
+
<%= javascript_include_tag "application" if Rails.application.assets.find_asset('jquery.js') %><%# because RackTest (for specs) cannot find jquery asset %>
|
7
7
|
<%= csrf_meta_tags %>
|
8
8
|
</head>
|
9
9
|
<body>
|
@@ -34,4 +34,10 @@ RailsApp::Application.configure do
|
|
34
34
|
|
35
35
|
# Print deprecation notices to the stderr
|
36
36
|
config.active_support.deprecation = :stderr
|
37
|
+
|
38
|
+
# Do not compress assets
|
39
|
+
#config.assets.compress = false
|
40
|
+
|
41
|
+
# Expands the lines which load the assets
|
42
|
+
config.assets.debug = true
|
37
43
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -28,13 +28,14 @@ SERVERPORT = IO.read(File.expand_path("../PORT",__FILE__)).strip # port number t
|
|
28
28
|
SERVERSLOWPORT = IO.read(File.expand_path("../SLOWPORT",__FILE__)).strip # a port with artificially slowed down loading
|
29
29
|
|
30
30
|
R30SERVERPORT = IO.read(File.expand_path("../R30PORT",__FILE__)).strip # port number for rails 3.0 app
|
31
|
+
SERVERIP = "0.0.0.0"
|
31
32
|
|
32
33
|
module Retryable
|
33
34
|
# retry code n times
|
34
35
|
def retry_exceptions(n = 3)
|
35
36
|
i=0
|
36
37
|
begin
|
37
|
-
yield
|
38
|
+
yield i
|
38
39
|
rescue
|
39
40
|
retry if (i += 1) < n
|
40
41
|
raise # if not retrying then raise
|
metadata
CHANGED
@@ -1,153 +1,152 @@
|
|
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
|
+
version: 0.6.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 6
|
9
|
-
- 3
|
10
|
-
version: 0.6.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Ronald Ping Man Chan
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-02-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rake
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &13397200 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :development
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rspec-rails
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: *13397200
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rspec-rails
|
27
|
+
requirement: &13461220 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
46
33
|
type: :development
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: sqlite3
|
50
34
|
prerelease: false
|
51
|
-
|
35
|
+
version_requirements: *13461220
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sqlite3
|
38
|
+
requirement: &13460000 !ruby/object:Gem::Requirement
|
52
39
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
60
44
|
type: :development
|
61
|
-
|
62
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *13460000
|
47
|
+
- !ruby/object:Gem::Dependency
|
63
48
|
name: will_paginate
|
49
|
+
requirement: &13459000 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
64
56
|
prerelease: false
|
65
|
-
|
57
|
+
version_requirements: *13459000
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: ffi
|
60
|
+
requirement: &13458260 !ruby/object:Gem::Requirement
|
66
61
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.0.11
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *13458260
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: thor
|
71
|
+
requirement: &13457600 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.14.4
|
74
77
|
type: :development
|
75
|
-
version_requirements: *id004
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: capybara
|
78
78
|
prerelease: false
|
79
|
-
|
79
|
+
version_requirements: *13457600
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: capybara
|
82
|
+
requirement: &13456920 !ruby/object:Gem::Requirement
|
80
83
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
|
85
|
-
segments:
|
86
|
-
- 0
|
87
|
-
version: "0"
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '1.1'
|
88
88
|
type: :development
|
89
|
-
|
90
|
-
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *13456920
|
91
|
+
- !ruby/object:Gem::Dependency
|
91
92
|
name: rails
|
93
|
+
requirement: &13456260 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '3.2'
|
99
|
+
type: :development
|
92
100
|
prerelease: false
|
93
|
-
|
101
|
+
version_requirements: *13456260
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: rails
|
104
|
+
requirement: &13455680 !ruby/object:Gem::Requirement
|
94
105
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
segments:
|
100
|
-
- 3
|
101
|
-
- 0
|
102
|
-
version: "3.0"
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.0'
|
103
110
|
type: :runtime
|
104
|
-
version_requirements: *id006
|
105
|
-
- !ruby/object:Gem::Dependency
|
106
|
-
name: jquery-rails
|
107
111
|
prerelease: false
|
108
|
-
|
112
|
+
version_requirements: *13455680
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: jquery-rails
|
115
|
+
requirement: &13455060 !ruby/object:Gem::Requirement
|
109
116
|
none: false
|
110
|
-
requirements:
|
111
|
-
- -
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
hash: 53
|
114
|
-
segments:
|
115
|
-
- 1
|
116
|
-
- 0
|
117
|
-
- 17
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
118
120
|
version: 1.0.17
|
119
121
|
type: :runtime
|
120
|
-
version_requirements: *id007
|
121
|
-
- !ruby/object:Gem::Dependency
|
122
|
-
name: jquery-historyjs
|
123
122
|
prerelease: false
|
124
|
-
|
123
|
+
version_requirements: *13455060
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: jquery-historyjs
|
126
|
+
requirement: &13454520 !ruby/object:Gem::Requirement
|
125
127
|
none: false
|
126
|
-
requirements:
|
127
|
-
- -
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
version: "0"
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
133
132
|
type: :runtime
|
134
|
-
|
135
|
-
|
136
|
-
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *13454520
|
135
|
+
description: Loads page content into AJAX sections with AJAX links, handling the details
|
136
|
+
for you, load content with javascript into designated page containers. Supports
|
137
|
+
multiple and/or nested AJAX sections. Designed to be easy to use, customizable,
|
138
|
+
supports browser history robustly, supports AJAX forms and has many more features.
|
139
|
+
Degrades gracefully when javascript is disabled.
|
140
|
+
email:
|
137
141
|
- ronalchn@gmail.com
|
138
142
|
executables: []
|
139
|
-
|
140
143
|
extensions: []
|
141
|
-
|
142
144
|
extra_rdoc_files: []
|
143
|
-
|
144
|
-
files:
|
145
|
+
files:
|
145
146
|
- .gitignore
|
146
147
|
- .rspec
|
147
148
|
- .travis.yml
|
148
149
|
- CHANGELOG.md
|
149
|
-
- COPYING
|
150
|
-
- COPYING.LESSER
|
151
150
|
- Gemfile
|
152
151
|
- LICENSE
|
153
152
|
- README.md
|
@@ -292,36 +291,27 @@ files:
|
|
292
291
|
- vendor/assets/javascripts/jquery.url.js
|
293
292
|
homepage: https://github.com/ronalchn/ajax_pagination
|
294
293
|
licenses: []
|
295
|
-
|
296
294
|
post_install_message:
|
297
295
|
rdoc_options: []
|
298
|
-
|
299
|
-
require_paths:
|
296
|
+
require_paths:
|
300
297
|
- lib
|
301
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
298
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
302
299
|
none: false
|
303
|
-
requirements:
|
304
|
-
- -
|
305
|
-
- !ruby/object:Gem::Version
|
306
|
-
|
307
|
-
|
308
|
-
- 0
|
309
|
-
version: "0"
|
310
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
|
+
requirements:
|
301
|
+
- - ! '>='
|
302
|
+
- !ruby/object:Gem::Version
|
303
|
+
version: '0'
|
304
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
305
|
none: false
|
312
|
-
requirements:
|
313
|
-
- -
|
314
|
-
- !ruby/object:Gem::Version
|
315
|
-
|
316
|
-
segments:
|
317
|
-
- 0
|
318
|
-
version: "0"
|
306
|
+
requirements:
|
307
|
+
- - ! '>='
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '0'
|
319
310
|
requirements: []
|
320
|
-
|
321
311
|
rubyforge_project: ajax_pagination
|
322
312
|
rubygems_version: 1.8.17
|
323
313
|
signing_key:
|
324
314
|
specification_version: 3
|
325
|
-
summary: Handles AJAX site navigation, loads content into ajax_section containers
|
315
|
+
summary: Handles AJAX site navigation, loads content into ajax_section containers
|
316
|
+
using AJAX links.
|
326
317
|
test_files: []
|
327
|
-
|