bullet_train-outgoing_webhooks 1.2.23 → 1.2.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/webhooks/outgoing/delivery_attempt_support.rb +2 -2
- data/app/views/api/v1/webhooks/outgoing/events/_event.json.jbuilder +9 -12
- data/config/locales/en/webhooks/outgoing/events.en.yml +21 -33
- data/lib/bullet_train/outgoing_webhooks/version.rb +1 -1
- metadata +3 -4
- data/app/views/api/v1/open_api/index.yaml.erb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4befa92421eeb2a09947789aad3f98c72a2f9450af96c1aa6f917a8982e830a4
|
4
|
+
data.tar.gz: d3c60cc750de9ac31746b3c661984d9e07647332b98c177a3ef66592299e7ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03aecd3d71cf778aee7a02ae9d517f8018b1a2afeaaaae1ff4a9faac611889f0c0d422a3d81636d815fe95384d17206c7d47c289809ac41a338c461fa276cd8d
|
7
|
+
data.tar.gz: 1dd0006a5425955a5b3d4e99d33d6b95a315de84bd89c8e0dca3e939e18d504fbfcada8b2aaea02bfe2cf785143975dbb245774d7c2ac716dcae41b50d4bb38e
|
@@ -46,8 +46,8 @@ module Webhooks::Outgoing::DeliveryAttemptSupport
|
|
46
46
|
end
|
47
47
|
|
48
48
|
# Net::HTTP will consider the url invalid (and not deliver the webhook) unless it ends with a '/'
|
49
|
-
|
50
|
-
uri.path =
|
49
|
+
if uri.path == ""
|
50
|
+
uri.path = "/"
|
51
51
|
end
|
52
52
|
|
53
53
|
http = Net::HTTP.new(hostname, uri.port)
|
@@ -1,12 +1,9 @@
|
|
1
|
-
json.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
json.event_type schema: {type: :integer, description: I18n.t("webhooks/outgoing/events.fields.event_type.heading")}
|
11
|
-
json.subject_id schema: {type: :integer, description: I18n.t("webhooks/outgoing/events.fields.subject_id.heading")}
|
12
|
-
json.subject_type schema: {type: :string, description: I18n.t("webhooks/outgoing/events.fields.subject_type.heading")}
|
1
|
+
json.extract! event,
|
2
|
+
:id,
|
3
|
+
:team_id,
|
4
|
+
:uuid,
|
5
|
+
:event_type_id,
|
6
|
+
:subject_id,
|
7
|
+
:subject_type,
|
8
|
+
:data,
|
9
|
+
:created_at
|
@@ -2,45 +2,23 @@ en:
|
|
2
2
|
webhooks/outgoing/events: &events
|
3
3
|
label: &label Webhooks Events
|
4
4
|
fields: &fields
|
5
|
-
|
6
|
-
_: &
|
7
|
-
label: *
|
8
|
-
heading: *
|
9
|
-
|
10
|
-
id:
|
11
|
-
_: &id Event ID
|
12
|
-
label: *id
|
13
|
-
heading: *id
|
14
|
-
|
15
|
-
name:
|
16
|
-
_: &name Event Name
|
17
|
-
label: *name
|
18
|
-
heading: *name
|
19
|
-
|
20
|
-
description:
|
21
|
-
_: &description Event Description
|
22
|
-
label: *description
|
23
|
-
heading: *description
|
24
|
-
|
25
|
-
created_at:
|
26
|
-
_: &created_at DateTime Event was added
|
27
|
-
label: *created_at
|
28
|
-
heading: *created_at
|
29
|
-
updated_at:
|
30
|
-
_: &updated_at DateTime Event was updated
|
31
|
-
label: *updated_at
|
32
|
-
heading: *updated_at
|
5
|
+
id:
|
6
|
+
_: &id Event ID
|
7
|
+
label: *id
|
8
|
+
heading: *id
|
33
9
|
|
34
|
-
|
35
|
-
_: &
|
36
|
-
label: *
|
37
|
-
heading: *
|
10
|
+
team_id:
|
11
|
+
_: &team_id Team ID
|
12
|
+
label: *team_id
|
13
|
+
heading: *team_id
|
38
14
|
|
39
|
-
|
15
|
+
event_type_id: &event_type_id
|
40
16
|
_: &event_type Event Type
|
41
17
|
label: *event_type
|
42
18
|
heading: *event_type
|
43
19
|
|
20
|
+
event_type: *event_type_id
|
21
|
+
|
44
22
|
subject_id:
|
45
23
|
_: &subject_id Subject ID
|
46
24
|
label: *subject_id
|
@@ -70,3 +48,13 @@ en:
|
|
70
48
|
_: &event_type_name Event Type Name
|
71
49
|
label: *event_type_name
|
72
50
|
heading: *event_type_name
|
51
|
+
|
52
|
+
data:
|
53
|
+
_: &data Object Data
|
54
|
+
label: *data
|
55
|
+
heading: *data
|
56
|
+
|
57
|
+
created_at:
|
58
|
+
_: &created_at Happened At
|
59
|
+
label: *created_at
|
60
|
+
heading: *created_at
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-outgoing_webhooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.24.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -114,7 +114,6 @@ files:
|
|
114
114
|
- app/views/account/webhooks/outgoing/endpoints/index.html.erb
|
115
115
|
- app/views/account/webhooks/outgoing/endpoints/new.html.erb
|
116
116
|
- app/views/account/webhooks/outgoing/endpoints/show.html.erb
|
117
|
-
- app/views/api/v1/open_api/index.yaml.erb
|
118
117
|
- app/views/api/v1/webhooks/outgoing/endpoints/_endpoint.json.jbuilder
|
119
118
|
- app/views/api/v1/webhooks/outgoing/endpoints/index.json.jbuilder
|
120
119
|
- app/views/api/v1/webhooks/outgoing/endpoints/show.json.jbuilder
|
@@ -173,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
172
|
- !ruby/object:Gem::Version
|
174
173
|
version: '0'
|
175
174
|
requirements: []
|
176
|
-
rubygems_version: 3.
|
175
|
+
rubygems_version: 3.4.10
|
177
176
|
signing_key:
|
178
177
|
specification_version: 4
|
179
178
|
summary: Allow users of your Rails application to subscribe and receive webhooks when
|
@@ -1,33 +0,0 @@
|
|
1
|
-
openapi: 3.1.0
|
2
|
-
info:
|
3
|
-
title: Bullet Train API
|
4
|
-
description: |
|
5
|
-
The baseline API of a new Bullet Train application.
|
6
|
-
license:
|
7
|
-
name: MIT
|
8
|
-
url: https://opensource.org/licenses/MIT
|
9
|
-
version: "<%= @version.upcase %>"
|
10
|
-
servers:
|
11
|
-
- url: <%= ENV["BASE_URL"] %>/api/<%= @version %>
|
12
|
-
components:
|
13
|
-
securitySchemes:
|
14
|
-
BearerAuth:
|
15
|
-
type: http
|
16
|
-
scheme: bearer
|
17
|
-
schemas:
|
18
|
-
<%= automatic_components_for Webhooks::Outgoing::Endpoint %>
|
19
|
-
<%= automatic_components_for Webhooks::Outgoing::Event %>
|
20
|
-
<%# 🚅 super scaffolding will insert new components above this line. %>
|
21
|
-
parameters:
|
22
|
-
id:
|
23
|
-
name: id
|
24
|
-
in: path
|
25
|
-
required: true
|
26
|
-
schema:
|
27
|
-
type: string
|
28
|
-
security:
|
29
|
-
- BearerAuth: []
|
30
|
-
paths:
|
31
|
-
<%= automatic_paths_for Webhooks::Outgoing::Endpoint, Team %>
|
32
|
-
<%= automatic_paths_for Webhooks::Outgoing::Event, Team, except: %i[create update delete] %>
|
33
|
-
<%# 🚅 super scaffolding will insert new paths above this line. %>
|