htmlcompressor 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 0.0.7 - 08/07/2013
2
+ Rack: use content.bytesize over content.length
3
+ Minor fixes to README
1
4
  0.0.6 - 19/04/2013
2
5
  Switch to POSIX "bracket expression" from \p{Blank} to provide better ruby compatibility
3
6
  Minor fixes to README
data/README.md CHANGED
@@ -22,7 +22,7 @@ The compressor ships with basic and safe default options that may be overwritten
22
22
 
23
23
  ```ruby
24
24
  options = {
25
- :enabled => true
25
+ :enabled => true,
26
26
  :remove_multi_spaces => true,
27
27
  :remove_comments => true,
28
28
  :remove_intertag_spaces => false,
@@ -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,3 +1,3 @@
1
1
  module HtmlCompressor
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,93 +1,87 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: htmlcompressor
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Paolo Chiodi
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-04-19 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2013-07-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: yui-compressor
16
+ requirement: !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 55
28
- segments:
29
- - 0
30
- - 9
31
- - 6
20
+ - !ruby/object:Gem::Version
32
21
  version: 0.9.6
33
22
  type: :runtime
34
- name: yui-compressor
35
- version_requirements: *id001
36
23
  prerelease: false
37
- - !ruby/object:Gem::Dependency
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.9.6
30
+ - !ruby/object:Gem::Dependency
31
+ name: closure-compiler
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
34
+ requirements:
41
35
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 25
44
- segments:
45
- - 1
46
- - 1
47
- - 5
36
+ - !ruby/object:Gem::Version
48
37
  version: 1.1.5
49
38
  type: :development
50
- name: closure-compiler
51
- version_requirements: *id002
52
39
  prerelease: false
53
- - !ruby/object:Gem::Dependency
54
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
55
41
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
63
- type: :development
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.5
46
+ - !ruby/object:Gem::Dependency
64
47
  name: rake
65
- version_requirements: *id003
66
- prerelease: false
67
- - !ruby/object:Gem::Dependency
68
- requirement: &id004 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
69
49
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
77
54
  type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
78
63
  name: minitest
79
- version_requirements: *id004
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
80
71
  prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
81
78
  description: Put your html on a diet
82
- email:
79
+ email:
83
80
  - chiodi84@gmail.com
84
81
  executables: []
85
-
86
82
  extensions: []
87
-
88
83
  extra_rdoc_files: []
89
-
90
- files:
84
+ files:
91
85
  - .gitignore
92
86
  - CHANGELOG
93
87
  - Gemfile
@@ -220,41 +214,31 @@ files:
220
214
  - test/resources/xml/testRemoveCommentsResult.xml
221
215
  - test/resources/xml/testRemoveIntertagSpaces.xml
222
216
  - test/resources/xml/testRemoveIntertagSpacesResult.xml
223
- has_rdoc: true
224
- homepage: ""
217
+ homepage: ''
225
218
  licenses: []
226
-
227
219
  post_install_message:
228
220
  rdoc_options: []
229
-
230
- require_paths:
221
+ require_paths:
231
222
  - lib
232
- required_ruby_version: !ruby/object:Gem::Requirement
223
+ required_ruby_version: !ruby/object:Gem::Requirement
233
224
  none: false
234
- requirements:
235
- - - ">="
236
- - !ruby/object:Gem::Version
237
- hash: 3
238
- segments:
239
- - 0
240
- version: "0"
241
- required_rubygems_version: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ! '>='
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ required_rubygems_version: !ruby/object:Gem::Requirement
242
230
  none: false
243
- requirements:
244
- - - ">="
245
- - !ruby/object:Gem::Version
246
- hash: 3
247
- segments:
248
- - 0
249
- version: "0"
231
+ requirements:
232
+ - - ! '>='
233
+ - !ruby/object:Gem::Version
234
+ version: '0'
250
235
  requirements: []
251
-
252
236
  rubyforge_project:
253
- rubygems_version: 1.6.2
237
+ rubygems_version: 1.8.23
254
238
  signing_key:
255
239
  specification_version: 3
256
240
  summary: htmlcompressor provides a class and a rack middleware to minify html pages
257
- test_files:
241
+ test_files:
258
242
  - test/compressor_test.rb
259
243
  - test/resources/html/.svn/all-wcprops
260
244
  - test/resources/html/.svn/entries