vitals_image 0.4.0 → 0.4.1

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: b9a6e4da54850851d9b8e5366d3e07053272e32393d821d120f223045fc298d9
4
- data.tar.gz: 10353144a856a6f24cc830ea3087f24d390bbecf4c962f5600ab6592344aac84
3
+ metadata.gz: 5399352c9f774e90f9a671459d582672c69c19b5640675e47a5c77536cb36826
4
+ data.tar.gz: a05b961a9730225fd60f81c8d5467ab44a542abd8fa96d659891f805ee5a21b7
5
5
  SHA512:
6
- metadata.gz: ba5154564de3e592ddb4cec088397e31e46418a14e2517b7da93496a70aed868c43249e78740bcddc9d73cce61f5b44a6e6bf6d74240b38bf10ebdb30522d70a
7
- data.tar.gz: db3cc9c5230f55c626a92bc340eef681d7da0b7d7fc3ab47c263a805a88debca84395c7865e49a77b96bf44810000811bb204b4af8c5c02e11e1cbd2f97ea665
6
+ metadata.gz: 41a2aca3f4efb2178525af7566d24fe9825f858860a0b482c48ada2f49bc62edadb085986f165dc7d1d2875c5faf2e60114040c6318c6f52e469db620b32fb4d
7
+ data.tar.gz: 1fe231165885de9b8c0876abfc466583f9fcb0da7c5ea2da73104e0d93348064c55e41fe9471decc0c077ac8392efcfe3f5c49b75db305c743752c7d78eeaa9a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.1] - 2021-07-22
4
+
5
+ - Do not discard the specified `style` attribute
6
+
3
7
  ## [0.4.0] - 2021-07-06
4
8
 
5
9
  - Fixed resize and pad in vips
@@ -9,7 +9,7 @@ module VitalsImage
9
9
  module VERSION
10
10
  MAJOR = 0
11
11
  MINOR = 4
12
- TINY = 0
12
+ TINY = 1
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -29,7 +29,7 @@ module VitalsImage
29
29
  html_options = @options.dup.except("lazy_load")
30
30
  html_options["width"] = width
31
31
  html_options["height"] = height
32
- html_options["style"] = style
32
+ html_options["style"] = "#{style} #{html_options["style"]}".squish.presence
33
33
  html_options["class"] = "vitals-image #{html_options["class"]}".squish
34
34
 
35
35
  if non_native_lazy_load?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitals_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Breno Gazzola
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-07 00:00:00.000000000 Z
11
+ date: 2021-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob