kaminari 0.14.1 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +19 -0
- data/.document +1 -4
- data/.gitignore +2 -1
- data/.travis.yml +91 -10
- data/CHANGELOG.md +636 -0
- data/CONTRIBUTING.md +22 -0
- data/Gemfile +3 -1
- data/README.md +573 -0
- data/Rakefile +43 -20
- data/gemfiles/active_record_41.gemfile +28 -0
- data/gemfiles/active_record_42.gemfile +28 -0
- 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 +33 -0
- data/kaminari.gemspec +23 -28
- data/lib/kaminari/version.rb +3 -1
- data/lib/kaminari.rb +4 -37
- data/misc/bug_report_template.rb +57 -0
- metadata +67 -229
- data/.gemtest +0 -0
- data/.rspec +0 -2
- data/CHANGELOG +0 -351
- data/README.rdoc +0 -295
- 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 -7
- data/gemfiles/active_record_31.gemfile +0 -7
- data/gemfiles/active_record_32.gemfile +0 -7
- data/gemfiles/data_mapper_12.gemfile +0 -12
- data/gemfiles/mongo_mapper.gemfile +0 -7
- data/gemfiles/mongoid_24.gemfile +0 -7
- data/gemfiles/mongoid_30.gemfile +0 -7
- data/gemfiles/sinatra.gemfile +0 -10
- 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 -118
- data/lib/kaminari/config.rb +0 -49
- data/lib/kaminari/engine.rb +0 -4
- data/lib/kaminari/grape.rb +0 -4
- data/lib/kaminari/helpers/action_view_extension.rb +0 -151
- data/lib/kaminari/helpers/paginator.rb +0 -175
- data/lib/kaminari/helpers/sinatra_helpers.rb +0 -138
- data/lib/kaminari/helpers/tags.rb +0 -95
- data/lib/kaminari/hooks.rb +0 -37
- data/lib/kaminari/models/active_record_extension.rb +0 -22
- data/lib/kaminari/models/active_record_model_extension.rb +0 -20
- data/lib/kaminari/models/active_record_relation_methods.rb +0 -31
- data/lib/kaminari/models/array_extension.rb +0 -60
- data/lib/kaminari/models/configuration_methods.rb +0 -34
- data/lib/kaminari/models/data_mapper_collection_methods.rb +0 -15
- data/lib/kaminari/models/data_mapper_extension.rb +0 -48
- data/lib/kaminari/models/mongo_mapper_extension.rb +0 -18
- data/lib/kaminari/models/mongoid_criteria_methods.rb +0 -23
- data/lib/kaminari/models/mongoid_extension.rb +0 -33
- data/lib/kaminari/models/page_scope_methods.rb +0 -41
- data/lib/kaminari/models/plucky_criteria_methods.rb +0 -18
- data/lib/kaminari/railtie.rb +0 -7
- data/lib/kaminari/sinatra.rb +0 -5
- data/spec/config/config_spec.rb +0 -76
- data/spec/fake_app/active_record/config.rb +0 -3
- data/spec/fake_app/active_record/models.rb +0 -57
- 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 -16
- data/spec/fake_app/mongoid/models.rb +0 -22
- data/spec/fake_app/rails_app.rb +0 -55
- data/spec/fake_app/sinatra_app.rb +0 -22
- data/spec/fake_gem.rb +0 -4
- data/spec/helpers/action_view_extension_spec.rb +0 -262
- data/spec/helpers/helpers_spec.rb +0 -135
- data/spec/helpers/sinatra_helpers_spec.rb +0 -170
- data/spec/helpers/tags_spec.rb +0 -140
- data/spec/models/active_record/active_record_relation_methods_spec.rb +0 -30
- data/spec/models/active_record/default_per_page_spec.rb +0 -32
- data/spec/models/active_record/max_per_page_spec.rb +0 -32
- data/spec/models/active_record/scopes_spec.rb +0 -166
- data/spec/models/array_spec.rb +0 -121
- data/spec/models/data_mapper/data_mapper_spec.rb +0 -155
- data/spec/models/mongo_mapper/mongo_mapper_spec.rb +0 -72
- data/spec/models/mongoid/mongoid_spec.rb +0 -110
- data/spec/requests/users_spec.rb +0 -53
- data/spec/spec_helper.rb +0 -32
- data/spec/spec_helper_for_sinatra.rb +0 -35
- data/spec/support/database_cleaner.rb +0 -16
- data/spec/support/matchers.rb +0 -52
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 62a37b3deee187d19c0346edd24a455460fcbd9aa22a1759d72a6df40faf2285
|
4
|
+
data.tar.gz: e4094f7511aa1e57a3abab885f6c071685f31d0e6f04b7827a218ad2d23df8d0
|
5
|
+
SHA512:
|
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/.document
CHANGED
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,17 +1,98 @@
|
|
1
|
-
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
dist: xenial
|
4
|
+
|
5
|
+
services:
|
6
|
+
- postgresql
|
7
|
+
- mysql
|
2
8
|
|
3
9
|
rvm:
|
4
|
-
-
|
5
|
-
-
|
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
|
6
17
|
|
7
18
|
gemfile:
|
8
|
-
- gemfiles/
|
9
|
-
- gemfiles/
|
10
|
-
- gemfiles/
|
11
|
-
- gemfiles/
|
12
|
-
- gemfiles/
|
19
|
+
- gemfiles/active_record_60.gemfile
|
20
|
+
- gemfiles/active_record_52.gemfile
|
21
|
+
- gemfiles/active_record_51.gemfile
|
22
|
+
- gemfiles/active_record_50.gemfile
|
23
|
+
- gemfiles/active_record_42.gemfile
|
24
|
+
- gemfiles/active_record_41.gemfile
|
25
|
+
- gemfiles/active_record_edge.gemfile
|
26
|
+
|
27
|
+
env:
|
28
|
+
- DB=sqlite3
|
29
|
+
- DB=postgresql
|
30
|
+
- DB=mysql
|
31
|
+
|
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'
|
37
|
+
|
38
|
+
cache: bundler
|
13
39
|
|
14
40
|
matrix:
|
15
41
|
exclude:
|
16
|
-
- rvm:
|
17
|
-
gemfile: gemfiles/
|
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
|
75
|
+
gemfile: gemfiles/active_record_41.gemfile
|
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
|
93
|
+
allow_failures:
|
94
|
+
- rvm: ruby-head
|
95
|
+
- rvm: jruby-9.2.9.0
|
96
|
+
# - rvm: rbx-3
|
97
|
+
- gemfile: gemfiles/active_record_edge.gemfile
|
98
|
+
fast_finish: true
|