bullet_train-incoming_webhooks 1.6.18 → 1.6.20

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: 20ba2b19e0ef17c30a481cb29aebec8f17f570addb05d9e064d22819a1a9cf05
4
- data.tar.gz: 1f1b19f875d2cdc55f5bb41be1e8ed1182ed435410e78c1398241a996991d9aa
3
+ metadata.gz: 06b3fd5d8d6d106269cf4e628cf6b9bcb160057bbe68f0c86493997ffae94df3
4
+ data.tar.gz: d8a476fa2af525b7a96f160a953028389467bffb7d15aebad82052edac9bfeab
5
5
  SHA512:
6
- metadata.gz: 4d52a9893c172b7226e43a8b15478f47b297b2088ff2db644419891976482990ecbd3db263d1bec4edc972a9f6406f2421c6d22aebca513fbeb3da8f048d06cf
7
- data.tar.gz: 69b0e4ab348526e582384ac23ce76079bacae1e158e3d7325ee8b4473e45c4ae4e8b3f531cd820c4ee2f77a1eb4341c1408fa7af310344907651786b504d6eea
6
+ metadata.gz: 97a21b24a99ac42888f13559d0298719c9602f6f6609bb82582169d30925e7012c6662d30a404ff1a79229ada630f0e31d7d1f6c1ed0443e81b261792bfe85ee
7
+ data.tar.gz: 4125859fd3d30f50e31b4a919250ef635248160946b5d71763cf247aa2a5af868c67c799090c22c37eb10d90cf7b374c0cc63321605305305a98f9fa57cac48c
@@ -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.18"
3
+ VERSION = "1.6.20"
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.18
4
+ version: 1.6.20
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-21 00:00:00.000000000 Z
11
+ date: 2023-11-29 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