bullet_train-incoming_webhooks 1.6.18 → 1.6.19
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fed8074952608c202f3ce7b5fd207b36731576bcdef4bf417df9416a3d6f431
|
4
|
+
data.tar.gz: d9ce751acbd9ae974f365573f3e822e08858efff3da333aa4e8f0f682460fed5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8772891ca438eb2737a0fbe8cc4a77b53a07ff43760755a7d3350b26b5827606bb37f5f5d373f6fa1ca4c2cc01c753c7fee1d78b1bffb3d30d81651bbe7f4ceb
|
7
|
+
data.tar.gz: 1c88e6f64c3c42fc18bda592397fa75946e85d6f95dbf6dc7308973d3901888efab5b17c4bba0f45ef6c49102c141bf56f9d4f279782eaa834c6aac6a98d8dea
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Webhooks::Incoming::BulletTrainWebhooksController < Webhooks::Incoming::WebhooksController
|
2
2
|
def create
|
3
|
-
Webhooks::Incoming::BulletTrainWebhook.create(data: JSON.parse(request.
|
3
|
+
Webhooks::Incoming::BulletTrainWebhook.create(data: JSON.parse(request.raw_post)).process_async
|
4
4
|
render json: {status: "OK"}, status: :created
|
5
5
|
end
|
6
6
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# This is a default implementation of this file that we supply to help with gem tests.
|
2
|
+
# The version from the starter repo will take precedence when running the full app.
|
3
|
+
# You can think of the file in the starter repo as having been ejected from this gem.
|
4
|
+
|
5
|
+
# This file is here just to allow tests to pass when run from inside this gem directory.
|
6
|
+
# It wasn't found if I put the file in test/dummy/config/models/webhooks/outgoing, so
|
7
|
+
# maybe we need a better resolution method?
|
8
|
+
default:
|
9
|
+
models:
|
10
|
+
Team: read
|
11
|
+
Document: read
|
12
|
+
Membership:
|
13
|
+
- read
|
14
|
+
- search
|
15
|
+
|
16
|
+
crud_role:
|
17
|
+
models:
|
18
|
+
Team: crud
|
19
|
+
|
20
|
+
editor:
|
21
|
+
models:
|
22
|
+
Scaffolding::AbsolutelyAbstract::CreativeConcept:
|
23
|
+
- read
|
24
|
+
- update
|
25
|
+
|
26
|
+
manager:
|
27
|
+
includes:
|
28
|
+
- editor
|
29
|
+
|
30
|
+
supervisor:
|
31
|
+
includes:
|
32
|
+
- manager
|
33
|
+
|
34
|
+
admin:
|
35
|
+
includes:
|
36
|
+
- editor
|
37
|
+
manageable_roles:
|
38
|
+
- admin
|
39
|
+
- editor
|
40
|
+
models:
|
41
|
+
Team: manage
|
42
|
+
Membership: manage
|
43
|
+
Document: manage
|
44
|
+
Scaffolding::AbsolutelyAbstract::CreativeConcept: manage
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-incoming_webhooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.19
|
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-
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -110,6 +110,7 @@ files:
|
|
110
110
|
- app/jobs/webhooks/incoming/webhook_processing_job.rb
|
111
111
|
- app/models/webhooks/incoming/bullet_train_webhook.rb
|
112
112
|
- app/models/webhooks/incoming/webhook.rb
|
113
|
+
- config/models/roles.yml
|
113
114
|
- config/routes.rb
|
114
115
|
- lib/bullet_train/incoming_webhooks.rb
|
115
116
|
- lib/bullet_train/incoming_webhooks/engine.rb
|