kaminari 0.16.2 → 1.2.1
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/.gitignore +1 -1
- data/.travis.yml +82 -47
- data/CHANGELOG.md +636 -0
- data/CONTRIBUTING.md +22 -0
- data/Gemfile +2 -0
- data/README.md +573 -0
- data/Rakefile +33 -14
- data/gemfiles/active_record_41.gemfile +10 -6
- data/gemfiles/active_record_42.gemfile +10 -6
- data/gemfiles/active_record_50.gemfile +24 -0
- data/gemfiles/active_record_51.gemfile +24 -0
- data/gemfiles/active_record_52.gemfile +24 -0
- data/gemfiles/active_record_60.gemfile +26 -0
- data/gemfiles/active_record_edge.gemfile +15 -12
- 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 +48 -184
- data/.gemtest +0 -0
- data/.rspec +0 -2
- data/CHANGELOG.rdoc +0 -446
- 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 -30
- data/gemfiles/active_record_31.gemfile +0 -33
- data/gemfiles/active_record_32.gemfile +0 -33
- data/gemfiles/active_record_40.gemfile +0 -25
- data/gemfiles/data_mapper_12.gemfile +0 -39
- data/gemfiles/mongo_mapper.gemfile +0 -31
- data/gemfiles/mongoid_24.gemfile +0 -25
- data/gemfiles/mongoid_30.gemfile +0 -21
- data/gemfiles/mongoid_31.gemfile +0 -20
- data/gemfiles/mongoid_40.gemfile +0 -18
- data/gemfiles/sinatra_13.gemfile +0 -43
- data/gemfiles/sinatra_14.gemfile +0 -43
- 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 -105
- data/lib/kaminari/hooks.rb +0 -36
- 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 -27
- data/lib/kaminari/models/page_scope_methods.rb +0 -70
- data/lib/kaminari/models/plucky_criteria_methods.rb +0 -23
- data/lib/kaminari/railtie.rb +0 -7
- data/lib/kaminari/sinatra.rb +0 -5
- 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 -18
- data/spec/fake_app/mongoid/models.rb +0 -34
- 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 -4
- data/spec/generators/views_generator_spec.rb +0 -18
- data/spec/helpers/action_view_extension_spec.rb +0 -306
- 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/scopes_spec.rb +0 -262
- 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 -223
- 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: 62a37b3deee187d19c0346edd24a455460fcbd9aa22a1759d72a6df40faf2285
|
4
|
+
data.tar.gz: e4094f7511aa1e57a3abab885f6c071685f31d0e6f04b7827a218ad2d23df8d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 163a7121c51a8a653ea4e29f6fd11375eebd4f24a38cf2f7022d8abe077d774993e2c2651e729ef868c8eb43e9517760210474d6568428193f170d6e708b3445
|
7
|
+
data.tar.gz: d9e0d3e3d9647da5d1791117d05c6543c5a59bf0a92d6e6f4c585cc1f23f3f8f13e27c07eaeb1c4e90d3e1c23a6452ae2fa03bf0e0027976f8d4161e7b91e42f
|
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"
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,63 +1,98 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
|
+
dist: xenial
|
4
|
+
|
5
|
+
services:
|
6
|
+
- postgresql
|
7
|
+
- mysql
|
8
|
+
|
3
9
|
rvm:
|
4
|
-
-
|
5
|
-
-
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.
|
9
|
-
- jruby
|
10
|
-
- rbx-
|
10
|
+
- 2.7.0
|
11
|
+
- 2.6.3
|
12
|
+
- 2.5.5
|
13
|
+
- 2.4.5
|
14
|
+
- 2.3.8
|
15
|
+
- jruby-9.2.9.0
|
16
|
+
# - rbx-3
|
11
17
|
|
12
18
|
gemfile:
|
13
|
-
- gemfiles/
|
14
|
-
- gemfiles/
|
15
|
-
- gemfiles/
|
16
|
-
- gemfiles/
|
17
|
-
- gemfiles/active_record_41.gemfile
|
19
|
+
- gemfiles/active_record_60.gemfile
|
20
|
+
- gemfiles/active_record_52.gemfile
|
21
|
+
- gemfiles/active_record_51.gemfile
|
22
|
+
- gemfiles/active_record_50.gemfile
|
18
23
|
- gemfiles/active_record_42.gemfile
|
19
|
-
- gemfiles/
|
20
|
-
- gemfiles/
|
21
|
-
- gemfiles/mongoid_24.gemfile
|
22
|
-
- gemfiles/mongoid_30.gemfile
|
23
|
-
- gemfiles/mongoid_31.gemfile
|
24
|
-
- gemfiles/mongoid_40.gemfile
|
25
|
-
- gemfiles/sinatra_13.gemfile
|
26
|
-
- gemfiles/sinatra_14.gemfile
|
27
|
-
|
28
|
-
sudo: false
|
24
|
+
- gemfiles/active_record_41.gemfile
|
25
|
+
- gemfiles/active_record_edge.gemfile
|
29
26
|
|
30
|
-
|
27
|
+
env:
|
28
|
+
- DB=sqlite3
|
29
|
+
- DB=postgresql
|
30
|
+
- DB=mysql
|
31
31
|
|
32
|
-
|
32
|
+
before_install:
|
33
|
+
# install older versions of rubygems and bundler only on Ruby < 2.7
|
34
|
+
- if [ `echo "${TRAVIS_RUBY_VERSION:0:3} < 2.7" | bc` == 1 ]; then gem i rubygems-update -v '<3' && update_rubygems; fi;
|
35
|
+
- if [ `echo "${TRAVIS_RUBY_VERSION:0:3} < 2.7" | bc` == 1 ]; then gem i bundler -v '<2'; fi;
|
36
|
+
script: 'bundle exec rake test'
|
33
37
|
|
34
38
|
cache: bundler
|
35
39
|
|
36
40
|
matrix:
|
37
41
|
exclude:
|
38
|
-
- rvm:
|
39
|
-
gemfile: gemfiles/
|
40
|
-
- rvm:
|
42
|
+
- rvm: 2.7.0
|
43
|
+
gemfile: gemfiles/active_record_52.gemfile
|
44
|
+
- rvm: 2.7.0
|
45
|
+
gemfile: gemfiles/active_record_51.gemfile
|
46
|
+
- rvm: 2.7.0
|
47
|
+
gemfile: gemfiles/active_record_50.gemfile
|
48
|
+
- rvm: 2.7.0
|
49
|
+
gemfile: gemfiles/active_record_42.gemfile
|
50
|
+
- rvm: 2.7.0
|
51
|
+
gemfile: gemfiles/active_record_41.gemfile
|
52
|
+
- rvm: 2.6.3
|
53
|
+
gemfile: gemfiles/active_record_42.gemfile
|
54
|
+
- rvm: 2.6.3
|
55
|
+
gemfile: gemfiles/active_record_41.gemfile
|
56
|
+
- rvm: 2.5.5
|
57
|
+
gemfile: gemfiles/active_record_42.gemfile
|
58
|
+
- rvm: 2.5.5
|
59
|
+
gemfile: gemfiles/active_record_41.gemfile
|
60
|
+
- rvm: 2.4.5
|
61
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
62
|
+
- rvm: 2.4.5
|
63
|
+
gemfile: gemfiles/active_record_60.gemfile
|
64
|
+
- rvm: 2.4.5
|
65
|
+
gemfile: gemfiles/active_record_42.gemfile
|
66
|
+
- rvm: 2.4.5
|
67
|
+
gemfile: gemfiles/active_record_41.gemfile
|
68
|
+
- rvm: 2.3.8
|
69
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
70
|
+
- rvm: 2.3.8
|
71
|
+
gemfile: gemfiles/active_record_60.gemfile
|
72
|
+
- rvm: ruby-head
|
73
|
+
gemfile: gemfiles/active_record_42.gemfile
|
74
|
+
- rvm: ruby-head
|
41
75
|
gemfile: gemfiles/active_record_41.gemfile
|
42
|
-
- rvm:
|
43
|
-
gemfile: gemfiles/active_record_42.gemfile
|
44
|
-
- rvm:
|
45
|
-
gemfile: gemfiles/
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
- rvm: 2.2
|
51
|
-
gemfile: gemfiles/
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
- rvm: 2.
|
57
|
-
gemfile: gemfiles/
|
76
|
+
- rvm: jruby-9.2.9.0
|
77
|
+
gemfile: gemfiles/active_record_42.gemfile
|
78
|
+
- rvm: jruby-9.2.9.0
|
79
|
+
gemfile: gemfiles/active_record_41.gemfile
|
80
|
+
include:
|
81
|
+
- rvm: ruby-head
|
82
|
+
gemfile: gemfiles/active_record_edge.gemfile
|
83
|
+
env: DB=sqlite3
|
84
|
+
- rvm: 2.2.10
|
85
|
+
gemfile: gemfiles/active_record_51.gemfile
|
86
|
+
env: DB=sqlite3
|
87
|
+
- rvm: 2.1.10
|
88
|
+
gemfile: gemfiles/active_record_42.gemfile
|
89
|
+
env: DB=sqlite3
|
90
|
+
- rvm: 2.0.0
|
91
|
+
gemfile: gemfiles/active_record_42.gemfile
|
92
|
+
env: DB=sqlite3
|
58
93
|
allow_failures:
|
59
|
-
- rvm:
|
60
|
-
|
61
|
-
- rvm:
|
62
|
-
-
|
94
|
+
- rvm: ruby-head
|
95
|
+
- rvm: jruby-9.2.9.0
|
96
|
+
# - rvm: rbx-3
|
97
|
+
- gemfile: gemfiles/active_record_edge.gemfile
|
63
98
|
fast_finish: true
|