types 0.2.0 → 0.3.0

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/lib/types/string.rb CHANGED
@@ -1,33 +1,30 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2025, by Samuel Williams.
22
5
 
23
- require_relative 'generic'
6
+ require_relative "generic"
24
7
 
25
8
  module Types
9
+ # Represents a string type.
10
+ #
11
+ # ```ruby
12
+ # type = Types::String
13
+ # type.parse(42) # => "42"
14
+ # ```
26
15
  module String
27
16
  extend Generic
28
17
 
18
+ # Parses the input as a string.
19
+ # @parameter input [Object] The value to parse.
20
+ # @returns [String] The parsed string value.
29
21
  def self.parse(input)
30
22
  input.to_s
31
23
  end
24
+
25
+ # @returns [String] the RBS type string, e.g. `String`.
26
+ def self.to_rbs
27
+ "String"
28
+ end
32
29
  end
33
30
  end
data/lib/types/symbol.rb CHANGED
@@ -1,33 +1,30 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2025, by Samuel Williams.
22
5
 
23
- require_relative 'generic'
6
+ require_relative "generic"
24
7
 
25
8
  module Types
9
+ # Represents a symbol type.
10
+ #
11
+ # ```ruby
12
+ # type = Types::Symbol
13
+ # type.parse("foo") # => :foo
14
+ # ```
26
15
  module Symbol
27
16
  extend Generic
28
17
 
18
+ # Parses the input as a symbol.
19
+ # @parameter input [Object] The value to parse.
20
+ # @returns [Symbol] The parsed symbol value.
29
21
  def self.parse(input)
30
22
  input.to_sym
31
23
  end
24
+
25
+ # @returns [String] the RBS type string, e.g. `Symbol`.
26
+ def self.to_rbs
27
+ "Symbol"
28
+ end
32
29
  end
33
30
  end
data/lib/types/tuple.rb CHANGED
@@ -1,42 +1,38 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2025, by Samuel Williams.
22
5
 
23
- require_relative 'generic'
24
- require 'json'
6
+ require_relative "generic"
7
+ require "json"
25
8
 
26
9
  module Types
10
+ # Represents a tuple type with specific item types.
11
+ #
12
+ # ```ruby
13
+ # type = Types::Tuple(Types::String, Types::Integer)
14
+ # type.parse(["foo", "42"]) # => ["foo", 42]
15
+ # ```
27
16
  class Tuple
28
17
  include Generic
29
18
 
19
+ # @parameter item_types [Array(Type)] The types of the tuple elements.
30
20
  def initialize(item_types)
31
21
  @item_types = item_types
32
22
  end
33
23
 
24
+ # @returns [Array(Type)] The types of the tuple elements.
34
25
  attr :item_types
35
26
 
27
+ # @returns [Boolean] true if this is a composite type.
36
28
  def composite?
37
29
  true
38
30
  end
39
31
 
32
+ # Parses the input as a tuple with the specified item types.
33
+ # @parameter input [Object] The value to parse.
34
+ # @returns [Array] The parsed tuple.
35
+ # @raises [ArgumentError] if the input cannot be converted to a tuple.
40
36
  def parse(input)
41
37
  case input
42
38
  when ::String
@@ -48,10 +44,16 @@ module Types
48
44
  end
49
45
  end
50
46
 
47
+ # @returns [String] the string representation of the tuple type.
51
48
  def to_s
52
49
  "Tuple(#{@item_types.join(', ')})"
53
50
  end
54
51
 
52
+ # @returns [String] the RBS type string, e.g. `[String, Integer]`.
53
+ def to_rbs
54
+ "[#{@item_types.map {|t| t.to_rbs}.join(', ')}]"
55
+ end
56
+
55
57
  private
56
58
 
57
59
  def parse_string(input)
@@ -63,6 +65,9 @@ module Types
63
65
  end
64
66
  end
65
67
 
68
+ # Constructs a {Tuple} type from the given item types.
69
+ # @parameter item_types [Array(Type)] The types of the tuple elements.
70
+ # @returns [Tuple] a new {Tuple} type.
66
71
  def self.Tuple(*item_types)
67
72
  Tuple.new(item_types)
68
73
  end
data/lib/types/version.rb CHANGED
@@ -1,25 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2024, by Samuel Williams.
22
5
 
23
6
  module Types
24
- VERSION = "0.2.0"
7
+ VERSION = "0.3.0"
25
8
  end
data/lib/types.rb CHANGED
@@ -1,47 +1,43 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
3
+ # Released under the MIT License.
4
+ # Copyright, 2022-2025, by Samuel Williams.
22
5
 
23
- require_relative 'types/version'
6
+ require_relative "types/version"
24
7
 
25
- require_relative 'types/any'
26
- require_relative 'types/array'
27
- require_relative 'types/block'
28
- require_relative 'types/boolean'
29
- require_relative 'types/class'
30
- require_relative 'types/decimal'
31
- require_relative 'types/float'
32
- require_relative 'types/hash'
33
- require_relative 'types/integer'
34
- require_relative 'types/lambda'
35
- require_relative 'types/method'
36
- require_relative 'types/nil'
37
- require_relative 'types/numeric'
38
- require_relative 'types/string'
39
- require_relative 'types/symbol'
40
- require_relative 'types/tuple'
8
+ require_relative "types/any"
9
+ require_relative "types/array"
10
+ require_relative "types/block"
11
+ require_relative "types/boolean"
12
+ require_relative "types/class"
13
+ require_relative "types/decimal"
14
+ require_relative "types/float"
15
+ require_relative "types/hash"
16
+ require_relative "types/integer"
17
+ require_relative "types/interface"
18
+ require_relative "types/lambda"
19
+ require_relative "types/method"
20
+ require_relative "types/nil"
21
+ require_relative "types/numeric"
22
+ require_relative "types/string"
23
+ require_relative "types/symbol"
24
+ require_relative "types/tuple"
41
25
 
26
+ # @namespace
42
27
  module Types
43
- VALID_SIGNATURE = /\A[a-zA-Z\(\):, |]+\z/
44
-
28
+ # The main module for the types library.
29
+ #
30
+ # Provides parsing and construction of type signatures.
31
+ #
32
+ # ```ruby
33
+ # Types.parse("Array(String)") # => Types::Array(Types::String)
34
+ # ```
35
+ VALID_SIGNATURE = /\A[a-zA-Z\(\):,_|\s]+\z/
36
+
37
+ # Parses a type signature string and returns the corresponding type instance.
38
+ # @parameter signature [String] The type signature to parse.
39
+ # @returns [Object] The type instance.
40
+ # @raises [ArgumentError] if the signature is invalid.
45
41
  def self.parse(signature)
46
42
  if signature =~ VALID_SIGNATURE
47
43
  eval(signature, binding)
data/license.md ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright, 2022-2025, by Samuel Williams.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/readme.md ADDED
@@ -0,0 +1,71 @@
1
+ # Types
2
+
3
+ Provides abstract types for the Ruby programming language which can used for documentation and evaluation purposes.
4
+
5
+ [![Development Status](https://github.com/ioquatix/types/workflows/Test/badge.svg)](https://github.com/ioquatix/types/actions?workflow=Test)
6
+
7
+ ## Motivation
8
+
9
+ I've been working on documentation tools and Ruby has several implementations for adding type information. However, I've feel like we've over-complicated the language of types and I'd like something simpler and more compatible with the Ruby language.
10
+
11
+ The original design started in [bake](https://github.com/ioquatix/bake) which uses `@parameter name [Signature] description` comments to document the types of parameters. The command-line interface of bake uses the type signature to coerce string arguments to the desired type. This has been a useful strategy to reduce code duplication and to make the code more readable.
12
+
13
+ Subsequently, I started using these type signatures in [decode](https://github.com/ioquatix/decode) which uses similar `@parameter` comments. This information is fed into [utopia-project](https://github.com/socketry/utopia-project) which can present this information as part of the generated documentation.
14
+
15
+ The expressions possible with this gem are a subset of all possible expressions in Ruby's type system. This is by design. At some point in the future, it is likely we will automate conversion of type signatures to the RBS compatible type signature files. This will allow us to use the same type signatures in the documentation and in the code.
16
+
17
+ ## Installation
18
+
19
+ ``` shell
20
+ bundle add types
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ Parsing type signatures can be done using {ruby Types.parse} which returns a object that represents the given type, e.g.
26
+
27
+ ``` ruby
28
+ string_type = Types.parse("String")
29
+ string_type # => Types::String
30
+
31
+ array_type = Types.parse("Array(String)")
32
+ array_type.class # => Types::Array
33
+
34
+ hash_type = Types.parse("Hash(String, Integer)")
35
+ hash_type.key_type # => Types::String
36
+ hash_type.value_type # => Types::Integer
37
+ ```
38
+
39
+ You can generate a string representation of a type too:
40
+
41
+ ``` ruby
42
+ # A lambda that takes an Integer as an argument and returns an Integer:
43
+ lambda_type = Types.parse("Lambda(Integer, returns: Integer)")
44
+ lambda_type.to_s # => "Lambda(Integer, returns: Integer)"
45
+ ```
46
+
47
+ ### String Parsing
48
+
49
+ In addition, you can coerce strings into strongly typed values:
50
+
51
+ ``` ruby
52
+ array_type = Types.parse("Array(String)")
53
+ array_type.parse("'foo', 'bar'") # => ["foo", "bar"]
54
+ ```
55
+
56
+ This can be useful for argument parsing.
57
+
58
+ ### Documentation
59
+
60
+ This gem is designed to be integrated into documentation tools. It provides a way to document the types of parameters and return values of a function. This information is stored in `@parameter` and `@returns` comments.
61
+
62
+ ``` ruby
63
+ # Double the value of a number.
64
+ # @parameter value [Numeric] The value to double.
65
+ # @returns [Numeric] The doubled value.
66
+ def double(value)
67
+ return value * 2
68
+ end
69
+ ```
70
+
71
+ The motivation for discrete parameter and return types is to make integration with documentation tools easier. Specifically, language servers can use this information to provide context sensitive type information and documentation which is hard to do with existing formats like `rdoc`.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,49 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain:
11
10
  - |
12
11
  -----BEGIN CERTIFICATE-----
13
- MIIEhDCCAuygAwIBAgIBATANBgkqhkiG9w0BAQsFADA3MTUwMwYDVQQDDCxzYW11
14
- ZWwud2lsbGlhbXMvREM9b3Jpb250cmFuc2Zlci9EQz1jby9EQz1uejAeFw0yMTA4
15
- MTYwNjMzNDRaFw0yMjA4MTYwNjMzNDRaMDcxNTAzBgNVBAMMLHNhbXVlbC53aWxs
16
- aWFtcy9EQz1vcmlvbnRyYW5zZmVyL0RDPWNvL0RDPW56MIIBojANBgkqhkiG9w0B
17
- AQEFAAOCAY8AMIIBigKCAYEAyXLSS/cw+fXJ5e7hi+U/TeChPWeYdwJojDsFY1xr
18
- xvtqbTTL8gbLHz5LW3QD2nfwCv3qTlw0qI3Ie7a9VMJMbSvgVEGEfQirqIgJXWMj
19
- eNMDgKsMJtC7u/43abRKx7TCURW3iWyR19NRngsJJmaR51yGGGm2Kfsr+JtKKLtL
20
- L188Wm3f13KAx7QJU8qyuBnj1/gWem076hzdA7xi1DbrZrch9GCRz62xymJlrJHn
21
- 9iZEZ7AxrS7vokhMlzSr/XMUihx/8aFKtk+tMLClqxZSmBWIErWdicCGTULXCBNb
22
- E/mljo4zEVKhlTWpJklMIhr55ZRrSarKFuW7en0+tpJrfsYiAmXMJNi4XAYJH7uL
23
- rgJuJwSaa/dMz+VmUoo7VKtSfCoOI+6v5/z0sK3oT6sG6ZwyI47DBq2XqNC6tnAj
24
- w+XmCywiTQrFzMMAvcA7rPI4F0nU1rZId51rOvvfxaONp+wgTi4P8owZLw0/j0m4
25
- 8C20DYi6EYx4AHDXiLpElWh3AgMBAAGjgZowgZcwCQYDVR0TBAIwADALBgNVHQ8E
26
- BAMCBLAwHQYDVR0OBBYEFB6ZaeWKxQjGTI+pmz7cKRmMIywwMC4GA1UdEQQnMCWB
27
- I3NhbXVlbC53aWxsaWFtc0BvcmlvbnRyYW5zZmVyLmNvLm56MC4GA1UdEgQnMC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KkrKjqhYCdmMBqCws
34
+ JkxfQWC+jBVeG9ZtPhQgZpfhvh+6hMhraUYRQ6XGyvBqEUe+yo6DKIT3MtGE2+CP
35
+ eX9i9ZWBydWb8/rvmwmX2kkcBbX0hZS1rcR593hGc61JR6lvkGYQ2MYskBveyaxt
36
+ Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
37
+ voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
38
38
  -----END CERTIFICATE-----
39
- date: 2022-07-01 00:00:00.000000000 Z
39
+ date: 1980-01-02 00:00:00.000000000 Z
40
40
  dependencies: []
41
- description:
42
- email:
43
41
  executables: []
44
42
  extensions: []
45
43
  extra_rdoc_files: []
46
44
  files:
45
+ - agent.md
46
+ - context/usage.md
47
47
  - lib/types.rb
48
48
  - lib/types/any.rb
49
49
  - lib/types/array.rb
@@ -55,6 +55,7 @@ files:
55
55
  - lib/types/generic.rb
56
56
  - lib/types/hash.rb
57
57
  - lib/types/integer.rb
58
+ - lib/types/interface.rb
58
59
  - lib/types/lambda.rb
59
60
  - lib/types/method.rb
60
61
  - lib/types/nil.rb
@@ -63,12 +64,14 @@ files:
63
64
  - lib/types/symbol.rb
64
65
  - lib/types/tuple.rb
65
66
  - lib/types/version.rb
67
+ - license.md
68
+ - readme.md
66
69
  homepage: https://github.com/ioquatix/types
67
70
  licenses:
68
71
  - MIT
69
72
  metadata:
70
73
  funding_uri: https://github.com/sponsors/ioquatix/
71
- post_install_message:
74
+ source_code_uri: https://github.com/ioquatix/types.git
72
75
  rdoc_options: []
73
76
  require_paths:
74
77
  - lib
@@ -76,15 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
79
  requirements:
77
80
  - - ">="
78
81
  - !ruby/object:Gem::Version
79
- version: '0'
82
+ version: '3.2'
80
83
  required_rubygems_version: !ruby/object:Gem::Requirement
81
84
  requirements:
82
85
  - - ">="
83
86
  - !ruby/object:Gem::Version
84
87
  version: '0'
85
88
  requirements: []
86
- rubygems_version: 3.3.7
87
- signing_key:
89
+ rubygems_version: 3.6.7
88
90
  specification_version: 4
89
91
  summary: A simple human-readable and Ruby-parsable type library.
90
92
  test_files: []
metadata.gz.sig CHANGED
Binary file