bullet_train-outgoing_webhooks 1.45.0 → 1.46.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 +4 -4
- data/config/routes.rb +15 -22
- data/lib/bullet_train/outgoing_webhooks/version.rb +1 -1
- data/lib/bullet_train/outgoing_webhooks.rb +3 -0
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ddadc16ef4aa775b65efacd0889bd3cf4e78d5184fe8fb8abe1598afe0b6b5d
|
|
4
|
+
data.tar.gz: 69a4f980c8276e16bfee61c42477ef9d519c2c698bbf0d3f3e3ab4e2a18427c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d1a8ab24e3b0c292e731dfa03b41793c15e827a31589c32aac62e21a90a244b2715351ab479230e06f17499e1e50b4493c31fd96805e30ad3457035cddb040a
|
|
7
|
+
data.tar.gz: ac0ae7cced2305357a6fbef4b28639fef8d8ed5d66475857ff223be277c1e3432fe91e3011e046512bc14b93c72a7f250a794209849cd4f08bf407028469ae9e
|
data/config/routes.rb
CHANGED
|
@@ -3,22 +3,19 @@ Rails.application.routes.draw do
|
|
|
3
3
|
|
|
4
4
|
namespace :account do
|
|
5
5
|
shallow do
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
end
|
|
6
|
+
model BulletTrain::OutgoingWebhooks.parent_class do
|
|
7
|
+
model "Webhooks::Outgoing::Endpoint" do
|
|
8
|
+
member do
|
|
9
|
+
post :activate
|
|
10
|
+
delete :deactivate
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
model "Webhooks::Outgoing::Delivery", only: %i[index show] do
|
|
14
|
+
model "Webhooks::Outgoing::DeliveryAttempt", only: %i[index show]
|
|
15
|
+
end
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
end
|
|
21
|
-
end
|
|
17
|
+
member do
|
|
18
|
+
post :rotate_secret
|
|
22
19
|
end
|
|
23
20
|
end
|
|
24
21
|
end
|
|
@@ -28,13 +25,9 @@ Rails.application.routes.draw do
|
|
|
28
25
|
namespace :api do
|
|
29
26
|
namespace :v1 do
|
|
30
27
|
shallow do
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
resources :endpoints, defaults: {format: :json}
|
|
35
|
-
resources :events, only: %i[index show], defaults: {format: :json}
|
|
36
|
-
end
|
|
37
|
-
end
|
|
28
|
+
model "Team", extending do
|
|
29
|
+
model "Webhooks::Outgoing::Endpoint", defaults: {format: :json}
|
|
30
|
+
model "Webhooks::Outgoing::Event", only: %i[index show], defaults: {format: :json}
|
|
38
31
|
end
|
|
39
32
|
end
|
|
40
33
|
end
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
require "bullet_train/outgoing_webhooks/version"
|
|
2
2
|
require "bullet_train/outgoing_webhooks/engine"
|
|
3
|
+
|
|
4
|
+
# This gem's `config/routes.rb` uses the `model` DSL, so make sure it's installed.
|
|
5
|
+
require "bullet_train/routes"
|
|
3
6
|
require "bullet_train/outgoing_webhooks/signature"
|
|
4
7
|
|
|
5
8
|
module BulletTrain
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bullet_train-outgoing_webhooks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.46.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Culver
|
|
@@ -107,6 +107,20 @@ dependencies:
|
|
|
107
107
|
- - ">="
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
109
|
version: '0'
|
|
110
|
+
- !ruby/object:Gem::Dependency
|
|
111
|
+
name: bullet_train-routes
|
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
|
113
|
+
requirements:
|
|
114
|
+
- - ">="
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: 1.45.1
|
|
117
|
+
type: :runtime
|
|
118
|
+
prerelease: false
|
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: 1.45.1
|
|
110
124
|
description: Allow users of your Rails application to subscribe and receive webhooks
|
|
111
125
|
when activity takes place in your application.
|
|
112
126
|
email:
|