kaminari 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62a37b3deee187d19c0346edd24a455460fcbd9aa22a1759d72a6df40faf2285
4
- data.tar.gz: e4094f7511aa1e57a3abab885f6c071685f31d0e6f04b7827a218ad2d23df8d0
3
+ metadata.gz: '08c52fc3c09bad4785b0cc6e32330d42874d8aaa6b49439ffe9745f692a7db2e'
4
+ data.tar.gz: bc9e10bc8d54825aa4be3524cfa91698f0f386b5645ca949d1c1b8c9249678b3
5
5
  SHA512:
6
- metadata.gz: 163a7121c51a8a653ea4e29f6fd11375eebd4f24a38cf2f7022d8abe077d774993e2c2651e729ef868c8eb43e9517760210474d6568428193f170d6e708b3445
7
- data.tar.gz: d9e0d3e3d9647da5d1791117d05c6543c5a59bf0a92d6e6f4c585cc1f23f3f8f13e27c07eaeb1c4e90d3e1c23a6452ae2fa03bf0e0027976f8d4161e7b91e42f
6
+ metadata.gz: 718f128c6cfbf4aa312e7af22a111e3647b49af9045cc12741690f2f9f0a76b745c491e175523ea11218f3545d37a6094c08a9ab10262895c440409ba5a50028
7
+ data.tar.gz: 8b1368ed6cf41faa93a0ceda3680061abf7ee83ee647684c9d18e7f8dbe3d821ace49eb82637da71e6bf4601484fb15facfd4a0e70ded89b62e4fce8b122c156
@@ -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' }}
data/.gitignore CHANGED
@@ -8,3 +8,4 @@ pkg/*
8
8
  doc
9
9
  log
10
10
  *.sqlite3
11
+ *.sqlite3-journal
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.2.2
2
+
3
+ ### Enhancements:
4
+
5
+ * Rails 7 support via [dbac7d4](https://github.com/kaminari/kaminari/commit/dbac7d476f39f8a17a35aba7e528aec7c589b3e5) and [07fafc0](https://github.com/kaminari/kaminari/commit/07fafc0561b307b6fbf40e9ec6ab52a6ec5102b4)
6
+
7
+ ### Bug Fixes:
8
+
9
+ * Restored `path_to_next_url` helper that was accidentally deleted in v1.2.0 #1027 [@ryym]
10
+ * Fixed invalid link tag HTML output from `rel_next_prev_link_tags` helper #1045 [@dlackty]
11
+ * Fixed Errno::ENOENT error for views generator on Ruby 3 #1050 [@ar31an]
12
+ * Suppress warnings about keyword args on Ruby 2.7 #1053 [@mishina]
13
+
14
+
1
15
  ## 1.2.1
2
16
 
3
17
  ### Security Fixes:
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Kaminari [![Build Status](https://travis-ci.org/kaminari/kaminari.svg)](http://travis-ci.org/kaminari/kaminari) [![Code Climate](https://codeclimate.com/github/kaminari/kaminari/badges/gpa.svg)](https://codeclimate.com/github/kaminari/kaminari) [![Inch CI](http://inch-ci.org/github/kaminari/kaminari.svg)](http://inch-ci.org/github/kaminari/kaminari)
1
+ # Kaminari [![Build Status](https://github.com/kaminari/kaminari/actions/workflows/main.yml/badge.svg)](https://github.com/kaminari/kaminari/actions) [![Code Climate](https://codeclimate.com/github/kaminari/kaminari/badges/gpa.svg)](https://codeclimate.com/github/kaminari/kaminari)
2
2
 
3
3
  A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for modern web app frameworks and ORMs
4
4
 
@@ -30,9 +30,9 @@ The pagination helper outputs the HTML5 `<nav>` tag by default. Plus, the helper
30
30
 
31
31
  ## Supported Versions
32
32
 
33
- * Ruby 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 2.8
33
+ * Ruby 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3.0, 3.1
34
34
 
35
- * Rails 4.1, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1
35
+ * Rails 4.1, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0, 7.1
36
36
 
37
37
  * Sinatra 1.4, 2.0
38
38
 
@@ -74,6 +74,12 @@ User.page(7)
74
74
 
75
75
  Note: pagination starts at page 1, not at page 0 (page(0) will return the same results as page(1)).
76
76
 
77
+ Kaminari does not add an `order` to queries. To avoid surprises, you should generally include an order in paginated queries. For example:
78
+
79
+ ```ruby
80
+ User.order(:name).page(7)
81
+ ```
82
+
77
83
  You can get page numbers or page conditions by using below methods.
78
84
  ```ruby
79
85
  User.count #=> 1000
@@ -89,14 +95,14 @@ User.page(100).out_of_range? #=> true
89
95
 
90
96
  ### The `per` Scope
91
97
 
92
- To show a lot more users per each page (change the `per_page` value)
98
+ To show a lot more users per each page (change the `per` value)
93
99
 
94
100
  ```ruby
95
- User.page(7).per(50)
101
+ User.order(:name).page(7).per(50)
96
102
  ```
97
103
 
98
104
  Note that the `per` scope is not directly defined on the models but is just a method defined on the page scope.
99
- This is absolutely reasonable because you will never actually use `per_page` without specifying the `page` number.
105
+ This is absolutely reasonable because you will never actually use `per` without specifying the `page` number.
100
106
 
101
107
  Keep in mind that `per` internally utilizes `limit` and so it will override any `limit` that was set previously.
102
108
  And if you want to get the size for all request records you can use `total_count` method:
@@ -113,7 +119,7 @@ a.page(1).per(20).total_count #=> 1000
113
119
  Occasionally you need to pad a number of records that is not a multiple of the page size.
114
120
 
115
121
  ```ruby
116
- User.page(7).per(50).padding(3)
122
+ User.order(:name).page(7).per(50).padding(3)
117
123
  ```
118
124
 
119
125
  Note that the `padding` scope also is not directly defined on the models.
@@ -123,7 +129,7 @@ Note that the `padding` scope also is not directly defined on the models.
123
129
  If for some reason you need to unscope `page` and `per` methods you can call `except(:limit, :offset)`
124
130
 
125
131
  ```ruby
126
- users = User.page(7).per(50)
132
+ users = User.order(:name).page(7).per(50)
127
133
  unpaged_users = users.except(:limit, :offset) # unpaged_users will not use the kaminari scopes
128
134
  ```
129
135
 
@@ -178,6 +184,9 @@ class User < ActiveRecord::Base
178
184
  end
179
185
  ```
180
186
 
187
+ ### Configuring params_on_first_page when using ransack_memory
188
+
189
+ If you are using [the `ransack_memory` gem](https://github.com/richardrails/ransack_memory) and experience problems navigating back to the previous or first page, set the `params_on_first_page` setting to `true`.
181
190
 
182
191
  ## Controllers
183
192
 
@@ -249,7 +258,7 @@ This would modify the query parameter name on each links.
249
258
  ### Extra Parameters (`:params`) for the Links
250
259
 
251
260
  ```erb
252
- <%= paginate @users, params: {controller: 'foo', action: 'bar'} %>
261
+ <%= paginate @users, params: {controller: 'foo', action: 'bar', format: :turbo_stream} %>
253
262
  ```
254
263
 
255
264
  This would modify each link's `url_option`. :`controller` and :`action` might be the keys in common.
@@ -279,6 +288,12 @@ This option makes it easier to do things like A/B testing pagination templates/t
279
288
 
280
289
  This simply renders a link to the next page. This would be helpful for creating a Twitter-like pagination feature.
281
290
 
291
+ The helper methods support a `params` option to further specify the link. If `format` needs to be set, inlude it in the `params` hash.
292
+
293
+ ```erb
294
+ <%= link_to_next_page @items, 'Next Page', params: {controller: 'foo', action: 'bar', format: :turbo_stream} %>
295
+ ```
296
+
282
297
  ### The `page_entries_info` Helper Method
283
298
 
284
299
  ```erb
@@ -18,11 +18,13 @@ platforms :jruby do
18
18
  gem 'activerecord-jdbcpostgresql-adapter', require: false
19
19
  gem 'activerecord-jdbcmysql-adapter', require: false
20
20
  end
21
- platforms :rbx do
22
- gem 'rubysl', '~> 2.0'
23
- gem 'racc'
24
- gem 'minitest'
25
- gem 'rubinius-developer_tools'
21
+ if RUBY_ENGINE == 'rbx'
22
+ platforms :rbx do
23
+ gem 'rubysl', '~> 2.0'
24
+ gem 'racc'
25
+ gem 'minitest'
26
+ gem 'rubinius-developer_tools'
27
+ end
26
28
  end
27
29
 
28
30
  gemspec path: '../'
@@ -18,11 +18,13 @@ platforms :jruby do
18
18
  gem 'activerecord-jdbcpostgresql-adapter', require: false
19
19
  gem 'activerecord-jdbcmysql-adapter', require: false
20
20
  end
21
- platforms :rbx do
22
- gem 'rubysl', '~> 2.0'
23
- gem 'racc'
24
- gem 'minitest'
25
- gem 'rubinius-developer_tools'
21
+ if RUBY_ENGINE == 'rbx'
22
+ platforms :rbx do
23
+ gem 'rubysl', '~> 2.0'
24
+ gem 'racc'
25
+ gem 'minitest'
26
+ gem 'rubinius-developer_tools'
27
+ end
26
28
  end
27
29
 
28
30
  gemspec path: '../'
@@ -14,11 +14,13 @@ platforms :jruby do
14
14
  gem 'activerecord-jdbcpostgresql-adapter', require: false
15
15
  gem 'activerecord-jdbcmysql-adapter', require: false
16
16
  end
17
- platforms :rbx do
18
- gem 'rubysl', '~> 2.0'
19
- gem 'racc'
20
- gem 'minitest'
21
- gem 'rubinius-developer_tools'
17
+ if RUBY_ENGINE == 'rbx'
18
+ platforms :rbx do
19
+ gem 'rubysl', '~> 2.0'
20
+ gem 'racc'
21
+ gem 'minitest'
22
+ gem 'rubinius-developer_tools'
23
+ end
22
24
  end
23
25
 
24
26
  gemspec path: '../'
@@ -14,11 +14,13 @@ platforms :jruby do
14
14
  gem 'activerecord-jdbcpostgresql-adapter', require: false
15
15
  gem 'activerecord-jdbcmysql-adapter', require: false
16
16
  end
17
- platforms :rbx do
18
- gem 'rubysl', '~> 2.0'
19
- gem 'racc'
20
- gem 'minitest'
21
- gem 'rubinius-developer_tools'
17
+ if RUBY_ENGINE == 'rbx'
18
+ platforms :rbx do
19
+ gem 'rubysl', '~> 2.0'
20
+ gem 'racc'
21
+ gem 'minitest'
22
+ gem 'rubinius-developer_tools'
23
+ end
22
24
  end
23
25
 
24
26
  gemspec path: '../'
@@ -14,11 +14,13 @@ platforms :jruby do
14
14
  gem 'activerecord-jdbcpostgresql-adapter', require: false
15
15
  gem 'activerecord-jdbcmysql-adapter', require: false
16
16
  end
17
- platforms :rbx do
18
- gem 'rubysl', '~> 2.0'
19
- gem 'racc'
20
- gem 'minitest'
21
- gem 'rubinius-developer_tools'
17
+ if RUBY_ENGINE == 'rbx'
18
+ platforms :rbx do
19
+ gem 'rubysl', '~> 2.0'
20
+ gem 'racc'
21
+ gem 'minitest'
22
+ gem 'rubinius-developer_tools'
23
+ end
22
24
  end
23
25
 
24
26
  gemspec path: '../'
@@ -16,11 +16,13 @@ platforms :jruby do
16
16
  gem 'activerecord-jdbcpostgresql-adapter', require: false
17
17
  gem 'activerecord-jdbcmysql-adapter', require: false
18
18
  end
19
- platforms :rbx do
20
- gem 'rubysl', '~> 2.0'
21
- gem 'racc'
22
- gem 'minitest'
23
- gem 'rubinius-developer_tools'
19
+ if RUBY_ENGINE == 'rbx'
20
+ platforms :rbx do
21
+ gem 'rubysl', '~> 2.0'
22
+ gem 'racc'
23
+ gem 'minitest'
24
+ gem 'rubinius-developer_tools'
25
+ end
24
26
  end
25
27
 
26
28
  gemspec path: '../'
@@ -0,0 +1,28 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 6.1.0'
4
+ gem 'activerecord', '~> 6.1.0', require: 'active_record'
5
+ gem 'actionview', '~> 6.1.0', require: 'action_view'
6
+
7
+ gem 'selenium-webdriver'
8
+
9
+ platforms :ruby do
10
+ gem 'sqlite3', require: false
11
+ gem 'pg', require: false
12
+ gem 'mysql2', require: false
13
+ end
14
+ platforms :jruby do
15
+ gem 'activerecord-jdbcsqlite3-adapter', '>= 1.3.0'
16
+ gem 'activerecord-jdbcpostgresql-adapter', require: false
17
+ gem 'activerecord-jdbcmysql-adapter', require: false
18
+ end
19
+ if RUBY_ENGINE == 'rbx'
20
+ platforms :rbx do
21
+ gem 'rubysl', '~> 2.0'
22
+ gem 'racc'
23
+ gem 'minitest'
24
+ gem 'rubinius-developer_tools'
25
+ end
26
+ end
27
+
28
+ gemspec path: '../'
@@ -0,0 +1,28 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 7.0.0'
4
+ gem 'activerecord', '~> 7.0.0', require: 'active_record'
5
+ gem 'actionview', '~> 7.0.0', require: 'action_view'
6
+
7
+ gem 'selenium-webdriver'
8
+
9
+ platforms :ruby do
10
+ gem 'sqlite3', require: false
11
+ gem 'pg', require: false
12
+ gem 'mysql2', require: false
13
+ end
14
+ platforms :jruby do
15
+ gem 'activerecord-jdbcsqlite3-adapter', '>= 1.3.0'
16
+ gem 'activerecord-jdbcpostgresql-adapter', require: false
17
+ gem 'activerecord-jdbcmysql-adapter', require: false
18
+ end
19
+ if RUBY_ENGINE == 'rbx'
20
+ platforms :rbx do
21
+ gem 'rubysl', '~> 2.0'
22
+ gem 'racc'
23
+ gem 'minitest'
24
+ gem 'rubinius-developer_tools'
25
+ end
26
+ end
27
+
28
+ gemspec path: '../'
@@ -5,7 +5,7 @@ git_source(:github) do |repo_name|
5
5
  "https://github.com/#{repo_name}.git"
6
6
  end
7
7
 
8
- github 'rails/rails' do
8
+ github 'rails/rails', branch: 'main' do
9
9
  gem 'railties'
10
10
  gem 'activerecord', require: 'active_record'
11
11
  gem 'actionview', require: 'action_view'
@@ -23,11 +23,13 @@ platforms :jruby do
23
23
  gem 'activerecord-jdbcpostgresql-adapter', require: false
24
24
  gem 'activerecord-jdbcmysql-adapter', require: false
25
25
  end
26
- platforms :rbx do
27
- gem 'rubysl', '~> 2.0'
28
- gem 'racc'
29
- gem 'minitest'
30
- gem 'rubinius-developer_tools'
26
+ if RUBY_ENGINE == 'rbx'
27
+ platforms :rbx do
28
+ gem 'rubysl', '~> 2.0'
29
+ gem 'racc'
30
+ gem 'minitest'
31
+ gem 'rubinius-developer_tools'
32
+ end
31
33
  end
32
34
 
33
35
  gemspec path: '../'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kaminari
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaminari
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
8
  - Yuki Nishijima
9
9
  - Zachary Scott
10
10
  - Hiroshi Shibata
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-05-27 00:00:00.000000000 Z
14
+ date: 2021-12-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -33,42 +33,42 @@ dependencies:
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 1.2.1
36
+ version: 1.2.2
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.2.1
43
+ version: 1.2.2
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: kaminari-actionview
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - '='
49
49
  - !ruby/object:Gem::Version
50
- version: 1.2.1
50
+ version: 1.2.2
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - '='
56
56
  - !ruby/object:Gem::Version
57
- version: 1.2.1
57
+ version: 1.2.2
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: kaminari-activerecord
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - '='
63
63
  - !ruby/object:Gem::Version
64
- version: 1.2.1
64
+ version: 1.2.2
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - '='
70
70
  - !ruby/object:Gem::Version
71
- version: 1.2.1
71
+ version: 1.2.2
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: test-unit-rails
74
74
  requirement: !ruby/object:Gem::Requirement
@@ -149,8 +149,8 @@ extra_rdoc_files: []
149
149
  files:
150
150
  - ".codeclimate.yml"
151
151
  - ".document"
152
+ - ".github/workflows/main.yml"
152
153
  - ".gitignore"
153
- - ".travis.yml"
154
154
  - CHANGELOG.md
155
155
  - CONTRIBUTING.md
156
156
  - Gemfile
@@ -163,6 +163,8 @@ files:
163
163
  - gemfiles/active_record_51.gemfile
164
164
  - gemfiles/active_record_52.gemfile
165
165
  - gemfiles/active_record_60.gemfile
166
+ - gemfiles/active_record_61.gemfile
167
+ - gemfiles/active_record_70.gemfile
166
168
  - gemfiles/active_record_edge.gemfile
167
169
  - kaminari.gemspec
168
170
  - lib/kaminari.rb
@@ -172,7 +174,7 @@ homepage: https://github.com/kaminari/kaminari
172
174
  licenses:
173
175
  - MIT
174
176
  metadata: {}
175
- post_install_message:
177
+ post_install_message:
176
178
  rdoc_options: []
177
179
  require_paths:
178
180
  - lib
@@ -187,8 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
189
  - !ruby/object:Gem::Version
188
190
  version: '0'
189
191
  requirements: []
190
- rubygems_version: 3.2.0.pre1
191
- signing_key:
192
+ rubygems_version: 3.3.0.dev
193
+ signing_key:
192
194
  specification_version: 4
193
195
  summary: A pagination engine plugin for Rails 4+ and other modern frameworks
194
196
  test_files: []
data/.travis.yml DELETED
@@ -1,98 +0,0 @@
1
- language: ruby
2
-
3
- dist: xenial
4
-
5
- services:
6
- - postgresql
7
- - mysql
8
-
9
- rvm:
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
17
-
18
- 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
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
39
-
40
- matrix:
41
- exclude:
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