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: 725e6f476d76ed3b3a3f74c9e086ec5f8c11808f
4
- data.tar.gz: 10ee97c0bb5764ae2d28726c231a5261fe4a09df
3
+ metadata.gz: 1762198514ec77707e26b39d5ccc3abc0ff111ce
4
+ data.tar.gz: 6dd0fdef17c1f25598a79d13e63a3381b1d88d84
5
5
  SHA512:
6
- metadata.gz: d7f0f404032730695564bc323ecd5879156fd735217b16022a0df0a7218cd83c0e0e81c7b84fec2b4cd8b44b862a68d890f1e4c360d0b717ad66d005a8a83aa0
7
- data.tar.gz: 741847a36db91a290d7d582767709d65ca0275bbb757dbfd82cdd6dc12d82c678cf1c2312354a30e33bc8b162dcca00f0418676f6cc91132a3a2897513096a0c
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.length.to_s if headers['Content-Length']
46
+ headers['Content-Length'] = content.bytesize.to_s if headers['Content-Length']
47
47
 
48
48
  [status, headers, [content]]
49
49
  else
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module MinifyHtml
3
- VERSION = "3.1.0"
3
+ VERSION = "3.1.1"
4
4
  end
5
5
  end
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.0
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-06-25 00:00:00.000000000 Z
11
+ date: 2013-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core