jekyll_img 0.2.11 → 0.2.12

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: 6665da5a9ea0fb8a14413e6bbcb177802b4419ead9470bdc3bbacdee5fafce73
4
- data.tar.gz: 055d42f74d2c6361672132652779eb2a3a05e01d1e6d706932f03248ff9dca84
3
+ metadata.gz: 0bf22b4d9439342fea87c4cbd46191ffa1b526f6cb81a8115e141743dc14edaf
4
+ data.tar.gz: cecd9148040040a37c0ff019abe2e220c007fad94e46f95e0da7c598702fe1de
5
5
  SHA512:
6
- metadata.gz: f4196b6105ee1f9c449440d9d134ef63db4196d839257bc1e333214c414785cacb9bef906074adbf532b470aa85e7df48a0231d8c556b3b54137b9a9b1233a20
7
- data.tar.gz: d6585eb0051f441eaa9d00aec48e05e4a23e34045843feeb2e2d6a2255c6439229ce99c8c532deade048726af4b60d441d4c88521f30ab7b731cfcf4f013d4c2
6
+ metadata.gz: 03a02214d8c74971a8f846263aefab3e07e874682cebf3ff91ead8a3a62f74074d547512963dc7e96342700888742f75b4673eee89f71285879c4081226bece3
7
+ data.tar.gz: 799ee3a6925c9f5c38fd1588350784ed7bcc392928c6861308376d0238fba141a225da046c8be23c26127320b65bcde602cab0868c571b5d8ff7065ef3f03cbc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.2.12 /2026-09-18
4
+
5
+ * Got tangled up with LLMs running in circles. Hopefully better now.
6
+
3
7
  ## 0.2.11 /2026-09-11
4
8
 
5
9
  Not fixed yet:
data/lib/img_builder.rb CHANGED
@@ -33,7 +33,7 @@ class ImgBuilder
33
33
  <<~END_IMG
34
34
  <img #{@props.attr_alt}
35
35
  class="imgImg #{img_classes.squish}"
36
- src="#{@source.src_fallback}"
36
+ src="#{@props.src}"
37
37
  #{@props.attr_style_img}
38
38
  #{@props.attr_title}
39
39
  #{@props.lazy}
data/lib/img_props.rb CHANGED
@@ -53,11 +53,7 @@ class ImgProperties
53
53
  end
54
54
 
55
55
  def attr_style_img
56
- if size_unit_specified?
57
- "width: #{@size};"
58
- else
59
- "style='width: 100%; #{@style}'".squish
60
- end
56
+ "style='width: 100%; #{@style}'".squish
61
57
  end
62
58
 
63
59
  def attr_target
@@ -1,3 +1,3 @@
1
1
  module JekyllImgVersion
2
- VERSION = '0.2.11'.freeze
2
+ VERSION = '0.2.12'.freeze
3
3
  end
@@ -44,7 +44,7 @@ class ImgPropertiesTest
44
44
  <source srcset="/assets/images/jekyll.webp" type="image/webp">
45
45
  <source srcset="/assets/images/jekyll.png" type="image/png">
46
46
  <img class="imgImg rounded shadow"
47
- src="/assets/images/jekyll.png"
47
+ src="/assets/images/jekyll.webp"
48
48
  style='width: 100%; '
49
49
  />
50
50
  </picture>
@@ -60,7 +60,7 @@ class ImgPropertiesTest
60
60
  <source srcset="/assets/images/jekyll.webp" type="image/webp">
61
61
  <source srcset="/assets/images/jekyll.png" type="image/png">
62
62
  <img class="imgImg rounded shadow"
63
- src="/assets/images/jekyll.png"
63
+ src="/assets/images/jekyll.webp"
64
64
  style='width: 100%; '
65
65
  />
66
66
  </picture>
@@ -90,7 +90,7 @@ class ImgPropertiesTest
90
90
  <source srcset="/assets/images/jekyll.png" type="image/png">
91
91
  <img alt='This is a caption'
92
92
  class="imgImg rounded shadow"
93
- src="/assets/images/jekyll.png"
93
+ src="/assets/images/jekyll.webp"
94
94
  style='width: 100%; '
95
95
  title='This is a caption'
96
96
  />
@@ -88,18 +88,13 @@ class ImgPropertiesTest
88
88
 
89
89
  props.size = '100px'
90
90
  expect(props.attr_size_class).to be_nil
91
- expect(props.attr_style_img).to eq('width: 100px;')
91
+ expect(props.attr_style_img).to eq("style='width: 100%; '")
92
92
  expect(props.attr_width_style).to eq('width: 100px;')
93
93
 
94
- props.size = '100em'
95
- expect(props.attr_size_class).to be_nil
96
- expect(props.attr_style_img).to eq('width: 100em;')
97
- expect(props.attr_width_style).to eq('width: 100em;')
98
-
99
94
  props.size = '10%'
100
95
  expect(props.attr_size_class).to be_nil
101
96
  expect(props.attr_width_style).to eq('width: 10%;')
102
- expect(props.attr_style_img).to eq('width: 10%;')
97
+ expect(props.attr_style_img).to eq("style='width: 100%; '")
103
98
 
104
99
  props.size = 'fullsize'
105
100
  expect(props.attr_size_class).to eq('fullsize')
@@ -125,10 +120,6 @@ class ImgPropertiesTest
125
120
  expect(props.attr_max_width_class).to be_nil
126
121
  expect(props.attr_max_width_style).to eq('max-width: 100px;')
127
122
 
128
- props.max_width = '100em'
129
- expect(props.attr_max_width_class).to be_nil
130
- expect(props.attr_max_width_style).to eq('max-width: 100em;')
131
-
132
123
  props.max_width = '10%'
133
124
  expect(props.attr_max_width_class).to be_nil
134
125
  expect(props.attr_max_width_style).to eq('max-width: 10%;')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_img
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn