maca-fork-csspool 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/CHANGELOG.rdoc +72 -0
  2. data/History.txt +4 -0
  3. data/Manifest.txt +70 -0
  4. data/README.rdoc +78 -0
  5. data/Rakefile +35 -0
  6. data/lib/csspool.rb +20 -0
  7. data/lib/csspool/collection.rb +50 -0
  8. data/lib/csspool/css.rb +7 -0
  9. data/lib/csspool/css/charset.rb +7 -0
  10. data/lib/csspool/css/declaration.rb +8 -0
  11. data/lib/csspool/css/document.rb +34 -0
  12. data/lib/csspool/css/document_handler.rb +51 -0
  13. data/lib/csspool/css/import_rule.rb +15 -0
  14. data/lib/csspool/css/media.rb +7 -0
  15. data/lib/csspool/css/rule_set.rb +12 -0
  16. data/lib/csspool/lib_croco.rb +78 -0
  17. data/lib/csspool/lib_croco/cr_additional_sel.rb +46 -0
  18. data/lib/csspool/lib_croco/cr_attr_sel.rb +16 -0
  19. data/lib/csspool/lib_croco/cr_doc_handler.rb +24 -0
  20. data/lib/csspool/lib_croco/cr_num.rb +13 -0
  21. data/lib/csspool/lib_croco/cr_parser.rb +11 -0
  22. data/lib/csspool/lib_croco/cr_parsing_location.rb +17 -0
  23. data/lib/csspool/lib_croco/cr_pseudo.rb +14 -0
  24. data/lib/csspool/lib_croco/cr_rgb.rb +18 -0
  25. data/lib/csspool/lib_croco/cr_selector.rb +33 -0
  26. data/lib/csspool/lib_croco/cr_simple_sel.rb +54 -0
  27. data/lib/csspool/lib_croco/cr_term.rb +97 -0
  28. data/lib/csspool/lib_croco/glist.rb +21 -0
  29. data/lib/csspool/node.rb +5 -0
  30. data/lib/csspool/sac.rb +2 -0
  31. data/lib/csspool/sac/document.rb +35 -0
  32. data/lib/csspool/sac/parser.rb +122 -0
  33. data/lib/csspool/selector.rb +35 -0
  34. data/lib/csspool/selectors.rb +8 -0
  35. data/lib/csspool/selectors/additional.rb +6 -0
  36. data/lib/csspool/selectors/attribute.rb +21 -0
  37. data/lib/csspool/selectors/class.rb +11 -0
  38. data/lib/csspool/selectors/id.rb +11 -0
  39. data/lib/csspool/selectors/pseudo_class.rb +13 -0
  40. data/lib/csspool/selectors/simple.rb +22 -0
  41. data/lib/csspool/selectors/type.rb +6 -0
  42. data/lib/csspool/selectors/universal.rb +6 -0
  43. data/lib/csspool/terms.rb +7 -0
  44. data/lib/csspool/terms/function.rb +17 -0
  45. data/lib/csspool/terms/hash.rb +6 -0
  46. data/lib/csspool/terms/ident.rb +15 -0
  47. data/lib/csspool/terms/number.rb +14 -0
  48. data/lib/csspool/terms/rgb.rb +23 -0
  49. data/lib/csspool/terms/string.rb +6 -0
  50. data/lib/csspool/terms/uri.rb +6 -0
  51. data/lib/csspool/visitable.rb +30 -0
  52. data/lib/csspool/visitors.rb +5 -0
  53. data/lib/csspool/visitors/children.rb +50 -0
  54. data/lib/csspool/visitors/comparable.rb +85 -0
  55. data/lib/csspool/visitors/iterator.rb +80 -0
  56. data/lib/csspool/visitors/to_css.rb +188 -0
  57. data/lib/csspool/visitors/visitor.rb +17 -0
  58. data/test/css/test_document.rb +13 -0
  59. data/test/css/test_import_rule.rb +42 -0
  60. data/test/helper.rb +67 -0
  61. data/test/sac/test_parser.rb +115 -0
  62. data/test/sac/test_properties.rb +43 -0
  63. data/test/sac/test_terms.rb +134 -0
  64. data/test/test_collection.rb +81 -0
  65. data/test/test_parser.rb +91 -0
  66. data/test/test_selector.rb +47 -0
  67. data/test/visitors/test_children.rb +20 -0
  68. data/test/visitors/test_comparable.rb +103 -0
  69. data/test/visitors/test_each.rb +19 -0
  70. data/test/visitors/test_to_css.rb +200 -0
  71. metadata +173 -0
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: maca-fork-csspool
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Aaron Patterson
8
+ - John Barnette
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-10-29 00:00:00 -06:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: ffi
18
+ type: :runtime
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ version:
26
+ - !ruby/object:Gem::Dependency
27
+ name: newgem
28
+ type: :development
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 1.4.1
35
+ version:
36
+ - !ruby/object:Gem::Dependency
37
+ name: hoe
38
+ type: :development
39
+ version_requirement:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 1.8.0
45
+ version:
46
+ description: |-
47
+ CSSPool is a CSS parser. CSSPool provides a SAC interface for parsing CSS as
48
+ well as a document oriented interface for parsing CSS.
49
+ email:
50
+ - aaronp@rubyforge.org
51
+ - jabarnette@rubyforge.org
52
+ executables: []
53
+
54
+ extensions: []
55
+
56
+ extra_rdoc_files:
57
+ - CHANGELOG.rdoc
58
+ - History.txt
59
+ - Manifest.txt
60
+ - README.rdoc
61
+ files:
62
+ - CHANGELOG.rdoc
63
+ - History.txt
64
+ - Manifest.txt
65
+ - README.rdoc
66
+ - Rakefile
67
+ - lib/csspool.rb
68
+ - lib/csspool/collection.rb
69
+ - lib/csspool/css.rb
70
+ - lib/csspool/css/charset.rb
71
+ - lib/csspool/css/declaration.rb
72
+ - lib/csspool/css/document.rb
73
+ - lib/csspool/css/document_handler.rb
74
+ - lib/csspool/css/import_rule.rb
75
+ - lib/csspool/css/media.rb
76
+ - lib/csspool/css/rule_set.rb
77
+ - lib/csspool/lib_croco.rb
78
+ - lib/csspool/lib_croco/cr_additional_sel.rb
79
+ - lib/csspool/lib_croco/cr_attr_sel.rb
80
+ - lib/csspool/lib_croco/cr_doc_handler.rb
81
+ - lib/csspool/lib_croco/cr_num.rb
82
+ - lib/csspool/lib_croco/cr_parser.rb
83
+ - lib/csspool/lib_croco/cr_parsing_location.rb
84
+ - lib/csspool/lib_croco/cr_pseudo.rb
85
+ - lib/csspool/lib_croco/cr_rgb.rb
86
+ - lib/csspool/lib_croco/cr_selector.rb
87
+ - lib/csspool/lib_croco/cr_simple_sel.rb
88
+ - lib/csspool/lib_croco/cr_term.rb
89
+ - lib/csspool/lib_croco/glist.rb
90
+ - lib/csspool/node.rb
91
+ - lib/csspool/sac.rb
92
+ - lib/csspool/sac/document.rb
93
+ - lib/csspool/sac/parser.rb
94
+ - lib/csspool/selector.rb
95
+ - lib/csspool/selectors.rb
96
+ - lib/csspool/selectors/additional.rb
97
+ - lib/csspool/selectors/attribute.rb
98
+ - lib/csspool/selectors/class.rb
99
+ - lib/csspool/selectors/id.rb
100
+ - lib/csspool/selectors/pseudo_class.rb
101
+ - lib/csspool/selectors/simple.rb
102
+ - lib/csspool/selectors/type.rb
103
+ - lib/csspool/selectors/universal.rb
104
+ - lib/csspool/terms.rb
105
+ - lib/csspool/terms/function.rb
106
+ - lib/csspool/terms/hash.rb
107
+ - lib/csspool/terms/ident.rb
108
+ - lib/csspool/terms/number.rb
109
+ - lib/csspool/terms/rgb.rb
110
+ - lib/csspool/terms/string.rb
111
+ - lib/csspool/terms/uri.rb
112
+ - lib/csspool/visitable.rb
113
+ - lib/csspool/visitors.rb
114
+ - lib/csspool/visitors/children.rb
115
+ - lib/csspool/visitors/comparable.rb
116
+ - lib/csspool/visitors/iterator.rb
117
+ - lib/csspool/visitors/to_css.rb
118
+ - lib/csspool/visitors/visitor.rb
119
+ - test/css/test_document.rb
120
+ - test/css/test_import_rule.rb
121
+ - test/helper.rb
122
+ - test/sac/test_parser.rb
123
+ - test/sac/test_properties.rb
124
+ - test/sac/test_terms.rb
125
+ - test/test_collection.rb
126
+ - test/test_parser.rb
127
+ - test/test_selector.rb
128
+ - test/visitors/test_children.rb
129
+ - test/visitors/test_comparable.rb
130
+ - test/visitors/test_each.rb
131
+ - test/visitors/test_to_css.rb
132
+ has_rdoc: true
133
+ homepage: http://csspool.rubyforge.org
134
+ licenses: []
135
+
136
+ post_install_message:
137
+ rdoc_options:
138
+ - --main
139
+ - README.rdoc
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: "0"
147
+ version:
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: "0"
153
+ version:
154
+ requirements: []
155
+
156
+ rubyforge_project: maca-fork-csspool
157
+ rubygems_version: 1.3.5
158
+ signing_key:
159
+ specification_version: 3
160
+ summary: CSSPool is a CSS parser
161
+ test_files:
162
+ - test/css/test_document.rb
163
+ - test/css/test_import_rule.rb
164
+ - test/sac/test_parser.rb
165
+ - test/sac/test_properties.rb
166
+ - test/sac/test_terms.rb
167
+ - test/test_collection.rb
168
+ - test/test_parser.rb
169
+ - test/test_selector.rb
170
+ - test/visitors/test_children.rb
171
+ - test/visitors/test_comparable.rb
172
+ - test/visitors/test_each.rb
173
+ - test/visitors/test_to_css.rb