pagers 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +1 -1
- data/lib/pagers/version.rb +1 -1
- data/test/dummy/config/environments/production.rb +5 -1
- data/test/dummy/config/environments/test.rb +9 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +11696 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/route_test.rb +40 -8
- metadata +7 -7
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/route_test.rb
CHANGED
@@ -9,13 +9,29 @@ class RouteTest < ActionDispatch::IntegrationTest
|
|
9
9
|
|
10
10
|
10.times.each { Record.create }
|
11
11
|
get '/'
|
12
|
-
|
12
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
13
|
+
assert_select 'li.current a[href="/?page=1"]:contains(1)'
|
14
|
+
else
|
15
|
+
assert_select 'li.current a[href="/?page=1"]', '1'
|
16
|
+
end
|
13
17
|
get '/?page=2'
|
14
|
-
|
18
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
19
|
+
assert_select 'li.current a[href="/?page=2"]:contains(2)'
|
20
|
+
else
|
21
|
+
assert_select 'li.current a[href="/?page=2"]', '2'
|
22
|
+
end
|
15
23
|
get '/?dummy='
|
16
|
-
|
24
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
25
|
+
assert_select 'li.current a[href="/?dummy=&page=1"]:contains(1)'
|
26
|
+
else
|
27
|
+
assert_select 'li.current a[href="/?dummy=&page=1"]', '1'
|
28
|
+
end
|
17
29
|
get '/?dummy=&page=2'
|
18
|
-
|
30
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
31
|
+
assert_select 'li.current a[href="/?dummy=&page=2"]:contains(2)'
|
32
|
+
else
|
33
|
+
assert_select 'li.current a[href="/?dummy=&page=2"]', '2'
|
34
|
+
end
|
19
35
|
end
|
20
36
|
|
21
37
|
test 'route param' do
|
@@ -25,13 +41,29 @@ class RouteTest < ActionDispatch::IntegrationTest
|
|
25
41
|
|
26
42
|
10.times.each { Record.create }
|
27
43
|
get '/'
|
28
|
-
|
44
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
45
|
+
assert_select 'li.current a[href="/1"]:contains(1)'
|
46
|
+
else
|
47
|
+
assert_select 'li.current a[href="/1"]', '1'
|
48
|
+
end
|
29
49
|
get '/2'
|
30
|
-
|
50
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
51
|
+
assert_select 'li.current a[href="/2"]:contains(2)'
|
52
|
+
else
|
53
|
+
assert_select 'li.current a[href="/2"]', '2'
|
54
|
+
end
|
31
55
|
get '/?dummy='
|
32
|
-
|
56
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
57
|
+
assert_select 'li.current a[href="/1?dummy="]:contains(1)'
|
58
|
+
else
|
59
|
+
assert_select 'li.current a[href="/1?dummy="]', '1'
|
60
|
+
end
|
33
61
|
get '/2?dummy='
|
34
|
-
|
62
|
+
if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
|
63
|
+
assert_select 'li.current a[href="/2?dummy="]:contains(2)'
|
64
|
+
else
|
65
|
+
assert_select 'li.current a[href="/2?dummy="]', '2'
|
66
|
+
end
|
35
67
|
end
|
36
68
|
|
37
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Museways
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,8 +16,8 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
- - "
|
19
|
+
version: 4.0.0
|
20
|
+
- - "<="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 4.2.0
|
23
23
|
type: :runtime
|
@@ -26,8 +26,8 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
- - "
|
29
|
+
version: 4.0.0
|
30
|
+
- - "<="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 4.2.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
148
|
+
rubygems_version: 2.4.5
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Pagers for rails.
|