protip 0.37.1 → 0.37.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protip/decorator.rb +1 -1
- data/lib/protip/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 236eb63af48bf81e28875f5dcdef16158ba69db7785436f47013481bab29fd51
|
4
|
+
data.tar.gz: 948cede4acce33d7da2e13af36da7f51d35cd073327ca6d666759004afd15140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 833843e0287ad841903526db31eb40daef4dfaa389b23ab7dd34643bdc508c5696ee2f58f8a2a51697558008f1205e0a0180361129a090f6adf34d7d54a14787
|
7
|
+
data.tar.gz: b799bb1e32e81541ffe1a90e3a64721df338ee5fe8e315bfbab83486e4e1212866705af804bfd55308d0f39a9e11d07e54fd0613c9de1dc933e34bbb82463196
|
data/lib/protip/decorator.rb
CHANGED
@@ -243,7 +243,7 @@ module Protip
|
|
243
243
|
def to_protobuf_value(field, value)
|
244
244
|
if field.type == :message
|
245
245
|
if nil == value
|
246
|
-
|
246
|
+
field&.default || field&.subtype&.msgclass&.new
|
247
247
|
# This check must happen before the nested_resources check to
|
248
248
|
# ensure nested messages are set properly
|
249
249
|
elsif value.is_a?(field.subtype.msgclass)
|
data/lib/protip/version.rb
CHANGED