css_parser 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/css_parser.rb +1 -1
- data/lib/css_parser/rule_set.rb +7 -0
- metadata +3 -6
data/lib/css_parser.rb
CHANGED
data/lib/css_parser/rule_set.rb
CHANGED
@@ -64,6 +64,13 @@ module CssParser
|
|
64
64
|
end
|
65
65
|
alias_method :[]=, :add_declaration!
|
66
66
|
|
67
|
+
# Remove CSS declaration from the current RuleSet.
|
68
|
+
#
|
69
|
+
# rule_set.remove_declaration!('color')
|
70
|
+
def remove_declaration!(property)
|
71
|
+
@declarations.delete(property)
|
72
|
+
end
|
73
|
+
|
67
74
|
# Iterate through selectors.
|
68
75
|
#
|
69
76
|
# Options
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: css_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 3
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
8
|
+
- 9
|
9
|
+
version: 1.1.9
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Alex Dunae
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-04-01 00:00:00 -07:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -65,7 +64,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
66
65
|
- - ">="
|
67
66
|
- !ruby/object:Gem::Version
|
68
|
-
hash: 3
|
69
67
|
segments:
|
70
68
|
- 0
|
71
69
|
version: "0"
|
@@ -74,7 +72,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
72
|
requirements:
|
75
73
|
- - ">="
|
76
74
|
- !ruby/object:Gem::Version
|
77
|
-
hash: 3
|
78
75
|
segments:
|
79
76
|
- 0
|
80
77
|
version: "0"
|