turbine_rb 0.2.2 → 0.2.4
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/Gemfile.lock +1 -1
- data/lib/turbine_rb/client.rb +8 -2
- data/lib/turbine_rb/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: 44bf12d7ed3ba323b5eacb227bddd4403cdd8132c4e93ce3f8db2059817ac022
|
4
|
+
data.tar.gz: 4c9964768bbd66de40e8e1f6b003efe9371b52324fdd91824fbf5ec3d2680c9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25ca593599d7b870b73a8d74d070616179e0024bd521bba44cad9ec1fcb7ceee2b66ae0af86a9174b5e724dcedd9b23ba2d0c011f60cb972d6c3ca284e2787e1
|
7
|
+
data.tar.gz: 9b3ff3a650669175360e00a08b308cedf14136df1881c4f18247c1d5f600b7353392eb2b9c1758526f5a7e154717b55fe71ea79a9b4061e8ba156163adcd18a7
|
data/Gemfile.lock
CHANGED
data/lib/turbine_rb/client.rb
CHANGED
@@ -36,7 +36,7 @@ module TurbineRb
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def process_call(process:, pb_collection:)
|
39
|
-
return pb_collection if recording?
|
39
|
+
return pb_collection.records if recording?
|
40
40
|
|
41
41
|
process
|
42
42
|
.call(records: TurbineRb::Records.new(pb_collection.records))
|
@@ -117,10 +117,16 @@ module TurbineRb
|
|
117
117
|
app.process(records: self, process: process)
|
118
118
|
end
|
119
119
|
|
120
|
+
def records
|
121
|
+
return pb_records.to_a if pb_records.respond_to?(:to_a)
|
122
|
+
|
123
|
+
[pb_records].compact.flatten
|
124
|
+
end
|
125
|
+
|
120
126
|
def unwrap
|
121
127
|
TurbineCore::Collection.new( # convert back to TurbineCore::Collection
|
122
128
|
name: name,
|
123
|
-
records:
|
129
|
+
records: records,
|
124
130
|
stream: pb_stream
|
125
131
|
)
|
126
132
|
end
|
data/lib/turbine_rb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbine_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Meroxa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|