sorbet-schema 0.2.0 → 0.2.2
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/CHANGELOG.md +14 -0
- data/Gemfile.lock +9 -9
- data/lib/sorbet-schema/struct_ext.rb +2 -2
- data/lib/sorbet-schema/version.rb +1 -1
- data/lib/typed/deserialize_error.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca765b78224dee7c4f7bd3c5b8812e7b2a1f5e2d032449b1e51f70b433cbd078
|
|
4
|
+
data.tar.gz: 8ea2d3484c9fdd9e8d224255ada5896beaf85ea5f7b26c2d19570045dc8c2d51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77c4ac65f9c389b81da160c770a016bcdcee0f7473045e61c5a2faf6372564c9305ce961987dbf46edc56f62bfe3152fd33ab59021d5f701e12c3bfb6043a7ca
|
|
7
|
+
data.tar.gz: 475a44a999ab80d56537a8bf57358996963ce617e2846ebe024d4ae17df9fa37b3a05be1879a275766c5e43a4e08c805ac3366624f2ab3c52f03a2a8cc7d6591
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.2.2](https://github.com/maxveldink/sorbet-schema/compare/v0.2.1...v0.2.2) (2024-03-12)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Add unused options parameter to on s ([#40](https://github.com/maxveldink/sorbet-schema/issues/40)) ([f5f8a05](https://github.com/maxveldink/sorbet-schema/commit/f5f8a05c05c2c5959b2f733f4289ddc807075c4d))
|
|
13
|
+
|
|
14
|
+
## [0.2.1](https://github.com/maxveldink/sorbet-schema/compare/v0.2.0...v0.2.1) (2024-03-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* Add options argument for use by ActiveSupport serialization ([#37](https://github.com/maxveldink/sorbet-schema/issues/37)) ([4326c00](https://github.com/maxveldink/sorbet-schema/commit/4326c00d20e4f16de1c4a0562725b403fea92afd))
|
|
20
|
+
|
|
7
21
|
## [0.2.0](https://github.com/maxveldink/sorbet-schema/compare/v0.1.1...v0.2.0) (2024-03-08)
|
|
8
22
|
|
|
9
23
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sorbet-schema (0.2.
|
|
4
|
+
sorbet-schema (0.2.2)
|
|
5
5
|
sorbet-result (~> 1.1)
|
|
6
6
|
sorbet-runtime (~> 0.5)
|
|
7
7
|
sorbet-struct-comparable (~> 1.3)
|
|
@@ -72,16 +72,16 @@ GEM
|
|
|
72
72
|
rubocop-sorbet (0.7.7)
|
|
73
73
|
rubocop (>= 0.90.0)
|
|
74
74
|
ruby-progressbar (1.13.0)
|
|
75
|
-
sorbet (0.5.
|
|
76
|
-
sorbet-static (= 0.5.
|
|
75
|
+
sorbet (0.5.11287)
|
|
76
|
+
sorbet-static (= 0.5.11287)
|
|
77
77
|
sorbet-result (1.1.0)
|
|
78
78
|
sorbet-runtime (~> 0.5)
|
|
79
|
-
sorbet-runtime (0.5.
|
|
80
|
-
sorbet-static (0.5.
|
|
81
|
-
sorbet-static (0.5.
|
|
82
|
-
sorbet-static-and-runtime (0.5.
|
|
83
|
-
sorbet (= 0.5.
|
|
84
|
-
sorbet-runtime (= 0.5.
|
|
79
|
+
sorbet-runtime (0.5.11287)
|
|
80
|
+
sorbet-static (0.5.11287-universal-darwin)
|
|
81
|
+
sorbet-static (0.5.11287-x86_64-linux)
|
|
82
|
+
sorbet-static-and-runtime (0.5.11287)
|
|
83
|
+
sorbet (= 0.5.11287)
|
|
84
|
+
sorbet-runtime (= 0.5.11287)
|
|
85
85
|
sorbet-struct-comparable (1.3.0)
|
|
86
86
|
sorbet-runtime (>= 0.5)
|
|
87
87
|
spoom (1.2.4)
|
|
@@ -29,8 +29,8 @@ module T
|
|
|
29
29
|
Typed::HashSerializer.new(schema: self.class.create_schema).serialize(self)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
sig { returns(String) }
|
|
33
|
-
def to_json
|
|
32
|
+
sig { params(_options: T::Hash[T.untyped, T.untyped]).returns(String) }
|
|
33
|
+
def to_json(_options = {})
|
|
34
34
|
Typed::JSONSerializer.new(schema: self.class.create_schema).serialize(self)
|
|
35
35
|
end
|
|
36
36
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sorbet-schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Max VelDink
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-03-
|
|
11
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sorbet-result
|