bullet_train-super_scaffolding 1.3.18 → 1.3.20

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: 21ae4ff04c56684516cb270eb4e2cc75f644767c9a3c69be9e30648934f5f023
4
- data.tar.gz: 1dbcca1c181e01436649fa49d2b65795a5b5c09f411f051d9f41343fef2a745d
3
+ metadata.gz: e630cb440a6fca50b4cdf0b905cddd1732fe1966c9c79a6b6a55d28095936c21
4
+ data.tar.gz: c080a11f2b8452ef7864fb8f573a0b93482fe30660503e386815d73f9de5e622
5
5
  SHA512:
6
- metadata.gz: 58e3b6ea5d318e41d338ea525706e79da023a6b154e8117099bba37da1d2cc04621c96612de1e5d8da21c4ec0579315be23151052a9c2d2e6a7ffa4852a3c630
7
- data.tar.gz: 88d0365e99bf40882984135be34703905889eccc5a906547cb877d32a2f1cfe5f08e2da034ec6af4346008dbbd3f9da5cddec80c52f24b7126a7c86344690e08
6
+ metadata.gz: 24e161b7f3a2ce0be67fbf4c58327990d7b29d57bee0036da2324bff3017aa398438758c9b6894628e680e56e69eb73400b4288756a03b2129ed7d4faacb5e9a
7
+ data.tar.gz: c728ddd209bb35a33ea30bdad45363e9e20223564fca6f6b9812025696ecf4cba41e55550c77ba29b8e153b7533f4604b4d32c9dab8c593f3738163afced6a70
@@ -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.
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.3.18"
3
+ VERSION = "1.3.20"
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.18
4
+ version: 1.3.20
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-28 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard