kaminari 0.17.0 → 1.1.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.
Potentially problematic release.
This version of kaminari might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/.codeclimate.yml +19 -0
- data/.gitignore +1 -1
- data/.travis.yml +38 -46
- data/CHANGELOG.md +600 -0
- data/CONTRIBUTING.md +16 -0
- data/Gemfile +1 -0
- data/README.md +558 -0
- data/Rakefile +23 -24
- data/gemfiles/active_record_41.gemfile +10 -7
- data/gemfiles/active_record_42.gemfile +10 -7
- data/gemfiles/active_record_50.gemfile +24 -0
- data/gemfiles/active_record_51.gemfile +24 -0
- data/gemfiles/active_record_edge.gemfile +17 -9
- data/kaminari.gemspec +22 -26
- data/lib/kaminari/version.rb +2 -1
- data/lib/kaminari.rb +4 -39
- data/misc/bug_report_template.rb +57 -0
- metadata +47 -186
- data/.gemtest +0 -0
- data/.rspec +0 -2
- 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: 79e144bce9eea3099a5710a63f8a359dc57d88d3c48c52be0726d8f7d6b09b6a
|
4
|
+
data.tar.gz: 41fe275044253ff7e99d514da2acc1a77ea47492483bc1fcfadd521a3d9618b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e424967795237e20c69fc7cc7115f9956a24d48e79b4593f47aee25c22b31715801a7b59fc8d82859ccaf2655a4e58dea41878811117adba019d3a03a201d9ff
|
7
|
+
data.tar.gz: 7e3abbde2657bdbb5898a28513e8e7c6a11ba1ce99792aa1a76a2dab24aff571cca16a1a832690acb389b2898e7dd56da981fe45e40ac63f33d6020c5edc9abe
|
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,64 +1,56 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
3
|
rvm:
|
4
|
-
-
|
5
|
-
- 2.
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
9
|
-
- jruby-1.7.25
|
10
|
-
- jruby-9.1.0.0
|
11
|
-
- rbx-2
|
4
|
+
- 2.4.2
|
5
|
+
- 2.3.5
|
6
|
+
- ruby-head
|
7
|
+
- jruby-9.1.13.0
|
8
|
+
# - rbx-3
|
12
9
|
|
13
10
|
gemfile:
|
14
|
-
- gemfiles/
|
15
|
-
- gemfiles/
|
16
|
-
- gemfiles/active_record_32.gemfile
|
17
|
-
- gemfiles/active_record_40.gemfile
|
18
|
-
- gemfiles/active_record_41.gemfile
|
11
|
+
- gemfiles/active_record_51.gemfile
|
12
|
+
- gemfiles/active_record_50.gemfile
|
19
13
|
- gemfiles/active_record_42.gemfile
|
14
|
+
- gemfiles/active_record_41.gemfile
|
20
15
|
- gemfiles/active_record_edge.gemfile
|
21
|
-
- gemfiles/data_mapper_12.gemfile
|
22
|
-
- gemfiles/mongo_mapper.gemfile
|
23
|
-
- gemfiles/mongoid_30.gemfile
|
24
|
-
- gemfiles/mongoid_31.gemfile
|
25
|
-
- gemfiles/mongoid_40.gemfile
|
26
|
-
- gemfiles/mongoid_50.gemfile
|
27
|
-
- gemfiles/sinatra_13.gemfile
|
28
|
-
- gemfiles/sinatra_14.gemfile
|
29
16
|
|
30
|
-
|
17
|
+
env:
|
18
|
+
- DB=sqlite3
|
19
|
+
- DB=postgresql
|
20
|
+
- DB=mysql
|
31
21
|
|
32
|
-
|
22
|
+
sudo: false
|
33
23
|
|
34
|
-
|
24
|
+
before_install:
|
25
|
+
- gem update --system
|
26
|
+
- gem update bundler --no-document
|
27
|
+
script: 'bundle exec rake test'
|
35
28
|
|
36
29
|
cache: bundler
|
37
30
|
|
38
31
|
matrix:
|
39
32
|
exclude:
|
40
|
-
- rvm:
|
41
|
-
gemfile: gemfiles/
|
42
|
-
- rvm: 2.
|
43
|
-
gemfile: gemfiles/
|
33
|
+
- rvm: 2.4.2
|
34
|
+
gemfile: gemfiles/active_record_42.gemfile
|
35
|
+
- rvm: 2.4.2
|
36
|
+
gemfile: gemfiles/active_record_41.gemfile
|
37
|
+
- rvm: ruby-head
|
38
|
+
gemfile: gemfiles/active_record_42.gemfile
|
39
|
+
- rvm: ruby-head
|
40
|
+
gemfile: gemfiles/active_record_41.gemfile
|
41
|
+
include:
|
42
|
+
- rvm: 2.2.8
|
43
|
+
gemfile: gemfiles/active_record_51.gemfile
|
44
|
+
env: DB=sqlite3
|
44
45
|
- rvm: 2.1.10
|
45
|
-
gemfile: gemfiles/
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
- rvm: 2.2.5
|
51
|
-
gemfile: gemfiles/active_record_32.gemfile
|
52
|
-
- rvm: 2.3.1
|
53
|
-
gemfile: gemfiles/active_record_30.gemfile
|
54
|
-
- rvm: 2.3.1
|
55
|
-
gemfile: gemfiles/active_record_31.gemfile
|
56
|
-
- rvm: 2.3.1
|
57
|
-
gemfile: gemfiles/active_record_32.gemfile
|
58
|
-
- rvm: jruby-1.7.25
|
59
|
-
gemfile: gemfiles/active_record_edge.gemfile
|
46
|
+
gemfile: gemfiles/active_record_42.gemfile
|
47
|
+
env: DB=sqlite3
|
48
|
+
- rvm: 2.0.0
|
49
|
+
gemfile: gemfiles/active_record_42.gemfile
|
50
|
+
env: DB=sqlite3
|
60
51
|
allow_failures:
|
61
|
-
- rvm:
|
62
|
-
- rvm: jruby-9.1.
|
63
|
-
- rvm: rbx-
|
52
|
+
- rvm: ruby-head
|
53
|
+
- rvm: jruby-9.1.13.0
|
54
|
+
# - rvm: rbx-3
|
55
|
+
- gemfile: gemfiles/active_record_edge.gemfile
|
64
56
|
fast_finish: true
|