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.
data/bin/test DELETED
@@ -1,76 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -e
4
-
5
- RUBY_V=$(ruby -v)
6
-
7
- function reset_gemfile_and_test {
8
- rm Gemfile.lock
9
-
10
- eval "$1 bundle update"
11
- eval "$1 bundle exec rake test"
12
- }
13
-
14
- function test_with_activemodel {
15
- reset_gemfile_and_test "ACTIVEMODEL_VERSION=$1"
16
- }
17
-
18
- function run_tests_by_modules {
19
- rm Gemfile.lock
20
-
21
- bundle update
22
-
23
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/{basic/*_test,basic_test}.rb'"
24
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/enum_test.rb'"
25
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/presence_test.rb'"
26
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/dig_test.rb'"
27
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/try_test.rb'"
28
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/maybe_test.rb'"
29
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/immutable_attributes_test.rb'"
30
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/function_test.rb'"
31
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/action_test.rb'"
32
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/{functional/*_test,functional_test}.rb'"
33
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/either/*_test.rb'"
34
- eval "KIND_BASIC=t bundle exec rake test TEST='test/kind/result/*_test.rb'"
35
-
36
- eval "KIND_STRICT=t bundle exec rake test TEST='test/kind/strict_disabled_test.rb'"
37
- }
38
-
39
- RUBY_2_12345="ruby 2.[12345]."
40
- RUBY_2_2345="ruby 2.[2345]."
41
- RUBY_2_1234="ruby 2.[1234]."
42
- RUBY_2_567="ruby 2.[567]."
43
- RUBY_2_12="ruby 2.[12]."
44
- RUBY_3_X="ruby 3.0."
45
-
46
- if [[ $RUBY_V =~ $RUBY_2_12345 ]]; then
47
- if [[ $RUBY_V =~ $RUBY_2_12 ]]; then
48
- test_with_activemodel "3.2"
49
- fi
50
-
51
- if [[ $RUBY_V =~ $RUBY_2_2345 ]]; then
52
- test_with_activemodel "4.0"
53
- test_with_activemodel "4.1"
54
- test_with_activemodel "4.2"
55
- test_with_activemodel "5.0"
56
- test_with_activemodel "5.1"
57
- test_with_activemodel "5.2"
58
- fi
59
-
60
- if [[ $RUBY_V =~ $RUBY_2_1234 ]]; then
61
- run_tests_by_modules
62
-
63
- reset_gemfile_and_test
64
- fi
65
- fi
66
-
67
- if [[ $RUBY_V =~ $RUBY_2_567 ]] || [[ $RUBY_V =~ $RUBY_3_X ]]; then
68
- gem install bundler -v ">= 2" --no-doc
69
-
70
- test_with_activemodel "6.0"
71
- test_with_activemodel "6.1"
72
-
73
- run_tests_by_modules
74
-
75
- reset_gemfile_and_test
76
- fi