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 +3 -0
- data/README.md +1 -1
- data/lib/htmlcompressor/rack.rb +1 -1
- data/lib/htmlcompressor/version.rb +1 -1
- metadata +70 -86
data/CHANGELOG
CHANGED
data/README.md
CHANGED
data/lib/htmlcompressor/rack.rb
CHANGED
@@ -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,93 +1,87 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: htmlcompressor
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
38
|
-
|
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
|
-
|
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
|
-
|
60
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
238
|
-
|
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
|
-
|
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.
|
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
|