jekyll-responsive-image 1.4.0 → 1.5.0

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
  SHA1:
3
- metadata.gz: aaf7bc08e95a4201122439d86c3bfd62d37e98ba
4
- data.tar.gz: a010b2ae2847171ed2521120511c5a8ffc4b3eb1
3
+ metadata.gz: 39a0e56cd79177328a80a7ba53020aa9737cda2b
4
+ data.tar.gz: f13a130e1ac736d72c1631fd9312638467c5bd81
5
5
  SHA512:
6
- metadata.gz: eb625fee4cb1bcda4a8409da12753af087130c5218fe404427d7d4147c3fc79527daf69cfcfa4abcc9f0e50f6e0f5e2a0953b194f9ff3a54fbb438327e7f2779
7
- data.tar.gz: 35dbf5e76fd8137e7c69cea950d6a311839c0c41291e9494182f944335565aa32459dc688370a16158137005a67ec8e6a4727c31d7065ccbbbad510d15132807
6
+ metadata.gz: f29cea1c288949624fc395642e6ca5bd5f2e26f0af02ea7e9682f6759de78550d7adabef85f814a85aa2ea24f0e75e34e56a0f9a1b5e37660df400cee34740d9
7
+ data.tar.gz: d8bf4434663a575200ee8a34d1c549c716a6c633275e579321334df0925d3797b7c7f71e630231b50043351a98422f651d152f8fc9d73822b2ea25a4277236e5
@@ -9,7 +9,8 @@ module Jekyll
9
9
  'extra_images' => [],
10
10
  'auto_rotate' => false,
11
11
  'save_to_source' => true,
12
- 'cache' => false
12
+ 'cache' => false,
13
+ 'strip' => false
13
14
  }
14
15
 
15
16
  def initialize(site)
@@ -36,6 +36,9 @@ module Jekyll
36
36
 
37
37
  Jekyll.logger.info "Generating #{target_filepath}"
38
38
 
39
+ if config['strip']
40
+ img.strip!
41
+ end
39
42
  i = img.scale(ratio)
40
43
  i.write(target_filepath) do |f|
41
44
  f.interlace = i.interlace
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module ResponsiveImage
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-responsive-image
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
  - Joseph Wynn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-16 00:00:00.000000000 Z
11
+ date: 2018-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll