htmlcompressor 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -70,7 +70,7 @@ module HtmlCompressor
|
|
70
70
|
LINK_REL_ATTR_PATTERN = Regexp.new("<link(?:[^>]*)rel\\s*=\\s*([\"']*)(?:alternate\\s+)?stylesheet\\1(?:[^>]*)>", Regexp::MULTILINE | Regexp::IGNORECASE)
|
71
71
|
FORM_METHOD_ATTR_PATTERN = Regexp.new("(<form[^>]*)method\\s*=\\s*([\"']*)get\\2([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
72
72
|
INPUT_TYPE_ATTR_PATTERN = Regexp.new("(<input[^>]*)type\\s*=\\s*([\"']*)text\\2([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
73
|
-
BOOLEAN_ATTR_PATTERN = Regexp.new("(<\\w+[^>]*)(checked|selected|disabled|readonly)\\s*=\\s*([\"']*)\\w*\\3([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
73
|
+
BOOLEAN_ATTR_PATTERN = Regexp.new("(<\\w+[^>]*[\"' ])(checked|selected|disabled|readonly)\\s*=\\s*([\"']*)\\w*\\3([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
74
74
|
EVENT_JS_PROTOCOL_PATTERN = Regexp.new("^javascript:\\s*(.+)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
75
75
|
HTTP_PROTOCOL_PATTERN = Regexp.new("(<[^>]+?(?:href|src|cite|action)\\s*=\\s*['\"])http:(//[^>]+?>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
76
76
|
HTTPS_PROTOCOL_PATTERN = Regexp.new("(<[^>]+?(?:href|src|cite|action)\\s*=\\s*['\"])https:(//[^>]+?>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
@@ -1 +1 @@
|
|
1
|
-
<input checked> <input checked="checked"> checked="checked" <input selected = ''> <input disabled=disabled> <input readonly='true' id="id"/>
|
1
|
+
<input checked> <input checked="checked"> checked="checked" <input selected = ''> <input disabled=disabled> <input readonly='true' id="id"/> <input id="id2" ng-disabled="compareDisabled" /> <input id="id3"ng-disabled="compareDisabled" />
|
@@ -1 +1 @@
|
|
1
|
-
<input checked> <input checked> checked="checked" <input selected> <input disabled> <input readonly id="id"/>
|
1
|
+
<input checked> <input checked> checked="checked" <input selected> <input disabled> <input readonly id="id"/> <input id="id2" ng-disabled="compareDisabled"/> <input id="id3"ng-disabled="compareDisabled"/>
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htmlcompressor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Paolo Chiodi
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-09-04 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: yui-compressor
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: closure-compiler
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,20 +46,23 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: rake
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- - '>='
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- - '>='
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: minitest
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ~>
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -212,26 +221,33 @@ files:
|
|
212
221
|
- test/test_helper.rb
|
213
222
|
homepage: ''
|
214
223
|
licenses: []
|
215
|
-
metadata: {}
|
216
224
|
post_install_message:
|
217
225
|
rdoc_options: []
|
218
226
|
require_paths:
|
219
227
|
- lib
|
220
228
|
required_ruby_version: !ruby/object:Gem::Requirement
|
229
|
+
none: false
|
221
230
|
requirements:
|
222
|
-
- - '>='
|
231
|
+
- - ! '>='
|
223
232
|
- !ruby/object:Gem::Version
|
224
233
|
version: '0'
|
234
|
+
segments:
|
235
|
+
- 0
|
236
|
+
hash: 3074038532829615995
|
225
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
|
+
none: false
|
226
239
|
requirements:
|
227
|
-
- - '>='
|
240
|
+
- - ! '>='
|
228
241
|
- !ruby/object:Gem::Version
|
229
242
|
version: '0'
|
243
|
+
segments:
|
244
|
+
- 0
|
245
|
+
hash: 3074038532829615995
|
230
246
|
requirements: []
|
231
247
|
rubyforge_project:
|
232
|
-
rubygems_version:
|
248
|
+
rubygems_version: 1.8.25
|
233
249
|
signing_key:
|
234
|
-
specification_version:
|
250
|
+
specification_version: 3
|
235
251
|
summary: htmlcompressor provides a class and a rack middleware to minify html pages
|
236
252
|
test_files:
|
237
253
|
- test/compressor_closure_test.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: db150f94d4a9895415b66144f22742b488f7d103
|
4
|
-
data.tar.gz: b8b9bf01a0f0e40a4edb37bb6c4434a1540252e6
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: a06a7a947efd76ccc0d612fc0bc79aa997db60708328b900f054785f3748538408a7d9dff01bff570d8f518e3b59b81d16d99fae38c72a6bef87544c7937cd86
|
7
|
-
data.tar.gz: 05c2dbfc982fade9bd16a3538f646352f537b4bdda21ca6afc6877c8f259dd729e4db30b108969c9b45df810eef91f7aa02e4be8fedcbd469d9a11896453fbaf
|