bullet_train-super_scaffolding 1.3.17 → 1.3.19

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: b51f689c3d377552ebbd17d7e7626ae0034449399ecbf5dc31044adde23c0ca6
4
- data.tar.gz: ae2816df1520e5bd1a1c404f680cfbc2c25c70aa29b497870a5664090df587fa
3
+ metadata.gz: 252bf46f0c69b954c3c02b8f8f0bafdd01804c9be69df3281a616dff43bb814c
4
+ data.tar.gz: b76cbeabae21bf7a454b692da3f0949b6724a38576bdbad4e78753d11e7cb82b
5
5
  SHA512:
6
- metadata.gz: d31115a67ba4fdfd309cab57da2c25443a4c3ccc59801eda118c6c85bd4ed39576f0fe0a5e5cc72f4acf91e9ab013108181f09d140e70f94667983e562bd033a
7
- data.tar.gz: dde9a28e2ccb7207378454b0a1fe96805c765527144e489f24ee15b21a14420e7ca7c2e13841f8ab2c1ced158a2a58b12e82e8197c3dea872e9b1ef990ccc26a
6
+ metadata.gz: 99ac04690d828b3c323196c7a742bade491e6641d7a1ecd5445219a79cb8f039e7f2b7a76747178b06885b0c9d0d022bb07b19126a1a0984aa97f87d38607c7e
7
+ data.tar.gz: 748c5c95b7959ca2d924f543382b79887386f10d601a2401c92b971ec79c40a0c0a064caa3a206d6c101491574351090bed8e15f861896493c340db694d7e3ea
@@ -135,8 +135,8 @@ module BulletTrain
135
135
  oauth_scaffold_add_line_to_file("./config/routes.rb", "resources :stripe_accounts if stripe_enabled?", "# 🚅 super scaffolding will insert new oauth providers above this line.", options, prepend: true)
136
136
  oauth_scaffold_add_line_to_file("./config/routes.rb", "resources :stripe_installations if stripe_enabled?", "# 🚅 super scaffolding will insert new integration installations above this line.", options, prepend: true)
137
137
  oauth_scaffold_add_line_to_file("./Gemfile", "gem 'omniauth-stripe-connect'", "# 🚅 super scaffolding will insert new oauth providers above this line.", options, prepend: true)
138
- oauth_scaffold_add_line_to_file("./lib/bullet_train.rb", "def stripe_enabled?\n ENV['STRIPE_CLIENT_ID'].present? && ENV['STRIPE_SECRET_KEY'].present?\nend\n", "# 🚅 super scaffolding will insert new oauth providers above this line.", options, prepend: true)
139
- oauth_scaffold_add_line_to_file("./lib/bullet_train.rb", "stripe_enabled?,", "# 🚅 super scaffolding will insert new oauth provider checks above this line.", options, prepend: true)
138
+ oauth_scaffold_add_line_to_file("./lib/bullet_train_oauth_scaffolder_support.rb", "def stripe_enabled?\n ENV['STRIPE_CLIENT_ID'].present? && ENV['STRIPE_SECRET_KEY'].present?\nend\n", "# 🚅 super scaffolding will insert new oauth providers above this line.", options, prepend: true)
139
+ oauth_scaffold_add_line_to_file("./lib/bullet_train_oauth_scaffolder_support.rb", "stripe_enabled?,", "# 🚅 super scaffolding will insert new oauth provider checks above this line.", options, prepend: true)
140
140
  oauth_scaffold_add_line_to_file("./app/models/ability.rb", "if stripe_enabled?\n can [:read, :create, :destroy], Oauth::StripeAccount, user_id: user.id\n can :manage, Integrations::StripeInstallation, team_id: user.team_ids\n can :destroy, Integrations::StripeInstallation, oauth_stripe_account: {user_id: user.id}\n end\n", "# 🚅 super scaffolding will insert any new oauth providers above.", options, prepend: true)
141
141
 
142
142
  # find the database migration that defines this relationship.
@@ -150,7 +150,7 @@ module BulletTrain
150
150
 
151
151
  migration_file_name = `grep "create_table #{oauth_transform_string(":webhooks_incoming_oauth_stripe_account_webhooks", options)}" db/migrate/*`.split(":").first
152
152
  empty_transformer.replace_in_file(migration_file_name, "null: false", "null: true")
153
- empty_transformer.replace_in_file(migration_file_name, "foreign_key: true", oauth_transform_string('foreign_key: true, index: {name: "index_stripe_webhooks_on_oauth_stripe_account_id"}'))
153
+ empty_transformer.replace_in_file(migration_file_name, "foreign_key: true", oauth_transform_string('foreign_key: true, index: {name: "index_stripe_webhooks_on_oauth_stripe_account_id"}', options))
154
154
 
155
155
  puts ""
156
156
  puts "🎉"
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.3.17"
3
+ VERSION = "1.3.19"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-super_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.17
4
+ version: 1.3.19
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-25 00:00:00.000000000 Z
11
+ date: 2023-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard