middleman-minify-html 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3891e20a15317f783178a4f9c82880a17ffeb81a
4
- data.tar.gz: 26432f53bd14649a0e4beac1c6b272db754cd168
3
+ metadata.gz: 5df4c0a7461850bbd06d73d35d9a9e786967c2fd
4
+ data.tar.gz: 200af04b0d2195989f0cf7b5443d3637b20655d7
5
5
  SHA512:
6
- metadata.gz: 85548a64640d7bc8953bcabce16d0123141a4a6a1a48562892cb657b3571ff733d5980f7ea7517e576c4b0ce7c57ae917248beb469a9018f2457457b1d2d97b0
7
- data.tar.gz: 3f22dadfe118c3ec41d46c05c3b0049b09720082a3537816148b2531f66ece493fa13dccb3b6e0e71f0e76b7d035f891056754cd684ac10f7ebab99f9e9506b4
6
+ metadata.gz: 5997da6a701907aa9ad7f7ef82855a1261059c8071eb5c6eb1dec98379fcd1432fd2e1ae52c8e58ee36f27ed0a9e6065e7186deb3e563cbac1264bdf4a11c411
7
+ data.tar.gz: 221f487913eb299c0a60763b8d9c4249cc348177730b8aff01013e16c9251c32ed5133c7c4ed9ce335723ee0d8ac720ebeeb1fc85a9122c158f2494d45183422
@@ -22,6 +22,16 @@ Feature: Minify HTML
22
22
  echo "bar";
23
23
  ?>
24
24
  """
25
+
26
+ Scenario: Preview HTML with minify_html enabled and custom option
27
+ Given a fixture app "basic-app"
28
+ And a file named "config.rb" with:
29
+ """
30
+ activate :minify_html, :preserve_line_breaks => true
31
+ """
32
+ And the Server is running at "basic-app"
33
+ When I go to "/index.html"
34
+ Then I should see "13" lines
25
35
 
26
36
  Scenario: Build HTML with minify_html disabled
27
37
  Given a fixture app "basic-app"
@@ -1,5 +1,21 @@
1
1
  module Middleman
2
2
  class MinifyHtmlExtension < Extension
3
+ option :remove_multi_spaces, true, 'Remove multiple spaces'
4
+ option :remove_comments, true, 'Remove comments'
5
+ option :remove_intertag_spaces, false, 'Remove inter-tag spaces'
6
+ option :remove_quotes, true, 'Remove quotes'
7
+ option :simple_doctype, false, 'Use simple doctype'
8
+ option :remove_script_attributes, true, 'Remove script attributes'
9
+ option :remove_style_attributes, true, 'Remove style attributes'
10
+ option :remove_link_attributes, true, 'Remove link attributes'
11
+ option :remove_form_attributes, false, 'Remove form attributes'
12
+ option :remove_input_attributes, true, 'Remove input attributes'
13
+ option :remove_javascript_protocol, true, 'Remove JS protocol'
14
+ option :remove_http_protocol, true, 'Remove HTTP protocol'
15
+ option :remove_https_protocol, false, 'Remove HTTPS protocol'
16
+ option :preserve_line_breaks, false, 'Preserve line breaks'
17
+ option :simple_boolean_attributes, true, 'Use simple boolean attributes'
18
+
3
19
  def initialize(*)
4
20
  super
5
21
  require 'htmlcompressor'
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module MinifyHtml
3
- VERSION = "3.3.0"
3
+ VERSION = "3.4.0"
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.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-05 00:00:00.000000000 Z
11
+ date: 2014-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core