graphql-schema-directive-constraint 0.1.0

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: 11efd985bae4aaa2b6ed5ccbbb2e06deba9bd35aa2aebfd0636a2b8c6b966639
4
+ data.tar.gz: d93a7c6f0e5cc4d1992a6162370db8723474fc31a4124c5eda97b15b19427ddd
5
+ SHA512:
6
+ metadata.gz: fa124fb6fc16bb58763971f75ddc0635b7d593c6e2f69e15ffff05947dddacfef42b2465bb674d145ff3bed4d5b18c77e77e26f1a8bb86c0f27bfc9bf2342e13
7
+ data.tar.gz: e8c278c2b2bf236ee1883d8707db8709a65a6dd97e342c804f6bc077ef6ae3104d4deb722bf990275ee6393b16f3cb4dbe5f62806225113798e3c942370a4e4e
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,30 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ TargetRubyVersion: 2.7
4
+ SuggestExtensions: false
5
+
6
+ Style/StringLiterals:
7
+ Enabled: true
8
+ EnforcedStyle: double_quotes
9
+
10
+ Style/StringLiteralsInInterpolation:
11
+ Enabled: true
12
+ EnforcedStyle: double_quotes
13
+
14
+ Layout/LineLength:
15
+ Max: 140
16
+
17
+ Naming/VariableName:
18
+ Enabled: false
19
+
20
+ Style/TrailingCommaInHashLiteral:
21
+ Enabled: false
22
+
23
+ Style/TrailingCommaInArguments:
24
+ Enabled: false
25
+
26
+ Lint/ConstantDefinitionInBlock:
27
+ Enabled: false
28
+
29
+ Metrics/BlockLength:
30
+ Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-02-06
4
+
5
+ - Initial 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 yoshikawa@topotal.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,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in graphql-schema-directive-constraint.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ graphql-schema-directive-constraint (0.1.0)
5
+ graphql (~> 1.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ diff-lcs (1.5.0)
12
+ graphql (1.13.8)
13
+ parallel (1.21.0)
14
+ parser (3.1.0.0)
15
+ ast (~> 2.4.1)
16
+ rainbow (3.1.1)
17
+ rake (13.0.6)
18
+ regexp_parser (2.2.0)
19
+ rexml (3.2.5)
20
+ rspec (3.10.0)
21
+ rspec-core (~> 3.10.0)
22
+ rspec-expectations (~> 3.10.0)
23
+ rspec-mocks (~> 3.10.0)
24
+ rspec-core (3.10.2)
25
+ rspec-support (~> 3.10.0)
26
+ rspec-expectations (3.10.2)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.10.0)
29
+ rspec-mocks (3.10.3)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.10.0)
32
+ rspec-support (3.10.3)
33
+ rubocop (1.25.1)
34
+ parallel (~> 1.10)
35
+ parser (>= 3.1.0.0)
36
+ rainbow (>= 2.2.2, < 4.0)
37
+ regexp_parser (>= 1.8, < 3.0)
38
+ rexml
39
+ rubocop-ast (>= 1.15.1, < 2.0)
40
+ ruby-progressbar (~> 1.7)
41
+ unicode-display_width (>= 1.4.0, < 3.0)
42
+ rubocop-ast (1.15.1)
43
+ parser (>= 3.0.1.1)
44
+ ruby-progressbar (1.11.0)
45
+ unicode-display_width (2.1.0)
46
+
47
+ PLATFORMS
48
+ arm64-darwin-20
49
+
50
+ DEPENDENCIES
51
+ graphql-schema-directive-constraint!
52
+ rake (~> 13.0)
53
+ rspec (~> 3.0)
54
+ rubocop (~> 1.21)
55
+
56
+ BUNDLED WITH
57
+ 2.2.32
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Ryota Yoshikawa
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,130 @@
1
+ # GraphQL::Schema::Directive::Constraint
2
+
3
+ Allows using @constraint as a directive to validate input data for [graphql-ruby](https://graphql-ruby.org).
4
+
5
+ This gem is heavealy inspired by [confuser/graphql-constraint-directive](https://github.com/confuser/graphql-constraint-directive)
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'graphql-schema-directive-constraint'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ ```
18
+ $ bundle install
19
+ ```
20
+
21
+ Or install it yourself as:
22
+
23
+ ```
24
+ $ gem install graphql-schema-directive-constraint
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ Specify `GraphQL::Schema::Directive::Constraint` with parameter to `directive` arguments in `argument`
30
+
31
+ ```ruby
32
+ class LengthInput < GraphQL::Schema::InputObject
33
+ argument :arg, String,
34
+ directives: {
35
+ GraphQL::Schema::Directive::Constraint => {
36
+ minLength: 3,
37
+ maxLength: 5,
38
+ pattern: '[0-9a-zA-Z]*$',
39
+ },
40
+ }
41
+ end
42
+ ```
43
+
44
+ This `LengthInput` example will generates definition as below:
45
+
46
+ ```graphql
47
+ input LengthInput {
48
+ arg: String! @constraint(minLength: 3, maxLength: 5, pattern: "[0-9a-zA-Z]*$")
49
+ }
50
+ ```
51
+
52
+ This example generates [Validators](https://graphql-ruby.org/fields/validation.html) to validates input.
53
+ You can disable generate validator with `without_validator` argument like below:
54
+
55
+ ```ruby
56
+ field :without_validator, String, null: false do
57
+ argument :input, String, directives: {
58
+ GraphQL::Schema::Directive::Constraint => {
59
+ pattern: '^[a-z]+$',
60
+ without_validator: true,
61
+ }
62
+ }
63
+ end
64
+ ```
65
+
66
+ This example only generates `@constraint` directive on schema but it does not validates input variable.
67
+
68
+ ## Implementation status
69
+
70
+ - [ ] String
71
+ - [x] minLength
72
+ - [x] constraint
73
+ - [x] validator
74
+ - [x] maxLength
75
+ - [x] constraint
76
+ - [x] validator
77
+ - [ ] startsWith
78
+ - [x] constarints
79
+ - [ ] validator
80
+ - [ ] endsWith
81
+ - [x] constraint
82
+ - [ ] validator
83
+ - [ ] contains
84
+ - [x] constraint
85
+ - [ ] validator
86
+ - [ ] notContains
87
+ - [x] constraint
88
+ - [ ] validator
89
+ - [x] pattern
90
+ - [x] constraint
91
+ - [x] validator
92
+ - [ ] format
93
+ - [x] constraint
94
+ - [ ] validator
95
+ - [ ] Integer
96
+ - [ ] min
97
+ - [ ] constraint
98
+ - [ ] validator
99
+ - [ ] max
100
+ - [ ] constraint
101
+ - [ ] validator
102
+ - [ ] exclusiveMin
103
+ - [ ] constraint
104
+ - [ ] validator
105
+ - [ ] exclusiveMax
106
+ - [ ] constraint
107
+ - [ ] validator
108
+ - [ ] multipleOf
109
+ - [ ] constraint
110
+ - [ ] validator
111
+ - [ ] Errors
112
+ - [ ] ConstraintDirectiveError
113
+
114
+ ## Development
115
+
116
+ 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.
117
+
118
+ 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).
119
+
120
+ ## Contributing
121
+
122
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rrreeeyyy/graphql-schema-directive-constraint. 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/rrreeeyyy/graphql-schema-directive-constraint/blob/master/CODE_OF_CONDUCT.md).
123
+
124
+ ## License
125
+
126
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
127
+
128
+ ## Code of Conduct
129
+
130
+ Everyone interacting in the GraphQL::Schema::Directive::Constraint project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rrreeeyyy/graphql-schema-directive-constraint/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "graphql/schema/directive/constraint"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "graphql-schema-directive-constraint"
5
+ spec.version = "0.1.0"
6
+ spec.authors = ["Ryota Yoshikawa"]
7
+ spec.email = ["yoshikawa@topotal.com"]
8
+
9
+ spec.summary = "Allows using @constraint as a directive to validate input data."
10
+ spec.description = "Allows using @constraint as a directive to validate input data."
11
+ spec.homepage = "https://github.com/rrreeeyyy/graphql-schema-directive-constraint"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = ">= 2.7.0"
14
+
15
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/rrreeeyyy/graphql-schema-directive-constraint"
19
+ spec.metadata["changelog_uri"] = "https://github.com/rrreeeyyy/graphql-schema-directive-constraint/blob/master/CHANGELOG.md"
20
+
21
+ spec.metadata["rubygems_mfa_required"] = "true"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ spec.add_dependency "graphql", "~> 1.0"
36
+
37
+ spec.add_development_dependency "rake", "~> 13.0"
38
+ spec.add_development_dependency "rspec", "~> 3.0"
39
+ spec.add_development_dependency "rubocop", "~> 1.21"
40
+
41
+ # For more information and examples about making a new gem, checkout our
42
+ # guide at: https://bundler.io/guides/creating_gem.html
43
+ end
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "graphql"
4
+
5
+ module GraphQL
6
+ class Schema
7
+ class Directive < GraphQL::Schema::Member
8
+ # Allows using @constraint as a directive to validate input data
9
+ #
10
+ # This directive validates the input value.
11
+ #
12
+ # @example Generates @constraint directive and validates input length and patten
13
+ # class LengthInput < GraphQL::Schema::InputObject
14
+ # argument :arg, String,
15
+ # directives: {
16
+ # GraphQL::Schema::Directive::Constraint => {
17
+ # minLength: 3,
18
+ # maxLength: 5,
19
+ # pattern: '[0-9a-zA-Z]*$',
20
+ # },
21
+ # }
22
+ # end
23
+ class Constraint < GraphQL::Schema::Directive
24
+ description "Allows using @constraint as a directive to validate input data"
25
+
26
+ argument(:minLength, Integer, description: "Restrict to a minimum length", required: false)
27
+ argument(:maxLength, Integer, description: "Restrict to a maximum length", required: false)
28
+ argument(:startsWith, String, description: "Ensure value starts with", required: false)
29
+ argument(:endsWith, String, description: "Ensure value ends with", required: false)
30
+ argument(:contains, String, description: "Ensure value contains", required: false)
31
+ argument(:notContains, String, description: "Ensure value does not contain", required: false)
32
+ argument(:pattern, String, description: "Ensure value matches regex, e.g. alphanumeric", required: false)
33
+ argument(:format, String, description: "Ensure value is in a particular format", required: false)
34
+
35
+ argument(:without_validator, Boolean, description: "Use constraint directive without validator", required: false)
36
+
37
+ locations(
38
+ GraphQL::Schema::Directive::INPUT_FIELD_DEFINITION,
39
+ GraphQL::Schema::Directive::FIELD_DEFINITION,
40
+ GraphQL::Schema::Directive::ARGUMENT_DEFINITION,
41
+ )
42
+
43
+ def initialize(owner, **arguments)
44
+ arguments.each { |a| add_validator(owner, a) } unless arguments[:without_validator]
45
+ super
46
+ end
47
+
48
+ def add_validator(owner, argument)
49
+ case argument
50
+ in [:minLength, minLength]
51
+ owner.validates({ length: { minimum: minLength } })
52
+ in [:maxLength, maxLength]
53
+ owner.validates({ length: { maximum: maxLength } })
54
+ in [:pattern, pattern]
55
+ owner.validates({ format: { with: pattern } })
56
+ else
57
+ raise NotImplementedError("Given arguments are not implemented yet")
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
metadata ADDED
@@ -0,0 +1,117 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: graphql-schema-directive-constraint
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ryota Yoshikawa
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-02-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: graphql
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.21'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.21'
69
+ description: Allows using @constraint as a directive to validate input data.
70
+ email:
71
+ - yoshikawa@topotal.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".rspec"
77
+ - ".rubocop.yml"
78
+ - CHANGELOG.md
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - Gemfile.lock
82
+ - LICENSE.txt
83
+ - README.md
84
+ - Rakefile
85
+ - bin/console
86
+ - bin/setup
87
+ - graphql-schema-directive-constraint.gemspec
88
+ - lib/graphql/schema/directive/constraint.rb
89
+ homepage: https://github.com/rrreeeyyy/graphql-schema-directive-constraint
90
+ licenses:
91
+ - MIT
92
+ metadata:
93
+ allowed_push_host: https://rubygems.org
94
+ homepage_uri: https://github.com/rrreeeyyy/graphql-schema-directive-constraint
95
+ source_code_uri: https://github.com/rrreeeyyy/graphql-schema-directive-constraint
96
+ changelog_uri: https://github.com/rrreeeyyy/graphql-schema-directive-constraint/blob/master/CHANGELOG.md
97
+ rubygems_mfa_required: 'true'
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 2.7.0
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubygems_version: 3.2.32
114
+ signing_key:
115
+ specification_version: 4
116
+ summary: Allows using @constraint as a directive to validate input data.
117
+ test_files: []