kaminari 0.17.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.codeclimate.yml +19 -0
- data/.github/workflows/main.yml +107 -0
- data/.gitignore +2 -1
- data/CHANGELOG.md +650 -0
- data/CONTRIBUTING.md +22 -0
- data/Gemfile +2 -0
- data/README.md +588 -0
- data/Rakefile +25 -25
- data/gemfiles/active_record_41.gemfile +17 -12
- data/gemfiles/active_record_42.gemfile +17 -12
- data/gemfiles/active_record_50.gemfile +26 -0
- data/gemfiles/active_record_51.gemfile +26 -0
- data/gemfiles/active_record_52.gemfile +26 -0
- data/gemfiles/active_record_60.gemfile +28 -0
- data/gemfiles/active_record_61.gemfile +28 -0
- data/gemfiles/active_record_70.gemfile +28 -0
- data/gemfiles/active_record_edge.gemfile +22 -17
- data/kaminari.gemspec +23 -27
- data/lib/kaminari/version.rb +3 -1
- data/lib/kaminari.rb +4 -38
- data/misc/bug_report_template.rb +57 -0
- metadata +54 -190
- data/.gemtest +0 -0
- data/.rspec +0 -2
- data/.travis.yml +0 -64
- data/CHANGELOG.rdoc +0 -480
- data/README.rdoc +0 -336
- data/app/views/kaminari/_first_page.html.erb +0 -11
- data/app/views/kaminari/_first_page.html.haml +0 -9
- data/app/views/kaminari/_first_page.html.slim +0 -10
- data/app/views/kaminari/_gap.html.erb +0 -8
- data/app/views/kaminari/_gap.html.haml +0 -8
- data/app/views/kaminari/_gap.html.slim +0 -9
- data/app/views/kaminari/_last_page.html.erb +0 -11
- data/app/views/kaminari/_last_page.html.haml +0 -9
- data/app/views/kaminari/_last_page.html.slim +0 -10
- data/app/views/kaminari/_next_page.html.erb +0 -11
- data/app/views/kaminari/_next_page.html.haml +0 -9
- data/app/views/kaminari/_next_page.html.slim +0 -10
- data/app/views/kaminari/_page.html.erb +0 -12
- data/app/views/kaminari/_page.html.haml +0 -10
- data/app/views/kaminari/_page.html.slim +0 -11
- data/app/views/kaminari/_paginator.html.erb +0 -23
- data/app/views/kaminari/_paginator.html.haml +0 -18
- data/app/views/kaminari/_paginator.html.slim +0 -19
- data/app/views/kaminari/_prev_page.html.erb +0 -11
- data/app/views/kaminari/_prev_page.html.haml +0 -9
- data/app/views/kaminari/_prev_page.html.slim +0 -10
- data/config/locales/kaminari.yml +0 -19
- data/gemfiles/active_record_30.gemfile +0 -28
- data/gemfiles/active_record_31.gemfile +0 -26
- data/gemfiles/active_record_32.gemfile +0 -25
- data/gemfiles/active_record_40.gemfile +0 -26
- data/gemfiles/data_mapper_12.gemfile +0 -32
- data/gemfiles/mongo_mapper.gemfile +0 -25
- data/gemfiles/mongoid_30.gemfile +0 -22
- data/gemfiles/mongoid_31.gemfile +0 -21
- data/gemfiles/mongoid_40.gemfile +0 -19
- data/gemfiles/mongoid_50.gemfile +0 -23
- data/gemfiles/sinatra_13.gemfile +0 -36
- data/gemfiles/sinatra_14.gemfile +0 -33
- data/lib/generators/kaminari/config_generator.rb +0 -16
- data/lib/generators/kaminari/templates/kaminari_config.rb +0 -10
- data/lib/generators/kaminari/views_generator.rb +0 -119
- data/lib/kaminari/config.rb +0 -51
- data/lib/kaminari/engine.rb +0 -4
- data/lib/kaminari/grape.rb +0 -4
- data/lib/kaminari/helpers/action_view_extension.rb +0 -132
- data/lib/kaminari/helpers/paginator.rb +0 -195
- data/lib/kaminari/helpers/sinatra_helpers.rb +0 -176
- data/lib/kaminari/helpers/tags.rb +0 -108
- data/lib/kaminari/hooks.rb +0 -53
- data/lib/kaminari/models/active_record_extension.rb +0 -22
- data/lib/kaminari/models/active_record_model_extension.rb +0 -22
- data/lib/kaminari/models/active_record_relation_methods.rb +0 -42
- data/lib/kaminari/models/array_extension.rb +0 -66
- data/lib/kaminari/models/configuration_methods.rb +0 -48
- data/lib/kaminari/models/data_mapper_collection_methods.rb +0 -19
- data/lib/kaminari/models/data_mapper_extension.rb +0 -51
- data/lib/kaminari/models/mongo_mapper_extension.rb +0 -18
- data/lib/kaminari/models/mongoid_criteria_methods.rb +0 -40
- data/lib/kaminari/models/mongoid_extension.rb +0 -26
- data/lib/kaminari/models/page_scope_methods.rb +0 -73
- data/lib/kaminari/models/plucky_criteria_methods.rb +0 -23
- data/lib/kaminari/railtie.rb +0 -7
- data/lib/kaminari/sinatra.rb +0 -7
- data/spec/config/config_spec.rb +0 -91
- data/spec/fake_app/active_record/config.rb +0 -3
- data/spec/fake_app/active_record/models.rb +0 -65
- data/spec/fake_app/data_mapper/config.rb +0 -1
- data/spec/fake_app/data_mapper/models.rb +0 -27
- data/spec/fake_app/mongo_mapper/config.rb +0 -2
- data/spec/fake_app/mongo_mapper/models.rb +0 -9
- data/spec/fake_app/mongoid/config.rb +0 -20
- data/spec/fake_app/mongoid/models.rb +0 -38
- data/spec/fake_app/rails_app.rb +0 -56
- data/spec/fake_app/sinatra_app.rb +0 -22
- data/spec/fake_app/views/alternative/kaminari/_first_page.html.erb +0 -1
- data/spec/fake_app/views/alternative/kaminari/_paginator.html.erb +0 -3
- data/spec/fake_app/views/kaminari/bootstrap/_page.html.erb +0 -1
- data/spec/fake_app/views/kaminari/bootstrap/_paginator.html.erb +0 -7
- data/spec/fake_gem.rb +0 -20
- data/spec/generators/views_generator_spec.rb +0 -18
- data/spec/helpers/action_view_extension_spec.rb +0 -318
- data/spec/helpers/helpers_spec.rb +0 -144
- data/spec/helpers/sinatra_helpers_spec.rb +0 -223
- data/spec/helpers/tags_spec.rb +0 -140
- data/spec/models/active_record/active_record_relation_methods_spec.rb +0 -77
- data/spec/models/active_record/inherited_spec.rb +0 -9
- data/spec/models/active_record/scopes_spec.rb +0 -265
- data/spec/models/array_spec.rb +0 -172
- data/spec/models/configuration_methods_spec.rb +0 -125
- data/spec/models/data_mapper/data_mapper_spec.rb +0 -205
- data/spec/models/mongo_mapper/mongo_mapper_spec.rb +0 -84
- data/spec/models/mongoid/mongoid_spec.rb +0 -228
- data/spec/requests/users_spec.rb +0 -53
- data/spec/spec_helper.rb +0 -34
- data/spec/spec_helper_for_sinatra.rb +0 -34
- data/spec/support/database_cleaner.rb +0 -19
- data/spec/support/matchers.rb +0 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '08c52fc3c09bad4785b0cc6e32330d42874d8aaa6b49439ffe9745f692a7db2e'
|
4
|
+
data.tar.gz: bc9e10bc8d54825aa4be3524cfa91698f0f386b5645ca949d1c1b8c9249678b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 718f128c6cfbf4aa312e7af22a111e3647b49af9045cc12741690f2f9f0a76b745c491e175523ea11218f3545d37a6094c08a9ab10262895c440409ba5a50028
|
7
|
+
data.tar.gz: 8b1368ed6cf41faa93a0ceda3680061abf7ee83ee647684c9d18e7f8dbe3d821ace49eb82637da71e6bf4601484fb15facfd4a0e70ded89b62e4fce8b122c156
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
engines:
|
3
|
+
duplication:
|
4
|
+
enabled: true
|
5
|
+
config:
|
6
|
+
languages:
|
7
|
+
- ruby
|
8
|
+
fixme:
|
9
|
+
enabled: true
|
10
|
+
rubocop:
|
11
|
+
enabled: true
|
12
|
+
ratings:
|
13
|
+
paths:
|
14
|
+
- "**.rb"
|
15
|
+
exclude_paths:
|
16
|
+
- test/
|
17
|
+
- "*/test/"
|
18
|
+
- "**/*.gemspec"
|
19
|
+
- "**/*.md"
|
@@ -0,0 +1,107 @@
|
|
1
|
+
name: build
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
- pull_request
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
services:
|
10
|
+
postgresql:
|
11
|
+
image: postgres:9.6
|
12
|
+
ports:
|
13
|
+
- 5432:5432
|
14
|
+
env:
|
15
|
+
POSTGRES_PASSWORD: postgres
|
16
|
+
strategy:
|
17
|
+
fail-fast: true
|
18
|
+
matrix:
|
19
|
+
ruby_version:
|
20
|
+
- '3.0'
|
21
|
+
- '2.7'
|
22
|
+
- '2.6'
|
23
|
+
- '2.5'
|
24
|
+
- 'jruby-9.3.2.0'
|
25
|
+
gemfile:
|
26
|
+
- gemfiles/active_record_70.gemfile
|
27
|
+
- gemfiles/active_record_61.gemfile
|
28
|
+
- gemfiles/active_record_60.gemfile
|
29
|
+
- gemfiles/active_record_52.gemfile
|
30
|
+
- gemfiles/active_record_51.gemfile
|
31
|
+
- gemfiles/active_record_50.gemfile
|
32
|
+
- gemfiles/active_record_edge.gemfile
|
33
|
+
db:
|
34
|
+
- sqlite3
|
35
|
+
- postgresql
|
36
|
+
- mysql
|
37
|
+
exclude:
|
38
|
+
- ruby_version: '3.0'
|
39
|
+
gemfile: gemfiles/active_record_52.gemfile
|
40
|
+
- ruby_version: '3.0'
|
41
|
+
gemfile: gemfiles/active_record_51.gemfile
|
42
|
+
- ruby_version: '3.0'
|
43
|
+
gemfile: gemfiles/active_record_50.gemfile
|
44
|
+
- ruby_version: '2.7'
|
45
|
+
gemfile: gemfiles/active_record_52.gemfile
|
46
|
+
- ruby_version: '2.7'
|
47
|
+
gemfile: gemfiles/active_record_51.gemfile
|
48
|
+
- ruby_version: '2.7'
|
49
|
+
gemfile: gemfiles/active_record_50.gemfile
|
50
|
+
- ruby_version: '2.6'
|
51
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
52
|
+
- ruby_version: '2.6'
|
53
|
+
gemfile: gemfiles/active_record_70.gemfile
|
54
|
+
- ruby_version: '2.5'
|
55
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
56
|
+
- ruby_version: '2.5'
|
57
|
+
gemfile: gemfiles/active_record_70.gemfile
|
58
|
+
- ruby_version: 'jruby-9.3.2.0'
|
59
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
60
|
+
include:
|
61
|
+
- ruby_version: 'ruby-head'
|
62
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
63
|
+
db: sqlite3
|
64
|
+
- ruby_version: 'ruby-head'
|
65
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
66
|
+
db: postgresql
|
67
|
+
- ruby_version: 'ruby-head'
|
68
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
69
|
+
db: mysql
|
70
|
+
- ruby_version: '2.4'
|
71
|
+
gemfile: gemfiles/active_record_52.gemfile
|
72
|
+
db: sqlite3
|
73
|
+
- ruby_version: '2.3'
|
74
|
+
gemfile: gemfiles/active_record_52.gemfile
|
75
|
+
db: sqlite3
|
76
|
+
- ruby_version: '2.3'
|
77
|
+
gemfile: gemfiles/active_record_42.gemfile
|
78
|
+
db: sqlite3
|
79
|
+
- ruby_version: '2.3'
|
80
|
+
gemfile: gemfiles/active_record_41.gemfile
|
81
|
+
db: sqlite3
|
82
|
+
- ruby_version: '2.2'
|
83
|
+
gemfile: gemfiles/active_record_52.gemfile
|
84
|
+
db: sqlite3
|
85
|
+
- ruby_version: '2.1'
|
86
|
+
gemfile: gemfiles/active_record_42.gemfile
|
87
|
+
db: sqlite3
|
88
|
+
runs-on: ubuntu-18.04
|
89
|
+
env:
|
90
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
91
|
+
DB: ${{ matrix.db }}
|
92
|
+
POSTGRES_PASSWORD: postgres # for passing the password to the Rails process
|
93
|
+
MYSQL_PASSWORD: root # for passing the password to the Rails process
|
94
|
+
steps:
|
95
|
+
- uses: actions/checkout@v2
|
96
|
+
- name: Install libmysqld-dev
|
97
|
+
run: sudo apt-get install libmysqld-dev
|
98
|
+
- name: Start local MySQL
|
99
|
+
run: sudo /etc/init.d/mysql start
|
100
|
+
- name: Set up Ruby
|
101
|
+
uses: ruby/setup-ruby@v1
|
102
|
+
with:
|
103
|
+
ruby-version: ${{ matrix.ruby_version }}
|
104
|
+
bundler-cache: true
|
105
|
+
continue-on-error: ${{ matrix.ruby_version == 'ruby-head' || matrix.ruby_version == 'jruby-9.3.2.0' || matrix.gemfile == 'gemfiles/active_record_edge.gemfile' }}
|
106
|
+
- run: bundle exec rake test
|
107
|
+
continue-on-error: ${{ matrix.ruby_version == 'ruby-head' || matrix.ruby_version == 'jruby-9.3.2.0' || matrix.gemfile == 'gemfiles/active_record_edge.gemfile' }}
|