temporalio 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bridge/Cargo.lock +20 -20
- data/bridge/Cargo.toml +3 -3
- data/lib/temporalio/bridge.rb +1 -1
- data/lib/temporalio/version.rb +1 -1
- data/lib/thermite_patch.rb +10 -0
- data/sig/async.rbs +17 -0
- data/sig/protobuf.rbs +16 -0
- data/sig/protos/dependencies/gogoproto/gogo.rbs +914 -0
- data/sig/protos/google/protobuf/any.rbs +157 -0
- data/sig/protos/google/protobuf/descriptor.rbs +2825 -0
- data/sig/protos/google/protobuf/duration.rbs +114 -0
- data/sig/protos/google/protobuf/empty.rbs +36 -0
- data/sig/protos/google/protobuf/timestamp.rbs +145 -0
- data/sig/protos/google/protobuf/wrappers.rbs +358 -0
- data/sig/protos/temporal/api/batch/v1/message.rbs +300 -0
- data/sig/protos/temporal/api/command/v1/message.rbs +1399 -0
- data/sig/protos/temporal/api/common/v1/message.rbs +528 -0
- data/sig/protos/temporal/api/enums/v1/batch_operation.rbs +79 -0
- data/sig/protos/temporal/api/enums/v1/command_type.rbs +68 -0
- data/sig/protos/temporal/api/enums/v1/common.rbs +118 -0
- data/sig/protos/temporal/api/enums/v1/event_type.rbs +264 -0
- data/sig/protos/temporal/api/enums/v1/failed_cause.rbs +277 -0
- data/sig/protos/temporal/api/enums/v1/namespace.rbs +108 -0
- data/sig/protos/temporal/api/enums/v1/query.rbs +81 -0
- data/sig/protos/temporal/api/enums/v1/reset.rbs +44 -0
- data/sig/protos/temporal/api/enums/v1/schedule.rbs +72 -0
- data/sig/protos/temporal/api/enums/v1/task_queue.rbs +92 -0
- data/sig/protos/temporal/api/enums/v1/update.rbs +64 -0
- data/sig/protos/temporal/api/enums/v1/workflow.rbs +371 -0
- data/sig/protos/temporal/api/errordetails/v1/message.rbs +551 -0
- data/sig/protos/temporal/api/failure/v1/message.rbs +581 -0
- data/sig/protos/temporal/api/filter/v1/message.rbs +171 -0
- data/sig/protos/temporal/api/history/v1/message.rbs +4609 -0
- data/sig/protos/temporal/api/namespace/v1/message.rbs +410 -0
- data/sig/protos/temporal/api/operatorservice/v1/request_response.rbs +643 -0
- data/sig/protos/temporal/api/operatorservice/v1/service.rbs +17 -0
- data/sig/protos/temporal/api/protocol/v1/message.rbs +84 -0
- data/sig/protos/temporal/api/query/v1/message.rbs +182 -0
- data/sig/protos/temporal/api/replication/v1/message.rbs +148 -0
- data/sig/protos/temporal/api/schedule/v1/message.rbs +1488 -0
- data/sig/protos/temporal/api/sdk/v1/task_complete_metadata.rbs +110 -0
- data/sig/protos/temporal/api/taskqueue/v1/message.rbs +486 -0
- data/sig/protos/temporal/api/testservice/v1/request_response.rbs +249 -0
- data/sig/protos/temporal/api/testservice/v1/service.rbs +15 -0
- data/sig/protos/temporal/api/update/v1/message.rbs +489 -0
- data/sig/protos/temporal/api/version/v1/message.rbs +184 -0
- data/sig/protos/temporal/api/workflow/v1/message.rbs +824 -0
- data/sig/protos/temporal/api/workflowservice/v1/request_response.rbs +7250 -0
- data/sig/protos/temporal/api/workflowservice/v1/service.rbs +22 -0
- data/sig/protos/temporal/sdk/core/activity_result/activity_result.rbs +380 -0
- data/sig/protos/temporal/sdk/core/activity_task/activity_task.rbs +386 -0
- data/sig/protos/temporal/sdk/core/child_workflow/child_workflow.rbs +323 -0
- data/sig/protos/temporal/sdk/core/common/common.rbs +62 -0
- data/sig/protos/temporal/sdk/core/core_interface.rbs +101 -0
- data/sig/protos/temporal/sdk/core/external_data/external_data.rbs +119 -0
- data/sig/protos/temporal/sdk/core/workflow_activation/workflow_activation.rbs +1473 -0
- data/sig/protos/temporal/sdk/core/workflow_commands/workflow_commands.rbs +1784 -0
- data/sig/protos/temporal/sdk/core/workflow_completion/workflow_completion.rbs +180 -0
- data/sig/ruby.rbs +12 -0
- data/sig/temporalio/activity/context.rbs +29 -0
- data/sig/temporalio/activity/info.rbs +43 -0
- data/sig/temporalio/activity.rbs +19 -0
- data/sig/temporalio/bridge/connect_options.rbs +19 -0
- data/sig/temporalio/bridge/error.rbs +8 -0
- data/sig/temporalio/bridge/retry_config.rbs +21 -0
- data/sig/temporalio/bridge/tls_options.rbs +17 -0
- data/sig/temporalio/bridge.rbs +71 -0
- data/sig/temporalio/client/implementation.rbs +38 -0
- data/sig/temporalio/client/workflow_handle.rbs +41 -0
- data/sig/temporalio/client.rbs +35 -0
- data/sig/temporalio/connection/retry_config.rbs +37 -0
- data/sig/temporalio/connection/service.rbs +14 -0
- data/sig/temporalio/connection/test_service.rbs +13 -0
- data/sig/temporalio/connection/tls_options.rbs +43 -0
- data/sig/temporalio/connection/workflow_service.rbs +48 -0
- data/sig/temporalio/connection.rbs +30 -0
- data/sig/temporalio/data_converter.rbs +35 -0
- data/sig/temporalio/error/failure.rbs +121 -0
- data/sig/temporalio/error/workflow_failure.rbs +9 -0
- data/sig/temporalio/errors.rbs +36 -0
- data/sig/temporalio/failure_converter/base.rbs +12 -0
- data/sig/temporalio/failure_converter/basic.rbs +86 -0
- data/sig/temporalio/failure_converter.rbs +5 -0
- data/sig/temporalio/interceptor/activity_inbound.rbs +21 -0
- data/sig/temporalio/interceptor/activity_outbound.rbs +10 -0
- data/sig/temporalio/interceptor/chain.rbs +24 -0
- data/sig/temporalio/interceptor/client.rbs +148 -0
- data/sig/temporalio/interceptor.rbs +6 -0
- data/sig/temporalio/payload_codec/base.rbs +12 -0
- data/sig/temporalio/payload_converter/base.rbs +12 -0
- data/sig/temporalio/payload_converter/bytes.rbs +9 -0
- data/sig/temporalio/payload_converter/composite.rbs +19 -0
- data/sig/temporalio/payload_converter/encoding_base.rbs +14 -0
- data/sig/temporalio/payload_converter/json.rbs +9 -0
- data/sig/temporalio/payload_converter/nil.rbs +9 -0
- data/sig/temporalio/payload_converter.rbs +5 -0
- data/sig/temporalio/retry_policy.rbs +25 -0
- data/sig/temporalio/retry_state.rbs +20 -0
- data/sig/temporalio/runtime.rbs +12 -0
- data/sig/temporalio/testing/time_skipping_handle.rbs +15 -0
- data/sig/temporalio/testing/time_skipping_interceptor.rbs +13 -0
- data/sig/temporalio/testing/workflow_environment.rbs +22 -0
- data/sig/temporalio/testing.rbs +35 -0
- data/sig/temporalio/timeout_type.rbs +15 -0
- data/sig/temporalio/version.rbs +3 -0
- data/sig/temporalio/worker/activity_runner.rbs +35 -0
- data/sig/temporalio/worker/activity_worker.rbs +44 -0
- data/sig/temporalio/worker/reactor.rbs +22 -0
- data/sig/temporalio/worker/runner.rbs +21 -0
- data/sig/temporalio/worker/sync_worker.rbs +23 -0
- data/sig/temporalio/worker/thread_pool_executor.rbs +23 -0
- data/sig/temporalio/worker.rbs +46 -0
- data/sig/temporalio/workflow/async.rbs +9 -0
- data/sig/temporalio/workflow/execution_info.rbs +55 -0
- data/sig/temporalio/workflow/execution_status.rbs +21 -0
- data/sig/temporalio/workflow/future.rbs +40 -0
- data/sig/temporalio/workflow/id_reuse_policy.rbs +15 -0
- data/sig/temporalio/workflow/info.rbs +55 -0
- data/sig/temporalio/workflow/query_reject_condition.rbs +14 -0
- data/sig/temporalio.rbs +2 -0
- data/sig/thermite_patch.rbs +15 -0
- data/temporalio.gemspec +2 -1
- metadata +118 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b66a076a009147a66ed59c5220287ce676fc556f7ebcbf133cd326a36cdde98
|
4
|
+
data.tar.gz: 36f9c733d6d07e92e3afafe14a3d96141d5cfd3b539cb67232eb0e1df7674d82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a85294be411f8dc7e5aee0970541169b5b5abc4323c55183f630be5a9e5727759e7898bf245ff1e7148d91403ac7d83813a3980a19a61ea50a61da15487680
|
7
|
+
data.tar.gz: 8d339cca13baae36ed45ec58d5023f2809afb956edbca61144e8ecde0021b0ba439378f92862cd46c75a39d11ac7b41bdc4b32162687fcef45cc640a7e8a464a
|
data/bridge/Cargo.lock
CHANGED
@@ -179,26 +179,6 @@ dependencies = [
|
|
179
179
|
"generic-array",
|
180
180
|
]
|
181
181
|
|
182
|
-
[[package]]
|
183
|
-
name = "bridge"
|
184
|
-
version = "0.1.0"
|
185
|
-
dependencies = [
|
186
|
-
"anyhow",
|
187
|
-
"lazy_static",
|
188
|
-
"parking_lot",
|
189
|
-
"prost",
|
190
|
-
"rutie",
|
191
|
-
"temporal-client",
|
192
|
-
"temporal-sdk-core",
|
193
|
-
"temporal-sdk-core-api",
|
194
|
-
"temporal-sdk-core-protos",
|
195
|
-
"thiserror",
|
196
|
-
"tokio",
|
197
|
-
"tokio-util",
|
198
|
-
"tonic",
|
199
|
-
"url",
|
200
|
-
]
|
201
|
-
|
202
182
|
[[package]]
|
203
183
|
name = "bumpalo"
|
204
184
|
version = "3.11.1"
|
@@ -2243,6 +2223,26 @@ dependencies = [
|
|
2243
2223
|
"uuid",
|
2244
2224
|
]
|
2245
2225
|
|
2226
|
+
[[package]]
|
2227
|
+
name = "temporal-sdk-ruby-bridge"
|
2228
|
+
version = "0.1.1"
|
2229
|
+
dependencies = [
|
2230
|
+
"anyhow",
|
2231
|
+
"lazy_static",
|
2232
|
+
"parking_lot",
|
2233
|
+
"prost",
|
2234
|
+
"rutie",
|
2235
|
+
"temporal-client",
|
2236
|
+
"temporal-sdk-core",
|
2237
|
+
"temporal-sdk-core-api",
|
2238
|
+
"temporal-sdk-core-protos",
|
2239
|
+
"thiserror",
|
2240
|
+
"tokio",
|
2241
|
+
"tokio-util",
|
2242
|
+
"tonic",
|
2243
|
+
"url",
|
2244
|
+
]
|
2245
|
+
|
2246
2246
|
[[package]]
|
2247
2247
|
name = "termtree"
|
2248
2248
|
version = "0.4.0"
|
data/bridge/Cargo.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[package]
|
2
|
-
name = "bridge"
|
3
|
-
version = "0.1.
|
2
|
+
name = "temporal-sdk-ruby-bridge"
|
3
|
+
version = "0.1.1"
|
4
4
|
authors = ["Anthony D <anthony@temporal.io>"]
|
5
5
|
edition = "2021"
|
6
6
|
repository = "https://github.com/temporalio/sdk-ruby"
|
@@ -22,7 +22,7 @@ tonic = "0.8"
|
|
22
22
|
url = "2.2"
|
23
23
|
|
24
24
|
[lib]
|
25
|
-
name = "
|
25
|
+
name = "temporal_sdk_ruby_bridge"
|
26
26
|
crate-type = ["dylib"]
|
27
27
|
|
28
28
|
[package.metadata.thermite]
|
data/lib/temporalio/bridge.rb
CHANGED
data/lib/temporalio/version.rb
CHANGED
data/lib/thermite_patch.rb
CHANGED
@@ -19,5 +19,15 @@ module Thermite
|
|
19
19
|
target_base = ENV.fetch('CARGO_TARGET_DIR', File.join(rust_toplevel_dir, 'target'))
|
20
20
|
File.join(target_base, ENV.fetch('CARGO_BUILD_TARGET', ''), profile, *path_components)
|
21
21
|
end
|
22
|
+
|
23
|
+
def dynamic_linker_flags
|
24
|
+
@dynamic_linker_flags ||= begin
|
25
|
+
default_flags = RbConfig::CONFIG['DLDFLAGS'].strip
|
26
|
+
if target_os == 'darwin' && !default_flags.include?('-Wl,-undefined,dynamic_lookup')
|
27
|
+
default_flags += ' -Wl,-undefined,dynamic_lookup'
|
28
|
+
end
|
29
|
+
default_flags
|
30
|
+
end
|
31
|
+
end
|
22
32
|
end
|
23
33
|
end
|
data/sig/async.rbs
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
module Async
|
2
|
+
class Reactor
|
3
|
+
def initialize: -> void
|
4
|
+
|
5
|
+
def run: { (Async::Task) -> void } -> void
|
6
|
+
end
|
7
|
+
|
8
|
+
class Task
|
9
|
+
def async: { (Async::Task) -> void } -> Async::Task
|
10
|
+
def wait: -> void
|
11
|
+
def stop: -> void
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module Kernel
|
16
|
+
def Async: { -> void } -> void
|
17
|
+
end
|
data/sig/protobuf.rbs
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# The original RBS signatured were generated using the rbs_protobuf gem which is meant for the
|
2
|
+
# Ruby's native protobuf gem, but we are using google-protobuf instead. While most types are
|
3
|
+
# identical, there are a few exceptions which are corrected here.
|
4
|
+
|
5
|
+
# Source: google/protobuf/well_known_types
|
6
|
+
class Google::Protobuf::Timestamp
|
7
|
+
def to_time: () -> Time
|
8
|
+
end
|
9
|
+
|
10
|
+
class Google::Protobuf::Duration
|
11
|
+
def to_f: () -> Float
|
12
|
+
end
|
13
|
+
|
14
|
+
class Temporalio::Bridge::Api::WorkflowActivation::WorkflowActivationJob
|
15
|
+
def variant: -> Symbol
|
16
|
+
end
|