tapioca 0.11.0 → 0.11.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 +4 -4
- data/lib/tapioca/dsl/compilers/protobuf.rb +14 -2
- data/lib/tapioca/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa8f364e4169fb5f723942c3e96a7d4dc1790f59d64cb46cfc509ee55259f4cb
|
|
4
|
+
data.tar.gz: b49aa47178045a367967b8c0b0731270ea8bb008edd2815711cb4764ca6adda6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e21aaff68f12f20fcb844153b57bca75cf56765ab21ed1375a5b3c7d9610bc60c4e815b84522dbd27497699675ac27a7a4066e4032cb15b3d00355b5cc4b3d0
|
|
7
|
+
data.tar.gz: 87f26576c955e276801df3e8e00d3ed222374b430ea2012984127a10da0cc85ba0b166fa381bae6a627c5526d3af3079c63d22c3ef967a527df6b5502143c81e
|
|
@@ -145,7 +145,9 @@ module Tapioca
|
|
|
145
145
|
klass.create_method("initialize", parameters: [kwargs_parameter], return_type: "void")
|
|
146
146
|
end
|
|
147
147
|
else
|
|
148
|
-
|
|
148
|
+
add_error(<<~MSG.strip)
|
|
149
|
+
Unexpected descriptor class `#{descriptor.class.name}` for `#{constant}`
|
|
150
|
+
MSG
|
|
149
151
|
end
|
|
150
152
|
end
|
|
151
153
|
end
|
|
@@ -162,7 +164,17 @@ module Tapioca
|
|
|
162
164
|
T.cast(desc, Google::Protobuf::EnumDescriptor).enummodule
|
|
163
165
|
end
|
|
164
166
|
|
|
165
|
-
results =
|
|
167
|
+
results = if Google::Protobuf.const_defined?(:AbstractMessage)
|
|
168
|
+
abstract_message_const = ::Google::Protobuf.const_get(:AbstractMessage)
|
|
169
|
+
descendants_of(abstract_message_const) - [abstract_message_const]
|
|
170
|
+
else
|
|
171
|
+
T.cast(
|
|
172
|
+
ObjectSpace.each_object(marker).to_a,
|
|
173
|
+
T::Array[Module],
|
|
174
|
+
)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
results = results.concat(enum_modules)
|
|
166
178
|
results.any? ? results + [Google::Protobuf::RepeatedField, Google::Protobuf::Map] : []
|
|
167
179
|
end
|
|
168
180
|
end
|
data/lib/tapioca/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tapioca
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ufuk Kayserilioglu
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: exe
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2023-02-
|
|
14
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: bundler
|