gapic-common 0.19.0 → 0.19.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
  SHA256:
3
- metadata.gz: 8f4c41c2fffb829cfadc7792a8e1e2a15162ae960ae810f216dd4cb677dc9098
4
- data.tar.gz: 3214f4236eb38446cf46b89d1957c659abbbb8265eecafe6275d8448dfdfabb8
3
+ metadata.gz: 9f42f8b965f312b70a2746fa345c8a546ecfe319c5189ed19654145b7206b66d
4
+ data.tar.gz: a97b42149a8fb5f6797cb608716b8b639bf1cd04d657e8fdf83ab455ae6ca147
5
5
  SHA512:
6
- metadata.gz: d18733e8a412ed7c366e14a253a62f460b1685503ee71bc435b35bd152263a48ace22f7d3be1da50c39da7b67bdcd720e70054154cee029c68cb670a0b79e25c
7
- data.tar.gz: f409bbbe7036ab93a7952b5085b1bd11af4ee902afe36625fe2872bc142ced1c27f22b88d967ad4fb64d35d141af7cba678ab57bcae8f5709132db1e3e3b9c84
6
+ metadata.gz: '02587d4f734c88f473265b1ef1d8fce02086be8c270fc679846697860bb37e4bf43a8cf8ed2126df64641040f0123741b965162dab2e889f0223955372c94b52'
7
+ data.tar.gz: 55105ce9ce9b47684ce10fe0bdeba37ec0caeba7949767d5829225fb0993266a52e0975db50fcac8a8f82df8cd04309709be45699e748b6f74175adf0f19aaeb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.19.1 (2023-05-30)
4
+
5
+ #### Bug Fixes
6
+
7
+ * Fixed handling of optional fields in coerce ([#954](https://github.com/googleapis/gapic-generator-ruby/issues/954))
8
+
3
9
  ### 0.19.0 (2023-05-26)
4
10
 
5
11
  #### Features
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Gapic
16
16
  module Common
17
- VERSION = "0.19.0".freeze
17
+ VERSION = "0.19.1".freeze
18
18
  end
19
19
  end
@@ -31,6 +31,7 @@ module Gapic
31
31
  # @return [Object] An instance of the given message class.
32
32
  def self.coerce hash, to:
33
33
  return hash if hash.is_a? to
34
+ return nil if hash.nil?
34
35
 
35
36
  # Special case handling of certain types
36
37
  return time_to_timestamp hash if to == Google::Protobuf::Timestamp && hash.is_a?(Time)
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.19.0
4
+ version: 0.19.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: 2023-05-26 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday