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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02c7dc964968ddb2024c3120913c4276e03112ecdd2a5f563c10165e6afb92ed
4
- data.tar.gz: 3d0e03c20e2575ff8d68e0a553428ee11333e07371616facf74e22f2580707ac
3
+ metadata.gz: 5dffb463786e64111d681e93f832e1061a5d96b77cd6ad279c57b932ec03c4b9
4
+ data.tar.gz: e34fa8eec570a6038a932cce3b781b5ab890294ede242042f4e504de96da14ae
5
5
  SHA512:
6
- metadata.gz: f8281378f21b276b9db8e26f75a73db161841ea9feb6b2a63da46e2279fda5a1b5f227ba8e2f61a1285dfa8c2f87992330c30282c216c3775c031b156697c2d6
7
- data.tar.gz: 66663b66fbf9a00fa4e2595ca4c8aa0291124c63c1cd8260d6e4a419031c0276bcd978bec60cef7a160037bf53bff3037c65091f88d5601ee2b5530fca0939bb
6
+ metadata.gz: 60dee2b6924332598c779512b8be2ab7a0544e72b62fdb0bdf8ed68c755da53915bb82c3dcaf0c9472b866d9c65fe71dfacd3a7a3b7f483e7f4c243c9f879a0b
7
+ data.tar.gz: 14dd677db863c65aca6d4c9625e16a7a78306169e0f8f8bc0e4c599c9e8da3e2b56d6c674c6a27b107199df20dcca90590eb77a65ab4175ff8d3236fd34c52aa
@@ -2,9 +2,13 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
- ## 0.2.0
5
+ ## 0.2.1 (2020-04-13)
6
6
 
7
- * `GraphQL::Autotest::Runner` receives `logger` keyword argument.
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
 
@@ -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
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
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
- if logger && logger.respond_to?(:info)
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
  {}
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Autotest
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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-10 00:00:00.000000000 Z
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: