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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3308a42b1dad8497bd451c773ea01b223f00b41
4
- data.tar.gz: cc962117a3eae7d9f0fc0c8f9237f874043201ba
3
+ metadata.gz: 3e60830dace0a6dcb2bf19bad613302ebd5c9782
4
+ data.tar.gz: 64df114a14328a77b536d72c6b929ce993b5ab0d
5
5
  SHA512:
6
- metadata.gz: beb1f8eee495ca26a301307c948dd4820bef808263f54ad61ef3a1a059b036254db2a77e519d1c54cb100c6f7bf2cd7c725ed330deb10404f4bc44b94ea0fa98
7
- data.tar.gz: 8bf9848b57654765c8f8587cb3a13800827da9baaa45f79077e8947e85679928f2b683d406c4d947aa269c9ec49bca34c8b2fdce744050c30082d8439652dab4
6
+ metadata.gz: 73c83f0a98d666d5048083ee7c3ae3144f1f1e63ea10dfed9775f8e3ab42953cecef3f7ad26a1a11092617791a9fa022365bbb612c81dfa9911ab2d955a075bc
7
+ data.tar.gz: c1c0dcef555a2359e5a86f18ce1185ee51962ce30c50e1f673b86249d9670e345a6e225cdd759be943467f9204a807b03dc8e3a9b6a534fee8ddad9ee6f53e15
@@ -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', "Cloudinary can't read this tag: #{@markup}. Try {% cloudinary [preset] path/to/img.jpg [attr=\"value\"] %}.")
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', "[Cloudinary] Couldn't find this image to check its width: #{image_path}")
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', "[Cloudinary] '#{markup[:preset]}' preset for the Cloudinary plugin doesn't exist in _config.yml, using the default one")
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', "[Cloudinary] Natural width of source image '#{File.basename(image_src)}' (#{natural_width}px) in #{context['page'].path} not enough for creating any srcset version")
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', "[Cloudinary] Natural width of source image '#{File.basename(image_src)}' (#{natural_width}px) in #{context['page'].path} not enough for creating #{width}px version")
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
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Cloudinary
3
- VERSION = "1.2.6"
3
+ VERSION = "1.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-cloudinary
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Hoizey