bullet_train-incoming_webhooks 1.3.7 → 1.3.9
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: c3a3f74aea47457067b115860c4a4e926b3fe05482dc7fa602c944e90d744e15
|
4
|
+
data.tar.gz: feadd4d34fe3272ce7347511ffc7e4adf97e042c9a3fd90040e4674e1ccba066
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49cefa675d1e03eab6b4b4c3269e687e60829f9e29494c1b15be51b0f1ff7facdcf2f2a797f5eacdbd73c311f1f5577751513f27ca3d50cc80a9b45825e16036
|
7
|
+
data.tar.gz: 46859a42bd950e4bb3d326fca01cc6797c5c271dadb2733560a7b053d9873c64a17120994906e72e211a0982b313994db22f83ce50c2405eecacc091cab33bc4
|
@@ -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.9
|
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
|