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: 92b6265bccddfa29250def7fd2807fb2335347cf
4
- data.tar.gz: 924523a9f8eb60ce59fdd4986ae2e1393bfd183e
3
+ metadata.gz: db150f94d4a9895415b66144f22742b488f7d103
4
+ data.tar.gz: b8b9bf01a0f0e40a4edb37bb6c4434a1540252e6
5
5
  SHA512:
6
- metadata.gz: 974bd79294afdb72d616d06bc4f55fc5838cf76733eb894bd22c9a5751fdb1c84c6e5472862fabae249d3fcee6aceacc2b794317fb0ae9d3f0d0a983467e0129
7
- data.tar.gz: 22cdb3b24b803a1557180151c09abdef893175a073773082ffb67356b890633b5c42bebafbdae3e78d3c56379f561798e4f9e892aed78e7043836a404eca2b77
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,3 +1,3 @@
1
1
  module HtmlCompressor
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,3 +1,6 @@
1
1
  <style type = "text/style"></style>
2
2
  <style type=text/style ></style>
3
- <style type='text/style' ></style>
3
+ <style type='text/style' ></style>
4
+ <style type = "text/css"></style>
5
+ <style type=text/css ></style>
6
+ <style type='text/css' ></style>
@@ -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.0
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-05 00:00:00.000000000 Z
11
+ date: 2014-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yui-compressor