jekyll-assets 2.2.6 → 2.2.7

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: a1fcdef26bcae20f2b556204dc86af8dce96e1ef
4
- data.tar.gz: b0c9bd1584b0d25caeff7cd95ddb82f1f8539d9f
3
+ metadata.gz: b60091fd94e607aa756f20b2c108ef15882c4ab2
4
+ data.tar.gz: af2a668f6dfe50e8f89fe8101c2e30d983582623
5
5
  SHA512:
6
- metadata.gz: 9261a36b91c351729a9b1081b9e40ed786d6e641044ccda49348a36425698220303dffd4d3b388ce31ef49b3aa50c879b612e940586b89d4a47e0a95f770fecf
7
- data.tar.gz: 792001e489b1e36a4b966d3aca54007583a409dc8cfc6a059606f9098daef896b1d3b7b453aa2ba2ffddde9e48e9a4bec26818485a78c9f92809dd78e0f9818e
6
+ metadata.gz: efb0bcc8f8ff2ca2590778644df54bd793f81225422fcf748df9ceca0a0d650d85bc390d220ab9c9223cade43b9c6ac93789008f3d50fe18a85cf935a4892590
7
+ data.tar.gz: fb67b6f9a049fb19c499819f74c35d68b96ba0e6cf9c2aaf9fcf9065531cc6909d40f58c4de6fed2c446ca2692cec8af442db0d0ec03927cfecba211dbf743d7
@@ -43,7 +43,6 @@ module Jekyll
43
43
  )
44
44
 
45
45
  jekyll.sprockets.excludes.map(&jekyll.config["exclude"].method(:<<))
46
- jekyll.config["keep_files"] |= jekyll.sprockets.asset_config["prefix"].gsub(/\A\//, "").to_a
47
46
  jekyll.config["exclude"].uniq!
48
47
  end
49
48
  end
@@ -289,9 +288,11 @@ module Jekyll
289
288
  # These are assets that aren't proxied, they returned fals when
290
289
  # they were asked if they belonged to a proxy.
291
290
 
292
- manifest.compile(assets[false].map(
293
- &:logical_path
294
- ))
291
+ if assets.key?(false)
292
+ manifest.compile(assets[false].map(
293
+ &:logical_path
294
+ ))
295
+ end
295
296
 
296
297
  # Proxied assets will not compile the normal way since they are
297
298
  # always considered uniq when used, and they supply their own inline
@@ -92,7 +92,7 @@ module Jekyll
92
92
 
93
93
  def to_html
94
94
  (self[:html] || {}).map do |key, val|
95
- val == true || val == "true" ? key.to_s : %( #{key}="#{val}")
95
+ val == true || val == "true" ? " #{key}" : %( #{key}="#{val}")
96
96
  end.join
97
97
  end
98
98
 
@@ -0,0 +1,15 @@
1
+ module JekyllAssetsPatchesJekyllCleaner
2
+ def obsolete_files
3
+ super.delete_if do |v|
4
+ v.start_with?(site.in_dest_dir(
5
+ site.sprockets.prefix_path
6
+ ))
7
+ end
8
+ end
9
+ end
10
+
11
+ module Jekyll
12
+ class Cleaner
13
+ prepend JekyllAssetsPatchesJekyllCleaner
14
+ end
15
+ end
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Jekyll
6
6
  module Assets
7
- VERSION="2.2.6"
7
+ VERSION="2.2.7"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordon Bedwell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-10 00:00:00.000000000 Z
13
+ date: 2016-05-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sprockets
@@ -185,6 +185,7 @@ files:
185
185
  - lib/jekyll/assets/liquid/tag/proxies.rb
186
186
  - lib/jekyll/assets/logger.rb
187
187
  - lib/jekyll/assets/manifest.rb
188
+ - lib/jekyll/assets/patches/jekyll/cleaner.rb
188
189
  - lib/jekyll/assets/patches/jekyll/site.rb
189
190
  - lib/jekyll/assets/patches/kernel.rb
190
191
  - lib/jekyll/assets/patches/sprockets/asset.rb