bullet_train 1.3.16 → 1.3.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c7c67395912d62c74ed42642fb51037668bfa8ea0564fabcbb42656c9eb781e
4
- data.tar.gz: b29f54f1828514bba91bf11fcaef3f0ff9d9dbe004a01813df7bb15901f65325
3
+ metadata.gz: 3545804c99faf7e1993e0bc61a825d48608d1f395c689763a2924f3b0faffa04
4
+ data.tar.gz: b6711502408b4d59d6b09c1fde8eae1491d73e947ba4e5abd331adcea8264c1d
5
5
  SHA512:
6
- metadata.gz: 4e51c2facc7cc39166452820f19481f2f1da5c6a3aafa4cf1c7e6877b0763df43eacd6a5e6ea1fbdaa415f76be0f4636ca1a79f2864eb8b48d20c7d4ee882d62
7
- data.tar.gz: c9a4ad75b5bd0f93c294b6f0a58a8412ee7fef251abdf214e30f37124d91767095fb3c9a007738649c0fc22e2c5ff95f752eeb9317ddddc527d70f5939b6e1f6
6
+ metadata.gz: cf9da8bf4c6a006df1f2267975a103f41f2c1c38e6efb9225abee1273a37ab3b47f206e16396cedaba18cf3c06392c0784f6c739dab651816778706c19a36477
7
+ data.tar.gz: ce32f0f34848ef80ccdf6c9df85f8566dc3680c5a2e383168165c0dee8f99654f1443d3570ac70f76c5ec2ecdc564c8a4709a29ce90487df52d627e81ce49e4a
@@ -1,7 +1,7 @@
1
1
  module EmailHelper
2
- def email_image_tag(image, **options)
2
+ def email_image_tag(image, **)
3
3
  image_underscore = image.tr("-", "_")
4
4
  attachments.inline[image_underscore] = File.read(Rails.root.join("app/assets/images/#{image}"))
5
- image_tag attachments.inline[image_underscore].url, **options
5
+ image_tag(attachments.inline[image_underscore].url, **)
6
6
  end
7
7
  end
@@ -78,7 +78,6 @@ en:
78
78
  resent: 'Invitation was successfully resent.'
79
79
  resent_error: Sorry, we couldn't find an invitation to resend.
80
80
  doesnt_exist: Sorry, but we couldn't find your invitation. Please contact an administrator on the team to have them send you another one.
81
- duplicate: 'Sorry, a member with the email %{user_email} has already been invited.'
82
81
  values:
83
82
  name: 'Invitation to Join %{team_name}'
84
83
  account:
data/docs/heroku.md CHANGED
@@ -4,7 +4,7 @@ When you're ready to deploy to Heroku, it's highly recommended you use this butt
4
4
 
5
5
  [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=http://github.com/bullet-train-co/bullet_train)
6
6
 
7
- This button leverages the configuration found in `app.json`, including sensible defaults for dyno formation, third-party services, buildpack configuration, etc.
7
+ This button leverages the configuration found in `app.json`, including sensible production-ready defaults for dyno formation, third-party services, buildpack configuration, etc. The resources provisioned will cost about **$140/month**.
8
8
 
9
9
  ## What's Included?
10
10
 
@@ -90,4 +90,4 @@ Before you can upload to your freshly provisioned S3 bucket, you need to run (on
90
90
  heroku run rake aws:set_cors
91
91
  ```
92
92
 
93
- Note: If you change `ENV["BASE_URL"]`, you need to re-run this task.
93
+ Note: If you change `ENV["BASE_URL"]`, you need to re-run this task.
data/docs/tunneling.md CHANGED
@@ -11,7 +11,7 @@ You should specifically sign up for a paid account. Although ngrok offers a free
11
11
  Once you have ngrok installed, you can start your tunnel like so, replacing `YOUR-SUBDOMAIN` with whatever subdomain you reserved in your ngrok account:
12
12
 
13
13
  ```
14
- ngrok http 3000 --subdomain=YOUR-SUBDOMAIN
14
+ ngrok http --domain=YOUR-SUBDOMAIN 3000
15
15
  ```
16
16
 
17
17
  ## Updating Your Configuration
@@ -160,7 +160,7 @@ module BulletTrain
160
160
  _, partial_view_package, partial_path_without_package = @needle.partition(/(bullet_train-core\/)?bullet_train[a-z|\-._0-9]*/)
161
161
 
162
162
  # Pop off `bullet_train-core` and the gem's version so we can call `bundle show` correctly.
163
- partial_view_package.gsub!(/bullet_train-core\//, "")
163
+ partial_view_package.gsub!("bullet_train-core/", "")
164
164
  partial_view_package.gsub!(/[-|.0-9]*$/, "") if partial_view_package.match?(/[-|.0-9]*$/)
165
165
 
166
166
  local_package_path = `bundle show #{partial_view_package}`.chomp
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.3.16"
2
+ VERSION = "1.3.18"
3
3
  end
@@ -144,6 +144,7 @@ namespace :bullet_train do
144
144
  puts "bin/hack --link: " + "Link all of your Bullet Train gems to `local/bullet_train-core`.".blue
145
145
  puts "bin/hack --link github: " + "Link all of your Bullet Train gems to the public repositories on GitHub".blue
146
146
  puts "bin/hack --link (version-number): " + "Link all of your Bullet Train gems to the version number passed.".blue
147
+ puts "bin/hack --link (custom path to package): " + "Pass a custom path to where your bullet_train-core gems are.".blue
147
148
  puts "bin/hack --reset: " + "Resets all of your gems to their original definition.".blue
148
149
  puts "bin/hack --watch-js: " + "Watches for any changes in JavaScript files gems that have an npm package.".blue
149
150
  puts "bin/hack --clean-js: " + "Resets all of your npm packages from `local/bullet_train-core` to their original definition.".blue
@@ -259,7 +260,7 @@ namespace :bullet_train do
259
260
  def set_core_gems(flag, link_flag_value, framework_packages)
260
261
  packages = framework_packages.keys
261
262
  gemfile_lines = File.readlines("./Gemfile")
262
- version_regexp = /[\d|.]/
263
+ version_regexp = /^[\d|.]$/
263
264
 
264
265
  packages.each do |package|
265
266
  original_path = "gem \"#{package}\""
@@ -285,14 +286,16 @@ namespace :bullet_train do
285
286
  "#{line.chomp}, git: 'http://github.com/bullet-train-co/bullet_train-core.git'\n"
286
287
  elsif link_flag_value&.match?(version_regexp)
287
288
  "#{line.chomp}, \"#{link_flag_value}\"\n"
289
+ elsif link_flag_value.present?
290
+ link_flag_value.gsub!(/\/$/, "") # Ensure the custom path doesn't have a slash at the end.
291
+ local_path.gsub(/path:.*/, "path: \"#{link_flag_value}/#{package}\"\n")
288
292
  else
289
293
  line.gsub(original_path, local_path)
290
294
  end
291
295
  end
292
296
  elsif flag == "--reset"
293
297
  if line.match?(/bullet_train/)
294
- line.gsub!(local_path, original_path) # Reset local path
295
- line.gsub!(/, "[0-9|.]*"$/, "") # Reset specific version
298
+ line.gsub!(/,.*$/, "")
296
299
  end
297
300
  puts "Resetting '#{package}' package in the Gemfile...".blue
298
301
  end
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.16
4
+ version: 1.3.18
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-24 00:00:00.000000000 Z
11
+ date: 2023-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard