schema-model 0.6.11 → 0.7.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 +4 -4
- data/.github/workflows/ci.yml +93 -0
- data/.github/workflows/release.yml +93 -0
- data/.release-please-manifest.json +3 -0
- data/.rubocop.yml +70 -8
- data/.ruby-version +1 -1
- data/ARCHITECTURE.md +135 -0
- data/CHANGELOG.md +9 -0
- data/CLAUDE.md +83 -0
- data/Gemfile +1 -2
- data/Gemfile.lock +79 -47
- data/README.md +361 -85
- data/lib/schema/active_model_validations.rb +14 -14
- data/lib/schema/array_headers.rb +6 -4
- data/lib/schema/arrays.rb +11 -13
- data/lib/schema/associations/dynamic_types.rb +3 -5
- data/lib/schema/associations/has_many.rb +2 -4
- data/lib/schema/associations/has_one.rb +3 -5
- data/lib/schema/associations/schema_creator.rb +2 -2
- data/lib/schema/csv_parser.rb +1 -1
- data/lib/schema/model.rb +26 -21
- data/lib/schema/parsers/array.rb +2 -2
- data/lib/schema/parsers/common.rb +6 -8
- data/lib/schema/parsers/hash.rb +1 -1
- data/lib/schema/parsers/json.rb +1 -1
- data/lib/schema/parsing_errors.rb +1 -1
- data/lib/schema/utils.rb +5 -5
- data/lib/schema/version.rb +6 -0
- data/lib/schema-model.rb +1 -0
- data/release-please-config.json +12 -0
- data/schema-model.gemspec +8 -4
- data/script/coverage_badge.rb +49 -0
- metadata +17 -12
- data/.cursor-rules +0 -39
- data/.travis.yml +0 -14
- data/Rakefile +0 -11
- data/docs/ARCHITECTURE.md +0 -171
- data/script/bundle_install_all_versions +0 -8
- data/script/rspec_all_versions +0 -5
data/Gemfile.lock
CHANGED
|
@@ -1,102 +1,134 @@
|
|
|
1
1
|
GEM
|
|
2
|
-
remote:
|
|
2
|
+
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
activemodel (8.
|
|
5
|
-
activesupport (= 8.
|
|
6
|
-
activesupport (8.
|
|
4
|
+
activemodel (8.1.4)
|
|
5
|
+
activesupport (= 8.1.4)
|
|
6
|
+
activesupport (8.1.4)
|
|
7
7
|
base64
|
|
8
|
-
benchmark (>= 0.3)
|
|
9
8
|
bigdecimal
|
|
10
9
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
11
10
|
connection_pool (>= 2.2.5)
|
|
12
11
|
drb
|
|
13
12
|
i18n (>= 1.6, < 2)
|
|
13
|
+
json
|
|
14
14
|
logger (>= 1.4.2)
|
|
15
15
|
minitest (>= 5.1)
|
|
16
16
|
securerandom (>= 0.3)
|
|
17
17
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
18
18
|
uri (>= 0.13.1)
|
|
19
19
|
ast (2.4.3)
|
|
20
|
-
base64 (0.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
drb (2.2.1)
|
|
29
|
-
i18n (1.14.7)
|
|
20
|
+
base64 (0.3.0)
|
|
21
|
+
bigdecimal (4.1.3)
|
|
22
|
+
concurrent-ruby (1.3.8)
|
|
23
|
+
connection_pool (3.0.2)
|
|
24
|
+
csv (3.3.6)
|
|
25
|
+
diff-lcs (1.6.2)
|
|
26
|
+
drb (2.2.3)
|
|
27
|
+
i18n (1.15.2)
|
|
30
28
|
concurrent-ruby (~> 1.0)
|
|
31
29
|
inheritance-helper (0.2.5)
|
|
32
|
-
json (
|
|
33
|
-
language_server-protocol (3.17.0.
|
|
30
|
+
json (3.0.2)
|
|
31
|
+
language_server-protocol (3.17.0.6)
|
|
34
32
|
lint_roller (1.1.0)
|
|
35
33
|
logger (1.7.0)
|
|
36
|
-
minitest (
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
minitest (6.0.6)
|
|
35
|
+
drb (~> 2.0)
|
|
36
|
+
prism (~> 1.5)
|
|
37
|
+
parallel (2.3.0)
|
|
38
|
+
parser (3.3.12.0)
|
|
39
39
|
ast (~> 2.4.1)
|
|
40
40
|
racc
|
|
41
|
-
prism (1.
|
|
41
|
+
prism (1.9.0)
|
|
42
42
|
racc (1.8.1)
|
|
43
43
|
rainbow (3.1.1)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
rspec (3.13.0)
|
|
44
|
+
regexp_parser (2.13.1)
|
|
45
|
+
rspec (3.13.2)
|
|
47
46
|
rspec-core (~> 3.13.0)
|
|
48
47
|
rspec-expectations (~> 3.13.0)
|
|
49
48
|
rspec-mocks (~> 3.13.0)
|
|
50
|
-
rspec-core (3.13.
|
|
49
|
+
rspec-core (3.13.6)
|
|
51
50
|
rspec-support (~> 3.13.0)
|
|
52
|
-
rspec-expectations (3.13.
|
|
51
|
+
rspec-expectations (3.13.5)
|
|
53
52
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
54
53
|
rspec-support (~> 3.13.0)
|
|
55
|
-
rspec-mocks (3.13.
|
|
54
|
+
rspec-mocks (3.13.8)
|
|
56
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
57
56
|
rspec-support (~> 3.13.0)
|
|
58
|
-
rspec-support (3.13.
|
|
59
|
-
rubocop (1.
|
|
60
|
-
json (
|
|
57
|
+
rspec-support (3.13.7)
|
|
58
|
+
rubocop (1.91.0)
|
|
59
|
+
json (>= 2.3)
|
|
61
60
|
language_server-protocol (~> 3.17.0.2)
|
|
62
61
|
lint_roller (~> 1.1.0)
|
|
63
|
-
parallel (
|
|
62
|
+
parallel (>= 1.10)
|
|
64
63
|
parser (>= 3.3.0.2)
|
|
65
64
|
rainbow (>= 2.2.2, < 4.0)
|
|
66
65
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
67
|
-
rubocop-ast (>= 1.
|
|
66
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
68
67
|
ruby-progressbar (~> 1.7)
|
|
69
68
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
70
|
-
rubocop-ast (1.
|
|
69
|
+
rubocop-ast (1.50.0)
|
|
71
70
|
parser (>= 3.3.7.2)
|
|
72
|
-
prism (~> 1.
|
|
71
|
+
prism (~> 1.7)
|
|
73
72
|
ruby-progressbar (1.13.0)
|
|
74
73
|
securerandom (0.4.1)
|
|
75
|
-
simplecov (
|
|
76
|
-
docile (~> 1.1)
|
|
77
|
-
simplecov-html (~> 0.11)
|
|
78
|
-
simplecov_json_formatter (~> 0.1)
|
|
79
|
-
simplecov-html (0.13.1)
|
|
80
|
-
simplecov_json_formatter (0.1.4)
|
|
74
|
+
simplecov (1.3.2)
|
|
81
75
|
tzinfo (2.0.6)
|
|
82
76
|
concurrent-ruby (~> 1.0)
|
|
83
|
-
unicode-display_width (3.
|
|
84
|
-
unicode-emoji (~> 4.
|
|
85
|
-
unicode-emoji (4.0
|
|
86
|
-
uri (1.
|
|
77
|
+
unicode-display_width (3.3.0)
|
|
78
|
+
unicode-emoji (~> 4.3)
|
|
79
|
+
unicode-emoji (4.3.0)
|
|
80
|
+
uri (1.1.1)
|
|
87
81
|
|
|
88
82
|
PLATFORMS
|
|
89
|
-
arm64-darwin-24
|
|
90
83
|
ruby
|
|
84
|
+
x86_64-darwin-24
|
|
91
85
|
|
|
92
86
|
DEPENDENCIES
|
|
93
87
|
activemodel
|
|
94
88
|
csv
|
|
95
89
|
inheritance-helper
|
|
96
|
-
rake
|
|
97
90
|
rspec
|
|
98
91
|
rubocop
|
|
99
92
|
simplecov
|
|
100
93
|
|
|
94
|
+
CHECKSUMS
|
|
95
|
+
activemodel (8.1.4) sha256=9a0906c127bd118aa5f06157db12b8f750da83dccee72db2f658547a0ae7a0e8
|
|
96
|
+
activesupport (8.1.4) sha256=891dd3fe43c4fc8391934b237b1189bb1f661c932a84a840043db9d46a4e80df
|
|
97
|
+
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
98
|
+
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
99
|
+
bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
|
|
100
|
+
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
101
|
+
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
|
102
|
+
csv (3.3.6) sha256=aba61e7e507a66f03d45cb1f3c4b6359861c3504038b422962875dce099e4456
|
|
103
|
+
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
104
|
+
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
105
|
+
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
106
|
+
inheritance-helper (0.2.5) sha256=e318d548d2e201910ab484b2139a11e61f3dfac012c4aba090bcfaa5f9687b85
|
|
107
|
+
json (3.0.2) sha256=8e6d7e7b11384c21230430cef90b71f14849a34a1f4452796670f7c981bd19df
|
|
108
|
+
language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
|
|
109
|
+
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
110
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
111
|
+
minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
|
|
112
|
+
parallel (2.3.0) sha256=f75a3e904101ce6a1ccb6b8dc800cbafd42166d83330192438dcf29395167a6f
|
|
113
|
+
parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
|
|
114
|
+
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
|
115
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
116
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
117
|
+
regexp_parser (2.13.1) sha256=5aedb6b7c35688f51e86eef17a15374dfd287c83f4ca644b2c5f3ec50a33b44b
|
|
118
|
+
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
119
|
+
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
120
|
+
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
|
121
|
+
rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
|
|
122
|
+
rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
|
|
123
|
+
rubocop (1.91.0) sha256=9c82b7bf391c5d7e3798c5b9996e22a1fe3bd7468e351dfdeb96140c058296d0
|
|
124
|
+
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
|
125
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
126
|
+
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
127
|
+
simplecov (1.3.2) sha256=2a22ec1759f1b8db60881a2e038758956fc69ef93ed669be0bde0678de6d0e85
|
|
128
|
+
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
129
|
+
unicode-display_width (3.3.0) sha256=4b7aa66a4b11db50f6f7e98411215cd0dd10eaecb665d36eec5bcacb3fa0b613
|
|
130
|
+
unicode-emoji (4.3.0) sha256=11c02fa73290378c066bb0562cd4c87d8e1b706fbbe0059ca12746a4244de8ce
|
|
131
|
+
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
|
|
132
|
+
|
|
101
133
|
BUNDLED WITH
|
|
102
|
-
|
|
134
|
+
4.0.20
|