sorbet-schema 0.1.0 → 0.1.1

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: ffdfd75d86c1aae5d768f10ff0771233cf477e433a5f8fb8c97a426ac6082f33
4
- data.tar.gz: e800bb3ba0f34e67eec363581306299d57304ae5c1c3fae23db703888f2fd963
3
+ metadata.gz: a84e583349600c869258e039e2e77f14dad713fb1c3a8d60c8759d962ff4eaef
4
+ data.tar.gz: 67658459bd944e7118b45cb2fcfd5abbaea9c212153edec253d5d329519d772c
5
5
  SHA512:
6
- metadata.gz: 5974ed3fc6f0e7e9bfec18028a3c78ee66bd51fdd3329e6bf34980028ce7fb2254086f975cc58b6f5e143708f789170aeabc3ee095cdbc26dd2cf269dd471cd9
7
- data.tar.gz: 196aa60d08c1f12552307427737377eba10d19b7945282bdac35b3916decf93035c3039f9ec628bbc040bd1fe430b189bbc9e90714688256397caff5352744ac
6
+ metadata.gz: 8ac735414ed3ed8668384f68d49c666abf8426410adabcdae115d533dd9110f4cdda2eaf5bc8c85f60797101a8d1dc3723b9fd52740144f639ff390abded0719
7
+ data.tar.gz: fd4877530222a722f9a3e719bb592d06ae9d6b979b5b22aac7638a80a678779e0d9408a014ed857cba938fe3e0410d6af1f542c865b843462427e6b2467c3813
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.1.1](https://github.com/maxveldink/sorbet-schema/compare/v0.1.0...v0.1.1) (2024-03-08)
8
+
9
+
10
+ ### Features
11
+
12
+ * adds `to_h` and `to_json` methods to Deserialize errors ([#28](https://github.com/maxveldink/sorbet-schema/issues/28)) ([bf5f770](https://github.com/maxveldink/sorbet-schema/commit/bf5f770bc3ca176f18146dd780ad7ccd7fcb05b0))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * Add release-please config ([#30](https://github.com/maxveldink/sorbet-schema/issues/30)) ([b311c28](https://github.com/maxveldink/sorbet-schema/commit/b311c2840d4929776e0133b061e531ae9d1f453f))
18
+ * Downgrade release-please action and publish gem through there ([#31](https://github.com/maxveldink/sorbet-schema/issues/31)) ([4ef9881](https://github.com/maxveldink/sorbet-schema/commit/4ef988120c73f42fdfa749d67b5ca0bafc4e52ce))
19
+ * update release-please permissions ([#33](https://github.com/maxveldink/sorbet-schema/issues/33)) ([b5d866c](https://github.com/maxveldink/sorbet-schema/commit/b5d866ca304879fc92c8d20ca2b303a3fcdd27c3))
20
+
7
21
  ## 0.1.0 (2024-03-05)
8
22
 
9
23
  ### Features
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sorbet-schema (0.1.0)
4
+ sorbet-schema (0.1.1)
5
5
  sorbet-result (~> 1.1)
6
6
  sorbet-runtime (~> 0.5)
7
7
  sorbet-struct-comparable (~> 1.3)
@@ -1,5 +1,5 @@
1
1
  # typed: strict
2
2
 
3
3
  module SorbetSchema
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -2,5 +2,16 @@
2
2
 
3
3
  module Typed
4
4
  class DeserializeError < StandardError
5
+ extend T::Sig
6
+
7
+ sig { returns({error: String}) }
8
+ def to_h
9
+ {error: message}
10
+ end
11
+
12
+ sig { returns(String) }
13
+ def to_json
14
+ JSON.generate(to_h)
15
+ end
5
16
  end
6
17
  end
@@ -0,0 +1,14 @@
1
+ {
2
+ "release-type": "ruby",
3
+ "packages": {
4
+ ".": {
5
+ "monorepo-tags": false,
6
+ "include-component-in-tag": false,
7
+ "prerelease": false,
8
+ "bump-minor-pre-major": true,
9
+ "bump-patch-for-minor-pre-major": true,
10
+ "package-name": "sorbet-schema",
11
+ "version-file": "lib/sorbet-schema/version.rb"
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0"
3
+ }
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max VelDink
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-05 00:00:00.000000000 Z
11
+ date: 2024-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-result
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.6'
69
- description:
69
+ description:
70
70
  email:
71
71
  - maxveldink@gmail.com
72
72
  executables: []
@@ -111,6 +111,8 @@ files:
111
111
  - lib/typed/validations/validated_value.rb
112
112
  - lib/typed/validations/validation_error.rb
113
113
  - lib/typed/validations/validation_results.rb
114
+ - release-please-config.json
115
+ - release-please-manifest.json
114
116
  - sorbet/config
115
117
  - sorbet/rbi/annotations/rainbow.rbi
116
118
  - sorbet/rbi/gems/.gitattributes
@@ -169,7 +171,7 @@ metadata:
169
171
  homepage_uri: https://github.com/maxveldink/sorbet-schema
170
172
  source_code_uri: https://github.com/maxveldink/sorbet-schema
171
173
  changelog_uri: https://github.com/maxveldink/sorbet-schema/blob/main/CHANGELOG.md
172
- post_install_message:
174
+ post_install_message:
173
175
  rdoc_options: []
174
176
  require_paths:
175
177
  - lib
@@ -184,8 +186,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
186
  - !ruby/object:Gem::Version
185
187
  version: '0'
186
188
  requirements: []
187
- rubygems_version: 3.5.6
188
- signing_key:
189
+ rubygems_version: 3.5.3
190
+ signing_key:
189
191
  specification_version: 4
190
192
  summary: Serialization and deserialization library into Sorbet structs.
191
193
  test_files: []