bullet_train-super_scaffolding 1.3.18 → 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: 21ae4ff04c56684516cb270eb4e2cc75f644767c9a3c69be9e30648934f5f023
4
- data.tar.gz: 1dbcca1c181e01436649fa49d2b65795a5b5c09f411f051d9f41343fef2a745d
3
+ metadata.gz: 252bf46f0c69b954c3c02b8f8f0bafdd01804c9be69df3281a616dff43bb814c
4
+ data.tar.gz: b76cbeabae21bf7a454b692da3f0949b6724a38576bdbad4e78753d11e7cb82b
5
5
  SHA512:
6
- metadata.gz: 58e3b6ea5d318e41d338ea525706e79da023a6b154e8117099bba37da1d2cc04621c96612de1e5d8da21c4ec0579315be23151052a9c2d2e6a7ffa4852a3c630
7
- data.tar.gz: 88d0365e99bf40882984135be34703905889eccc5a906547cb877d32a2f1cfe5f08e2da034ec6af4346008dbbd3f9da5cddec80c52f24b7126a7c86344690e08
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.
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.3.18"
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.18
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-28 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