graphql-log_helper 0.2.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: 7a8712a7a77a52a36aad3adb6ff9d986421df14e4389961ee436bf3d5b3759a8
4
+ data.tar.gz: 18be5bbdfeb39bc55182ac239c4e4d48f75acaae55de4c522580a425d1fea1f6
5
+ SHA512:
6
+ metadata.gz: c959b24ba047e85280aa6ed93b77e61370822585f6aa5eb840a109e662ec9036ff3d173a2e0255ed18d0983d35a1161564d46ce5a2e399e11172c6fcc3773011
7
+ data.tar.gz: 63c0a583ff6f045afadf502822478bbe7588ff7db9142437d4c3b6ed936b3db33195c90d45b4488978535501122c71a031cc047832cd6a9559aa3968c9dc6c4b
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # dummy app
14
+ spec/dummy/db/*
15
+ spec/dummy/log/*
16
+ spec/dummy/tmp/*
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -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 daniel.deutsch@hover.to. 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,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in graphql-log_helper.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.7"
data/Gemfile.lock ADDED
@@ -0,0 +1,197 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ graphql-log_helper (0.1.0)
5
+ graphql
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.0.4.1)
11
+ actionpack (= 6.0.4.1)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailbox (6.0.4.1)
15
+ actionpack (= 6.0.4.1)
16
+ activejob (= 6.0.4.1)
17
+ activerecord (= 6.0.4.1)
18
+ activestorage (= 6.0.4.1)
19
+ activesupport (= 6.0.4.1)
20
+ mail (>= 2.7.1)
21
+ actionmailer (6.0.4.1)
22
+ actionpack (= 6.0.4.1)
23
+ actionview (= 6.0.4.1)
24
+ activejob (= 6.0.4.1)
25
+ mail (~> 2.5, >= 2.5.4)
26
+ rails-dom-testing (~> 2.0)
27
+ actionpack (6.0.4.1)
28
+ actionview (= 6.0.4.1)
29
+ activesupport (= 6.0.4.1)
30
+ rack (~> 2.0, >= 2.0.8)
31
+ rack-test (>= 0.6.3)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
+ actiontext (6.0.4.1)
35
+ actionpack (= 6.0.4.1)
36
+ activerecord (= 6.0.4.1)
37
+ activestorage (= 6.0.4.1)
38
+ activesupport (= 6.0.4.1)
39
+ nokogiri (>= 1.8.5)
40
+ actionview (6.0.4.1)
41
+ activesupport (= 6.0.4.1)
42
+ builder (~> 3.1)
43
+ erubi (~> 1.4)
44
+ rails-dom-testing (~> 2.0)
45
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
+ activejob (6.0.4.1)
47
+ activesupport (= 6.0.4.1)
48
+ globalid (>= 0.3.6)
49
+ activemodel (6.0.4.1)
50
+ activesupport (= 6.0.4.1)
51
+ activerecord (6.0.4.1)
52
+ activemodel (= 6.0.4.1)
53
+ activesupport (= 6.0.4.1)
54
+ activestorage (6.0.4.1)
55
+ actionpack (= 6.0.4.1)
56
+ activejob (= 6.0.4.1)
57
+ activerecord (= 6.0.4.1)
58
+ marcel (~> 1.0.0)
59
+ activesupport (6.0.4.1)
60
+ concurrent-ruby (~> 1.0, >= 1.0.2)
61
+ i18n (>= 0.7, < 2)
62
+ minitest (~> 5.1)
63
+ tzinfo (~> 1.1)
64
+ zeitwerk (~> 2.2, >= 2.2.2)
65
+ ast (2.4.2)
66
+ builder (3.2.4)
67
+ concurrent-ruby (1.1.9)
68
+ crass (1.0.6)
69
+ diff-lcs (1.4.4)
70
+ erubi (1.10.0)
71
+ globalid (0.5.2)
72
+ activesupport (>= 5.0)
73
+ graphql (1.12.19)
74
+ i18n (1.8.11)
75
+ concurrent-ruby (~> 1.0)
76
+ lograge (0.11.2)
77
+ actionpack (>= 4)
78
+ activesupport (>= 4)
79
+ railties (>= 4)
80
+ request_store (~> 1.0)
81
+ loofah (2.12.0)
82
+ crass (~> 1.0.2)
83
+ nokogiri (>= 1.5.9)
84
+ mail (2.7.1)
85
+ mini_mime (>= 0.1.1)
86
+ marcel (1.0.2)
87
+ method_source (1.0.0)
88
+ mini_mime (1.1.2)
89
+ minitest (5.14.4)
90
+ nio4r (2.5.8)
91
+ nokogiri (1.12.5-x86_64-darwin)
92
+ racc (~> 1.4)
93
+ parallel (1.21.0)
94
+ parser (3.0.2.0)
95
+ ast (~> 2.4.1)
96
+ racc (1.6.0)
97
+ rack (2.2.3)
98
+ rack-test (1.1.0)
99
+ rack (>= 1.0, < 3)
100
+ rails (6.0.4.1)
101
+ actioncable (= 6.0.4.1)
102
+ actionmailbox (= 6.0.4.1)
103
+ actionmailer (= 6.0.4.1)
104
+ actionpack (= 6.0.4.1)
105
+ actiontext (= 6.0.4.1)
106
+ actionview (= 6.0.4.1)
107
+ activejob (= 6.0.4.1)
108
+ activemodel (= 6.0.4.1)
109
+ activerecord (= 6.0.4.1)
110
+ activestorage (= 6.0.4.1)
111
+ activesupport (= 6.0.4.1)
112
+ bundler (>= 1.3.0)
113
+ railties (= 6.0.4.1)
114
+ sprockets-rails (>= 2.0.0)
115
+ rails-dom-testing (2.0.3)
116
+ activesupport (>= 4.2.0)
117
+ nokogiri (>= 1.6)
118
+ rails-html-sanitizer (1.4.2)
119
+ loofah (~> 2.3)
120
+ railties (6.0.4.1)
121
+ actionpack (= 6.0.4.1)
122
+ activesupport (= 6.0.4.1)
123
+ method_source
124
+ rake (>= 0.8.7)
125
+ thor (>= 0.20.3, < 2.0)
126
+ rainbow (3.0.0)
127
+ rake (13.0.6)
128
+ regexp_parser (2.1.1)
129
+ request_store (1.5.0)
130
+ rack (>= 1.4)
131
+ rexml (3.2.5)
132
+ rspec (3.10.0)
133
+ rspec-core (~> 3.10.0)
134
+ rspec-expectations (~> 3.10.0)
135
+ rspec-mocks (~> 3.10.0)
136
+ rspec-core (3.10.1)
137
+ rspec-support (~> 3.10.0)
138
+ rspec-expectations (3.10.1)
139
+ diff-lcs (>= 1.2.0, < 2.0)
140
+ rspec-support (~> 3.10.0)
141
+ rspec-mocks (3.10.2)
142
+ diff-lcs (>= 1.2.0, < 2.0)
143
+ rspec-support (~> 3.10.0)
144
+ rspec-rails (4.1.2)
145
+ actionpack (>= 4.2)
146
+ activesupport (>= 4.2)
147
+ railties (>= 4.2)
148
+ rspec-core (~> 3.10)
149
+ rspec-expectations (~> 3.10)
150
+ rspec-mocks (~> 3.10)
151
+ rspec-support (~> 3.10)
152
+ rspec-support (3.10.2)
153
+ rubocop (1.22.3)
154
+ parallel (~> 1.10)
155
+ parser (>= 3.0.0.0)
156
+ rainbow (>= 2.2.2, < 4.0)
157
+ regexp_parser (>= 1.8, < 3.0)
158
+ rexml
159
+ rubocop-ast (>= 1.12.0, < 2.0)
160
+ ruby-progressbar (~> 1.7)
161
+ unicode-display_width (>= 1.4.0, < 3.0)
162
+ rubocop-ast (1.13.0)
163
+ parser (>= 3.0.1.1)
164
+ ruby-progressbar (1.11.0)
165
+ sprockets (4.0.2)
166
+ concurrent-ruby (~> 1.0)
167
+ rack (> 1, < 3)
168
+ sprockets-rails (3.3.0)
169
+ actionpack (>= 5.2)
170
+ activesupport (>= 5.2)
171
+ sprockets (>= 3.0.0)
172
+ sqlite3 (1.4.2)
173
+ thor (1.1.0)
174
+ thread_safe (0.3.6)
175
+ tzinfo (1.2.9)
176
+ thread_safe (~> 0.1)
177
+ unicode-display_width (2.1.0)
178
+ websocket-driver (0.7.5)
179
+ websocket-extensions (>= 0.1.0)
180
+ websocket-extensions (0.1.5)
181
+ zeitwerk (2.5.1)
182
+
183
+ PLATFORMS
184
+ x86_64-darwin-20
185
+
186
+ DEPENDENCIES
187
+ graphql-log_helper!
188
+ lograge
189
+ rails
190
+ rake (~> 13.0)
191
+ rspec (~> 3.0)
192
+ rspec-rails
193
+ rubocop (~> 1.7)
194
+ sqlite3
195
+
196
+ BUNDLED WITH
197
+ 2.2.25
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Daniel Deutsch
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,65 @@
1
+ # Graphql::LogHelper
2
+
3
+ GraphQL is amazing. But one disadvantage is that with Ruby you lose some of the
4
+ logging that "just works" with REST. That is, all of the log messages have the
5
+ same controller (`API::GraphqlController`) and the params are lost or
6
+ unstructured.
7
+
8
+ This gem aims to make is easy to include this information in logs messages.
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'graphql-log_helper'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle install
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install graphql-log_helper
25
+
26
+ ## Getting Started
27
+
28
+ Add [lograge](https://github.com/roidrage/lograge) to your Gemfile and include
29
+ the following in `config/initializers/lograge.rb`—
30
+ ```ruby
31
+ Rails.application.configure do
32
+ config.lograge.enabled = true
33
+ config.lograge.formatter = Lograge::Formatters::Json.new
34
+ config.lograge.custom_options = lambda do |event|
35
+ if event.payload[:controller] == 'GraphqlController'
36
+ Graphql::LogHelper.log_details(event.payload[:params])
37
+ else
38
+ { params: event.payload[:params] }
39
+ end.compact
40
+ end
41
+ end
42
+ ```
43
+
44
+ ## Documentation
45
+
46
+ TODO
47
+
48
+ ## Contributing
49
+
50
+ Bug reports and pull requests are welcome on GitHub at
51
+ https://github.com/hoverinc/graphql-log_helper. This project is intended to be
52
+ a safe, welcoming space for collaboration, and contributors are expected to
53
+ adhere to the
54
+ [code of conduct](https://github.com/hoverinc/graphql-log_helper/blob/master/CODE_OF_CONDUCT.md).
55
+
56
+ ## License
57
+
58
+ The gem is available as open source under the terms of the
59
+ [MIT License](https://opensource.org/licenses/MIT).
60
+
61
+ ## Code of Conduct
62
+
63
+ Everyone interacting in the Graphql::LogHelper project's codebases, issue
64
+ trackers, chat rooms and mailing lists is expected to follow the
65
+ [code of conduct](https://github.com/hoverinc/graphql-log_helper/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/log_helper"
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,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/graphql/log_helper/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "graphql-log_helper"
7
+ spec.version = Graphql::LogHelper::VERSION
8
+ spec.authors = ["Daniel Deutsch"]
9
+ spec.email = ["daniel.deutsch@hover.to"]
10
+
11
+ spec.summary = "Easily add GraphQL params and resolvers to logs"
12
+ spec.homepage = "https://github.com/hoverinc/graphql-log_helper"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = ">= 2.4.0"
15
+
16
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
17
+
18
+ spec.metadata["homepage_uri"] = spec.homepage
19
+ spec.metadata["source_code_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 { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
+ end
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ # Uncomment to register a new dependency of your gem
31
+ spec.add_dependency "graphql"
32
+
33
+ spec.add_development_dependency "lograge"
34
+ spec.add_development_dependency "rails"
35
+ spec.add_development_dependency "rspec-rails"
36
+ spec.add_development_dependency "sqlite3"
37
+
38
+ # For more information and examples about making a new gem, checkout our
39
+ # guide at: https://bundler.io/guides/creating_gem.html
40
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Graphql
4
+ class LogHelper
5
+ VERSION = "0.2.0"
6
+ end
7
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "graphql"
4
+ require_relative "log_helper/version"
5
+
6
+ module Graphql
7
+ class LogHelper
8
+ class << self
9
+ def log_details(request_params)
10
+ selections = parse_query(request_params[:query])&.definitions&.first&.selections
11
+ return {} if selections.blank?
12
+
13
+ query_params =
14
+ if request_params[:variables].present?
15
+ query_params_given_variables(selections, request_params[:variables])
16
+ else
17
+ query_params_given_no_variables(selections)
18
+ end
19
+
20
+ {
21
+ params: to_deep_a(query_params),
22
+ resolvers: resolver_names(selections)
23
+ }
24
+ end
25
+
26
+ private
27
+
28
+ def query_params_given_variables(selections, variables)
29
+ selections.map do |selection|
30
+ [
31
+ selection.name,
32
+ to_deep_a(variables)
33
+ ]
34
+ end
35
+ end
36
+
37
+ def query_params_given_no_variables(selections)
38
+ selections.map { |selection| selection_to_array(selection) }
39
+ end
40
+
41
+ def resolver_names(selections)
42
+ selections.map(&:name)
43
+ end
44
+
45
+ def selection_to_array(selection)
46
+ [
47
+ selection.name,
48
+ if !selection.respond_to?(:value)
49
+ selection.arguments.map { |arg| selection_to_array(arg) }
50
+ elsif selection.value.respond_to?(:arguments)
51
+ selection.value.arguments.map { |arg| selection_to_array(arg) }
52
+ else
53
+ selection.value
54
+ end
55
+ ]
56
+ end
57
+
58
+ def parse_query(query)
59
+ return nil if query.blank?
60
+
61
+ GraphQL.parse(query)
62
+ rescue GraphQL::ParseError
63
+ nil
64
+ end
65
+
66
+ def to_deep_a(hash)
67
+ hash.map { |key, value| [key, value.is_a?(Hash) ? to_deep_a(value) : value] }
68
+ end
69
+ end
70
+ end
71
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: graphql-log_helper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Daniel Deutsch
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-11-12 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: '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: lograge
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: rails
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-rails
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: sqlite3
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:
84
+ email:
85
+ - daniel.deutsch@hover.to
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - CODE_OF_CONDUCT.md
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - graphql-log_helper.gemspec
101
+ - lib/graphql/log_helper.rb
102
+ - lib/graphql/log_helper/version.rb
103
+ homepage: https://github.com/hoverinc/graphql-log_helper
104
+ licenses:
105
+ - MIT
106
+ metadata:
107
+ homepage_uri: https://github.com/hoverinc/graphql-log_helper
108
+ source_code_uri: https://github.com/hoverinc/graphql-log_helper
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 2.4.0
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubygems_version: 3.2.31
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Easily add GraphQL params and resolvers to logs
128
+ test_files: []