jekyll-responsive-image 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acf6dd65d141c5c460607846dbab0ff66c14872e8e812f389c77988450ab0b50
4
- data.tar.gz: 2f7206e95230b9c73bb2328cabd9a7787a66d6a142efb2803d12e6edeb9e8db9
3
+ metadata.gz: 1909ebde883215332dd7959759fd16210425625d894c335ab1c61e281b06d66b
4
+ data.tar.gz: 3706ef2d62141b05ccc0bda0339577f03fc40b1e77dbcd08451701bea1a9b41c
5
5
  SHA512:
6
- metadata.gz: 1eec62dcb1ffe3ed76a64b7f9ff71019f9917b0f7f209f060eea56d769634d2b61d5792ef8963c4e8844b0c02ddb76b07982d86c66785b17c11914f888d2f163
7
- data.tar.gz: f47845d9f3c59eac66f1af384afb56a8aa67a7d2b60110d50fe61e64a9acfd89441b3330773e57b7696d7a345125e1b14dbb4b4e8bf09154a21c6ffa48b71774
6
+ metadata.gz: 663a345bde18ad69f1f9cf1063906b12777695de165dd8daf8f86d2ad2c880018e16f7d256402c3744401c2a5274033eb8660b30d96873be14de9f0ca28b76f7
7
+ data.tar.gz: 1296d008f081b9b8b86f7bd94309ac04b28b9bb1fc95c8f6c7a04b8267495b31d444c97b86abb1cbf00aa64bb24364d883fd8adb98114532cc1fc774247b0fcf
@@ -17,8 +17,19 @@ module Jekyll
17
17
  @site = site
18
18
  end
19
19
 
20
+ def valid_config(config)
21
+ config.has_key?('responsive_image') && config['responsive_image'].is_a?(Hash)
22
+ end
23
+
20
24
  def to_h
21
- DEFAULTS.merge(@site.config['responsive_image'])
25
+ config = {}
26
+
27
+ if valid_config(@site.config)
28
+ config = @site.config['responsive_image']
29
+ end
30
+
31
+
32
+ DEFAULTS.merge(config)
22
33
  .merge(site_source: @site.source, site_dest: @site.dest)
23
34
  end
24
35
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module ResponsiveImage
3
- VERSION = '1.5.1'.freeze
3
+ VERSION = '1.5.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-responsive-image
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Wynn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-20 00:00:00.000000000 Z
11
+ date: 2018-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll