jekyll-cloudinary 1.4.0 → 1.5.0

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: e87bef18b51070a637ae7539a13a638a27d571ca
4
- data.tar.gz: 473cf42905c69823dc5ac3c76f62dd162955676c
3
+ metadata.gz: 04e0c61adde5295cf2b79d9de3fc9dba9053020a
4
+ data.tar.gz: b7e771d892b4eee737a632908f005b03f34b6e15
5
5
  SHA512:
6
- metadata.gz: 2a2b2b6167e9d6e7ffe0f2a54e17cb55790ca9d580c31bed43ba85188e2ad9f9b14d51d4c914916d4cb9ce0d8a3dea02e054824d0ae22f6d04c1ea7916a42240
7
- data.tar.gz: 9d7dd0df1d856afff22e45abd35303f373a81f015f1d83078689afc49769769b8940281b2579e9917417e2ef942a0d6c64a8ae99aa7607dfb4643e9f5c75f4a8
6
+ metadata.gz: dfa1f66da4bbe3d6edd7da3e109befb6c7f17c301459a1e55db3dcc68f65c2382e57288604f3f85ca76b73c2724319838ab99f755dc0e727af74f1258a5b93d0
7
+ data.tar.gz: 759caacb59bcd481083f52df3aea60d21b926aaa95e568f927b0ecbb1782143a62a22a13c5579b686797aae8d8a422022cb16614c666cf47b04e7a96c3d4693f
@@ -12,13 +12,14 @@ module Jekyll
12
12
  def render(context)
13
13
  # Default settings
14
14
  preset_defaults = {
15
- "min_width" => 320,
16
- "max_width" => 1200,
17
- "steps" => 5,
18
- "sizes" => "100vw",
19
- "figure" => "auto",
20
- "attributes" => {},
21
- "verbose" => false
15
+ "min_width" => 320,
16
+ "max_width" => 1200,
17
+ "fallback_max_width" => 1200,
18
+ "steps" => 5,
19
+ "sizes" => "100vw",
20
+ "figure" => "auto",
21
+ "attributes" => {},
22
+ "verbose" => false
22
23
  }
23
24
 
24
25
  # Settings
@@ -81,7 +82,7 @@ module Jekyll
81
82
  natural_width = image.columns
82
83
  natural_height = image.rows
83
84
  width_height = "width=\"#{natural_width}\" height=\"#{natural_height}\""
84
- fallback_url = "https://res.cloudinary.com/#{settings["cloud_name"]}/image/fetch/c_limit,w_#{natural_width},q_auto,f_auto/#{image_url}"
85
+ fallback_url = "https://res.cloudinary.com/#{settings["cloud_name"]}/image/fetch/c_limit,w_#{fallback_max_width},q_auto,f_auto/#{image_url}"
85
86
  else
86
87
  natural_width = 100_000
87
88
  width_height = ""
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Cloudinary
3
- VERSION = "1.4.0".freeze
3
+ VERSION = "1.5.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-cloudinary
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Hoizey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll