csspool 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.txt +4 -0
- data/Rakefile +1 -1
- data/lib/css/sac/parser.rb +1 -1
- data/lib/css/sac/visitable.rb +3 -1
- data/test/test_conditional_selector.rb +3 -0
- metadata +52 -45
data/CHANGELOG.txt
CHANGED
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "lib")
|
|
7
7
|
GENERATED_PARSER = "lib/css/sac/generated_parser.rb"
|
8
8
|
GENERATED_PROPERTY_PARSER = "lib/css/sac/generated_property_parser.rb"
|
9
9
|
|
10
|
-
Hoe.new('csspool',
|
10
|
+
Hoe.new('csspool', "0.2.3") do |p|
|
11
11
|
p.rubyforge_name = 'csspool'
|
12
12
|
p.author = 'Aaron Patterson'
|
13
13
|
p.email = 'aaronp@rubyforge.org'
|
data/lib/css/sac/parser.rb
CHANGED
data/lib/css/sac/visitable.rb
CHANGED
@@ -69,7 +69,9 @@ module CSS
|
|
69
69
|
|
70
70
|
def visit_ConditionalSelector(o)
|
71
71
|
return false unless visit_SimpleSelector(o) # *sigh*
|
72
|
-
o.selector
|
72
|
+
[o.selector, o.condition].compact.all? { |x|
|
73
|
+
x.accept(self)
|
74
|
+
}
|
73
75
|
end
|
74
76
|
|
75
77
|
def visit_AttributeCondition(o)
|
metadata
CHANGED
@@ -1,33 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: csspool
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
7
|
-
|
8
|
-
summary: Parses CSS
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: aaronp@rubyforge.org
|
12
|
-
homepage: http://csspool.rubyforge.org/
|
13
|
-
rubyforge_project: csspool
|
14
|
-
description: CSSpool (pronounced "cesspool") is a validating SAC parser for CSS. The parser calls methods on a document handler depending on what it has found. CSSPool currently only supports CSS 2.1. CSSPool will not yield invalid properties or selectors.
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
25
|
-
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
4
|
+
version: 0.2.3
|
5
|
+
platform: ""
|
29
6
|
authors:
|
30
7
|
- Aaron Patterson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2007-12-05 00:00:00 -08:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hoe
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.3.0
|
23
|
+
version:
|
24
|
+
description: CSSpool (pronounced "cesspool") is a validating SAC parser for CSS. The parser calls methods on a document handler depending on what it has found. CSSPool currently only supports CSS 2.1. CSSPool will not yield invalid properties or selectors.
|
25
|
+
email: aaronp@rubyforge.org
|
26
|
+
executables: []
|
27
|
+
|
28
|
+
extensions: []
|
29
|
+
|
30
|
+
extra_rdoc_files:
|
31
|
+
- CHANGELOG.txt
|
32
|
+
- Manifest.txt
|
33
|
+
- README.txt
|
31
34
|
files:
|
32
35
|
- CHANGELOG.txt
|
33
36
|
- Manifest.txt
|
@@ -107,28 +110,32 @@ files:
|
|
107
110
|
- test/test_token.rb
|
108
111
|
- test/test_tokenizer.rb
|
109
112
|
- test/test_xpath.rb
|
110
|
-
|
111
|
-
|
113
|
+
has_rdoc: true
|
114
|
+
homepage: http://csspool.rubyforge.org/
|
115
|
+
post_install_message:
|
112
116
|
rdoc_options:
|
113
117
|
- --main
|
114
118
|
- README.txt
|
115
|
-
|
116
|
-
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: "0"
|
126
|
+
version:
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: "0"
|
132
|
+
version:
|
123
133
|
requirements: []
|
124
134
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 1.3.0
|
134
|
-
version:
|
135
|
+
rubyforge_project: csspool
|
136
|
+
rubygems_version: 0.9.5
|
137
|
+
signing_key:
|
138
|
+
specification_version: 2
|
139
|
+
summary: Parses CSS
|
140
|
+
test_files:
|
141
|
+
- test/test_all.rb
|