action_hooks 0.2.2 → 0.2.4
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 +4 -4
- data/CHANGELOG.md +7 -2
- data/lib/action_hooks/version.rb +1 -1
- data/lib/action_hooks/webhook_request.rb +21 -0
- data/lib/action_hooks.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5ae576a9a4b0ffe5ca106108e6e0688f2577fe0e0d485c42f7ed2557f65a6a3
|
|
4
|
+
data.tar.gz: ef2551f9d67fa331f179385b5df804e75aecf265dc37b932603084f1a293609a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff78d8b752ec2238e322c33b7b8c8c5c71afd6050c1d97de57f8dce56cc90bc2f7490f3ab08ca49c06b39073daa34d8ed74a704acde5a0664c56eb44db819194
|
|
7
|
+
data.tar.gz: da0334b47b817d40bf7934d60978d331b8d18724f09d4c72e419c5629a2239ad60f64935459d76e1506c8aa8f3fbab0030f5f54df28fe875030730234eb50128
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
-
## [0.2.
|
|
3
|
+
## [0.2.4] - 2026-07-15
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Updated development and test dependencies, including security patches for actionpack (8.1.2.1), nokogiri (1.19.4), rack (3.2.6), and net-imap (0.6.4.1). No changes to the gem's runtime code.
|
|
6
|
+
|
|
7
|
+
## [0.2.3] - 2026-03-02
|
|
8
|
+
|
|
9
|
+
- Fixed `ActionHooks::WebhookRequest` being unavailable in host applications. Moved from `app/models/` to `lib/action_hooks/webhook_request.rb` with explicit require.
|
|
10
|
+
- Fixed `ActionHooks::WebhookController` being unavailable for inheritance in host applications. Moved from `app/controllers/` to `lib/action_hooks/webhook_controller.rb` with explicit require.
|
|
6
11
|
|
|
7
12
|
## [0.2.1] - 2026-03-02
|
|
8
13
|
|
data/lib/action_hooks/version.rb
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ActionHooks
|
|
4
|
+
class WebhookRequest < ActiveRecord::Base
|
|
5
|
+
self.table_name = "webhook_requests"
|
|
6
|
+
|
|
7
|
+
enum :state, {pending: 0, processed: 1, failed: 2}
|
|
8
|
+
|
|
9
|
+
validates :source, presence: true
|
|
10
|
+
validates :payload, presence: true
|
|
11
|
+
validates :state, presence: true
|
|
12
|
+
|
|
13
|
+
before_create :ensure_id
|
|
14
|
+
|
|
15
|
+
private
|
|
16
|
+
|
|
17
|
+
def ensure_id
|
|
18
|
+
self.id ||= SecureRandom.uuid
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/lib/action_hooks.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: action_hooks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexey Poimtsev
|
|
@@ -124,6 +124,7 @@ files:
|
|
|
124
124
|
- lib/action_hooks/version.rb
|
|
125
125
|
- lib/action_hooks/webhook_controller.rb
|
|
126
126
|
- lib/action_hooks/webhook_controller_behavior.rb
|
|
127
|
+
- lib/action_hooks/webhook_request.rb
|
|
127
128
|
- lib/generators/action_hooks/install/install_generator.rb
|
|
128
129
|
- lib/generators/action_hooks/install/templates/action_hooks.rb
|
|
129
130
|
- lib/generators/action_hooks/install/templates/create_webhook_requests.rb.erb
|
|
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
153
|
- !ruby/object:Gem::Version
|
|
153
154
|
version: '0'
|
|
154
155
|
requirements: []
|
|
155
|
-
rubygems_version: 4.0.
|
|
156
|
+
rubygems_version: 4.0.16
|
|
156
157
|
specification_version: 4
|
|
157
158
|
summary: A Ruby gem for handling incoming webhooks securely.
|
|
158
159
|
test_files: []
|