anti_image_reflow 0.1.1 → 0.1.3

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: 866a8a309fffb2d9e7b3b72d232cebf094ce2cf52bdd9e1d4ea1bd1e6ddea2d1
4
- data.tar.gz: a3ca9fc75e290ff8c1c2454bfa821b37c7e7e3b77986977ab3e7d0ee3a5c2f83
3
+ metadata.gz: 625940c619a2c4df8177c33bd88901b03f3c67a0f431d58f7820002dafb6490f
4
+ data.tar.gz: 9a9265a9f862e0ebfa48ba3ac848c0b20e1de83d4f7af92f162ba009b2b98db7
5
5
  SHA512:
6
- metadata.gz: 0105d7930937c65c4246ea9fdfc0d2478af1ee5885f325f313a360900b761c4f00c1ebe19fb70bcb69b96d96fe0f2402695ed9612c83035546fd735526559ac9
7
- data.tar.gz: c117487d6bba3a53764084fa40fb9b3de45088cce3b3adfe5659479fa32dea28a4ce98c63aa965f186ba21148b4be9ed52006ee436b9fb2f0cac9998a55712d9
6
+ metadata.gz: e7559ed4e5e86084d45d07609b31848d47d891c1990a8416fe01618c5cce7508ef4e97d8801912f65364d308e96a51b792dc557fb566aef6d793e69f90e91044
7
+ data.tar.gz: 16bd6e80c2cbed711fabf2ff00e3c1667c0a882cc7864000ac769001ac966fc72f8789ce98b18b02b6b6804c0cea67f6d40a104239227baf3e538eafa66ee9b7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2023-01-16
4
+
5
+ - bug fixes
6
+
7
+ ## [0.1.2] - 2023-01-16
8
+
9
+ - Updated dependencies
10
+
11
+ ## [0.1.1] - 2023-01-16
12
+
13
+ - Added catch for invalid paths
14
+
3
15
  ## [0.1.0] - 2022-11-27
4
16
 
5
17
  - Initial release
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.platform = Gem::Platform::RUBY
25
25
  spec.add_runtime_dependency "jekyll", "~> 4.3"
26
- spec.add_runtime_dependency "nokogiri", '~> 1.12'
27
- spec.add_runtime_dependency "fastimage", '~> 2.2'
26
+ spec.add_runtime_dependency "nokogiri", '~> 1.14'
27
+ spec.add_runtime_dependency "fastimage", '~> 2.2.6'
28
28
 
29
29
  # For more information and examples about making a new gem, check out our
30
30
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AntiImageReflow
4
- VERSION = "0.1.1"
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Smith
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.12'
33
+ version: '1.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.12'
40
+ version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fastimage
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.2'
47
+ version: 2.2.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.2'
54
+ version: 2.2.6
55
55
  description:
56
56
  email:
57
57
  - zachsmith.dev@gmail.com