bullet_train 1.43.0 → 1.44.1

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: 7cca1990e61670b9485a2fbca7a35d342c4c6d29a066f653297d55c88638a87b
4
- data.tar.gz: 7d5c1a7dda70d54aa6af3d74901f9da1bde10bfa8c2140451c6bfe53a5876a26
3
+ metadata.gz: 76e084a3c8cc2a256901b0b4fc63e5c9fce584f7f3838faff80eba0f220dda82
4
+ data.tar.gz: a4308c76f089ffac5afbc76d4f7a983cae7ada35753d4d54c8a45444c9e0e2a7
5
5
  SHA512:
6
- metadata.gz: 02b0125073c62e5a53313cca1132fa86a8524417cf4922bbf77e102bc0f33df9af477ce743faebefecc1b34039c69e00963ef260c7bc7894b46ab8159fad7b8e
7
- data.tar.gz: 32face6c8ab0012dee30901705cde53a537aff77883958efb66feb4413f18bbef6b83dad5d2817a245fa14107422aca129dd9615c7fd1301ac12c6f85fc8e100
6
+ metadata.gz: 7fbe38d57a164bae1cf8d51223a58fde9391c0138a27c29ffa3cdccbc35b6f4d85d530bf75ca73cc4ad2a345c41abedb60c15367328cca3e895b34956cf6d130
7
+ data.tar.gz: 4e8ae13f0a36505da3a3097ae1981ad510ba0af73f99dcf326615e8728cd0b1a37a631dd44a9129e89a33881bcf1099b45388d066c7e8dbaed2db17da6dbed3a
@@ -27,7 +27,7 @@ module Account::TeamsHelper
27
27
  def photo_for(object)
28
28
  background_color = Colorizer.colorize_similarly((object.name.to_s + object.created_at.to_s).to_s, 0.5, 0.6).delete("#")
29
29
  avatar_name = if object.name.present?
30
- "#{object.name.first}#{object.name.split.one? ? "" : object.name.split.first(2).last.first}"
30
+ "#{object.name.first}#{object.name.split.first(2).last.first unless object.name.split.one?}"
31
31
  else
32
32
  "??"
33
33
  end
@@ -23,6 +23,7 @@ module Records::Base
23
23
  include BulletTrain::Api::Attributes
24
24
 
25
25
  include CableReady::Updatable
26
+
26
27
  enable_cable_ready_updates
27
28
 
28
29
  extend ActiveHash::Associations::ActiveRecordExtensions
@@ -3,6 +3,7 @@ module Users::Base
3
3
 
4
4
  included do
5
5
  extend Devise::Models
6
+
6
7
  attr_accessor :profile_photo_removal
7
8
  attr_accessor :color_scheme_preference # not stored, per-device
8
9
 
@@ -1,6 +1,7 @@
1
1
  module BulletTrain
2
2
  class Configuration
3
3
  include Singleton
4
+
4
5
  attr_accessor :strong_passwords, :enable_bulk_invitations, :incoming_webhooks_parent_class_name
5
6
 
6
7
  @@config = nil
@@ -211,7 +211,7 @@ module BulletTrain
211
211
  end
212
212
 
213
213
  begin
214
- annotated_path = ApplicationController.render(template: "bullet_train/partial_resolver", layout: nil, assigns: {needle: @needle}).lines[1].chomp
214
+ annotated_path = ApplicationController.render(template: "bullet_train/partial_resolver", layout: nil, assigns: {needle: @needle}).lines[2].chomp
215
215
  rescue ActionView::Template::Error => e
216
216
  # This is a really hacky way to get the file name, but the reason we're getting an error in the first place is because
217
217
  # the partial requires locals that we aren't providing in the ApplicationController.render call above,
@@ -219,7 +219,7 @@ module BulletTrain
219
219
  return e.file_name
220
220
  end
221
221
 
222
- if annotated_path =~ /<!-- BEGIN (\S*) -->/
222
+ if annotated_path =~ /<!-- BEGIN (\S*)/
223
223
  # If the developer enters a partial that is in bullet_train-base like devise/shared/oauth or devise/shared/links,
224
224
  # it will return a string starting with app/ so we simply point them to the file in this repository.
225
225
  if annotated_path.match?(/^<!-- BEGIN app/) && !ejected_theme?
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.43.0"
2
+ VERSION = "1.44.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.43.0
4
+ version: 1.44.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver