cssmin 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/HISTORY +5 -0
  2. data/lib/cssmin.rb +2 -2
  3. metadata +2 -2
data/HISTORY CHANGED
@@ -1,6 +1,11 @@
1
1
  CSSMin History
2
2
  ================================================================================
3
3
 
4
+ Version 1.0.2 (2008-08-23)
5
+ * Fixed a bug that could have resulted in a necessary space being removed if
6
+ it preceded a compressible color value, such as in the property
7
+ "border:1px solid #cccccc".
8
+
4
9
  Version 1.0.1 (2008-07-25)
5
10
  * Fixed a rare bug that could result in redundant semicolons.
6
11
 
@@ -33,7 +33,7 @@
33
33
  # script.
34
34
  #
35
35
  # Author:: Ryan Grove (mailto:ryan@wonko.com)
36
- # Version:: 1.0.1 (2008-07-25)
36
+ # Version:: 1.0.2 (2008-08-23)
37
37
  # Copyright:: Copyright (c) 2008 Ryan Grove. All rights reserved.
38
38
  # License:: New BSD License (http://opensource.org/licenses/bsd-license.php)
39
39
  # Website:: http://github.com/rgrove/cssmin/
@@ -93,7 +93,7 @@ module CSSMin
93
93
 
94
94
  # Compress color hex values, making sure not to touch values used in IE
95
95
  # filters, since they would break.
96
- css.gsub!(/([^"'=\s])\s*#([0-9a-f])\2([0-9a-f])\3([0-9a-f])\4/i, '\1#\2\3\4')
96
+ css.gsub!(/([^"'=\s])(\s?)\s*#([0-9a-f])\3([0-9a-f])\4([0-9a-f])\5/i, '\1\2#\3\4\5')
97
97
 
98
98
  # Remove empty rules.
99
99
  css.gsub!(/[^\}]+\{;\}\n/, '')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cssmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Grove
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-25 00:00:00 -07:00
12
+ date: 2008-08-23 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15