graphql-autotest 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/graphql-autotest.gemspec +1 -1
- data/lib/graphql/autotest/runner.rb +2 -4
- data/lib/graphql/autotest/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5dffb463786e64111d681e93f832e1061a5d96b77cd6ad279c57b932ec03c4b9
|
|
4
|
+
data.tar.gz: e34fa8eec570a6038a932cce3b781b5ab890294ede242042f4e504de96da14ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60dee2b6924332598c779512b8be2ab7a0544e72b62fdb0bdf8ed68c755da53915bb82c3dcaf0c9472b866d9c65fe71dfacd3a7a3b7f483e7f4c243c9f879a0b
|
|
7
|
+
data.tar.gz: 14dd677db863c65aca6d4c9625e16a7a78306169e0f8f8bc0e4c599c9e8da3e2b56d6c674c6a27b107199df20dcca90590eb77a65ab4175ff8d3236fd34c52aa
|
data/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## master (unreleased)
|
|
4
4
|
|
|
5
|
-
## 0.2.
|
|
5
|
+
## 0.2.1 (2020-04-13)
|
|
6
6
|
|
|
7
|
-
* `GraphQL::Autotest::Runner`
|
|
7
|
+
* [#10](https://github.com/bitjourney/graphql-autotest/pull/10): Make `logger` argument of `GraphQL::Autotest::Runner` optional.
|
|
8
|
+
|
|
9
|
+
## 0.2.0 (2020-04-10)
|
|
10
|
+
|
|
11
|
+
* [#8](https://github.com/bitjourney/graphql-autotest/pull/8): `GraphQL::Autotest::Runner` receives `logger` keyword argument.
|
|
8
12
|
|
|
9
13
|
## 0.1.2 (2020-03-18)
|
|
10
14
|
|
data/graphql-autotest.gemspec
CHANGED
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
16
16
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
17
|
-
|
|
17
|
+
spec.metadata["changelog_uri"] = "https://github.com/bitjourney/graphql-autotest/blob/master/CHANGELOG.md"
|
|
18
18
|
|
|
19
19
|
# Specify which files should be added to the gem when it is released.
|
|
20
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
@@ -9,7 +9,7 @@ module GraphQL
|
|
|
9
9
|
# @param arguments_fetcher [Proc] A proc receives a field and ancestors keyword argument, and it returns a Hash. The hash is passed to call the field.
|
|
10
10
|
# @param max_depth [Integer] Max query depth. It is recommended to specify to avoid too large query.
|
|
11
11
|
# @param skip_if [Proc] A proc receives a field and ancestors keyword argument, and it returns a boolean. If it returns ture, the field is skipped.
|
|
12
|
-
def initialize(schema:, context:, arguments_fetcher: ArgumentsFetcher::DEFAULT, max_depth: 10, skip_if: -> (_field, **) { false }, logger:)
|
|
12
|
+
def initialize(schema:, context:, arguments_fetcher: ArgumentsFetcher::DEFAULT, max_depth: 10, skip_if: -> (_field, **) { false }, logger: Logger.new(nil))
|
|
13
13
|
@schema = schema
|
|
14
14
|
@context = context
|
|
15
15
|
@arguments_fetcher = arguments_fetcher
|
|
@@ -30,9 +30,7 @@ module GraphQL
|
|
|
30
30
|
fields.each do |f|
|
|
31
31
|
q = f.to_query
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
logger.info "Running Query: #{f.name}"
|
|
35
|
-
end
|
|
33
|
+
logger.info "Running Query: #{f.name}"
|
|
36
34
|
|
|
37
35
|
result = if dry_run
|
|
38
36
|
{}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql-autotest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masataka Pocke Kuwabara
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|
|
@@ -55,6 +55,7 @@ licenses:
|
|
|
55
55
|
metadata:
|
|
56
56
|
homepage_uri: https://github.com/bitjourney/graphql-autotest
|
|
57
57
|
source_code_uri: https://github.com/bitjourney/graphql-autotest
|
|
58
|
+
changelog_uri: https://github.com/bitjourney/graphql-autotest/blob/master/CHANGELOG.md
|
|
58
59
|
post_install_message:
|
|
59
60
|
rdoc_options: []
|
|
60
61
|
require_paths:
|