bullet_train-integrations 1.0.0 → 1.2.0

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: 16735ab9ebdc283b4d51ce3c48e3f9d8e4bdc1a948830a169d219dc5ceae43ad
4
- data.tar.gz: 05ea064e531b662ca8bfc40ebd3666c587cc0c72a3760a1f26fd0132c27739e2
3
+ metadata.gz: 12f03b38b792f18b9d688f4f288a5b5d63f29caac7677df5bcaa7f0df83c33e3
4
+ data.tar.gz: e2723181da570767a48de3319b7a0e8aa736c6abde0ed5ae86f2466d6fa07d1e
5
5
  SHA512:
6
- metadata.gz: 6e096a839a8c54573c3f9b55af8cea1416a7691eeb71547f2c4432297e1e6c7b6212f2c0889de41c67c804eb433b511c38cd809f522a37363b16b6ba8238d0d2
7
- data.tar.gz: bfe3ad11d10c9ae465f95568fbe0e6e0ca505bd84dd9065c50402dba7942e0894e1cc44f5e7df8154aaec9fcdd6b80b68923a9322759dcdde282eca6cdd93b4a
6
+ metadata.gz: 153cc8fa78654867ac52c43c90d3c40bd5a969582459335b4add0289d1aeb2e225496339196eab4b7c036662dafa56f186f7f8632157b1a9a894322aee15928b
7
+ data.tar.gz: 153d56530998a567098037e2b859e0fae00162e85efc3ef2834c73d59eae69f96012023c4815772663cf949fff656390cda67100c9d49e017d820ab4f3db96f3
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022 Andrew Culver
1
+ Copyright 2022 Bullet Train, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -84,7 +84,7 @@ module Account::Oauth::OmniauthCallbacks::ControllerBase
84
84
  # if the account is already connected to a user, we can't connect it again.
85
85
  # this would potentially lock someone else out of their account.
86
86
  if oauth_account.user
87
- message_key = oauth_account.user == current_user ? "omniauth.user.reconnected" : "omniauth.user.already_registered"
87
+ message_key = (oauth_account.user == current_user) ? "omniauth.user.reconnected" : "omniauth.user.already_registered"
88
88
  redirect_to edit_account_user_path(current_user), notice: t(message_key, provider: t(auth.provider))
89
89
  else
90
90
  oauth_account.update(user: current_user)
@@ -109,7 +109,7 @@ module Account::Oauth::OmniauthCallbacks::ControllerBase
109
109
  # however, this is secure because even if someone controlled `bullettrain.co`,
110
110
  # they would never be able to guess the hex code to reset the password.
111
111
  # even that is a rare edge case, because we force people to update this in onboarding.
112
- email = auth.info.email.present? ? auth.info.email : "noreply+#{SecureRandom.hex}@bullettrain.co"
112
+ email = auth.info.email.present? ? auth.info.email : "noreply@#{SecureRandom.hex}.example.com"
113
113
 
114
114
  # if the user already exists with the email address on the account ..
115
115
  if User.find_by(email: email)
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Integrations
3
- VERSION = "1.0.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-integrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
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-03-04 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  requirements: []
65
- rubygems_version: 3.2.22
65
+ rubygems_version: 3.3.7
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: Bullet Train Integrations