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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 364a5201d2ce55db3436164ed8f4430c22533e4cea3e8b188794b919e56c3b17
4
- data.tar.gz: df95180013a8deaa425a364474eb3afd2fffce5b859dafe7e9a0fe0989b4676b
3
+ metadata.gz: 709fbb2e5a2e031e00ed20fcc174da7bd7e7c3aac659d0cf776332dc76afad3d
4
+ data.tar.gz: 2f4bed1c27269cfe898571b7f1f90b1147b99d6c0d083d037efcddcd0cca252a
5
5
  SHA512:
6
- metadata.gz: fe8432b3c99ba15ba90c5cdb61c4cb70de160f2fd1cbb86f44a52b581205bbad04ca28f2b102279c469680f136ddf41e05d302ce8c5b54418ee72346d2596ca8
7
- data.tar.gz: 880d4924b96382076caef882d1585c1b76a5f5a5cfb8c651c0420ac5973a80c96fbe38de873f1b7191fcdbd9257fd5843598cbf43671bf8cbfe6bb4a722ab315
6
+ metadata.gz: 1be4707688b9d379e2f1ef172c127fad2ff8edc01803df764325e047ceedbba7d38baf4a8a22ca03d7d9d0963da8348392f612e7b27040b3709cccdd32748a49
7
+ data.tar.gz: 0ff4b6747fe1448929c0f566858168387ef8e021642faa17740050bc382f7b6ed4f82275e93472b3507a51a207a8d1ffb5bb652bd222df430da58f41c967a2de
data/CHANGELOG.md CHANGED
@@ -1,2 +1,6 @@
1
+ ## 0.1.2 / 2023-02-14
2
+ * Fixed `img_props.rb:91:in `size_unit_specified?': undefined method `end_with?' for false:FalseClass (NoMethodError)`
3
+
4
+
1
5
  ## 0.1.1 / 2023-02-12
2
6
  * Initial release
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
@@ -1,3 +1,3 @@
1
1
  module JekyllImgVersion
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.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-12 00:00:00.000000000 Z
11
+ date: 2023-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll