oga 2.11-java → 2.12-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/c/lexer.c +1216 -1002
- data/ext/java/org/liboga/xml/Lexer.java +346 -313
- data/ext/ragel/base_lexer.rl +3 -0
- data/lib/liboga.jar +0 -0
- data/lib/oga/version.rb +1 -1
- data/oga.gemspec +1 -1
- metadata +3 -3
data/ext/ragel/base_lexer.rl
CHANGED
@@ -389,6 +389,7 @@
|
|
389
389
|
|
390
390
|
element_start = '<' ident_char;
|
391
391
|
element_end = '</';
|
392
|
+
element_start_pattern = '<' identifier (':' identifier)?;
|
392
393
|
|
393
394
|
# Machine used for lexing the name/namespace of an element.
|
394
395
|
element_name := |*
|
@@ -551,6 +552,7 @@
|
|
551
552
|
# Machine used for processing the contents of an XML element's starting tag.
|
552
553
|
element_head := |*
|
553
554
|
newline => advance_newline;
|
555
|
+
element_start_pattern;
|
554
556
|
|
555
557
|
# Attribute names and namespaces.
|
556
558
|
identifier ':' => {
|
@@ -578,6 +580,7 @@
|
|
578
580
|
# tag.
|
579
581
|
html_element_head := |*
|
580
582
|
newline => advance_newline;
|
583
|
+
element_start_pattern;
|
581
584
|
|
582
585
|
html_identifier => {
|
583
586
|
callback(id_on_attribute, data, encoding, ts, te);
|
data/lib/liboga.jar
CHANGED
Binary file
|
data/lib/oga/version.rb
CHANGED
data/oga.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.authors = ['Yorick Peterse']
|
7
7
|
s.email = 'yorickpeterse@gmail.com'
|
8
8
|
s.summary = 'Oga is an XML/HTML parser written in Ruby.'
|
9
|
-
s.homepage = 'https://
|
9
|
+
s.homepage = 'https://gitlab.com.com/yorickpeterse/oga/'
|
10
10
|
s.description = s.summary
|
11
11
|
s.license = 'MPL-2.0'
|
12
12
|
|
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: '2.
|
4
|
+
version: '2.12'
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Yorick Peterse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,7 +206,7 @@ files:
|
|
206
206
|
- lib/oga/xpath/lexer.rb
|
207
207
|
- lib/oga/xpath/parser.rb
|
208
208
|
- oga.gemspec
|
209
|
-
homepage: https://
|
209
|
+
homepage: https://gitlab.com.com/yorickpeterse/oga/
|
210
210
|
licenses:
|
211
211
|
- MPL-2.0
|
212
212
|
metadata: {}
|