bullet_train 1.4.8 → 1.4.10
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 +4 -4
- data/docs/upgrades/yolo.md +1 -1
- data/docs/upgrades.md +1 -1
- data/lib/bullet_train/resolver.rb +22 -0
- data/lib/bullet_train/version.rb +1 -1
- data/lib/bullet_train.rb +2 -0
- data/lib/exceptions.rb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cb255b28e3c114edd38ce183c622b4ca05e29c91a2c4dc004c7c934bb41739e
|
4
|
+
data.tar.gz: '018214574b359f8a3cf97a16e6c9a9e2e8417425fbd985d11956a5f1259b1e13'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0655f9e1dc40cd94ffe7b2cfa3a47d4af1e2bb5d69d9a3a61fa1bd92130a97b327f4a06e04b8f4d33b52004b3741dd0156a15e8cf6a580e90d3388455d58fe7
|
7
|
+
data.tar.gz: 8bd6f515e1b00f5b7025d99f0b393846600be31b8a7f4bc6429c1983cc9ca13ebd04f91a501bce1ade4ba5f3f55bbfd577e3d8c8ce929e0d840997b9b371fe9e
|
data/docs/upgrades/yolo.md
CHANGED
data/docs/upgrades.md
CHANGED
@@ -54,6 +54,28 @@ module BulletTrain
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
`cat #{source_file[:absolute_path]} >> #{source_file[:project_path]}`.strip
|
57
|
+
|
58
|
+
# Look for showcase preview.
|
59
|
+
file_name = source_file[:absolute_path].split("/").last
|
60
|
+
showcase_partials = Dir.glob(`bundle show bullet_train-themes-light`.chomp + "/app/views/showcase/**/*.html.erb")
|
61
|
+
has_showcase_partial = false
|
62
|
+
showcase_partial = nil
|
63
|
+
showcase_partials.each do |partial|
|
64
|
+
has_showcase_preview = partial.match?(/#{file_name}$/)
|
65
|
+
if has_showcase_preview
|
66
|
+
showcase_partial = partial
|
67
|
+
break
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
if has_showcase_partial
|
72
|
+
puts "Ejecting showcase preview for #{source_file[:relative_path]}"
|
73
|
+
partial_relative_path = showcase_preview.scan(/(?=app\/views\/showcase).*/).last
|
74
|
+
directory = partial_relative_path.split("/")[0..-2].join("/")
|
75
|
+
FileUtils.mkdir_p(directory)
|
76
|
+
FileUtils.touch(partial_relative_path)
|
77
|
+
`cp #{showcase_preview} #{partial_relative_path}`
|
78
|
+
end
|
57
79
|
end
|
58
80
|
|
59
81
|
# Just in case they try to open the file, open it from the new location.
|
data/lib/bullet_train/version.rb
CHANGED
data/lib/bullet_train.rb
CHANGED
data/lib/exceptions.rb
ADDED
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.4.
|
4
|
+
version: 1.4.10
|
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-09-
|
11
|
+
date: 2023-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -767,6 +767,7 @@ files:
|
|
767
767
|
- lib/bullet_train/resolver.rb
|
768
768
|
- lib/bullet_train/version.rb
|
769
769
|
- lib/colorizer.rb
|
770
|
+
- lib/exceptions.rb
|
770
771
|
- lib/tasks/bullet_train_tasks.rake
|
771
772
|
homepage: https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train
|
772
773
|
licenses:
|