pagers 4.0.0.1 → 5.1.0
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 +6 -6
- data/Rakefile +6 -3
- data/lib/pagers/version.rb +1 -1
- metadata +13 -113
- data/config/locales/en.yml +0 -6
- data/config/locales/es.yml +0 -6
- data/test/dummy/Rakefile +0 -5
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/controllers/products_controller.rb +0 -8
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/models/product.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -12
- data/test/dummy/app/views/products/index.html.erb +0 -1
- data/test/dummy/bin/bundle +0 -4
- data/test/dummy/bin/rails +0 -5
- data/test/dummy/bin/rake +0 -5
- data/test/dummy/bin/setup +0 -30
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -25
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -10
- data/test/dummy/config/database.yml.travis +0 -3
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/pagers.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -3
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/db/migrate/20130820024335_create_products.rb +0 -8
- data/test/dummy/db/schema.rb +0 -24
- data/test/dummy/log/development.log +0 -46
- data/test/dummy/log/test.log +0 -22437
- data/test/dummy/public/404.html +0 -61
- data/test/dummy/public/422.html +0 -61
- data/test/dummy/public/500.html +0 -60
- data/test/dummy/public/favicon.ico +0 -0
- data/test/generator_test.rb +0 -18
- data/test/relation_test.rb +0 -85
- data/test/test_helper.rb +0 -14
- data/test/view_test.rb +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7ba5e20981b733489015fdc376b9d0bc7c51448
|
4
|
+
data.tar.gz: 4d4d3d47f97496bc260d453a1540424919bd68bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3498c0ae43eee3368a4582a2e4fd2d1f639a029a58e603d54c90023c750000c8b07c8d2fbdb51ea9ab07143b1bdbb86894717c055a69dc1d8ea2224216426029
|
7
|
+
data.tar.gz: 2783d8991629b5b3b819a61799f645335683314b51646737f4afb91a17b9ce6ed8a262c3ece1dd88fc5521937e6be8ad41700dcec005d72a770d5eb9d1c86e3d
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/pagers.svg)](http://badge.fury.io/rb/pagers)
|
2
|
-
[![Code Climate](https://codeclimate.com/github/
|
3
|
-
[![Build Status](https://travis-ci.org/
|
4
|
-
[![Dependency Status](https://gemnasium.com/
|
2
|
+
[![Code Climate](https://codeclimate.com/github/museways/pagers/badges/gpa.svg)](https://codeclimate.com/github/museways/pagers)
|
3
|
+
[![Build Status](https://travis-ci.org/museways/pagers.svg)](https://travis-ci.org/museways/pagers)
|
4
|
+
[![Dependency Status](https://gemnasium.com/museways/pagers.svg)](https://gemnasium.com/museways/pagers)
|
5
5
|
|
6
6
|
# Pagers
|
7
7
|
|
@@ -13,7 +13,7 @@ I did this gem to:
|
|
13
13
|
|
14
14
|
- Simplify code by keep close integration with rails.
|
15
15
|
- Have most common used settings set out of the box.
|
16
|
-
- Create a compatible pagination for [indexers gem](https://github.com/
|
16
|
+
- Create a compatible pagination for [indexers gem](https://github.com/museways/indexers).
|
17
17
|
|
18
18
|
## Install
|
19
19
|
|
@@ -84,11 +84,11 @@ search/sample/3
|
|
84
84
|
|
85
85
|
Any issue, pull request, comment of any kind is more than welcome!
|
86
86
|
|
87
|
-
I will mainly ensure compatibility to
|
87
|
+
I will mainly ensure compatibility to Rails, AWS, PostgreSQL, Redis, Elasticsearch and FreeBSD.
|
88
88
|
|
89
89
|
## Credits
|
90
90
|
|
91
|
-
This gem is maintained and funded by [
|
91
|
+
This gem is maintained and funded by [museways](https://github.com/museways).
|
92
92
|
|
93
93
|
## License
|
94
94
|
|
data/Rakefile
CHANGED
@@ -4,16 +4,19 @@ rescue LoadError
|
|
4
4
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
5
|
end
|
6
6
|
|
7
|
-
|
7
|
+
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
8
|
+
load 'rails/tasks/engine.rake'
|
9
|
+
|
10
|
+
load 'rails/tasks/statistics.rake'
|
11
|
+
|
12
|
+
require 'bundler/gem_tasks'
|
8
13
|
|
9
14
|
require 'rake/testtask'
|
10
15
|
|
11
16
|
Rake::TestTask.new(:test) do |t|
|
12
|
-
t.libs << 'lib'
|
13
17
|
t.libs << 'test'
|
14
18
|
t.pattern = 'test/**/*_test.rb'
|
15
19
|
t.verbose = false
|
16
|
-
t.warning = false
|
17
20
|
end
|
18
21
|
|
19
22
|
task default: :test
|
data/lib/pagers/version.rb
CHANGED
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mmontossi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2.0
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: '5.1'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 4.2.0
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: '5.1'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: pg
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
33
|
+
version: '0.21'
|
40
34
|
type: :development
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
40
|
+
version: '0.21'
|
47
41
|
description: Scope based pagination engine for rails.
|
48
42
|
email:
|
49
|
-
-
|
43
|
+
- hi@museways.com
|
50
44
|
executables: []
|
51
45
|
extensions: []
|
52
46
|
extra_rdoc_files: []
|
@@ -55,8 +49,6 @@ files:
|
|
55
49
|
- README.md
|
56
50
|
- Rakefile
|
57
51
|
- app/views/pagers/_main.html.erb
|
58
|
-
- config/locales/en.yml
|
59
|
-
- config/locales/es.yml
|
60
52
|
- lib/generators/pagers/install/install_generator.rb
|
61
53
|
- lib/generators/pagers/install/templates/initializer.rb
|
62
54
|
- lib/pagers.rb
|
@@ -67,53 +59,7 @@ files:
|
|
67
59
|
- lib/pagers/extensions/active_record/relation.rb
|
68
60
|
- lib/pagers/railtie.rb
|
69
61
|
- lib/pagers/version.rb
|
70
|
-
|
71
|
-
- test/dummy/app/assets/javascripts/application.js
|
72
|
-
- test/dummy/app/assets/stylesheets/application.css
|
73
|
-
- test/dummy/app/controllers/application_controller.rb
|
74
|
-
- test/dummy/app/controllers/products_controller.rb
|
75
|
-
- test/dummy/app/helpers/application_helper.rb
|
76
|
-
- test/dummy/app/models/product.rb
|
77
|
-
- test/dummy/app/views/layouts/application.html.erb
|
78
|
-
- test/dummy/app/views/products/index.html.erb
|
79
|
-
- test/dummy/bin/bundle
|
80
|
-
- test/dummy/bin/rails
|
81
|
-
- test/dummy/bin/rake
|
82
|
-
- test/dummy/bin/setup
|
83
|
-
- test/dummy/config.ru
|
84
|
-
- test/dummy/config/application.rb
|
85
|
-
- test/dummy/config/boot.rb
|
86
|
-
- test/dummy/config/database.yml
|
87
|
-
- test/dummy/config/database.yml.travis
|
88
|
-
- test/dummy/config/environment.rb
|
89
|
-
- test/dummy/config/environments/development.rb
|
90
|
-
- test/dummy/config/environments/production.rb
|
91
|
-
- test/dummy/config/environments/test.rb
|
92
|
-
- test/dummy/config/initializers/assets.rb
|
93
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
94
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
95
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
96
|
-
- test/dummy/config/initializers/inflections.rb
|
97
|
-
- test/dummy/config/initializers/mime_types.rb
|
98
|
-
- test/dummy/config/initializers/pagers.rb
|
99
|
-
- test/dummy/config/initializers/session_store.rb
|
100
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
101
|
-
- test/dummy/config/locales/en.yml
|
102
|
-
- test/dummy/config/routes.rb
|
103
|
-
- test/dummy/config/secrets.yml
|
104
|
-
- test/dummy/db/migrate/20130820024335_create_products.rb
|
105
|
-
- test/dummy/db/schema.rb
|
106
|
-
- test/dummy/log/development.log
|
107
|
-
- test/dummy/log/test.log
|
108
|
-
- test/dummy/public/404.html
|
109
|
-
- test/dummy/public/422.html
|
110
|
-
- test/dummy/public/500.html
|
111
|
-
- test/dummy/public/favicon.ico
|
112
|
-
- test/generator_test.rb
|
113
|
-
- test/relation_test.rb
|
114
|
-
- test/test_helper.rb
|
115
|
-
- test/view_test.rb
|
116
|
-
homepage: https://github.com/mmontossi/pagers
|
62
|
+
homepage: https://github.com/museways/pagers
|
117
63
|
licenses:
|
118
64
|
- MIT
|
119
65
|
metadata: {}
|
@@ -125,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
71
|
requirements:
|
126
72
|
- - ">="
|
127
73
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
74
|
+
version: '0'
|
129
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
76
|
requirements:
|
131
77
|
- - ">="
|
@@ -133,54 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
79
|
version: '0'
|
134
80
|
requirements: []
|
135
81
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.6.13
|
137
83
|
signing_key:
|
138
84
|
specification_version: 4
|
139
85
|
summary: Pagers for rails.
|
140
|
-
test_files:
|
141
|
-
- test/dummy/app/assets/javascripts/application.js
|
142
|
-
- test/dummy/app/assets/stylesheets/application.css
|
143
|
-
- test/dummy/app/controllers/application_controller.rb
|
144
|
-
- test/dummy/app/controllers/products_controller.rb
|
145
|
-
- test/dummy/app/helpers/application_helper.rb
|
146
|
-
- test/dummy/app/models/product.rb
|
147
|
-
- test/dummy/app/views/layouts/application.html.erb
|
148
|
-
- test/dummy/app/views/products/index.html.erb
|
149
|
-
- test/dummy/bin/bundle
|
150
|
-
- test/dummy/bin/rails
|
151
|
-
- test/dummy/bin/rake
|
152
|
-
- test/dummy/bin/setup
|
153
|
-
- test/dummy/config/application.rb
|
154
|
-
- test/dummy/config/boot.rb
|
155
|
-
- test/dummy/config/database.yml
|
156
|
-
- test/dummy/config/database.yml.travis
|
157
|
-
- test/dummy/config/environment.rb
|
158
|
-
- test/dummy/config/environments/development.rb
|
159
|
-
- test/dummy/config/environments/production.rb
|
160
|
-
- test/dummy/config/environments/test.rb
|
161
|
-
- test/dummy/config/initializers/assets.rb
|
162
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
163
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
164
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
165
|
-
- test/dummy/config/initializers/inflections.rb
|
166
|
-
- test/dummy/config/initializers/mime_types.rb
|
167
|
-
- test/dummy/config/initializers/pagers.rb
|
168
|
-
- test/dummy/config/initializers/session_store.rb
|
169
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
170
|
-
- test/dummy/config/locales/en.yml
|
171
|
-
- test/dummy/config/routes.rb
|
172
|
-
- test/dummy/config/secrets.yml
|
173
|
-
- test/dummy/config.ru
|
174
|
-
- test/dummy/db/migrate/20130820024335_create_products.rb
|
175
|
-
- test/dummy/db/schema.rb
|
176
|
-
- test/dummy/log/development.log
|
177
|
-
- test/dummy/log/test.log
|
178
|
-
- test/dummy/public/404.html
|
179
|
-
- test/dummy/public/422.html
|
180
|
-
- test/dummy/public/500.html
|
181
|
-
- test/dummy/public/favicon.ico
|
182
|
-
- test/dummy/Rakefile
|
183
|
-
- test/generator_test.rb
|
184
|
-
- test/relation_test.rb
|
185
|
-
- test/test_helper.rb
|
186
|
-
- test/view_test.rb
|
86
|
+
test_files: []
|
data/config/locales/en.yml
DELETED
data/config/locales/es.yml
DELETED
data/test/dummy/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<%= yield %>
|
11
|
-
</body>
|
12
|
-
</html>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= paginate @products %>
|
data/test/dummy/bin/bundle
DELETED
data/test/dummy/bin/rails
DELETED
data/test/dummy/bin/rake
DELETED
data/test/dummy/bin/setup
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'pathname'
|
4
|
-
|
5
|
-
# path to your application root.
|
6
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
7
|
-
|
8
|
-
Dir.chdir APP_ROOT do
|
9
|
-
# This script is a starting point to setup your application.
|
10
|
-
# Add necessary setup steps to this file:
|
11
|
-
|
12
|
-
puts '== Installing dependencies =='
|
13
|
-
system 'gem install bundler --conservative'
|
14
|
-
system 'bundle check || bundle install'
|
15
|
-
|
16
|
-
# puts "\n== Copying sample files =="
|
17
|
-
# unless File.exist?('config/database.yml')
|
18
|
-
# system 'cp config/database.yml.sample config/database.yml'
|
19
|
-
# end
|
20
|
-
|
21
|
-
puts "\n== Preparing database =="
|
22
|
-
system 'bin/rake db:setup'
|
23
|
-
|
24
|
-
puts "\n== Removing old logs and tempfiles =="
|
25
|
-
system 'rm -f log/*'
|
26
|
-
system 'rm -rf tmp/cache'
|
27
|
-
|
28
|
-
puts "\n== Restarting application server =="
|
29
|
-
system 'touch tmp/restart.txt'
|
30
|
-
end
|
data/test/dummy/config.ru
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
Bundler.require(*Rails.groups)
|
6
|
-
require 'pagers'
|
7
|
-
|
8
|
-
module Dummy
|
9
|
-
class Application < Rails::Application
|
10
|
-
# Settings in config/environments/* take precedence over those specified here.
|
11
|
-
# Application configuration should go into files in config/initializers
|
12
|
-
# -- all .rb files in that directory are automatically loaded.
|
13
|
-
|
14
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
15
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
16
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
17
|
-
|
18
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
|
-
# config.i18n.default_locale = :de
|
21
|
-
|
22
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
-
config.active_record.raise_in_transactional_callbacks = true
|
24
|
-
end
|
25
|
-
end
|