gapic-common 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: 9f3b2d13b4fd64ffb7bf7d92dc1f76dda06c00d1f6a6f7347a8f196e19467dbd
4
- data.tar.gz: 40990944ff16cd31ff46cd708e8efd8d607b958cbbb7dea3ef2e207561a0a5ba
3
+ metadata.gz: 5a01e3ff5af64e4b311f48d6022fc719720ae2cc98f4d1596445d4739b6169ac
4
+ data.tar.gz: dda8e261142a8ee78281e4e972d4dc80fc638cdfb57e7e2ec748fb6db2e0b1bf
5
5
  SHA512:
6
- metadata.gz: 60db7a415a89b0fc864eeeef8e377e943c6f669c2ea4ce5c707af8617934f27ead164bf615e9d9dbe68706ce19a218196da2154b2a1c1132e81c2031d15525da
7
- data.tar.gz: 203ee7c2a5245287db6b0b043dc42dfee37d31e47294201540bd5c4a351a5db51131273c58e8ffdcfb196198019e97d26faa336f7cb3aae7698124ef6baaf962
6
+ metadata.gz: ebd7192024fa4bf307fc906c67cef4b598cb9054c8b8983a87bf5349db047e8c2d0c4de8d09e9bda3fca27b7128b24e4183936880e6b8c77f385419ab5f68f33
7
+ data.tar.gz: 4128a5daf1da71de8df0bf5cbb714d79322102fddcb99d091141aa7ac3da62c201093402ef3cd54a2fa6f981e95d80d76bdfd47f75fc7dc989fce7ed3de04686
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.2.1 / 2020-06-02
4
+
5
+ * Fix a crash when resetting a config field to nil when it has a parent but no default
6
+
3
7
  ### 0.2.0 / 2020-03-17
4
8
 
5
9
  * Support default call options in Gapic::Operation
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Gapic
16
16
  module Common
17
- VERSION = "0.2.0".freeze
17
+ VERSION = "0.2.1".freeze
18
18
  end
19
19
  end
@@ -88,7 +88,7 @@ module Gapic
88
88
  valid_value ||= begin
89
89
  # Allow nil if parent config has the getter method.
90
90
  parent = instance_variable_get :@parent_config if instance_variable_defined? :@parent_config
91
- parent&.respond_to? name
91
+ parent&.respond_to? name_setter
92
92
  end
93
93
  end
94
94
  raise ArgumentError unless valid_value
@@ -84,6 +84,7 @@ module Gapic
84
84
  # @param metadata_type [Class] The class type to be unpacked from the metadata. If not provided the class type
85
85
  # will be looked up. Optional.
86
86
  # @param options [Gapic::CallOptions] call options for this operation
87
+ #
87
88
  def initialize grpc_op, client, result_type: nil, metadata_type: nil, options: {}
88
89
  @grpc_op = grpc_op
89
90
  @client = client
@@ -229,7 +230,6 @@ module Gapic
229
230
  else
230
231
  @options.to_h
231
232
  end
232
-
233
233
  options = Gapic::CallOptions.new(**options)
234
234
  gax_op = @client.get_operation({ name: @grpc_op.name }, options)
235
235
  @grpc_op = gax_op.grpc_op
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gapic-common
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
  - Google API Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-17 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  - !ruby/object:Gem::Version
269
269
  version: '0'
270
270
  requirements: []
271
- rubygems_version: 3.1.2
271
+ rubygems_version: 3.0.3
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Common code for GAPIC-generated API clients