middleman-minify-html 3.1.0 → 3.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1762198514ec77707e26b39d5ccc3abc0ff111ce
|
4
|
+
data.tar.gz: 6dd0fdef17c1f25598a79d13e63a3381b1d88d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d694d6d1c70c964d3ba03a6f7c9edb45356fac7c51af0fd58276ecc8b45810629b3602f0850b83f55df296d4847ffb6ecf903bdd49006d744d80706baf555f3
|
7
|
+
data.tar.gz: 4f4e2362595d2cab57c9cb4af3b5b6cce5f39e6e235df3ccb8faf813f8e64988e594a80ac6635a0fa8a2ed43df19e564f2a91bf53c0a29a2ed54b910781e396f
|
@@ -3,13 +3,13 @@ module Middleman
|
|
3
3
|
class << self
|
4
4
|
def registered(app, options={})
|
5
5
|
app.set :html_compressor, false
|
6
|
-
|
6
|
+
|
7
7
|
app.after_configuration do
|
8
8
|
unless respond_to?(:html_compressor) && html_compressor
|
9
9
|
require File.join(File.dirname(__FILE__), 'vendor/htmlcompressor-0.0.6/lib/htmlcompressor')
|
10
10
|
set :html_compressor, ::HtmlCompressor::Compressor.new(options)
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
# Setup Rack to watch for inline JS
|
14
14
|
use ::HtmlCompressor::Rack, options
|
15
15
|
end
|
@@ -43,7 +43,7 @@ module HtmlCompressor
|
|
43
43
|
end
|
44
44
|
|
45
45
|
content = @compressor.compress(content)
|
46
|
-
headers['Content-Length'] = content.
|
46
|
+
headers['Content-Length'] = content.bytesize.to_s if headers['Content-Length']
|
47
47
|
|
48
48
|
[status, headers, [content]]
|
49
49
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-minify-html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Reynolds
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|