oga 2.1-java → 2.2-java
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.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/liboga.jar +0 -0
- data/lib/oga/version.rb +1 -1
- data/lib/oga/xpath/compiler.rb +14 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 163b0e7eadf5bb5ebadb66dc597decb340081f8f
|
4
|
+
data.tar.gz: d69fa27825859e9facb54c4086636c7cc747f5bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 624e6f145b2dbef574096a5a0e4bd2201549efabe3864f376b3d287c82c0b2acb1878ac90ffea47f4992cc4447b1dbba0885088f99f343b8e1aa65a03f167b90
|
7
|
+
data.tar.gz: 066f854584acda346eacd3155c1ff44ed1452174483d9c2633d9a84c61fdbfc141509d54af3e3b456673d4c745f4f885194bf7c7bfd0a09be8c8e13d81df905a
|
data/README.md
CHANGED
data/lib/liboga.jar
CHANGED
Binary file
|
data/lib/oga/version.rb
CHANGED
data/lib/oga/xpath/compiler.rb
CHANGED
@@ -590,16 +590,20 @@ module Oga
|
|
590
590
|
def on_pipe(ast, input, &block)
|
591
591
|
left, right = *ast
|
592
592
|
|
593
|
-
union
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
.
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
593
|
+
union = unique_literal(:union)
|
594
|
+
|
595
|
+
# Expressions such as "a | b | c"
|
596
|
+
if left.type == :pipe
|
597
|
+
union.assign(process(left, input))
|
598
|
+
.followed_by(process(right, input) { |node| union << node })
|
599
|
+
.followed_by(union)
|
600
|
+
# Expressions such as "a | b"
|
601
|
+
else
|
602
|
+
union.assign(literal(XML::NodeSet).new)
|
603
|
+
.followed_by(process(left, input) { |node| union << node })
|
604
|
+
.followed_by(process(right, input) { |node| union << node })
|
605
|
+
.followed_by(union)
|
606
|
+
end
|
603
607
|
end
|
604
608
|
|
605
609
|
# @param [AST::Node] ast
|
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.2'
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Yorick Peterse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|