bullet_train 1.42.1 → 1.44.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a756c87d55f523bc32f1431bd23b4f6fccea9b58ab5b7378b1b7b72c66cb4693
|
|
4
|
+
data.tar.gz: 6d4f26c9112157b18c93b7e94645550376137cd0cda6b70bd65626bd19e65e4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bebe602795cb8f5ba7440ff131088f6cf2b8993b50fd44d8d42b145d2916c62cc2e5f838d4db9e4e673150aa7108bd8bad3e9eca61f6fd04cca3c4209d7c753
|
|
7
|
+
data.tar.gz: c8b31ceecf61018c2be92ff203388480c36c5ecba593da16107b91e2c2f9e4edb4472d37e0868203811efe35323e034903455db5e6fa80b94fc5ea8924c938f8
|
|
@@ -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.
|
|
30
|
+
"#{object.name.first}#{object.name.split.first(2).last.first unless object.name.split.one?}"
|
|
31
31
|
else
|
|
32
32
|
"??"
|
|
33
33
|
end
|
|
@@ -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[
|
|
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?
|
data/lib/bullet_train/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.44.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Culver
|
|
@@ -295,14 +295,14 @@ dependencies:
|
|
|
295
295
|
requirements:
|
|
296
296
|
- - ">="
|
|
297
297
|
- !ruby/object:Gem::Version
|
|
298
|
-
version:
|
|
298
|
+
version: 2.7.0
|
|
299
299
|
type: :runtime
|
|
300
300
|
prerelease: false
|
|
301
301
|
version_requirements: !ruby/object:Gem::Requirement
|
|
302
302
|
requirements:
|
|
303
303
|
- - ">="
|
|
304
304
|
- !ruby/object:Gem::Version
|
|
305
|
-
version:
|
|
305
|
+
version: 2.7.0
|
|
306
306
|
- !ruby/object:Gem::Dependency
|
|
307
307
|
name: pagy
|
|
308
308
|
requirement: !ruby/object:Gem::Requirement
|