oga 2.13 → 2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oga/version.rb +1 -1
- data/lib/oga/xml/attribute.rb +4 -2
- data/lib/oga/xml/node.rb +2 -0
- data/lib/oga/xml/node_set.rb +2 -0
- data/lib/oga/xml/traversal.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0184b6dd3129310044ca8c4bfa74f279566d8b50d93fe0bd313384fd635cc74c'
|
4
|
+
data.tar.gz: '088ee09d1c4b398bf80f478f5e3072fd7341de0a7ec50547827f1243bbc13391'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84f951cd7414fa3a312380e343dc997ae9f94bdec825cff45b5ad8574a84276281cd4de71fb434a3c5fef08f0d76991810fb142d75176f37f66da6ca5c4e3f32
|
7
|
+
data.tar.gz: 5fbd1267ed3bcac28fd9dcec7c2735bdfc9437b717cd45c640ca2285cf974ea4deb3c12c896605531d918860de5e73eb6fd819c4dd9e7fd316785c63d696a729
|
data/lib/oga/version.rb
CHANGED
data/lib/oga/xml/attribute.rb
CHANGED
@@ -99,12 +99,14 @@ module Oga
|
|
99
99
|
end
|
100
100
|
|
101
101
|
# @see [Oga::XML::Node#each_ancestor]
|
102
|
-
def each_ancestor
|
102
|
+
def each_ancestor
|
103
|
+
return to_enum(:each_ancestor) unless block_given?
|
104
|
+
|
103
105
|
return unless element
|
104
106
|
|
105
107
|
yield element
|
106
108
|
|
107
|
-
element.each_ancestor
|
109
|
+
element.each_ancestor { |ancestor| yield ancestor }
|
108
110
|
end
|
109
111
|
|
110
112
|
private
|
data/lib/oga/xml/node.rb
CHANGED
data/lib/oga/xml/node_set.rb
CHANGED
data/lib/oga/xml/traversal.rb
CHANGED
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.14'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yorick Peterse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|