bullet_train-incoming_webhooks 1.6.17 → 1.6.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b2a2a152cb595d3d0f9ba22a143c04f5bf8ba690a33114480bc8dc2f32b466a
4
- data.tar.gz: 9b31c10acc61cbabdca83fcc483c136b3285d46f682a81765dce027ba79f18c3
3
+ metadata.gz: 6fed8074952608c202f3ce7b5fd207b36731576bcdef4bf417df9416a3d6f431
4
+ data.tar.gz: d9ce751acbd9ae974f365573f3e822e08858efff3da333aa4e8f0f682460fed5
5
5
  SHA512:
6
- metadata.gz: 649ffb9a03219f18e0f0888b6991cb53c7923f1cad375143ab7e82ab5e162284ce075e38c524a3716241847ee9162e216bda6c84f90944f483c1cee0995ad5b2
7
- data.tar.gz: aef29244cf52121a6d3e0e5aa76c30ed4159f64854ec9d824e3380d8674963d02001efa0779f1f086df809c14d95bb3d04fcf381bba6e6fafcd402059ae7cb63
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.body.read)).process_async
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
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module IncomingWebhooks
3
- VERSION = "1.6.17"
3
+ VERSION = "1.6.19"
4
4
  end
5
5
  end
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.17
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-20 00:00:00.000000000 Z
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