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: 398af74f50d265b99e73903ff08779b2bd95ce77e40fd4d0a4ef4048928fd176
4
- data.tar.gz: 6bbc05335f1c5615089bb8e2b1d09a23bc4b7018d6aec29bbf4f2822bd98a3cc
3
+ metadata.gz: b34f8ecf61d818bc8e3d76f2a60a12db678d5c48337a0587bb5166ada034d00c
4
+ data.tar.gz: 557b4a2f3fc4d7c6f9e14087fc7b7af91398d71925a5f04317a93d9749837aa1
5
5
  SHA512:
6
- metadata.gz: 7690d2e5081ee8c890a26472965b43d44d81be630487b54ef261fb2e0ad1adc3e3de9fef2204ae705fc083df41e8d5cbbec94674e121c14e057aa1cfd8985743
7
- data.tar.gz: dc3d4cdc703e518f40ef506d479f048e7eda0e3240321d05b17dcd64906e3f6a6567521304f951a597f14690344b70b236db509d97d9f5de727d3e62d6cded18
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 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.8"
3
+ VERSION = "1.3.10"
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.8
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-21 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