app_bridge 2.1.1 → 3.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccd112ca0faa58fd2b4c5ea6d492261bedd2f1cf5cf0b8001dfba98743c0f195
4
- data.tar.gz: 2b9e76792c31f5d37540417646e56e671102763ff3cfd16fb3b469c95c108d56
3
+ metadata.gz: 548d0d0168bed8594e48722c789b678dd631a2457acde19242c4785d6f368eda
4
+ data.tar.gz: 5d16d50c1933bf853ef243367d9b12bb06340416acbb5f86ed609a99c23d6e3d
5
5
  SHA512:
6
- metadata.gz: 0b0dccb0493c26e0d14ea113a555401bf9d89af0e430888c47c6ab7e346816f14bf930ff3ca079ff69c9ba0fdb06b9890ae93fe0eaf4c33b6beb28e83cba51f9
7
- data.tar.gz: dd69b56ced1579523b9d3c32df985821a0af88aad37bb37d039a5694caf8db2270fdfd51ad534a377eab2fd9c866bf91807668d5aa4f3eae20696a57f98ac603
6
+ metadata.gz: 742f3fb10134c7f40788a9951356ba965ea4d317c7f29957b2603037870a862436e917847adb74517b06b15bc08ab26d1e18a645da6d7c3dcd1553870920571e
7
+ data.tar.gz: 5024c3424c029dfb13c20227c4462d4a2215ca1d2e58657dac54e5ca292899e041c3d16022859912a4bd3c37cb767c05df3b9d6cb55f792c993f77618a4a4755
data/Cargo.lock CHANGED
@@ -55,7 +55,7 @@ checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
55
55
 
56
56
  [[package]]
57
57
  name = "app_bridge"
58
- version = "2.1.1"
58
+ version = "3.0.0"
59
59
  dependencies = [
60
60
  "httpmock",
61
61
  "magnus",
@@ -2,7 +2,7 @@
2
2
  name = "app_bridge"
3
3
  # When updating the version, please also update the version in the
4
4
  # lib/app_bridge/version.rb file to keep them in sync.
5
- version = "2.1.1"
5
+ version = "3.0.0"
6
6
  edition = "2021"
7
7
  authors = ["Alexander Ross <ross@standout.se>"]
8
8
  publish = false
@@ -19,6 +19,8 @@ impl From<ErrorCode> for ExceptionClass {
19
19
  ErrorCode::InternalError => get_class("AppBridge::InternalError"),
20
20
  ErrorCode::MalformedResponse => get_class("AppBridge::MalformedResponseError"),
21
21
  ErrorCode::Other => get_class("AppBridge::OtherError"),
22
+ ErrorCode::CompleteWorkflow => get_class("AppBridge::CompleteWorkflowException"),
23
+ ErrorCode::CompleteParent => get_class("AppBridge::CompleteParentException"),
22
24
  }
23
25
  }
24
26
  }
@@ -28,6 +28,8 @@ fn init(ruby: &Ruby) -> Result<(), Error> {
28
28
  module.define_error("InternalError", error)?;
29
29
  module.define_error("MalformedResponseError", error)?;
30
30
  module.define_error("OtherError", error)?;
31
+ module.define_error("CompleteWorkflowException", error)?;
32
+ module.define_error("CompleteParentException", error)?;
31
33
 
32
34
  // Define the Connection class
33
35
  let connection_class = module.define_class("Connection", ruby.class_object())?;
@@ -1,4 +1,4 @@
1
- package standout:app@2.1.1;
1
+ package standout:app@3.0.0;
2
2
 
3
3
  interface types {
4
4
  // The trigger-store is a string that is used to store data between trigger
@@ -133,6 +133,12 @@ interface types {
133
133
 
134
134
  /// A catch-all for all other types of errors. Should include a descriptive message.
135
135
  other,
136
+
137
+ /// Complete the current workflow execution.
138
+ complete-workflow,
139
+
140
+ /// Complete the parent step execution.
141
+ complete-parent,
136
142
  }
137
143
  }
138
144
 
@@ -4,5 +4,5 @@
4
4
  # ext/app_bridge/Cargo.toml file to keep them in sync.
5
5
 
6
6
  module AppBridge
7
- VERSION = "2.1.1"
7
+ VERSION = "3.0.0"
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Ross
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-10-03 00:00:00.000000000 Z
10
+ date: 2025-10-29 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rb_sys