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 +4 -4
- data/lib/jekyll-responsive-image/config.rb +12 -1
- data/lib/jekyll-responsive-image/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1909ebde883215332dd7959759fd16210425625d894c335ab1c61e281b06d66b
|
4
|
+
data.tar.gz: 3706ef2d62141b05ccc0bda0339577f03fc40b1e77dbcd08451701bea1a9b41c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2018-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|