bullet_train 1.0.18 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/email_helper.rb +1 -1
- data/app/helpers/images_helper.rb +1 -1
- data/lib/bullet_train/version.rb +1 -1
- data/lib/bullet_train.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfe147f80284b8381d7e4a7dae261fc18269e2338d32e5a0883f95fb9ba04e55
|
4
|
+
data.tar.gz: e2573c464052e66b092ce76438ad61969371113ff70d731b34eb1c20946e162e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e18562d0cc9dcf644734627ceb1e61707132cdb95e80808f8201a3e8434674ee9d9ed1bb33c4b36d4c4c6885d09171ad35ded84a06c1039284be84b6c94326b0
|
7
|
+
data.tar.gz: 4370b132129af48ed65d1307060aa83d768efc46db671ee9d52c7bb33311016be004374a85fdb053d62774e85421cafa41840a2f4d0c9d6b56c4dde1c485191b
|
data/app/helpers/email_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module EmailHelper
|
2
2
|
def email_image_tag(image, **options)
|
3
3
|
image_underscore = image.tr("-", "_")
|
4
|
-
attachments.inline[image_underscore] = File.read(Rails.root.join("app/
|
4
|
+
attachments.inline[image_underscore] = File.read(Rails.root.join("app/assets/images/#{image}"))
|
5
5
|
image_tag attachments.inline[image_underscore].url, **options
|
6
6
|
end
|
7
7
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module ImagesHelper
|
2
2
|
def image_width_for_height(filename, target_height)
|
3
|
-
source_width, source_height = FastImage.size("#{Rails.root}/app/
|
3
|
+
source_width, source_height = FastImage.size("#{Rails.root}/app/assets/images/#{filename}")
|
4
4
|
ratio = source_width.to_f / source_height.to_f
|
5
5
|
(target_height * ratio).to_i
|
6
6
|
end
|
data/lib/bullet_train/version.rb
CHANGED
data/lib/bullet_train.rb
CHANGED
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.0.
|
4
|
+
version: 1.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|