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 +4 -4
- data/app/views/account/users/_oauth.html.erb +2 -0
- data/app/views/account/users/edit.html.erb +1 -2
- data/lib/bullet_train/version.rb +1 -1
- data/lib/bullet_train.rb +8 -5
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e120bbb8234554fc860e6bbdbf9376e1899e8c4c3e024075eb84a4dc60b9a10
|
4
|
+
data.tar.gz: 5f144328a9c105ad2b434fe0fccbf514973f54c41c698910fa36c5932ba6fd5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 382b6f890fa62609c0600b533958e89d67679bd6ff0c2a71e3c871566d878db20b405970e3dbb8353138e17c9c886df19e502914df51b45908c2091467631268
|
7
|
+
data.tar.gz: d0c09be2dc04291ed0bbe9d94857980e13a72823dea16f85e29edd9596ff8b5e890e46f60bf555bc24e5d8fc04b982bc3b5236711ef21976f1b73bcdf675d2e4
|
@@ -23,8 +23,7 @@
|
|
23
23
|
</div>
|
24
24
|
|
25
25
|
<div class="xl:col-span-1 space-y-8">
|
26
|
-
<%= render 'account/oauth
|
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') %>
|
data/lib/bullet_train/version.rb
CHANGED
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
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
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.
|
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-
|
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
|