nextable 0.0.2
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.
- checksums.yaml +7 -0
- data/lib/nextable.rb +135 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160121233437_create_users.rb +11 -0
- data/test/dummy/db/schema.rb +24 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +159 -0
- data/test/dummy/log/test.log +12953 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/users.yml +11 -0
- data/test/dummy/test/models/user_test.rb +7 -0
- data/test/nextable_test.rb +162 -0
- data/test/test_helper.rb +18 -0
- metadata +174 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,162 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class NextableTest < ActiveSupport::TestCase
|
4
|
+
class Defaults < NextableTest
|
5
|
+
setup do
|
6
|
+
@first, @second, @third = create_three_users
|
7
|
+
end
|
8
|
+
|
9
|
+
test "next_record_fetches_user_with_ascending_id" do
|
10
|
+
assert_equal @first.next_record, @second
|
11
|
+
assert_equal @second.next_record, @third
|
12
|
+
end
|
13
|
+
|
14
|
+
test "previous_record_fetches_user_with_descending_id" do
|
15
|
+
assert_equal @second.previous_record, @first
|
16
|
+
assert_equal @third.previous_record, @second
|
17
|
+
end
|
18
|
+
|
19
|
+
test "last_user_next_record_returns_nil" do
|
20
|
+
assert_equal @third.next_record, nil
|
21
|
+
end
|
22
|
+
|
23
|
+
test "first_user_previous_record_returns_nil" do
|
24
|
+
assert_equal @first.previous_record, nil
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class WithFieldParam < NextableTest
|
29
|
+
test "date_field_example_birthday" do
|
30
|
+
@feb_1965, @feb_1942, @jan_1929 = create_three_users
|
31
|
+
|
32
|
+
# next_record
|
33
|
+
assert_equal @jan_1929.next_record(field: 'birthday'), @feb_1942
|
34
|
+
assert_equal @feb_1942.next_record(field: 'birthday'), @feb_1965
|
35
|
+
|
36
|
+
# previous_record
|
37
|
+
assert_equal @feb_1965.previous_record(field: 'birthday'), @feb_1942
|
38
|
+
assert_equal @feb_1942.previous_record(field: 'birthday'), @jan_1929
|
39
|
+
|
40
|
+
# final record of each direction
|
41
|
+
assert_equal @jan_1929.previous_record(field: 'birthday'), nil
|
42
|
+
assert_equal @feb_1965.next_record(field: 'birthday'), nil
|
43
|
+
end
|
44
|
+
|
45
|
+
test "integer_field_example_total_friends" do
|
46
|
+
@six, @eight, @seven = create_three_users
|
47
|
+
|
48
|
+
# next_record
|
49
|
+
assert_equal @six.next_record(field: 'total_friends'), @seven
|
50
|
+
assert_equal @seven.next_record(field: 'total_friends'), @eight
|
51
|
+
|
52
|
+
# previous_record
|
53
|
+
assert_equal @eight.previous_record(field: 'total_friends'), @seven
|
54
|
+
assert_equal @seven.previous_record(field: 'total_friends'), @six
|
55
|
+
|
56
|
+
# final record of each direction
|
57
|
+
assert_equal @six.previous_record(field: 'total_friends'), nil
|
58
|
+
assert_equal @eight.next_record(field: 'total_friends'), nil
|
59
|
+
end
|
60
|
+
|
61
|
+
test "string_field_example_name" do
|
62
|
+
@malcolm, @huey, @mlk = create_three_users
|
63
|
+
|
64
|
+
# next_record
|
65
|
+
assert_equal @huey.next_record(field: 'name'), @malcolm
|
66
|
+
assert_equal @malcolm.next_record(field: 'name'), @mlk
|
67
|
+
|
68
|
+
# previous_record
|
69
|
+
assert_equal @mlk.previous_record(field: 'name'), @malcolm
|
70
|
+
assert_equal @malcolm.previous_record(field: 'name'), @huey
|
71
|
+
|
72
|
+
# final record of each direction
|
73
|
+
assert_equal @huey.previous_record(field: 'name'), nil
|
74
|
+
assert_equal @mlk.next_record(field: 'name'), nil
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
class WithCycleTrue < NextableTest
|
79
|
+
test "default_will_cycle_by_id" do
|
80
|
+
@first, @second, @third = create_three_users
|
81
|
+
|
82
|
+
# final record of each direction
|
83
|
+
assert_equal @first.previous_record(cycle: true), @third
|
84
|
+
assert_equal @third.next_record(cycle: true), @first
|
85
|
+
end
|
86
|
+
|
87
|
+
test "cycle_by_date_field_example_birthday" do
|
88
|
+
@feb_1965, @feb_1942, @jan_1929 = create_three_users
|
89
|
+
|
90
|
+
# final record of each direction
|
91
|
+
assert_equal @jan_1929.previous_record(
|
92
|
+
field: 'birthday', cycle: true), @feb_1965
|
93
|
+
assert_equal @feb_1965.next_record(
|
94
|
+
field: 'birthday', cycle: true), @jan_1929
|
95
|
+
end
|
96
|
+
|
97
|
+
test "cycle_by_integer_field_example_total_friends" do
|
98
|
+
@six, @eight, @seven = create_three_users
|
99
|
+
|
100
|
+
# final record of each direction
|
101
|
+
assert_equal @six.previous_record(
|
102
|
+
cycle: true, field: 'total_friends'), @eight
|
103
|
+
assert_equal @eight.next_record(
|
104
|
+
cycle: true, field: 'total_friends'), @six
|
105
|
+
end
|
106
|
+
|
107
|
+
test "cycle_by_string_field_example_name" do
|
108
|
+
@malcolm, @huey, @mlk = create_three_users
|
109
|
+
|
110
|
+
# final record of each direction
|
111
|
+
assert_equal @mlk.next_record(cycle: true, field: 'name'), @huey
|
112
|
+
assert_equal @huey.previous_record(cycle: true, field: 'name'), @mlk
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
class WithFiltersParam < NextableTest
|
117
|
+
setup do
|
118
|
+
@first, @second, @third, @fourth, @fifth, @sixth, @seventh = create_seven_users
|
119
|
+
end
|
120
|
+
|
121
|
+
test "with_jun_2_1991_birthday" do
|
122
|
+
assert_equal @second.next_record(filters: { birthday: '1991-06-02' }), @third
|
123
|
+
assert_equal @fifth.next_record(filters: { birthday: '1991-06-02' }), nil
|
124
|
+
end
|
125
|
+
|
126
|
+
test "with_oct_26_1990_birthday" do
|
127
|
+
assert_equal @second.next_record(filters: { birthday: '1990-10-26' }), @fifth
|
128
|
+
assert_equal @fifth.next_record(filters: { birthday: '1990-10-26' }), @sixth
|
129
|
+
|
130
|
+
assert_equal @sixth.previous_record(filters: { birthday: '1990-10-26' }), @fifth
|
131
|
+
assert_equal @fifth.previous_record(filters: { birthday: '1990-10-26' }), nil
|
132
|
+
|
133
|
+
# with cycle
|
134
|
+
assert_equal @fifth.previous_record(cycle: true, filters: { birthday: '1990-10-26' }), @seventh
|
135
|
+
assert_equal @seventh.next_record(cycle: true, filters: { birthday: '1990-10-26' }), @fifth
|
136
|
+
|
137
|
+
# with field param
|
138
|
+
assert_equal @fifth.previous_record(field: 'name', filters: { birthday: '1990-10-26' }), @sixth
|
139
|
+
assert_equal @seventh.next_record(field: 'name', filters: { birthday: '1990-10-26' }), @sixth
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
private
|
144
|
+
|
145
|
+
def create_seven_users
|
146
|
+
first = User.create!(name: 'Gibbert', total_friends: 1, birthday: 'June 2, 1991')
|
147
|
+
second = User.create!(name: 'Fubart', total_friends: 1, birthday: 'June 2, 1991')
|
148
|
+
third = User.create!(name: 'Ebert', total_friends: 1, birthday: 'June 2, 1991')
|
149
|
+
fourth = User.create!(name: 'Dilbert', total_friends: 2, birthday: 'June 2, 1991')
|
150
|
+
fifth = User.create!(name: 'Cubert', total_friends: 2, birthday: 'October 26, 1990')
|
151
|
+
sixth = User.create!(name: 'Bertal', total_friends: 3, birthday: 'October 26, 1990')
|
152
|
+
seventh = User.create!(name: 'Albert', total_friends: 3, birthday: 'October 26, 1990')
|
153
|
+
return first, second, third, fourth, fifth, sixth, seventh
|
154
|
+
end
|
155
|
+
|
156
|
+
def create_three_users
|
157
|
+
first = User.create!(name: 'Malcom Little', total_friends: 6, birthday: 'February 21, 1965')
|
158
|
+
second = User.create!(name: 'Huey Newton', total_friends: 8, birthday: 'February 17, 1942')
|
159
|
+
third = User.create!(name: 'MLK Junior', total_friends: 7, birthday: 'January 15, 1929')
|
160
|
+
return first, second, third
|
161
|
+
end
|
162
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
+
require "rails/test_help"
|
7
|
+
|
8
|
+
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
9
|
+
# to be shown.
|
10
|
+
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
11
|
+
|
12
|
+
# Load support files
|
13
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
|
+
|
15
|
+
# Load fixtures from the engine
|
16
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
17
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,174 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nextable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thomas Brigham
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.1.14
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.1'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.1.14
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: sqlite3
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
description: " Allows \"walking\" of a table of ActiveRecord records by implementing
|
48
|
+
\n #next_record and #previous_record.\n\nOptions:\n- field: [Defaults to 'id'] which
|
49
|
+
field should be used to calculate order. If\n two records have the same value for
|
50
|
+
the specified field, records will be\n sub-ordered by ID.\n- cycle: [Defaults to
|
51
|
+
false] upon reaching last (or first) record in order,\n determines whether or not
|
52
|
+
it should return nil or cycle to beginning (or end)\n- filters: [Defaults to {}]
|
53
|
+
a hash passed to self.class.where to determine\n scope. This will break if the
|
54
|
+
ActiveRecord object does not have all of the\n keys that are passed into the hash.\n"
|
55
|
+
email: thomas@thomasbrigham.me
|
56
|
+
executables: []
|
57
|
+
extensions: []
|
58
|
+
extra_rdoc_files: []
|
59
|
+
files:
|
60
|
+
- lib/nextable.rb
|
61
|
+
- test/dummy/README.rdoc
|
62
|
+
- test/dummy/Rakefile
|
63
|
+
- test/dummy/app/assets/javascripts/application.js
|
64
|
+
- test/dummy/app/assets/stylesheets/application.css
|
65
|
+
- test/dummy/app/controllers/application_controller.rb
|
66
|
+
- test/dummy/app/helpers/application_helper.rb
|
67
|
+
- test/dummy/app/models/user.rb
|
68
|
+
- test/dummy/app/views/layouts/application.html.erb
|
69
|
+
- test/dummy/bin/bundle
|
70
|
+
- test/dummy/bin/rails
|
71
|
+
- test/dummy/bin/rake
|
72
|
+
- test/dummy/config.ru
|
73
|
+
- test/dummy/config/application.rb
|
74
|
+
- test/dummy/config/boot.rb
|
75
|
+
- test/dummy/config/database.yml
|
76
|
+
- test/dummy/config/environment.rb
|
77
|
+
- test/dummy/config/environments/development.rb
|
78
|
+
- test/dummy/config/environments/production.rb
|
79
|
+
- test/dummy/config/environments/test.rb
|
80
|
+
- test/dummy/config/initializers/assets.rb
|
81
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
82
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
83
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
84
|
+
- test/dummy/config/initializers/inflections.rb
|
85
|
+
- test/dummy/config/initializers/mime_types.rb
|
86
|
+
- test/dummy/config/initializers/session_store.rb
|
87
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
88
|
+
- test/dummy/config/locales/en.yml
|
89
|
+
- test/dummy/config/routes.rb
|
90
|
+
- test/dummy/config/secrets.yml
|
91
|
+
- test/dummy/db/development.sqlite3
|
92
|
+
- test/dummy/db/migrate/20160121233437_create_users.rb
|
93
|
+
- test/dummy/db/schema.rb
|
94
|
+
- test/dummy/db/test.sqlite3
|
95
|
+
- test/dummy/log/development.log
|
96
|
+
- test/dummy/log/test.log
|
97
|
+
- test/dummy/public/404.html
|
98
|
+
- test/dummy/public/422.html
|
99
|
+
- test/dummy/public/500.html
|
100
|
+
- test/dummy/public/favicon.ico
|
101
|
+
- test/dummy/test/fixtures/users.yml
|
102
|
+
- test/dummy/test/models/user_test.rb
|
103
|
+
- test/nextable_test.rb
|
104
|
+
- test/test_helper.rb
|
105
|
+
homepage: http://rubygems.org/gems/nextable
|
106
|
+
licenses:
|
107
|
+
- MIT
|
108
|
+
metadata: {}
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.4.5
|
126
|
+
signing_key:
|
127
|
+
specification_version: 4
|
128
|
+
summary: 'Extends ActiveRecord::Base to implement #next_record and #previous_record
|
129
|
+
instance methods'
|
130
|
+
test_files:
|
131
|
+
- test/dummy/app/assets/javascripts/application.js
|
132
|
+
- test/dummy/app/assets/stylesheets/application.css
|
133
|
+
- test/dummy/app/controllers/application_controller.rb
|
134
|
+
- test/dummy/app/helpers/application_helper.rb
|
135
|
+
- test/dummy/app/models/user.rb
|
136
|
+
- test/dummy/app/views/layouts/application.html.erb
|
137
|
+
- test/dummy/bin/bundle
|
138
|
+
- test/dummy/bin/rails
|
139
|
+
- test/dummy/bin/rake
|
140
|
+
- test/dummy/config/application.rb
|
141
|
+
- test/dummy/config/boot.rb
|
142
|
+
- test/dummy/config/database.yml
|
143
|
+
- test/dummy/config/environment.rb
|
144
|
+
- test/dummy/config/environments/development.rb
|
145
|
+
- test/dummy/config/environments/production.rb
|
146
|
+
- test/dummy/config/environments/test.rb
|
147
|
+
- test/dummy/config/initializers/assets.rb
|
148
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
149
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
150
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
151
|
+
- test/dummy/config/initializers/inflections.rb
|
152
|
+
- test/dummy/config/initializers/mime_types.rb
|
153
|
+
- test/dummy/config/initializers/session_store.rb
|
154
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
155
|
+
- test/dummy/config/locales/en.yml
|
156
|
+
- test/dummy/config/routes.rb
|
157
|
+
- test/dummy/config/secrets.yml
|
158
|
+
- test/dummy/config.ru
|
159
|
+
- test/dummy/db/development.sqlite3
|
160
|
+
- test/dummy/db/migrate/20160121233437_create_users.rb
|
161
|
+
- test/dummy/db/schema.rb
|
162
|
+
- test/dummy/db/test.sqlite3
|
163
|
+
- test/dummy/log/development.log
|
164
|
+
- test/dummy/log/test.log
|
165
|
+
- test/dummy/public/404.html
|
166
|
+
- test/dummy/public/422.html
|
167
|
+
- test/dummy/public/500.html
|
168
|
+
- test/dummy/public/favicon.ico
|
169
|
+
- test/dummy/Rakefile
|
170
|
+
- test/dummy/README.rdoc
|
171
|
+
- test/dummy/test/fixtures/users.yml
|
172
|
+
- test/dummy/test/models/user_test.rb
|
173
|
+
- test/nextable_test.rb
|
174
|
+
- test/test_helper.rb
|