object_to_graphql 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: be92910317fbac7b9a4cc2446192168784143fb60684fd2c86efb34d6c1fd217
4
+ data.tar.gz: 706983349bf956f9c70c146c35e8f393d6699bab22abb2d0e4d7d5f28093acbc
5
+ SHA512:
6
+ metadata.gz: 799f904373b9dc87c1532d636ceede176c2e503a9c3b1d466ce3e7dfbbe6c037c3e5387d42cb022de10b5f41f18827bbd60d944552ef2cce121e1ed1162f5da5
7
+ data.tar.gz: 51e5da132b662409e6f1e311ba234a7f83959f0b2951ab23f126f510bfa2a6a21a145970e9793bc07763fb2682ed86b118f661c334691cf2291c570200fe495a
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,14 @@
1
+ # The behavior of RuboCop can be controlled via the .rubocop.yml
2
+ # configuration file. It makes it possible to enable/disable
3
+ # certain cops (checks) and to alter their behavior if they accept
4
+ # any parameters. The file can be placed either in your home
5
+ # directory or in some project directory.
6
+ #
7
+ # RuboCop will start looking for the configuration file in the directory
8
+ # where the inspected file is and continue its way up to the root directory.
9
+ #
10
+ # See https://docs.rubocop.org/rubocop/configuration
11
+ require: standard
12
+
13
+ inherit_gem:
14
+ standard: config/base.yml
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-12-30
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 meganemura@users.noreply.github.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,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in object_to_graphql.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ object_to_graphql (0.1.0)
5
+ activesupport
6
+ graphql
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (7.0.0)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ ast (2.4.2)
17
+ concurrent-ruby (1.1.9)
18
+ diff-lcs (1.4.4)
19
+ graphql (1.13.2)
20
+ i18n (1.8.11)
21
+ concurrent-ruby (~> 1.0)
22
+ minitest (5.15.0)
23
+ parallel (1.21.0)
24
+ parser (3.0.3.2)
25
+ ast (~> 2.4.1)
26
+ rainbow (3.0.0)
27
+ rake (13.0.3)
28
+ regexp_parser (2.2.0)
29
+ rexml (3.2.5)
30
+ rspec (3.10.0)
31
+ rspec-core (~> 3.10.0)
32
+ rspec-expectations (~> 3.10.0)
33
+ rspec-mocks (~> 3.10.0)
34
+ rspec-core (3.10.1)
35
+ rspec-support (~> 3.10.0)
36
+ rspec-expectations (3.10.1)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.10.0)
39
+ rspec-mocks (3.10.2)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.10.0)
42
+ rspec-support (3.10.2)
43
+ rubocop (1.14.0)
44
+ parallel (~> 1.10)
45
+ parser (>= 3.0.0.0)
46
+ rainbow (>= 2.2.2, < 4.0)
47
+ regexp_parser (>= 1.8, < 3.0)
48
+ rexml
49
+ rubocop-ast (>= 1.5.0, < 2.0)
50
+ ruby-progressbar (~> 1.7)
51
+ unicode-display_width (>= 1.4.0, < 3.0)
52
+ rubocop-ast (1.15.1)
53
+ parser (>= 3.0.1.1)
54
+ rubocop-performance (1.11.2)
55
+ rubocop (>= 1.7.0, < 2.0)
56
+ rubocop-ast (>= 0.4.0)
57
+ ruby-progressbar (1.11.0)
58
+ standard (1.1.1)
59
+ rubocop (= 1.14.0)
60
+ rubocop-performance (= 1.11.2)
61
+ tzinfo (2.0.4)
62
+ concurrent-ruby (~> 1.0)
63
+ unicode-display_width (2.0.0)
64
+
65
+ PLATFORMS
66
+ x86_64-darwin-19
67
+ x86_64-linux
68
+
69
+ DEPENDENCIES
70
+ object_to_graphql!
71
+ rake (~> 13.0)
72
+ rspec (~> 3.0)
73
+ standard
74
+
75
+ BUNDLED WITH
76
+ 2.2.27
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 meganemura
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,106 @@
1
+ # ObjectToGraphql
2
+
3
+ GraphQL Query generator from Ruby object structure.
4
+
5
+ ```ruby
6
+ gem 'object_to_graphql'
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ruby
12
+ object = {
13
+ user: {
14
+ name: "Alice",
15
+ email_address: "alice@example.com",
16
+ accounts: [
17
+ { name: "alice1" },
18
+ ],
19
+ }
20
+ }
21
+ ObjectToGraphql.generate(object)
22
+ # => {
23
+ # user {
24
+ # name
25
+ # emailAddress
26
+ # accounts {
27
+ # name
28
+ # }
29
+ # }
30
+ # }
31
+ ```
32
+
33
+ ### It works with arguments
34
+
35
+ ```ruby
36
+ object = {
37
+ user: {
38
+ name: "Alice",
39
+ email_address: "alice@example.com",
40
+ accounts: [
41
+ { name: "alice1" },
42
+ ],
43
+ }
44
+ }
45
+
46
+ arguments = [
47
+ # [[:path, :to, :the_field, :to_be_injected_argument], {name: argument_name, value: argument_value}]
48
+ [[:user], {name: "ID", value: "id-1"}]
49
+ [[:user, :name], {name: "separator", value: ","}],
50
+ [[:user, :accounts], {name: "order", value: "desc"}]
51
+ ]
52
+
53
+ ObjectToGraphql.generate(object, arguments)
54
+ # => {
55
+ # user(ID: "id-1") {
56
+ # name(separator: ",")
57
+ # emailAddress
58
+ # accounts(order: "desc") {
59
+ # name
60
+ # }
61
+ # }
62
+ # }
63
+ ```
64
+
65
+ ### It works with variables
66
+
67
+ ```ruby
68
+ object = {
69
+ user: {
70
+ name: "Alice",
71
+ email_address: "alice@example.com",
72
+ accounts: [
73
+ { name: "alice1" },
74
+ ],
75
+ }
76
+ }
77
+
78
+ arguments = [
79
+ [[:user], {name: "id", value: "$user_id"}],
80
+ ]
81
+ variables = [
82
+ {name: "$user_id", type: "ID!"}
83
+ ]
84
+
85
+ ObjectToGraphql.generate(object, arguments, variables)
86
+ # => query($user_id: ID!) {
87
+ # user(id: $user_id) {
88
+ # name
89
+ # emailAddress
90
+ # accounts {
91
+ # name
92
+ # }
93
+ # }
94
+ # }
95
+ ```
96
+ ## Contributing
97
+
98
+ Bug reports and pull requests are welcome on GitHub at https://github.com/meganemura/object_to_graphql. 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/[USERNAME]/object_to_graphql/blob/main/CODE_OF_CONDUCT.md).
99
+
100
+ ## License
101
+
102
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
103
+
104
+ ## Code of Conduct
105
+
106
+ Everyone interacting in the ObjectToGraphql project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/object_to_graphql/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
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
+ task default: :spec
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 "object_to_graphql"
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,22 @@
1
+ module ObjectToGraphql
2
+ module Nodes
3
+ class Document < GraphQL::Language::Nodes::Document; end
4
+
5
+ class OperationDefinition < GraphQL::Language::Nodes::OperationDefinition; end
6
+
7
+ class Field < GraphQL::Language::Nodes::Field
8
+ attr_reader :value
9
+
10
+ def initialize_node(attributes)
11
+ super
12
+ @value = attributes[:value]
13
+ end
14
+ end
15
+
16
+ class Argument < GraphQL::Language::Nodes::Argument; end
17
+ class VariableIdentifier < GraphQL::Language::Nodes::VariableIdentifier; end
18
+ class VariableDefinition < GraphQL::Language::Nodes::VariableDefinition; end
19
+ class NonNullType < GraphQL::Language::Nodes::NonNullType; end
20
+ class TypeName < GraphQL::Language::Nodes::TypeName; end
21
+ end
22
+ end
@@ -0,0 +1,96 @@
1
+ module ObjectToGraphql
2
+ class ObjectParser
3
+ def self.parse(object, arguments = [], variables = [])
4
+ new(object, arguments, variables).parse
5
+ end
6
+
7
+ attr_reader :object
8
+ attr_reader :original_arguments
9
+ attr_reader :original_variables
10
+
11
+ def initialize(object, arguments, variables)
12
+ @object = object
13
+ @original_arguments = arguments
14
+ @original_variables = variables
15
+ end
16
+
17
+ def parse
18
+ selections = extract_selections(object, [])
19
+ operation_type = variables.empty? ? nil : "query"
20
+ operation_definition = Nodes::OperationDefinition.new(name: nil,
21
+ selections: selections,
22
+ operation_type: operation_type,
23
+ variables: variables)
24
+
25
+ Nodes::Document.new(definitions: [operation_definition])
26
+ end
27
+
28
+ def extract_selections(object, path = [])
29
+ object.map do |key, value|
30
+ lower_camelized_key = key.to_s.camelize(:lower)
31
+ current_path = path + [key]
32
+
33
+ case value
34
+ when Hash
35
+ Nodes::Field.new(name: lower_camelized_key,
36
+ selections: extract_selections(value, current_path),
37
+ arguments: select_arguments_for(current_path))
38
+ when Array
39
+ Nodes::Field.new(name: lower_camelized_key,
40
+ selections: extract_selections(value.first, current_path),
41
+ arguments: select_arguments_for(current_path))
42
+ else
43
+ Nodes::Field.new(name: lower_camelized_key,
44
+ value: value,
45
+ arguments: select_arguments_for(current_path))
46
+ end
47
+ end
48
+ end
49
+
50
+ def select_arguments_for(path)
51
+ arguments.select { |(route, _)| route == path }.map(&:last)
52
+ end
53
+
54
+ def arguments
55
+ @arguments ||= original_arguments.map do |(route, argument)|
56
+ [
57
+ route,
58
+ Nodes::Argument.new(name: argument[:name],
59
+ value: argument_value(argument[:value]))
60
+ ]
61
+ end
62
+ end
63
+
64
+ def argument_value(str)
65
+ if str.start_with?("$")
66
+ Nodes::VariableIdentifier.new(name: str.delete_prefix("$"))
67
+ else
68
+ str
69
+ end
70
+ end
71
+
72
+ def variables
73
+ @variables ||= original_variables.map do |variable|
74
+ Nodes::VariableDefinition.new(name: variable_name(variable[:name]),
75
+ type: variable_type(variable[:type]))
76
+ end
77
+ end
78
+
79
+ def variable_name(str)
80
+ str.delete_prefix("$")
81
+ end
82
+
83
+ def variable_type(str)
84
+ not_null = str.end_with?("!")
85
+ name = str.delete_suffix("!")
86
+
87
+ type_name = ObjectToGraphql::Nodes::TypeName.new(name: name)
88
+
89
+ if not_null
90
+ ObjectToGraphql::Nodes::NonNullType.new(of_type: type_name)
91
+ else
92
+ type_name
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ObjectToGraphql
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ # See rails/rails#43851
4
+ require "active_support/isolated_execution_state"
5
+
6
+ require "active_support/core_ext/string"
7
+ require "active_support/core_ext/hash/keys"
8
+ require "graphql"
9
+
10
+ require_relative "object_to_graphql/object_parser"
11
+ require_relative "object_to_graphql/version"
12
+ require_relative "object_to_graphql/nodes"
13
+
14
+ module ObjectToGraphql
15
+ def self.generate(object, arguments = [], variables = [])
16
+ document = ObjectParser.parse(object, arguments, variables)
17
+ document.to_query_string.lstrip
18
+ end
19
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/object_to_graphql/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "object_to_graphql"
7
+ spec.version = ObjectToGraphql::VERSION
8
+ spec.authors = ["meganemura"]
9
+ spec.email = ["meganemura@users.noreply.github.com"]
10
+
11
+ spec.summary = "GraphQL Query generator from Ruby object structure"
12
+ spec.description = spec.summary
13
+ spec.homepage = "https://github.com/meganemura/object_to_graphql"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.4.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = spec.homepage
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ spec.add_dependency "activesupport"
34
+ spec.add_dependency "graphql"
35
+ spec.add_development_dependency "standard"
36
+
37
+ # For more information and examples about making a new gem, checkout our
38
+ # guide at: https://bundler.io/guides/creating_gem.html
39
+ end
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: object_to_graphql
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - meganemura
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-12-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
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: graphql
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
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: standard
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
+ description: GraphQL Query generator from Ruby object structure
56
+ email:
57
+ - meganemura@users.noreply.github.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".rspec"
63
+ - ".rubocop.yml"
64
+ - CHANGELOG.md
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - Gemfile.lock
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - bin/console
72
+ - bin/setup
73
+ - lib/object_to_graphql.rb
74
+ - lib/object_to_graphql/nodes.rb
75
+ - lib/object_to_graphql/object_parser.rb
76
+ - lib/object_to_graphql/version.rb
77
+ - object_to_graphql.gemspec
78
+ homepage: https://github.com/meganemura/object_to_graphql
79
+ licenses:
80
+ - MIT
81
+ metadata:
82
+ homepage_uri: https://github.com/meganemura/object_to_graphql
83
+ source_code_uri: https://github.com/meganemura/object_to_graphql
84
+ changelog_uri: https://github.com/meganemura/object_to_graphql
85
+ post_install_message:
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: 2.4.0
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubygems_version: 3.1.4
101
+ signing_key:
102
+ specification_version: 4
103
+ summary: GraphQL Query generator from Ruby object structure
104
+ test_files: []