oga 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +57 -0
- data/doc/changelog.md +128 -0
- data/doc/css/common.css +5 -4
- data/doc/css_selectors.md +935 -0
- data/doc/manually_creating_documents.md +67 -0
- data/doc/xml_namespaces.md +63 -0
- data/ext/c/lexer.c +745 -628
- data/ext/c/lexer.h +8 -0
- data/ext/c/lexer.rl +44 -7
- data/ext/java/org/liboga/xml/Lexer.java +351 -232
- data/ext/java/org/liboga/xml/Lexer.rl +29 -8
- data/ext/ragel/base_lexer.rl +68 -18
- data/lib/oga.rb +4 -1
- data/lib/oga/css/lexer.rb +743 -0
- data/lib/oga/css/parser.rb +828 -0
- data/lib/oga/version.rb +1 -1
- data/lib/oga/xml/attribute.rb +3 -1
- data/lib/oga/xml/element.rb +15 -1
- data/lib/oga/xml/entities.rb +60 -0
- data/lib/oga/xml/html_void_elements.rb +2 -0
- data/lib/oga/xml/lexer.rb +36 -28
- data/lib/oga/xml/node_set.rb +22 -0
- data/lib/oga/xml/parser.rb +149 -128
- data/lib/oga/xml/querying.rb +24 -0
- data/lib/oga/xml/sax_parser.rb +55 -1
- data/lib/oga/xml/text.rb +6 -1
- data/lib/oga/xpath/evaluator.rb +138 -101
- data/lib/oga/xpath/lexer.rb +1205 -1294
- data/lib/oga/xpath/parser.rb +228 -204
- metadata +9 -4
- data/lib/oga/xpath/node.rb +0 -10
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yorick Peterse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: racc
|
@@ -155,7 +155,10 @@ files:
|
|
155
155
|
- doc/DCO.md
|
156
156
|
- doc/changelog.md
|
157
157
|
- doc/css/common.css
|
158
|
+
- doc/css_selectors.md
|
159
|
+
- doc/manually_creating_documents.md
|
158
160
|
- doc/migrating_from_nokogiri.md
|
161
|
+
- doc/xml_namespaces.md
|
159
162
|
- ext/c/extconf.rb
|
160
163
|
- ext/c/lexer.c
|
161
164
|
- ext/c/lexer.h
|
@@ -167,6 +170,8 @@ files:
|
|
167
170
|
- ext/java/org/liboga/xml/Lexer.rl
|
168
171
|
- ext/ragel/base_lexer.rl
|
169
172
|
- lib/oga.rb
|
173
|
+
- lib/oga/css/lexer.rb
|
174
|
+
- lib/oga/css/parser.rb
|
170
175
|
- lib/oga/html/parser.rb
|
171
176
|
- lib/oga/html/sax_parser.rb
|
172
177
|
- lib/oga/oga.rb
|
@@ -178,6 +183,7 @@ files:
|
|
178
183
|
- lib/oga/xml/doctype.rb
|
179
184
|
- lib/oga/xml/document.rb
|
180
185
|
- lib/oga/xml/element.rb
|
186
|
+
- lib/oga/xml/entities.rb
|
181
187
|
- lib/oga/xml/html_void_elements.rb
|
182
188
|
- lib/oga/xml/lexer.rb
|
183
189
|
- lib/oga/xml/namespace.rb
|
@@ -193,7 +199,6 @@ files:
|
|
193
199
|
- lib/oga/xml/xml_declaration.rb
|
194
200
|
- lib/oga/xpath/evaluator.rb
|
195
201
|
- lib/oga/xpath/lexer.rb
|
196
|
-
- lib/oga/xpath/node.rb
|
197
202
|
- lib/oga/xpath/parser.rb
|
198
203
|
- oga.gemspec
|
199
204
|
homepage: https://github.com/yorickpeterse/oga/
|
@@ -216,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
221
|
version: '0'
|
217
222
|
requirements: []
|
218
223
|
rubyforge_project:
|
219
|
-
rubygems_version: 2.
|
224
|
+
rubygems_version: 2.4.4
|
220
225
|
signing_key:
|
221
226
|
specification_version: 4
|
222
227
|
summary: Oga is an XML/HTML parser written in Ruby.
|