css_parser 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/css_parser/rule_set.rb +1 -2
- metadata +2 -2
data/lib/css_parser/rule_set.rb
CHANGED
@@ -84,10 +84,9 @@ module CssParser
|
|
84
84
|
|
85
85
|
# Iterate through declarations.
|
86
86
|
def each_declaration # :yields: property, value, is_important
|
87
|
-
decs = @declarations.sort { |a,b| a[1][:order] <=> b[1][:order] }
|
87
|
+
decs = @declarations.sort { |a,b| a[1][:order].nil? || b[1][:order].nil? ? 1 : a[1][:order] <=> b[1][:order] }
|
88
88
|
decs.each do |property, data|
|
89
89
|
value = data[:value]
|
90
|
-
#value += ' !important' if data[:is_important]
|
91
90
|
yield property.downcase.strip, value.strip, data[:is_important]
|
92
91
|
end
|
93
92
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: css_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-21 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|