jekyll_img 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/img_props.rb +2 -2
- data/lib/jekyll_img/version.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: 709fbb2e5a2e031e00ed20fcc174da7bd7e7c3aac659d0cf776332dc76afad3d
|
4
|
+
data.tar.gz: 2f4bed1c27269cfe898571b7f1f90b1147b99d6c0d083d037efcddcd0cca252a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1be4707688b9d379e2f1ef172c127fad2ff8edc01803df764325e047ceedbba7d38baf4a8a22ca03d7d9d0963da8348392f612e7b27040b3709cccdd32748a49
|
7
|
+
data.tar.gz: 0ff4b6747fe1448929c0f566858168387ef8e021642faa17740050bc382f7b6ed4f82275e93472b3507a51a207a8d1ffb5bb652bd222df430da58f41c967a2de
|
data/CHANGELOG.md
CHANGED
data/lib/img_props.rb
CHANGED
@@ -26,7 +26,7 @@ class ImgProperties
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def attr_size_class
|
29
|
-
return nil if @size.nil? || size_unit_specified?
|
29
|
+
return nil if @size == false || @size.nil? || size_unit_specified?
|
30
30
|
|
31
31
|
abort "'#{@size}' is not a recognized size; must be one of #{SIZES.join(', ')}, or an explicit unit." \
|
32
32
|
unless SIZES.include?(@size)
|
@@ -86,7 +86,7 @@ class ImgProperties
|
|
86
86
|
UNITS = %w[Q ch cm em dvh dvw ex in lh lvh lvw mm pc px pt rem rlh svh svw vb vh vi vmax vmin vw %].freeze
|
87
87
|
|
88
88
|
def size_unit_specified?
|
89
|
-
return false if @size.to_s.strip.empty?
|
89
|
+
return false if @size == false || @size.to_s.strip.empty?
|
90
90
|
|
91
91
|
@size.end_with?(*UNITS)
|
92
92
|
end
|
data/lib/jekyll_img/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_img
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|