anti_image_reflow 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67b9298dfb8a7fa25139754f4d54829d120610bd2320976e8d04a34c8f5b9fd3
4
- data.tar.gz: c4feccce130d543aa25f2dcaf44a93cde86270ecb6d397be81285ea669c71593
3
+ metadata.gz: 625940c619a2c4df8177c33bd88901b03f3c67a0f431d58f7820002dafb6490f
4
+ data.tar.gz: 9a9265a9f862e0ebfa48ba3ac848c0b20e1de83d4f7af92f162ba009b2b98db7
5
5
  SHA512:
6
- metadata.gz: 7a7e0b3922f43ceed48ebd03e29d8ad688a4d9dd677f90a3931e098b14b311d761bc29f7b9affe57d9e73e4a29acefe48358e0dbf373a8b03cfb800eb65448e0
7
- data.tar.gz: f4935acdc2014ac7b9b56432556df2936b195b957dc9573ece0ebd317f2c8ab0f1d0b27ecf5caf126d0f97ebdc06bb4bfd89bdfa488e7739f39a149bac6fe2ed
6
+ metadata.gz: e7559ed4e5e86084d45d07609b31848d47d891c1990a8416fe01618c5cce7508ef4e97d8801912f65364d308e96a51b792dc557fb566aef6d793e69f90e91044
7
+ data.tar.gz: 16bd6e80c2cbed711fabf2ff00e3c1667c0a882cc7864000ac769001ac966fc72f8789ce98b18b02b6b6804c0cea67f6d40a104239227baf3e538eafa66ee9b7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2023-01-16
4
+
5
+ - bug fixes
6
+
3
7
  ## [0.1.2] - 2023-01-16
4
8
 
5
9
  - Updated dependencies
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AntiImageReflow
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -29,8 +29,8 @@ module Jekyll
29
29
  # add height and width attributes
30
30
  if tag.name == "img"
31
31
  path = File.join(Dir.pwd, tag["src"])
32
- # check if file exists
33
- if File.exist?(path)
32
+ # check file is not directory
33
+ if File.file?(path)
34
34
  size = FastImage.size(path)
35
35
  tag["width"] = size[0] unless tag["width"] || size.nil?
36
36
  tag["height"] = size[1] unless tag["height"] || size.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anti_image_reflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Smith