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: 23920c63ced98798b2908742ca826132aa621d8401196962fc7dfbb1afb73c9f
4
- data.tar.gz: 6ca658ded289b68e81035463dd73f0335e1cc9887e66771b10ac9b4b3bad7a33
3
+ metadata.gz: c3a3f74aea47457067b115860c4a4e926b3fe05482dc7fa602c944e90d744e15
4
+ data.tar.gz: feadd4d34fe3272ce7347511ffc7e4adf97e042c9a3fd90040e4674e1ccba066
5
5
  SHA512:
6
- metadata.gz: 8cf86439f5883cd49994b23fa13972cc2300e6648398f170eedc61d7e7d6fae49b44ce2af29d16791a024f68fbfcfbaa5cfaf48cd252a63f4436fa98be6a6028
7
- data.tar.gz: a131bc2d2a8e12bec883a00e4e122c02ca180ac817510f1e6d42ada69487c0dd7fffbc7053f05a772159058b89ac6f1a24dc7cbcd5e3ac233ef6e8421bc05fa6
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 webhooks_incoming_#{provider_name.tableize.singularize}_webhook data:jsonb processed_at:datetime verified_at:datetime`
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
 
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module IncomingWebhooks
3
- VERSION = "1.3.7"
3
+ VERSION = "1.3.9"
4
4
  end
5
5
  end
@@ -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.7
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-17 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails