bullet_train 1.0.50 → 1.0.51

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: 1eb8115bc5740b033b7f934111f0522270c2e83072502f1c4a5acebea63e5ff5
4
- data.tar.gz: bd36f0282e6d97331f8eec2def0e941fd6862d6c21549ea0f1b0f289767d576c
3
+ metadata.gz: 6e120bbb8234554fc860e6bbdbf9376e1899e8c4c3e024075eb84a4dc60b9a10
4
+ data.tar.gz: 5f144328a9c105ad2b434fe0fccbf514973f54c41c698910fa36c5932ba6fd5e
5
5
  SHA512:
6
- metadata.gz: 9b2c9cc8df78ba5a6e24c574f9564d25876424c25dd95b26f37cf2fa3db59e0a7dc0af6b44b26f69a20cb08855cb3e0d016c2ae7a7289a3157e75d9778ef9c9d
7
- data.tar.gz: c886a9a4b1c1df7f4e620af288865ec5942ea6376bdc121516b9b9e580881bab0b2d7fef533551667684fc36ce723b40c62da1ef3af49948bb8e6f800f04ae85
6
+ metadata.gz: 382b6f890fa62609c0600b533958e89d67679bd6ff0c2a71e3c871566d878db20b405970e3dbb8353138e17c9c886df19e502914df51b45908c2091467631268
7
+ data.tar.gz: d0c09be2dc04291ed0bbe9d94857980e13a72823dea16f85e29edd9596ff8b5e890e46f60bf555bc24e5d8fc04b982bc3b5236711ef21976f1b73bcdf675d2e4
@@ -0,0 +1,2 @@
1
+ <%= render 'account/oauth/stripe_accounts/index', context: @user, stripe_accounts: @user.oauth_stripe_accounts if stripe_enabled? %>
2
+ <% # 🚅 super scaffolding will insert new oauth providers above this line. %>
@@ -23,8 +23,7 @@
23
23
  </div>
24
24
 
25
25
  <div class="xl:col-span-1 space-y-8">
26
- <%= render 'account/oauth/stripe_accounts/index', context: @user, stripe_accounts: @user.oauth_stripe_accounts if stripe_enabled? %>
27
- <% # 🚅 super scaffolding will insert new oauth providers above this line. %>
26
+ <%= render 'account/users/oauth' %>
28
27
 
29
28
  <%= render 'account/shared/box', divider: true do |p| %>
30
29
  <% p.content_for :title, t('.password.header') %>
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.0.50"
2
+ VERSION = "1.0.51"
3
3
  end
data/lib/bullet_train.rb CHANGED
@@ -97,11 +97,14 @@ def two_factor_authentication_enabled?
97
97
  ENV["TWO_FACTOR_ENCRYPTION_KEY"].present?
98
98
  end
99
99
 
100
- def any_oauth_enabled?
101
- [
102
- stripe_enabled?,
103
- # 🚅 super scaffolding will insert new oauth provider checks above this line.
104
- ].select(&:present?).any?
100
+ # Don't redefine this if an application redefines it locally.
101
+ unless defined?(any_oauth_enabled?)
102
+ def any_oauth_enabled?
103
+ [
104
+ stripe_enabled?,
105
+ # 🚅 super scaffolding will insert new oauth provider checks above this line.
106
+ ].select(&:present?).any?
107
+ end
105
108
  end
106
109
 
107
110
  def invitation_only?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.50
4
+ version: 1.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -490,6 +490,7 @@ files:
490
490
  - app/views/account/users/_breadcrumbs.html.erb
491
491
  - app/views/account/users/_fields.html.erb
492
492
  - app/views/account/users/_form.html.erb
493
+ - app/views/account/users/_oauth.html.erb
493
494
  - app/views/account/users/edit.html.erb
494
495
  - app/views/account/users/show.html.erb
495
496
  - app/views/bullet_train/partial_resolver.html.erb