bullet_train-incoming_webhooks 1.3.8 → 1.3.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b34f8ecf61d818bc8e3d76f2a60a12db678d5c48337a0587bb5166ada034d00c
|
4
|
+
data.tar.gz: 557b4a2f3fc4d7c6f9e14087fc7b7af91398d71925a5f04317a93d9749837aa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb928db7717998100ca6be532fac94cd951603d82ef955b26874434b32a6947a745649bcfff1b45d394d4d492c1d006d76fb1748e99ce86c389b3922c83be60f
|
7
|
+
data.tar.gz: d3e3e03d05f24d7bc1ec6df13667922e645a373e4eaf24ddc6c8145b39b10637228785ab0d83eb9b9f61936b32517661cc27c636ad3d1ad8f7b43945017a18d3
|
@@ -21,7 +21,7 @@ module BulletTrain
|
|
21
21
|
provider_name = argv.shift
|
22
22
|
transformer = Scaffolding::IncomingWebhooksTransformer.new(provider_name)
|
23
23
|
|
24
|
-
`yes n | bin/rails g model
|
24
|
+
`yes n | bin/rails g model Webhooks::Incoming::#{provider_name}Webhook data:jsonb processed_at:datetime verified_at:datetime`
|
25
25
|
|
26
26
|
transformer.scaffold_incoming_webhook
|
27
27
|
|
@@ -26,10 +26,6 @@ class Scaffolding::IncomingWebhooksTransformer < Scaffolding::Transformer
|
|
26
26
|
file_name_hook = "bullet_train_webhook"
|
27
27
|
new_model_file_name, _ = files.map { |file| file.gsub(file_name_hook, replacement_for(file_name_hook)) }
|
28
28
|
|
29
|
-
# Since we eject the model from this repository, we don't need the
|
30
|
-
# extra model generated by `rails g model` (just the migration).
|
31
|
-
File.delete("./app/models/webhooks_incoming_#{replacement_for(file_name_hook)}.rb")
|
32
|
-
|
33
29
|
# Set up the model's `verify_authenticity` method to return `true`.
|
34
30
|
model_file_lines = File.readlines(new_model_file_name)
|
35
31
|
comment_lines = [
|
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.3.
|
4
|
+
version: 1.3.10
|
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-08-
|
11
|
+
date: 2023-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|