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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 876aa81bf9d9808e5c55e50f8e5635b88ffce376dff998bb66cdc7fb476ea5e9
4
- data.tar.gz: 21f7f07532069387068ce8df909046bb372488f1b73d91203f6bfcf3337cfb20
3
+ metadata.gz: 92369c4eed5118a67aee8033b4c235d727018adbe08fc044b4276a2144fc21d5
4
+ data.tar.gz: 7a6c7e388b43fd9aaf8d6f8678c8c012df38383fda99785597753bf3936a5db1
5
5
  SHA512:
6
- metadata.gz: d5be8488eda4220db8882b295f9c6faae2e3b9b66fdf92aff410271c38af839bbc1937a24a402c8c318827c2012e19f5dbd626e2ee0c7e6f1db77062c0f06386
7
- data.tar.gz: 8881f0466376167ad6d3b2f2346cb7ec69f4bb596db9622b45374ba8f3f363b69ce10403143d4d00a7625a36c56ffcb3de7bad4d16d310b3f70471a68f14950c
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}'
@@ -10,6 +10,7 @@ en:
10
10
  buttons: &buttons
11
11
  edit: Settings
12
12
  show: Details
13
+ resend: Resend
13
14
  update: Update Membership
14
15
  demote: Demote from Admin
15
16
  promote: Promote to Admin
data/config/routes.rb CHANGED
@@ -37,6 +37,7 @@ Rails.application.routes.draw do
37
37
  member do
38
38
  get :accept
39
39
  post :accept
40
+ post :resend
40
41
  end
41
42
  end
42
43
 
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
- - [HDrive](https://elements.heroku.com/addons/hdrive) to support off-server file uploads backed by AWS S3.
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
@@ -37,6 +37,7 @@
37
37
 
38
38
  ## Billing
39
39
  - [Stripe](/docs/billing/stripe.md)
40
+ - [Usage Limits](/docs/billing/usage.md)
40
41
 
41
42
  ## Integration
42
43
  - [REST API](/docs/api.md)
@@ -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[.\-_a-z|0-9]*.*/
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|\-_0-9.]*/)
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-base/app/views/layouts/devise.html.erb".blue
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
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.2.24"
2
+ VERSION = "1.2.26"
3
3
  end
@@ -72,7 +72,7 @@ namespace :bullet_train do
72
72
  end
73
73
  end
74
74
 
75
- task :develop, [:all_options] => :environment do |t, arguments|
75
+ task :hack, [:all_options] => :environment do |t, arguments|
76
76
  def stream(command, prefix = " ")
77
77
  puts ""
78
78
 
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.24
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-04-03 00:00:00.000000000 Z
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.pre9
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.pre9
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.4.6
739
+ rubygems_version: 3.3.7
740
740
  signing_key:
741
741
  specification_version: 4
742
742
  summary: Bullet Train