html_compressor 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,9 +10,8 @@ module HtmlCompressor #:nodoc:
10
10
 
11
11
  def self.default_options #:nodoc:
12
12
  super.merge(
13
- :munge => false,
14
- :optimize => true,
15
- :preserve_semicolons => false
13
+ :compress_js => true,
14
+ :compress_css => true
16
15
  )
17
16
  end
18
17
 
@@ -21,16 +20,24 @@ module HtmlCompressor #:nodoc:
21
20
  end
22
21
 
23
22
  private
24
- def command_option_for_munge(munge)
25
- munge ? [] : ["--nomunge"]
23
+ def command_option_for_comments(comments)
24
+ comments ? [] : ["--preserve-comments"]
26
25
  end
27
-
28
- def command_option_for_optimize(optimize)
29
- optimize ? [] : ["--disable-optimizations"]
26
+
27
+ def command_option_for_multi_spaces(multi_spaces)
28
+ multi_spaces ? [] : ["--preserve-multi-spaces"]
30
29
  end
31
-
32
- def command_option_for_preserve_semicolons(preserve_semicolons)
33
- preserve_semicolons ? ["--preserve-semi"] : []
30
+
31
+ def command_option_for_intertag_spaces(intertag_spaces)
32
+ intertag_spaces ? [] : ["--remove-intertag-spaces"]
33
+ end
34
+
35
+ def command_option_for_compress_js(compress_js)
36
+ compress_js ? [] : ["--compress-js"]
37
+ end
38
+
39
+ def command_option_for_compress_css(compress_css)
40
+ compress_css ? [] : ["--compress-css"]
34
41
  end
35
42
  end
36
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_compressor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-05-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: POpen4
16
- requirement: &2153611760 !ruby/object:Gem::Requirement
16
+ requirement: &2153536900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.1.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153611760
24
+ version_requirements: *2153536900
25
25
  description: Easily compress your files with html_compressor. Use html_compressor
26
26
  natively inside ruby code.
27
27
  email: me@ivanturkovic.com