paginative 0.0.1
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/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +32 -0
- data/app/assets/javascripts/paginative/application.js +13 -0
- data/app/assets/stylesheets/paginative/application.css +15 -0
- data/app/controllers/paginative/application_controller.rb +4 -0
- data/app/helpers/paginative/application_helper.rb +4 -0
- data/app/models/paginative/test_model.rb +8 -0
- data/app/views/layouts/paginative/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20140415060518_create_paginative_test_models.rb +11 -0
- data/db/migrate/20140416020706_add_address_to_test_models.rb +5 -0
- data/lib/paginative/engine.rb +12 -0
- data/lib/paginative/models/model_extension.rb +19 -0
- data/lib/paginative/railtie.rb +7 -0
- data/lib/paginative/version.rb +3 -0
- data/lib/paginative.rb +20 -0
- data/lib/tasks/paginative_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/test_model.rb +6 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +29 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +83 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140416035443_create_test_models.rb +12 -0
- data/spec/dummy/db/schema.rb +34 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +83 -0
- data/spec/dummy/log/test.log +28375 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec/factories/test_models.rb +10 -0
- data/spec/dummy/spec/models/test_model_spec.rb +5 -0
- data/spec/factories/paginative_test_models.rb +9 -0
- data/spec/models/paginative/test_model_spec.rb +61 -0
- data/spec/spec_helper.rb +81 -0
- metadata +249 -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,61 @@
|
|
1
|
+
require_relative '../../spec_helper'
|
2
|
+
|
3
|
+
describe TestModel do
|
4
|
+
|
5
|
+
context "by name" do
|
6
|
+
|
7
|
+
it "is valid" do
|
8
|
+
model = FactoryGirl.create(:test_model)
|
9
|
+
|
10
|
+
expect(model).to be_valid
|
11
|
+
end
|
12
|
+
|
13
|
+
it "limits the results" do
|
14
|
+
models = FactoryGirl.create_list(:test_model, 30)
|
15
|
+
|
16
|
+
expect(TestModel.with_name_from("", 25).length).to eq 25
|
17
|
+
end
|
18
|
+
|
19
|
+
it "defaults to 25 results" do
|
20
|
+
models = FactoryGirl.create_list(:test_model, 30)
|
21
|
+
|
22
|
+
expect(TestModel.with_name_from("").length).to eq 25
|
23
|
+
end
|
24
|
+
|
25
|
+
it "starts from the name that is passed in" do
|
26
|
+
models = FactoryGirl.create_list(:test_model, 30)
|
27
|
+
|
28
|
+
expect(TestModel.with_name_from("e", 1).first.name).to eq "f"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
context "By distance" do
|
33
|
+
|
34
|
+
it "limits the results" do
|
35
|
+
models = FactoryGirl.create_list(:test_model, 30)
|
36
|
+
|
37
|
+
expect(TestModel.by_distance_from(-38, 144, 0, 10).length).to eq 10
|
38
|
+
end
|
39
|
+
|
40
|
+
it "defaults to 25 results" do
|
41
|
+
models = FactoryGirl.create_list(:test_model, 30)
|
42
|
+
|
43
|
+
expect(TestModel.by_distance_from(-37, 144, 0).length).to eq 25
|
44
|
+
end
|
45
|
+
|
46
|
+
it "defaults to 0 distance" do
|
47
|
+
model = FactoryGirl.create(:test_model, latitude: -37.01, longitude: 144)
|
48
|
+
|
49
|
+
expect(TestModel.by_distance_from(-37, 144).first).to eq model
|
50
|
+
end
|
51
|
+
|
52
|
+
it "only returns objects further away than the passed in distance" do
|
53
|
+
close_model = FactoryGirl.create(:test_model, latitude: -37, longitude: 144)
|
54
|
+
far_away_model = FactoryGirl.create(:test_model, latitude: 0, longitude: 0)
|
55
|
+
|
56
|
+
expect(TestModel.by_distance_from(-37, 144, 100).length).to eq 1
|
57
|
+
expect(TestModel.by_distance_from(-37, 144, 100).first).to eq far_away_model
|
58
|
+
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require 'rspec/rails'
|
6
|
+
require 'rspec/autorun'
|
7
|
+
require 'factory_girl_rails'
|
8
|
+
require 'database_cleaner'
|
9
|
+
|
10
|
+
Rails.backtrace_cleaner.remove_silencers!
|
11
|
+
|
12
|
+
# Load support files
|
13
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
|
+
|
15
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
16
|
+
# in spec/support/ and its subdirectories.
|
17
|
+
# Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
18
|
+
|
19
|
+
# Checks for pending migrations before tests are run.
|
20
|
+
# If you are not using ActiveRecord, you can remove this line.
|
21
|
+
ActiveRecord::Migration.maintain_test_schema!
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
# ## Mock Framework
|
25
|
+
#
|
26
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
27
|
+
#
|
28
|
+
config.mock_with :rspec
|
29
|
+
# config.mock_with :flexmock
|
30
|
+
# config.mock_with :rr
|
31
|
+
|
32
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
33
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
34
|
+
|
35
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
36
|
+
# examples within a transaction, remove the following line or assign false
|
37
|
+
# instead of true.
|
38
|
+
config.use_transactional_fixtures = true
|
39
|
+
|
40
|
+
# If true, the base class of anonymous controllers will be inferred
|
41
|
+
# automatically. This will be the default behavior in future versions of
|
42
|
+
# rspec-rails.
|
43
|
+
config.infer_base_class_for_anonymous_controllers = false
|
44
|
+
|
45
|
+
# Run specs in random order to surface order dependencies. If you find an
|
46
|
+
# order dependency and want to debug it, you can fix the order by providing
|
47
|
+
# the seed, which is printed after each run.
|
48
|
+
# --seed 1234
|
49
|
+
config.order = "random"
|
50
|
+
|
51
|
+
config.before(:suite) do
|
52
|
+
DatabaseCleaner.strategy = :transaction
|
53
|
+
DatabaseCleaner.clean_with(:truncation)
|
54
|
+
end
|
55
|
+
|
56
|
+
config.before(:each) do
|
57
|
+
DatabaseCleaner.start
|
58
|
+
end
|
59
|
+
|
60
|
+
config.after(:each) do
|
61
|
+
DatabaseCleaner.clean
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
Geocoder.configure(:lookup => :test)
|
67
|
+
|
68
|
+
Geocoder::Lookup::Test.set_default_stub(
|
69
|
+
[
|
70
|
+
{
|
71
|
+
'latitude' => -37,
|
72
|
+
'longitude' => -144,
|
73
|
+
'address' => 'LOT 1 Watersons Road, Tarrengower VIC 3463',
|
74
|
+
'state' => 'Victoria',
|
75
|
+
'state_code' => 'VIC',
|
76
|
+
'country' => 'Australia',
|
77
|
+
'country_code' => 'AUS'
|
78
|
+
}
|
79
|
+
]
|
80
|
+
)
|
81
|
+
|
metadata
ADDED
@@ -0,0 +1,249 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: paginative
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Isaac Norman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-16 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.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.1.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: geocoder
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: capybara
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: factory_girl_rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: database_cleaner
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: After spending a lot of time screwing around with orphaned objects and
|
112
|
+
every other problem that pagination causes, this is the solution
|
113
|
+
email:
|
114
|
+
- idn@papercloud.com.au
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- MIT-LICENSE
|
120
|
+
- README.rdoc
|
121
|
+
- Rakefile
|
122
|
+
- app/assets/javascripts/paginative/application.js
|
123
|
+
- app/assets/stylesheets/paginative/application.css
|
124
|
+
- app/controllers/paginative/application_controller.rb
|
125
|
+
- app/helpers/paginative/application_helper.rb
|
126
|
+
- app/models/paginative/test_model.rb
|
127
|
+
- app/views/layouts/paginative/application.html.erb
|
128
|
+
- config/routes.rb
|
129
|
+
- db/migrate/20140415060518_create_paginative_test_models.rb
|
130
|
+
- db/migrate/20140416020706_add_address_to_test_models.rb
|
131
|
+
- lib/paginative.rb
|
132
|
+
- lib/paginative/engine.rb
|
133
|
+
- lib/paginative/models/model_extension.rb
|
134
|
+
- lib/paginative/railtie.rb
|
135
|
+
- lib/paginative/version.rb
|
136
|
+
- lib/tasks/paginative_tasks.rake
|
137
|
+
- spec/dummy/README.rdoc
|
138
|
+
- spec/dummy/Rakefile
|
139
|
+
- spec/dummy/app/assets/javascripts/application.js
|
140
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
141
|
+
- spec/dummy/app/controllers/application_controller.rb
|
142
|
+
- spec/dummy/app/helpers/application_helper.rb
|
143
|
+
- spec/dummy/app/models/test_model.rb
|
144
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
145
|
+
- spec/dummy/bin/bundle
|
146
|
+
- spec/dummy/bin/rails
|
147
|
+
- spec/dummy/bin/rake
|
148
|
+
- spec/dummy/config.ru
|
149
|
+
- spec/dummy/config/application.rb
|
150
|
+
- spec/dummy/config/boot.rb
|
151
|
+
- spec/dummy/config/database.yml
|
152
|
+
- spec/dummy/config/environment.rb
|
153
|
+
- spec/dummy/config/environments/development.rb
|
154
|
+
- spec/dummy/config/environments/production.rb
|
155
|
+
- spec/dummy/config/environments/test.rb
|
156
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
157
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
158
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
159
|
+
- spec/dummy/config/initializers/inflections.rb
|
160
|
+
- spec/dummy/config/initializers/mime_types.rb
|
161
|
+
- spec/dummy/config/initializers/session_store.rb
|
162
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
163
|
+
- spec/dummy/config/locales/en.yml
|
164
|
+
- spec/dummy/config/routes.rb
|
165
|
+
- spec/dummy/config/secrets.yml
|
166
|
+
- spec/dummy/db/development.sqlite3
|
167
|
+
- spec/dummy/db/migrate/20140416035443_create_test_models.rb
|
168
|
+
- spec/dummy/db/schema.rb
|
169
|
+
- spec/dummy/db/test.sqlite3
|
170
|
+
- spec/dummy/log/development.log
|
171
|
+
- spec/dummy/log/test.log
|
172
|
+
- spec/dummy/public/404.html
|
173
|
+
- spec/dummy/public/422.html
|
174
|
+
- spec/dummy/public/500.html
|
175
|
+
- spec/dummy/public/favicon.ico
|
176
|
+
- spec/dummy/spec/factories/test_models.rb
|
177
|
+
- spec/dummy/spec/models/test_model_spec.rb
|
178
|
+
- spec/factories/paginative_test_models.rb
|
179
|
+
- spec/models/paginative/test_model_spec.rb
|
180
|
+
- spec/spec_helper.rb
|
181
|
+
homepage: http://www.github.com/RustComet/paginative
|
182
|
+
licenses:
|
183
|
+
- MIT
|
184
|
+
metadata: {}
|
185
|
+
post_install_message:
|
186
|
+
rdoc_options: []
|
187
|
+
require_paths:
|
188
|
+
- lib
|
189
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
|
+
requirements:
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '0'
|
199
|
+
requirements: []
|
200
|
+
rubyforge_project:
|
201
|
+
rubygems_version: 2.2.2
|
202
|
+
signing_key:
|
203
|
+
specification_version: 4
|
204
|
+
summary: A new way to paginate your Rails API
|
205
|
+
test_files:
|
206
|
+
- spec/dummy/app/assets/javascripts/application.js
|
207
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
208
|
+
- spec/dummy/app/controllers/application_controller.rb
|
209
|
+
- spec/dummy/app/helpers/application_helper.rb
|
210
|
+
- spec/dummy/app/models/test_model.rb
|
211
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
212
|
+
- spec/dummy/bin/bundle
|
213
|
+
- spec/dummy/bin/rails
|
214
|
+
- spec/dummy/bin/rake
|
215
|
+
- spec/dummy/config/application.rb
|
216
|
+
- spec/dummy/config/boot.rb
|
217
|
+
- spec/dummy/config/database.yml
|
218
|
+
- spec/dummy/config/environment.rb
|
219
|
+
- spec/dummy/config/environments/development.rb
|
220
|
+
- spec/dummy/config/environments/production.rb
|
221
|
+
- spec/dummy/config/environments/test.rb
|
222
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
223
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
224
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
225
|
+
- spec/dummy/config/initializers/inflections.rb
|
226
|
+
- spec/dummy/config/initializers/mime_types.rb
|
227
|
+
- spec/dummy/config/initializers/session_store.rb
|
228
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
229
|
+
- spec/dummy/config/locales/en.yml
|
230
|
+
- spec/dummy/config/routes.rb
|
231
|
+
- spec/dummy/config/secrets.yml
|
232
|
+
- spec/dummy/config.ru
|
233
|
+
- spec/dummy/db/development.sqlite3
|
234
|
+
- spec/dummy/db/migrate/20140416035443_create_test_models.rb
|
235
|
+
- spec/dummy/db/schema.rb
|
236
|
+
- spec/dummy/db/test.sqlite3
|
237
|
+
- spec/dummy/log/development.log
|
238
|
+
- spec/dummy/log/test.log
|
239
|
+
- spec/dummy/public/404.html
|
240
|
+
- spec/dummy/public/422.html
|
241
|
+
- spec/dummy/public/500.html
|
242
|
+
- spec/dummy/public/favicon.ico
|
243
|
+
- spec/dummy/Rakefile
|
244
|
+
- spec/dummy/README.rdoc
|
245
|
+
- spec/dummy/spec/factories/test_models.rb
|
246
|
+
- spec/dummy/spec/models/test_model_spec.rb
|
247
|
+
- spec/factories/paginative_test_models.rb
|
248
|
+
- spec/models/paginative/test_model_spec.rb
|
249
|
+
- spec/spec_helper.rb
|