htmlcompressor 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db150f94d4a9895415b66144f22742b488f7d103
|
4
|
+
data.tar.gz: b8b9bf01a0f0e40a4edb37bb6c4434a1540252e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06a7a947efd76ccc0d612fc0bc79aa997db60708328b900f054785f3748538408a7d9dff01bff570d8f518e3b59b81d16d99fae38c72a6bef87544c7937cd86
|
7
|
+
data.tar.gz: 05c2dbfc982fade9bd16a3538f646352f537b4bdda21ca6afc6877c8f259dd729e4db30b108969c9b45df810eef91f7aa02e4be8fedcbd469d9a11896453fbaf
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
0.1.1 - 08/05/2014
|
2
|
+
Remove type=text/css from style elements (fixes #15)
|
3
|
+
0.1.0 - 05/05/2014
|
4
|
+
Do not depend on yui
|
5
|
+
Allow other javascript and css minifier (yui/closuer by default)
|
1
6
|
0.0.7 - 08/07/2013
|
2
7
|
Rack: use content.bytesize over content.length
|
3
8
|
Minor fixes to README
|
@@ -65,7 +65,7 @@ module HtmlCompressor
|
|
65
65
|
TYPE_ATTR_PATTERN = Regexp.new("type\\s*=\\s*([\\\"']*)(.+?)\\1", Regexp::MULTILINE | Regexp::IGNORECASE)
|
66
66
|
JS_TYPE_ATTR_PATTERN = Regexp.new("(<script[^>]*)type\\s*=\\s*([\"']*)(?:text|application)\/javascript\\2([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
67
67
|
JS_LANG_ATTR_PATTERN = Regexp.new("(<script[^>]*)language\\s*=\\s*([\"']*)javascript\\2([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
68
|
-
STYLE_TYPE_ATTR_PATTERN = Regexp.new("(<style[^>]*)type\\s*=\\s*([\"']*)text/style\\2([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
68
|
+
STYLE_TYPE_ATTR_PATTERN = Regexp.new("(<style[^>]*)type\\s*=\\s*([\"']*)text/(?:style|css)\\2([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
69
69
|
LINK_TYPE_ATTR_PATTERN = Regexp.new("(<link[^>]*)type\\s*=\\s*([\"']*)text/(?:css|plain)\\2([^>]*>)", Regexp::MULTILINE | Regexp::IGNORECASE)
|
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)
|
@@ -1 +1 @@
|
|
1
|
-
<style></style> <style></style> <style></style>
|
1
|
+
<style></style> <style></style> <style></style> <style></style> <style></style> <style></style>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paolo Chiodi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yui-compressor
|