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: d5b4ca95eb5c3d37230345f2eb437caa07cda0c73b1a71a586731039c119eae3
4
- data.tar.gz: ffe0445e8a72761a85e190ab72910e181b1eaec7bc4b4127365a9da312460c86
3
+ metadata.gz: fa9f21425f766448e2c070b8fabe81fe73ea30084bd7d6fbff0caf9908aef0d0
4
+ data.tar.gz: d0456c6050bd9f866c63f67162b0ef9c70d61c708665f327e1a23ccf3e7ef15e
5
5
  SHA512:
6
- metadata.gz: 50f7c10df070ad29e581cd0bfc06abe1a0392c0642452395b4f01e155766ad30a24406ad0078837bb49f1f30646a7858a0d9217322ed870b6af1d2e8b4b48ef9
7
- data.tar.gz: 1620a666d30dd1cf8eeb3e7f6e8a2b923c5781f2a7e8341a8283a4d7b041dfe567d8ea62688447d8f6170555ad590f39dc415e2ba7e76f0aad6d66e75d5ff79f
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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.22.1"
5
+ VERSION = "0.8.23"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
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.22.1
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-04 00:00:00.000000000 Z
11
+ date: 2025-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap