bullet_train 1.3.10 → 1.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/concerns/invitations/base.rb +1 -1
- data/app/models/concerns/memberships/base.rb +2 -0
- data/app/models/concerns/users/base.rb +1 -1
- data/config/locales/en/invitations.en.yml +1 -0
- data/docs/application-options.md +2 -1
- data/lib/bullet_train/version.rb +1 -1
- data/lib/bullet_train.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff63727028d8970aacd62bb659702ef467d8ee0627935977b444cb49e77f1344
|
4
|
+
data.tar.gz: 5f136b1f3c5c320cfecbcb52103f327fd48e043647e54473db02b2c6c5a2df3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d5d9b223e72b434743d32e1e82902d4b9ca5eec1379420d2f5bf8afaeae25987cc10e111aaf7623cd5ad37025fd055e86457dc816b17ba29c519bb4da88f066
|
7
|
+
data.tar.gz: '0539a2acd42bd86c633c1733e89e4bd0837775b5786d15732f0f36bbe07f38c8f3fc395973877d56d7b7948033f945ac89b163e73904fe33cc5a5f2f14821142'
|
@@ -21,6 +21,8 @@ module Memberships::Base
|
|
21
21
|
# Image uploading
|
22
22
|
has_one_attached :user_profile_photo
|
23
23
|
|
24
|
+
validates :user_email, uniqueness: {scope: :team}
|
25
|
+
|
24
26
|
after_destroy do
|
25
27
|
# if we're destroying a user's membership to the team they have set as
|
26
28
|
# current, then we need to remove that so they don't get an error.
|
@@ -71,7 +71,7 @@ module Users::Base
|
|
71
71
|
def create_default_team
|
72
72
|
# This creates a `Membership`, because `User` `has_many :teams, through: :memberships`
|
73
73
|
default_team = teams.create(name: I18n.t("teams.new.default_team_name"), time_zone: time_zone)
|
74
|
-
memberships.find_by(team: default_team).update role_ids: [Role.admin.id]
|
74
|
+
memberships.find_by(team: default_team).update(user_email: email, role_ids: [Role.admin.id])
|
75
75
|
update(current_team: default_team)
|
76
76
|
end
|
77
77
|
|
@@ -59,6 +59,7 @@ en:
|
|
59
59
|
resent: 'Invitation was successfully resent.'
|
60
60
|
resent_error: Sorry, we couldn't find an invitation to resend.
|
61
61
|
doesnt_exist: Sorry, but we couldn't find your invitation. Please contact an administrator on the team to have them send you another one.
|
62
|
+
duplicate: 'Sorry, a member with the email %{user_email} has already been invited.'
|
62
63
|
values:
|
63
64
|
name: 'Invitation to Join %{team_name}'
|
64
65
|
account:
|
data/docs/application-options.md
CHANGED
@@ -13,5 +13,6 @@ The following configuration options are available for your Bullet Train applicat
|
|
13
13
|
| `OPENAI_ACCESS_TOKEN` | Enable OpenAI-powered UX improvements | `sk-Tnko8PI15i6du03KkxVExTz3lbkFJV...` | `openai_enabled?` |
|
14
14
|
| `REDOCLY_ORGANIZATION_ID` | Enable Redocly-powered API documentation | `your-organization-name` | |
|
15
15
|
| `REDOCLY_API_KEY` | Enable Redocly-powered API documentation |`orgsk_lfyrXAAym8nbSrar9b8wvTN+...`| |
|
16
|
+
| `DISABLE_DEVELOPER_MENU` | Disable the `developer` tab in the navigation bar | `true` | disable_developer_menu? |
|
16
17
|
|
17
|
-
<sup><a name="footnote-1"></a>1</sup> Any credentials listed here aren't real, but we wanted you to know what each looks like so you can recognize the correct value from each provider.
|
18
|
+
<sup><a name="footnote-1"></a>1</sup> Any credentials listed here aren't real, but we wanted you to know what each looks like so you can recognize the correct value from each provider.
|
data/lib/bullet_train/version.rb
CHANGED
data/lib/bullet_train.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.12
|
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-
|
11
|
+
date: 2023-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|