hephaestus 0.8.22.1 → 0.8.24

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: 14efd87954794f025c31d486a19031af8927a7a4ca25532f03053e837c1ac773
4
+ data.tar.gz: '095f30a965faafdaa84d8dc9d967832416ea46fe57d429098ec15225a0ede6d7'
5
5
  SHA512:
6
- metadata.gz: 50f7c10df070ad29e581cd0bfc06abe1a0392c0642452395b4f01e155766ad30a24406ad0078837bb49f1f30646a7858a0d9217322ed870b6af1d2e8b4b48ef9
7
- data.tar.gz: 1620a666d30dd1cf8eeb3e7f6e8a2b923c5781f2a7e8341a8283a4d7b041dfe567d8ea62688447d8f6170555ad590f39dc415e2ba7e76f0aad6d66e75d5ff79f
6
+ metadata.gz: e2c67101412c33b036f32a0665941f8a98b213df4deda6aa3a501da398e78692d7236e3a1905571626bd1e92c080f8ebd072166cad79dd8e0fc97e65e6c4a557
7
+ data.tar.gz: 8dfe7ecff452e6122ff69a5a1eb32343e3f57f51c587bf53ead848b176701b06304accc49b5da7d4b2dd444b4a352c973bc9451bfb602c659fd44605b27f7be6
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
 
@@ -86,7 +86,7 @@ Rails.application.configure do
86
86
  # Skip DNS rebinding protection for the default health check endpoint.
87
87
  config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
88
88
 
89
- config.after_initialize do
90
- Rails.logger.broadcast_to(SlackWebhookLogger.logger)
91
- end
89
+ # config.after_initialize do
90
+ # Rails.logger.broadcast_to(SlackWebhookLogger.logger)
91
+ # end
92
92
  end
@@ -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.24"
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.24
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-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap