skit 0.1.0 → 0.1.3

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: e8cc8c9595a7c97a181d67e3c183726e25dc6d5aea07510bcb09fd325ed6aae9
4
- data.tar.gz: 8c6b40877f2949364e61015b761fc0d00376498917f28331f0d44f9154283685
3
+ metadata.gz: 9cc33f58131c2335f5dad719b28ea332d0f79f2c449009197c918807337c7516
4
+ data.tar.gz: 5c2f69177a3080487c122fec666c097faa46ea08eccacdc427aec38b9eb467ca
5
5
  SHA512:
6
- metadata.gz: 868a602fc15e934970fa4259eb6eccc19a91a0633ed7539671a490b7af0fa6e67ed4c78710acb6500c99cfbe64e28a347acc1fcd08bc23cc995d6ca58f24793c
7
- data.tar.gz: 8cc83bc6d79f59ff448b0c113b53f100a8291a6f305c335976baaded471a1360cb877f6143ae99a4e6f63e9b2d55909f92f047c6d05703a8bc03d6d30bd206fc
6
+ metadata.gz: 2ce51b62c7eaa852e78500c2626b072d3b0c37b96182c2d71787c266449afd8300849f83e60cf31d0934058607b1a626ec90efbd36e3307bcb1c304cb35f08b2
7
+ data.tar.gz: 408211448ab4abd8c0cbe498bc9a49b9c2e39ea3b1a0a9b592fedf00c845a90bcb878ba144cdbbb6647dc0c8b0590a8192682b91900c421376b4f848d0381c62
@@ -8,12 +8,12 @@ module Skit
8
8
  class Attribute < ActiveModel::Type::Value
9
9
  extend T::Sig
10
10
 
11
- sig { params(type_spec: T.untyped).returns(Attribute) }
11
+ sig { params(type_spec: T.any(T.class_of(T::Struct), T::Types::Base)).returns(Attribute) }
12
12
  def self.[](type_spec)
13
13
  new(type_spec)
14
14
  end
15
15
 
16
- sig { params(type_spec: T.untyped).void }
16
+ sig { params(type_spec: T.any(T.class_of(T::Struct), T::Types::Base)).void }
17
17
  def initialize(type_spec)
18
18
  super()
19
19
  @type_spec = type_spec
data/lib/skit/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Skit
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.3"
6
6
  end
data/lib/skit.rb CHANGED
@@ -38,7 +38,7 @@ module Skit # rubocop:disable Style/OneClassPerFile
38
38
  # @param type [Class] The T::Struct class to deserialize to
39
39
  # @return [T::Struct] The deserialized struct instance
40
40
  # @raise [Serialization::DeserializeError] If deserialization fails
41
- sig { params(hash: T.untyped, type: T.class_of(T::Struct)).returns(T::Struct) }
41
+ sig { params(hash: T.untyped, type: T.any(T.class_of(T::Struct), T::Types::Base)).returns(T::Struct) }
42
42
  def self.deserialize(hash, type)
43
43
  processor = Serialization.default_registry.processor_for(type)
44
44
  processor.deserialize(hash)
@@ -35,7 +35,6 @@ module Tapioca
35
35
  # def address=(value); end
36
36
  # end
37
37
  # ~~~
38
- #: [ConstantType = T.class_of(::ActiveRecord::Base)]
39
38
  class Skit < Compiler
40
39
  extend T::Sig
41
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speria, inc.
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.6.7
132
+ rubygems_version: 3.6.9
133
133
  specification_version: 4
134
134
  summary: JSON Schema and Sorbet T::Struct integration toolkit
135
135
  test_files: []