kind 5.10.0 → 6.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db0a2008eeb0137d93f74239fc4731ee7cc217a5714a30b9e57305e0d2a5b10a
4
- data.tar.gz: 3b5efef522cc08fdd856ea4a9e3197eaef10c887a335479cac3a70cc67012ec6
3
+ metadata.gz: 69736175720183c9e0b6eb3ce1834f07649ba9a8731f38d3f39f7975b2f39ee7
4
+ data.tar.gz: a3e2ff8fab3aac0c41948ac655effd123b5b7bf1027bafb028d115b8c1f0d24c
5
5
  SHA512:
6
- metadata.gz: 2ded2725b6df3fee68cb30df6aa3172d2b16493f7071314a8be8dc0345dd450461ba899defad6af62073569e83348108f6ac6bbd7699ddc3c47c9e4ea9107069
7
- data.tar.gz: d724177aa2643868ef4ff5700c51d228209aa1f40ca756a3670f8ddb5f769af61a8a14f7433a04a9d7f9451deda73b60b91739c0e7a153a03d4eabde20ba24b3
6
+ metadata.gz: 41399fb16f9e6eb3e576100eb9227ea90febd047dd0f202984a9264ccea39be14e3ef418b7913cf59200d1b8c33a0600606697cdb27ba8d1c8f3bfe48ad9992b
7
+ data.tar.gz: 7c83cab9fb734d2e2513abca45348981933ac243f8cb040188d768581ff17a06e1f72624575fce82451d4eb8b2d174bfba407ccd0f4c7ae0f94c1d4f018c8608
@@ -1,27 +1,68 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ pull_request:
1
9
 
2
- name: build
3
- on: [pull_request]
4
10
  jobs:
5
11
  test:
6
12
  runs-on: ubuntu-latest
13
+ name: Ruby ${{ matrix.ruby }}
14
+ permissions:
15
+ contents: read
7
16
  strategy:
17
+ fail-fast: false
8
18
  matrix:
9
- ruby: [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 3.0]
19
+ ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0", head]
10
20
  steps:
11
- - uses: actions/checkout@v2
12
- - uses: ruby/setup-ruby@v1
21
+ - uses: actions/checkout@v4
22
+ with:
23
+ persist-credentials: false
24
+ - name: Set up Ruby
25
+ uses: ruby/setup-ruby@v1
13
26
  with:
14
27
  ruby-version: ${{ matrix.ruby }}
15
- bundler-cache: true
16
- - name: Test and generate coverage
17
- run: bin/test
18
- - name: Format coverage
19
- if: ${{ matrix.ruby >= 3 }}
20
- run: bin/prepare_coverage
21
- - uses: paambaati/codeclimate-action@v2.7.5
22
- if: ${{ matrix.ruby >= 3 }}
23
- env:
24
- CC_TEST_REPORTER_ID: 9561ceed21b6724aea8063e82e5700bc8266e962978089594bf2d8f8ca5ffc94
28
+ - name: Install bundler
29
+ run: gem install bundler -v 2.4.22
30
+ if: ${{ matrix.ruby == '2.7' || matrix.ruby == '3.0' }}
31
+ - name: Bundle install
32
+ run: bundle install
33
+ - name: Setup project
34
+ run: bundle exec appraisal install
35
+ - name: Run baseline tests (no activemodel)
36
+ run: bundle exec rake test
37
+ - name: Run per-module isolation tests (KIND_BASIC=t)
38
+ run: bundle exec rake test_basic_modules
39
+ - name: Run tests for Rails 6.0
40
+ run: bundle exec appraisal rails-6-0 rake test
41
+ if: ${{ matrix.ruby == '2.7' || matrix.ruby == '3.0' }}
42
+ - name: Run tests for Rails 6.1
43
+ run: bundle exec appraisal rails-6-1 rake test
44
+ if: ${{ matrix.ruby == '2.7' || matrix.ruby == '3.0' }}
45
+ - name: Run tests for Rails 7.0
46
+ run: bundle exec appraisal rails-7-0 rake test
47
+ if: ${{ matrix.ruby == '2.7' || matrix.ruby == '3.0' || matrix.ruby == '3.1' || matrix.ruby == '3.2' || matrix.ruby == '3.3' }}
48
+ - name: Run tests for Rails 7.1
49
+ run: bundle exec appraisal rails-7-1 rake test
50
+ if: ${{ matrix.ruby == '2.7' || matrix.ruby == '3.0' || matrix.ruby == '3.1' || matrix.ruby == '3.2' || matrix.ruby == '3.3' }}
51
+ - name: Run tests for Rails 7.2
52
+ run: bundle exec appraisal rails-7-2 rake test
53
+ if: ${{ matrix.ruby == '3.1' || matrix.ruby == '3.2' || matrix.ruby == '3.3' || matrix.ruby == '3.4' }}
54
+ - name: Run tests for Rails 8.0
55
+ run: bundle exec appraisal rails-8-0 rake test
56
+ if: ${{ matrix.ruby == '3.2' || matrix.ruby == '3.3' || matrix.ruby == '3.4' }}
57
+ - name: Run tests for Rails 8.1
58
+ run: bundle exec appraisal rails-8-1 rake test
59
+ if: ${{ matrix.ruby == '3.3' || matrix.ruby == '3.4' || matrix.ruby == '4.0' }}
60
+ - name: Run tests for Rails edge
61
+ run: bundle exec appraisal rails-edge rake test
62
+ if: ${{ matrix.ruby == '4.0' || matrix.ruby == 'head' }}
63
+ - name: Upload coverage to Qlty
64
+ uses: qltysh/qlty-action/coverage@v2
65
+ if: ${{ matrix.ruby == '3.4' && !github.base_ref }}
25
66
  with:
26
- debug: true
27
- coverageLocations: coverage/.resultset.json:simplecov
67
+ token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
68
+ files: coverage/.resultset.json
data/.gitignore CHANGED
@@ -1,3 +1,5 @@
1
+ .DS_Store
2
+
1
3
  /.bundle/
2
4
  /.yardoc
3
5
  /_yardoc/
@@ -8,5 +10,10 @@
8
10
  /tmp/
9
11
 
10
12
  Gemfile.lock
13
+
14
+ gemfiles/*.lock
15
+ gemfiles/.bundle/
16
+
11
17
  .foo
12
- .tool-versions
18
+ .tool-versions
19
+ tags
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.0.0
1
+ ruby 4.0.1
data/Appraisals ADDED
@@ -0,0 +1,84 @@
1
+ if RUBY_VERSION < "3.1"
2
+ appraise "rails-6-0" do
3
+ group :test do
4
+ gem "logger", "~> 1.6", ">= 1.6.6"
5
+ gem "stringio", "~> 3.2"
6
+
7
+ gem "minitest", "5.26.1"
8
+ gem "activemodel", "~> 6.0.0"
9
+ end
10
+ end
11
+
12
+ appraise "rails-6-1" do
13
+ group :test do
14
+ gem "logger", "~> 1.6", ">= 1.6.6"
15
+ gem "stringio", "~> 3.2"
16
+
17
+ gem "minitest", "5.26.1"
18
+ gem "activemodel", "~> 6.1.0"
19
+ end
20
+ end
21
+ end
22
+
23
+ if RUBY_VERSION >= "2.7" && RUBY_VERSION < "3.4"
24
+ appraise "rails-7-0" do
25
+ group :test do
26
+ gem "logger", "~> 1.6", ">= 1.6.6"
27
+ gem "stringio", "~> 3.2"
28
+ gem "securerandom", "~> 0.3.2"
29
+
30
+ gem "minitest", "5.26.1"
31
+ gem "activemodel", "~> 7.0.0"
32
+ end
33
+ end
34
+
35
+ appraise "rails-7-1" do
36
+ group :test do
37
+ gem "logger", "~> 1.6", ">= 1.6.6"
38
+ gem "stringio", "~> 3.2"
39
+ gem "securerandom", "~> 0.3.2"
40
+
41
+ gem "minitest", "5.26.1"
42
+ gem "activemodel", "~> 7.1.0"
43
+ end
44
+ end
45
+ end
46
+
47
+ if RUBY_VERSION >= "3.1" && RUBY_VERSION < "4.0"
48
+ appraise "rails-7-2" do
49
+ group :test do
50
+ gem "minitest", "~> 5.27"
51
+ gem "activemodel", "~> 7.2.0"
52
+ end
53
+ end
54
+ end
55
+
56
+ if RUBY_VERSION >= "3.2" && RUBY_VERSION < "4.0"
57
+ appraise "rails-8-0" do
58
+ group :test do
59
+ gem "ostruct", "~> 0.6.3"
60
+ gem "minitest", "~> 5.27"
61
+ gem "activemodel", "~> 8.0.0"
62
+ end
63
+ end
64
+ end
65
+
66
+ if RUBY_VERSION >= "3.3.0"
67
+ minitest_version = (RUBY_VERSION >= "4.0.0") ? "~> 6.0" : "~> 5.27"
68
+
69
+ appraise "rails-8-1" do
70
+ group :test do
71
+ gem "ostruct", "~> 0.6.3"
72
+ gem "minitest", minitest_version
73
+ gem "activemodel", "~> 8.1.0"
74
+ end
75
+ end
76
+
77
+ appraise "rails-edge" do
78
+ group :test do
79
+ gem "ostruct", "~> 0.6.3"
80
+ gem "minitest", minitest_version
81
+ gem "activemodel", github: "rails/rails", branch: "main"
82
+ end
83
+ end
84
+ end