jekyll-cloudinary 1.2.6 → 1.2.7
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/lib/jekyll/cloudinary.rb +5 -5
- data/lib/jekyll/cloudinary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e60830dace0a6dcb2bf19bad613302ebd5c9782
|
|
4
|
+
data.tar.gz: 64df114a14328a77b536d72c6b929ce993b5ab0d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73c83f0a98d666d5048083ee7c3ae3144f1f1e63ea10dfed9775f8e3ab42953cecef3f7ad26a1a11092617791a9fa022365bbb612c81dfa9911ab2d955a075bc
|
|
7
|
+
data.tar.gz: c1c0dcef555a2359e5a86f18ce1185ee51962ce30c50e1f673b86249d9670e345a6e225cdd759be943467f9204a807b03dc8e3a9b6a534fee8ddad9ee6f53e15
|
data/lib/jekyll/cloudinary.rb
CHANGED
|
@@ -43,7 +43,7 @@ module Jekyll
|
|
|
43
43
|
# Extract tag segments
|
|
44
44
|
markup = /^(?:(?<preset>[^\s.:\/]+)\s+)?(?<image_src>[^\s]+\.[a-zA-Z0-9]{3,4})\s*(?<html_attr>[\s\S]+)?$/.match(rendered_markup)
|
|
45
45
|
if !markup
|
|
46
|
-
Jekyll.logger.abort_with('Cloudinary', "
|
|
46
|
+
Jekyll.logger.abort_with('Cloudinary', "Can't read this tag: #{@markup}")
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
image_src = markup[:image_src]
|
|
@@ -65,7 +65,7 @@ module Jekyll
|
|
|
65
65
|
else
|
|
66
66
|
natural_width = 100000
|
|
67
67
|
if settings['verbose']
|
|
68
|
-
Jekyll.logger.warn('Cloudinary', "
|
|
68
|
+
Jekyll.logger.warn('Cloudinary', "Couldn't find this image to check its width: #{image_path}")
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -74,7 +74,7 @@ module Jekyll
|
|
|
74
74
|
preset = preset.merge(settings['presets'][markup[:preset]])
|
|
75
75
|
else
|
|
76
76
|
if settings['verbose']
|
|
77
|
-
Jekyll.logger.warn('Cloudinary', "
|
|
77
|
+
Jekyll.logger.warn('Cloudinary', "'#{markup[:preset]}' preset for the Cloudinary plugin doesn't exist, using the default one")
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
80
|
end
|
|
@@ -129,7 +129,7 @@ module Jekyll
|
|
|
129
129
|
|
|
130
130
|
if natural_width < min_width
|
|
131
131
|
if settings['verbose']
|
|
132
|
-
Jekyll.logger.warn('Cloudinary', "
|
|
132
|
+
Jekyll.logger.warn('Cloudinary', "Width of source image '#{File.basename(image_src)}' (#{natural_width}px) in #{context['page'].path} not enough for ANY srcset version")
|
|
133
133
|
end
|
|
134
134
|
srcset << "https://res.cloudinary.com/#{settings['cloud_name']}/image/fetch/q_auto,f_auto/#{image_url} #{natural_width}w"
|
|
135
135
|
else
|
|
@@ -139,7 +139,7 @@ module Jekyll
|
|
|
139
139
|
srcset << "https://res.cloudinary.com/#{settings['cloud_name']}/image/fetch/c_scale,w_#{width},q_auto,f_auto/#{image_url} #{width}w"
|
|
140
140
|
else
|
|
141
141
|
if settings['verbose']
|
|
142
|
-
Jekyll.logger.warn('Cloudinary', "
|
|
142
|
+
Jekyll.logger.warn('Cloudinary', "Width of source image '#{File.basename(image_src)}' (#{natural_width}px) in #{context['page'].path} not enough for #{width}px version")
|
|
143
143
|
end
|
|
144
144
|
end
|
|
145
145
|
end
|