graphql-schema_comparator 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bd04f7cdf16f7bc67fb74e219478457b180e022
4
- data.tar.gz: eb021f9745da0a4fed5fb2cedfb5a848ca1685b0
3
+ metadata.gz: 0706d1728e914ffaf9626d34a88bef2865938415
4
+ data.tar.gz: 1e8c4c1fdd0de7a0fa5458ab0f7505c85bfa4335
5
5
  SHA512:
6
- metadata.gz: 7a6d826fd10f0bb42eebcc9546c77d40b32242d5c6888181e5dab77b7c1f9d4ce8d4be192ef750209d98d7230ee81aa0121645f6c1482b6fc1d80e9d5287f02e
7
- data.tar.gz: f43508482f55b5b88b1627b5b9d12ce6800512a2386cb66785348f01951d25384d1142d62370dc7d339530d0593998200005ced1a4ae01402a24940676bbc62d
6
+ metadata.gz: 82a98d283e5a9efcb12205be3654936614b858a3813f93134343c32672d5691abac3411875cd18b6ef0f841e91a35fa620ceddc4a2500f51be1af0861c9d82d5
7
+ data.tar.gz: c78a997c5280e781ad000e1434d85ba783756b1554423572cf7cbb4476f6d776ab7df4e5781183e603ccd242c770bcca1320e1179b88db2fee27f106efc4cf8a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.1 (Feb 15th 2018)
4
+
5
+ ## Bug Fix
6
+
7
+ - Return a better message when adding a default value, if this one was nil before.
8
+
3
9
  ## 0.5.0 (Dec 2 2017)
4
10
 
5
11
  ## New Features
@@ -346,8 +346,12 @@ module GraphQL
346
346
  end
347
347
 
348
348
  def message
349
- "Default value for argument `#{new_argument.name}` on field `#{type.name}.#{field.name}` changed"\
350
- " from `#{old_argument.default_value}` to `#{new_argument.default_value}`"
349
+ if old_argument.default_value.nil?
350
+ "Default value `#{new_argument.default_value}` was added to argument `#{new_argument.name}` on field `#{type.name}.#{field.name}`"
351
+ else
352
+ "Default value for argument `#{new_argument.name}` on field `#{type.name}.#{field.name}` changed"\
353
+ " from `#{old_argument.default_value}` to `#{new_argument.default_value}`"
354
+ end
351
355
  end
352
356
  end
353
357
 
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module SchemaComparator
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-schema_comparator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-Andre Giroux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-02 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql