bullet_train 1.2.24 → 1.2.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/account/invitations/controller_base.rb +11 -0
- data/app/views/account/memberships/_membership.html.erb +3 -0
- data/app/views/layouts/docs.html.erb +6 -0
- data/config/locales/en/invitations.en.yml +2 -0
- data/config/locales/en/memberships.en.yml +1 -0
- data/config/routes.rb +1 -0
- data/docs/heroku.md +11 -1
- data/docs/index.md +1 -0
- data/lib/bullet_train/resolver.rb +3 -3
- data/lib/bullet_train/version.rb +1 -1
- data/lib/tasks/bullet_train_tasks.rake +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92369c4eed5118a67aee8033b4c235d727018adbe08fc044b4276a2144fc21d5
|
4
|
+
data.tar.gz: 7a6c7e388b43fd9aaf8d6f8678c8c012df38383fda99785597753bf3936a5db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b244c1b0a5b121ac8bea3a54919b00128579d5712043be2083e870f30268984d57738e0cc67062fdaa344461a1233e0cb7f89ef051f853f14b60eb405c022322
|
7
|
+
data.tar.gz: 3ac1517be499c42123573fcd376797e55ff9e86c23fdcbe7ca78080ffc43caedb10f874350c5489bad2423a6e26c0fb6ff13bcf3b8884c2c6cbbdeb6660559a1
|
@@ -73,6 +73,17 @@ module Account::Invitations::ControllerBase
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
# POST /invitations/1/resend
|
77
|
+
def resend
|
78
|
+
@invitation = Invitation.find_by(uuid: params[:id])
|
79
|
+
if @invitation
|
80
|
+
UserMailer.invited(params[:id]).deliver_later
|
81
|
+
redirect_to account_team_invitations_path(@invitation.membership.team), notice: I18n.t("invitations.notifications.resent")
|
82
|
+
else
|
83
|
+
redirect_to account_dashboard_path, alert: I18n.t("invitations.notifications.resent_error")
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
76
87
|
# GET /invitations/new
|
77
88
|
def new
|
78
89
|
@invitation.build_membership
|
@@ -24,6 +24,9 @@
|
|
24
24
|
<% end %>
|
25
25
|
</td>
|
26
26
|
<td class="text-right">
|
27
|
+
<% if membership.unclaimed? %>
|
28
|
+
<%= button_to t('.buttons.resend'), resend_account_invitation_path(membership.invitation.uuid), class: 'button-secondary button-smaller' %>
|
29
|
+
<% end %>
|
27
30
|
<%= link_to t('.buttons.show'), [:account, membership], class: 'button-secondary button-smaller' %>
|
28
31
|
</td>
|
29
32
|
</tr>
|
@@ -212,6 +212,12 @@
|
|
212
212
|
<i class="fab fa-stripe-s ti ti-money"></i>
|
213
213
|
<% end %>
|
214
214
|
<% end %>
|
215
|
+
|
216
|
+
<%= render 'account/shared/menu/item', url: '/docs/billing/usage', label: 'Usage' do |p| %>
|
217
|
+
<% p.icon do %>
|
218
|
+
<i class="fal fa-gauge ti ti-ruler"></i>
|
219
|
+
<% end %>
|
220
|
+
<% end %>
|
215
221
|
<% end %>
|
216
222
|
|
217
223
|
<%= render 'account/shared/menu/section', title: 'Integration' do %>
|
@@ -56,6 +56,8 @@ en:
|
|
56
56
|
created: 'Invitation was successfully created.'
|
57
57
|
updated: 'Invitation was successfully updated.'
|
58
58
|
destroyed: 'Invitation was successfully destroyed.'
|
59
|
+
resent: 'Invitation was successfully resent.'
|
60
|
+
resent_error: Sorry, we couldn't find an invitation to resend.
|
59
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.
|
60
62
|
values:
|
61
63
|
name: 'Invitation to Join %{team_name}'
|
data/config/routes.rb
CHANGED
data/docs/heroku.md
CHANGED
@@ -14,7 +14,7 @@ We've included the "entry-level but production-grade" service tier across the bo
|
|
14
14
|
- [Heroku Postgres](https://elements.heroku.com/addons/heroku-postgresql)
|
15
15
|
- [Heroku Redis](https://elements.heroku.com/addons/heroku-redis) to support Sidekiq and Action Cable.
|
16
16
|
- [Memcachier](https://elements.heroku.com/addons/memcachier) to support Rails Cache.
|
17
|
-
- [
|
17
|
+
- [Bucketeer](https://elements.heroku.com/addons/bucketeer) to support off-server file uploads backed by AWS S3.
|
18
18
|
- [Cloudinary](https://cloudinary.com) to support off-server image uploads and ImageMagick processing.
|
19
19
|
- [Heroku Scheduler](https://elements.heroku.com/addons/scheduler) for cron jobs.
|
20
20
|
- [Rails Autoscale](https://railsautoscale.com) for best-of-breed reactive performance monitoring.
|
@@ -81,3 +81,13 @@ heroku certs:auto
|
|
81
81
|
```
|
82
82
|
|
83
83
|
You should be done now and your app should be available at `https://app.YOURDOMAIN.COM/account` and any hits to `https://app.YOURDOMAIN.COM` (e.g. when users sign out, etc.) will be redirected to your marketing site.
|
84
|
+
|
85
|
+
### 5. Configure CORS on Your Bucketeer S3 Bucket
|
86
|
+
|
87
|
+
Before you can upload to your freshly provisioned S3 bucket, you need to run (on Heroku) a rake task we've created for you to set the appropriate CORS settings.
|
88
|
+
|
89
|
+
```
|
90
|
+
heroku run rake aws:set_cors
|
91
|
+
```
|
92
|
+
|
93
|
+
Note: If you change `ENV["BASE_URL"]`, you need to re-run this task.
|
data/docs/index.md
CHANGED
@@ -104,7 +104,7 @@ module BulletTrain
|
|
104
104
|
|
105
105
|
if result[:absolute_path]
|
106
106
|
if result[:absolute_path].include?("/bullet_train")
|
107
|
-
regex = /#{"bullet_train-core" if result[:absolute_path].include?("bullet_train-core")}\/bullet_train[
|
107
|
+
regex = /#{"bullet_train-core" if result[:absolute_path].include?("bullet_train-core")}\/bullet_train[a-z|\-._0-9]*.*/
|
108
108
|
base_path = result[:absolute_path].scan(regex).pop
|
109
109
|
|
110
110
|
# Try to calculate which package the file is from, and what it's path is within that project.
|
@@ -152,7 +152,7 @@ module BulletTrain
|
|
152
152
|
@needle = partial_parts.join("/")
|
153
153
|
elsif @needle.match?(/bullet_train/)
|
154
154
|
# If it's a full path, we need to make sure we're getting it from the right package.
|
155
|
-
_, partial_view_package, partial_path_without_package = @needle.partition(/bullet_train-core\/bullet_train[a-z
|
155
|
+
_, partial_view_package, partial_path_without_package = @needle.partition(/(bullet_train-core\/)?bullet_train[a-z|\-._0-9]*/)
|
156
156
|
|
157
157
|
# Pop off `bullet_train-core` and the gem's version so we can call `bundle show` correctly.
|
158
158
|
partial_view_package.gsub!(/bullet_train-core\//, "")
|
@@ -165,7 +165,7 @@ module BulletTrain
|
|
165
165
|
puts "`#{@needle}`".red
|
166
166
|
puts ""
|
167
167
|
puts "Check the string one more time to see if the package name is there."
|
168
|
-
puts "i.e.: bullet_train-
|
168
|
+
puts "i.e.: bullet_train-1.2.24/app/views/layouts/devise.html.erb".blue
|
169
169
|
puts ""
|
170
170
|
puts "If you're not sure what the package name is, run `bin/resolve --interactive`, follow the prompt, and pass the annotated path."
|
171
171
|
puts "i.e.: <!-- BEGIN /your/local/path/bullet_train-base/app/views/layouts/devise.html.erb -->".blue
|
data/lib/bullet_train/version.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.2.
|
4
|
+
version: 1.2.26
|
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-
|
11
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -266,16 +266,16 @@ dependencies:
|
|
266
266
|
name: cable_ready
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
|
-
- -
|
269
|
+
- - "~>"
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: 5.0.0
|
271
|
+
version: 5.0.0
|
272
272
|
type: :runtime
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
|
-
- -
|
276
|
+
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: 5.0.0
|
278
|
+
version: 5.0.0
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: hiredis
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -736,7 +736,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
736
736
|
- !ruby/object:Gem::Version
|
737
737
|
version: '0'
|
738
738
|
requirements: []
|
739
|
-
rubygems_version: 3.
|
739
|
+
rubygems_version: 3.3.7
|
740
740
|
signing_key:
|
741
741
|
specification_version: 4
|
742
742
|
summary: Bullet Train
|