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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/img_builder.rb +1 -1
- data/lib/img_props.rb +1 -5
- data/lib/jekyll_img/version.rb +1 -1
- data/spec/img_builder_spec.rb +3 -3
- data/spec/img_props_spec.rb +2 -11
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0bf22b4d9439342fea87c4cbd46191ffa1b526f6cb81a8115e141743dc14edaf
|
|
4
|
+
data.tar.gz: cecd9148040040a37c0ff019abe2e220c007fad94e46f95e0da7c598702fe1de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03a02214d8c74971a8f846263aefab3e07e874682cebf3ff91ead8a3a62f74074d547512963dc7e96342700888742f75b4673eee89f71285879c4081226bece3
|
|
7
|
+
data.tar.gz: 799ee3a6925c9f5c38fd1588350784ed7bcc392928c6861308376d0238fba141a225da046c8be23c26127320b65bcde602cab0868c571b5d8ff7065ef3f03cbc
|
data/CHANGELOG.md
CHANGED
data/lib/img_builder.rb
CHANGED
data/lib/img_props.rb
CHANGED
data/lib/jekyll_img/version.rb
CHANGED
data/spec/img_builder_spec.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
93
|
+
src="/assets/images/jekyll.webp"
|
|
94
94
|
style='width: 100%; '
|
|
95
95
|
title='This is a caption'
|
|
96
96
|
/>
|
data/spec/img_props_spec.rb
CHANGED
|
@@ -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:
|
|
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:
|
|
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%;')
|