hephaestus 0.8.22.1 → 0.8.23
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa9f21425f766448e2c070b8fabe81fe73ea30084bd7d6fbff0caf9908aef0d0
|
4
|
+
data.tar.gz: d0456c6050bd9f866c63f67162b0ef9c70d61c708665f327e1a23ccf3e7ef15e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f1bdfd55bd31163ae15f8a440705f54feed8b2758ee9d7b6495f46ac58d426eb8cc42286d8ae217a04847ad0c078401b623c9f976a4b9958b00a286ba62bb4e
|
7
|
+
data.tar.gz: ec00c5dc4d4fa067a984f7498ef2fbaea03b3ecead3266edfbeb4b2c5f42f224c0db703aacfa716aa5b3fc9b1d8d16f09d5ad6441ca87294d4d2fcc22f61aeb3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v0.8.23] - 15-07-2025
|
2
|
+
## What's Changed
|
3
|
+
* Send trigger event service by @balevine in https://github.com/yettoapp/hephaestus/pull/135
|
4
|
+
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.22.1...v0.8.23
|
1
7
|
# [v0.8.22.1] - 04-07-2025
|
2
8
|
## What's Changed
|
3
9
|
* Revert bad lint by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/133
|
@@ -89,6 +89,11 @@ module Hephaestus
|
|
89
89
|
yetto_client.with_headers({ "Authorization" => "Bearer #{encoded_jwt}" }).get("#{YETTO_API_VERSION_URL}/plug/installations#{to_filter_query(filter)}")
|
90
90
|
end
|
91
91
|
|
92
|
+
def send_trigger_event(plug_installation_id, integration_record, integration_event, payload: {})
|
93
|
+
trigger_url = "#{YETTO_API_VERSION_URL}/plug/installations/#{plug_installation_id}/triggers/#{integration_record}/#{integration_event}"
|
94
|
+
yetto_client.with_headers({ "Authorization" => "Bearer #{encoded_jwt}" }).post(trigger_url, json: payload)
|
95
|
+
end
|
96
|
+
|
92
97
|
private def to_filter_query(hash)
|
93
98
|
return "" if hash.nil?
|
94
99
|
|
@@ -190,6 +190,18 @@ module Hephaestus
|
|
190
190
|
body: response.to_json,
|
191
191
|
)
|
192
192
|
end
|
193
|
+
|
194
|
+
def stub_send_trigger_event(plug_installation_id, integration_record, integration_event, payload: {}, response: {}, status: 200)
|
195
|
+
stub_request(:post, "#{Hephaestus::YettoService::YETTO_API_VERSION_URL}/plug/installations/#{plug_installation_id}/triggers/#{integration_record}/#{integration_event}")
|
196
|
+
.with(
|
197
|
+
body: payload,
|
198
|
+
)
|
199
|
+
.to_return(
|
200
|
+
status: status,
|
201
|
+
headers: { content_type: "application/json; charset=utf-8" },
|
202
|
+
body: response.to_json,
|
203
|
+
)
|
204
|
+
end
|
193
205
|
end
|
194
206
|
end
|
195
207
|
end
|
data/lib/hephaestus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hephaestus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|