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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72f136b2dce7c3ca79a0426efedc34e1703340a15ed5b97c8be014e5d126e476
4
- data.tar.gz: dfa96d3ac5370886fde6c54d93ea8e4a81de25b7beaa0de1339fd42767f00476
3
+ metadata.gz: bfe147f80284b8381d7e4a7dae261fc18269e2338d32e5a0883f95fb9ba04e55
4
+ data.tar.gz: e2573c464052e66b092ce76438ad61969371113ff70d731b34eb1c20946e162e
5
5
  SHA512:
6
- metadata.gz: 0e94369ca0efec59913260b62db727d42d332c190a6dc2ff3093293ace45fb805c97d8312dfb76daf19f513f7c388ea03788710e8bf0ccc00549c47e73166a8f
7
- data.tar.gz: 8b839f76ddab288ac733d68b10b4bbecb1663706b07c56d87a54094358fd8ffe15c1e7caf468ebf5f89de87f4a46daf4238040d44a909538b72acde12fd2ca20
6
+ metadata.gz: e18562d0cc9dcf644734627ceb1e61707132cdb95e80808f8201a3e8434674ee9d9ed1bb33c4b36d4c4c6885d09171ad35ded84a06c1039284be84b6c94326b0
7
+ data.tar.gz: 4370b132129af48ed65d1307060aa83d768efc46db671ee9d52c7bb33311016be004374a85fdb053d62774e85421cafa41840a2f4d0c9d6b56c4dde1c485191b
@@ -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/javascript/images/#{image}"))
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/javascript/images/#{filename}")
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
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.0.18"
2
+ VERSION = "1.0.21"
3
3
  end
data/lib/bullet_train.rb CHANGED
@@ -9,5 +9,5 @@ require "bullet_train/scope_validator"
9
9
 
10
10
  module BulletTrain
11
11
  mattr_accessor :routing_concerns, default: []
12
- mattr_accessor :linked_gems, default: []
12
+ mattr_accessor :linked_gems, default: ["bullet_train"]
13
13
  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.0.18
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-24 00:00:00.000000000 Z
11
+ date: 2022-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails