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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9474d4ff871dac9e9181e2e6365db14fd02e83dd9af5c13f26b8327dd24602e
4
- data.tar.gz: af096ad6c877a5ead2b8a8687c27a9f70593f6c3220e3cc9ba779d350e68c71b
3
+ metadata.gz: 4ddadc16ef4aa775b65efacd0889bd3cf4e78d5184fe8fb8abe1598afe0b6b5d
4
+ data.tar.gz: 69a4f980c8276e16bfee61c42477ef9d519c2c698bbf0d3f3e3ab4e2a18427c4
5
5
  SHA512:
6
- metadata.gz: c559c80e0173b988f42fb09b8c72270dceb58ba0b283de95e7fb4905465fb0c666e71644b1b360cbbda8333094004715df3622bb3d4147e2359229c03dcf6aa9
7
- data.tar.gz: b16e403855a2ff7cff1e448ed9f18513ce1cf129491030c246846251dc891065b7b504a8417d2293b88b8b815385c055165cd9fa07f41f49c13c4ece2ae1003b
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
- resources BulletTrain::OutgoingWebhooks.parent_resource do
7
- namespace :webhooks do
8
- namespace :outgoing do
9
- resources :endpoints do
10
- member do
11
- post :activate
12
- delete :deactivate
13
- end
14
- resources :deliveries, only: %i[index show] do
15
- resources :delivery_attempts, only: %i[index show]
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
- member do
19
- post :rotate_secret
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
- resources :teams, extending do
32
- namespace :webhooks do
33
- namespace :outgoing do
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,5 @@
1
1
  module BulletTrain
2
2
  module OutgoingWebhooks
3
- VERSION = "1.45.0"
3
+ VERSION = "1.46.0"
4
4
  end
5
5
  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.45.0
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: