dry-types-tuple 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6e6edbbb2c8dc709f36d3cfcdd63bab007411ad71106549f9a25986588d1d0af
4
+ data.tar.gz: 0fde381de860f1aa66dd3e35df16f611ea28cafbab83e45c75eae19b5452f0a4
5
+ SHA512:
6
+ metadata.gz: 11393c3bd16005e8fca81b0b9e6483a8708f2bd7274f4f01eb70c0761ff2480492efd65bc332963b6c5c4c25698c9d9533ba2030407778e7ecc83279afe3185f
7
+ data.tar.gz: 233646bf141f872a84a011090fd3802678b88439662ec78e536fa08ead8c637aa203b22022f3f7e400fe7dc19c44a0565da5d40fe29a1381cfd22811ab45b8e0
data/.rspec ADDED
@@ -0,0 +1,5 @@
1
+ --require rspec/instafail
2
+ --format RSpec::Instafail
3
+ --format progress
4
+ --color
5
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## 0.0.1 2023-01-26
2
+
3
+ First public release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at anton.estum@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in dry-types-tuple.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ group :test do
11
+ gem "simplecov", require: false, platforms: :ruby
12
+ gem "simplecov-cobertura", require: false, platforms: :ruby
13
+ gem "rspec"
14
+ gem "warning"
15
+ gem "rspec-instafail", require: false
16
+ end
17
+
18
+ group :tools do
19
+ gem "rubocop", "~> 1.40.0"
20
+ gem "byebug"
21
+ end
22
+
23
+ group :console do
24
+ gem "pry"
25
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Anton
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.
data/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # Dry::Types::Tuple
2
+
3
+ The [Dry::Types](https://dry-rb.org/gems/dry-types) implementation of `Tuple` type as an array of fixed ordered items of specific type. It is useful for coercing positional arguments.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add dry-types-tuple
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install dry-types-tuple
14
+
15
+ ## Usage
16
+
17
+ ### Match & coerce fixed-size list of positional args
18
+
19
+ ```ruby
20
+ args_tuple =
21
+ Dry::Types['strict.tuple'].of \
22
+ Dry::Types['params.symbol'], # the type for the 1st item only
23
+ Dry::Types['params.float'] # the type for the 2nd item only
24
+
25
+ args_tuple[['symbol', '0.001']]
26
+ # => [:symbol, 0.001]
27
+
28
+ args_tuple[['symbol', '0.001', '1']]
29
+ # => Dry::Types::MapError: "1" not fits to the fixed-size tuple
30
+ ```
31
+
32
+ ### Match & coerce variadic list of positional args
33
+
34
+ To match type of the rest of items just wrap a conclusive type into square brackets.
35
+
36
+ ```ruby
37
+ args_tuple =
38
+ Dry::Types['strict.tuple'].of \
39
+ Dry::Types['params.symbol'], # the type for the 1st item only
40
+ Dry::Types['params.float'], # the type for the 2nd item only
41
+ [ Dry::Types['params.integer'] ] # the type of the rest of items
42
+
43
+ args_tuple[['symbol', '0.001', '1', '2', '3']]
44
+ # => [:symbol, 0.001, 1, 2, 3]
45
+ ```
46
+
47
+ Note, that array should have only one item, if you want match several types, make a Sum type.
48
+
49
+ ```ruby
50
+ # BAD : will raise ArgumentError
51
+ Dry::Types['tuple'].of \
52
+ Dry::Types['symbol'],
53
+ [Dry::Types['float'], Dry::Types['integer']]
54
+
55
+ # GOOD
56
+ Dry::Types['tuple'].of \
57
+ Dry::Types['symbol'],
58
+ [Dry::Types['float'] | Dry::Types['integer']]
59
+ ```
60
+
61
+ ## Development
62
+
63
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
64
+
65
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
66
+
67
+ ## Contributing
68
+
69
+ Bug reports and pull requests are welcome on GitHub at https://github.com/estum/dry-types-tuple. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/estum/dry-types-tuple/blob/main/CODE_OF_CONDUCT.md).
70
+
71
+ ## License
72
+
73
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
74
+
75
+ ## Code of Conduct
76
+
77
+ Everyone interacting in the Dry::Types::Tuple project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/estum/dry-types-tuple/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ require "rspec/core/rake_task"
7
+
8
+ task :run_specs do
9
+ require "rspec/core"
10
+
11
+ RSpec::Core::Runner.run(["spec/dry"])
12
+ end
13
+
14
+ task default: :run_specs
15
+
16
+ require "yard"
17
+ require "yard/rake/yardoc_task"
18
+ YARD::Rake::YardocTask.new(:doc)
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "dry-types-tuple"
5
+ spec.version = '0.0.2'
6
+ spec.authors = ["Anton"]
7
+ spec.email = ["anton.estum@gmail.com"]
8
+
9
+ spec.summary = "Dry::Types::Tuple"
10
+ spec.description = "The Tuple type implementation for Dry::Types."
11
+ spec.homepage = "https://github.com/estum/dry-types-tuple"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = ">= 2.6.0"
14
+
15
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/estum/dry-types-tuple"
18
+ spec.metadata["changelog_uri"] = "https://github.com/estum/dry-types-tuple/blob/main/CHANGELOG.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(__dir__) do
23
+ `git ls-files -z`.split("\x0").reject do |f|
24
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
25
+ end
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_dependency "dry-types"
32
+
33
+ spec.add_development_dependency "bundler"
34
+ spec.add_development_dependency "rake"
35
+ spec.add_development_dependency "rspec"
36
+ spec.add_development_dependency "yard"
37
+ end
@@ -0,0 +1,229 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dry
4
+ module Types
5
+ # @example
6
+ # Types::ServiceArgs = Types.Tuple(
7
+ # Types::Params::Symbol, # --- positional types
8
+ # [Types::Params::Integer | Types::Coercible::String] # --- [type for the rest items]
9
+ # )
10
+ # Types::ServiceArgs[['thumb', '300', '300', 'sample']]
11
+ # # => [:thumb, 300, 300, "sample"]
12
+ class Tuple < Array
13
+ # Build a tuple type.
14
+ #
15
+ # @overload Tuple.build(*fixed_types, rest_type)
16
+ # @param [Array<Dry::Types::Type>] fixed_types
17
+ # @param [Array(Dry::Types::Type)] rest_type
18
+ # @see build_index
19
+ # @return [Dry::Types::Tuple]
20
+ def self.build(*types)
21
+ new(::Array, types_index: build_index(types))
22
+ end
23
+
24
+ # Prepares types index for the Tuple
25
+ # @param [Array<Dry::Types::Type>] types
26
+ # @see extract_rest
27
+ # @return [Dry::Core::Constants::Undefined, Dry::Types::Type]
28
+ def self.build_index(types)
29
+ rest_type = extract_rest(types)
30
+ types_index = ::Hash[types.size.times.zip(types)]
31
+ types_index.default = Undefined.default(rest_type, nil)
32
+ types_index
33
+ end
34
+
35
+ # Extracts and unwraps the rest type
36
+ # @param [Array<Dry::Types::Type>] types
37
+ # @return [Dry::Core::Constants::Undefined, Dry::Types::Type]
38
+ def self.extract_rest(types)
39
+ if !types[-1].is_a?(::Array)
40
+ return Undefined
41
+ end
42
+
43
+ if types[-1].size > 1
44
+ raise ArgumentError, "rest_type should be an Array with single element to apply to the rest of items"
45
+ end
46
+
47
+ types.pop[0]
48
+ end
49
+
50
+ def initialize(_primitive, types_index: EMPTY_HASH, meta: EMPTY_HASH)
51
+ super(_primitive, types_index: types_index, meta: meta)
52
+ end
53
+
54
+ # @see Tuple.build
55
+ # @return [Dry::Types::Tuple]
56
+ def of(*types)
57
+ with(types_index: self.class.build_index(types))
58
+ end
59
+
60
+ # @return [Hash]
61
+ #
62
+ # @api public
63
+ def types_index
64
+ options[:types_index]
65
+ end
66
+
67
+ # @return [Array<Type>]
68
+ #
69
+ # @api public
70
+ def fixed_types
71
+ options[:types_index].values
72
+ end
73
+
74
+ # @return [Type]
75
+ #
76
+ # @api public
77
+ def rest_type
78
+ options[:types_index].default
79
+ end
80
+
81
+ # @return [String]
82
+ #
83
+ # @api public
84
+ def name
85
+ "Tuple"
86
+ end
87
+
88
+ # @param [Array] tuple
89
+ #
90
+ # @return [Array]
91
+ #
92
+ # @api private
93
+ def call_unsafe(tuple)
94
+ try(tuple) { |failure|
95
+ raise MapError, failure.error.message
96
+ }.input
97
+ end
98
+
99
+ # @param [Array] tuple
100
+ #
101
+ # @return [Array]
102
+ #
103
+ # @api private
104
+ def call_safe(tuple)
105
+ try(tuple) { return yield }.input
106
+ end
107
+
108
+ # @param [Array] tuple
109
+ #
110
+ # @return [Result]
111
+ #
112
+ # @api public
113
+ def try(tuple)
114
+ result = coerce(tuple)
115
+ return result if result.success? || !block_given?
116
+
117
+ yield(result)
118
+ end
119
+
120
+ # Build a lax type
121
+ #
122
+ # @return [Lax]
123
+ #
124
+ # @api public
125
+ def lax
126
+ lax_types_index = types_index.transform_values(&:lax)
127
+ Lax.new(Tuple.new(primitive, **options, types_index: lax_types_index, meta: meta))
128
+ end
129
+
130
+ # @param meta [Boolean] Whether to dump the meta to the AST
131
+ #
132
+ # @return [Array] An AST representation
133
+ #
134
+ # @api public
135
+ def to_ast(meta: true)
136
+ structure = [*fixed_types.map { |type| type.to_ast(meta: true) }]
137
+ structure << [rest_type.to_ast(meta: true)] unless rest_type.nil?
138
+ structure << meta ? self.meta : EMPTY_HASH
139
+ [:tuple, structure]
140
+ end
141
+
142
+ # @return [Boolean]
143
+ #
144
+ # @api public
145
+ def constrained?
146
+ rest_type&.constrained? || options[:types_index].each_value.any?(&:constrained?)
147
+ end
148
+
149
+ private
150
+
151
+ # @api private
152
+ def coerce(input)
153
+ unless primitive?(input)
154
+ return failure(
155
+ input, CoercionError.new("#{input.inspect} must be an instance of #{primitive}")
156
+ )
157
+ end
158
+
159
+ output = []
160
+ failures = []
161
+
162
+ input.each_with_index do |value, index|
163
+ res_i = types_index[index]&.try(value)
164
+
165
+ if res_i.nil?
166
+ failures << CoercionError.new("#{value.inspect} not fits to the fixed-size tuple")
167
+ elsif res_i.failure?
168
+ failures << res_i.error
169
+ else
170
+ output << res_i.input
171
+ end
172
+ end
173
+
174
+ if failures.empty?
175
+ success(output)
176
+ else
177
+ failure(input, MultipleError.new(failures))
178
+ end
179
+ end
180
+ end
181
+
182
+ module BuilderMethods
183
+ # Build a tuple type.
184
+ #
185
+ # @see Dry::Types::Tuple#build
186
+ # @overload Tuple(*fixed_types, rest_type)
187
+ # @param [Array<Dry::Types::Type>] fixed_types
188
+ # @param [Array(Dry::Types::Type)] rest_type
189
+ # @return [Dry::Types::Tuple]
190
+ def Tuple(*types)
191
+ Tuple.build(*types)
192
+ end
193
+ end
194
+
195
+ # @api private
196
+ class Printer
197
+ MAPPING[Tuple] = :visit_tuple
198
+
199
+ def visit_tuple(tuple)
200
+ options = tuple.options.dup
201
+ size = tuple.fixed_types.size
202
+ size += 1 unless tuple.rest_type.nil?
203
+ types = options.delete(:types_index)
204
+
205
+ visit_options(options, tuple.meta) do |opts|
206
+ header = "Tuple<"
207
+ rest = visit(types.default) { |type| "*: #{type}" } if types.default
208
+
209
+ if size.zero?
210
+ yield "#{header}>#{opts}"
211
+ else
212
+ yield header.dup << (types.map { |pos, pos_type|
213
+ visit(pos_type) { |type| "0: #{type}" }
214
+ } << rest).compact.join(", ") << ">#{opts}"
215
+ end
216
+ end
217
+ end
218
+ end
219
+
220
+ register "nominal.tuple", Types::Tuple.build([self['any']])
221
+
222
+ type = self["nominal.tuple"].constrained(type: ::Array)
223
+
224
+ register "tuple", type
225
+ register "strict.tuple", type
226
+ register "coercible.tuple", self["nominal.tuple"].constructor(Kernel.method(:Array))
227
+ register "params.tuple", self["nominal.tuple"].constructor(Coercions::Params.method(:to_ary))
228
+ end
229
+ end
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dry-types-tuple
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Anton
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dry-types
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: The Tuple type implementation for Dry::Types.
84
+ email:
85
+ - anton.estum@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".rspec"
91
+ - ".rubocop.yml"
92
+ - CHANGELOG.md
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - dry-types-tuple.gemspec
99
+ - lib/dry/types/tuple.rb
100
+ homepage: https://github.com/estum/dry-types-tuple
101
+ licenses:
102
+ - MIT
103
+ metadata:
104
+ allowed_push_host: https://rubygems.org
105
+ homepage_uri: https://github.com/estum/dry-types-tuple
106
+ source_code_uri: https://github.com/estum/dry-types-tuple
107
+ changelog_uri: https://github.com/estum/dry-types-tuple/blob/main/CHANGELOG.md
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 2.6.0
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubygems_version: 3.3.7
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: Dry::Types::Tuple
127
+ test_files: []