oga 2.9 → 2.10
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/element.rb +6 -6
- 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: ca054209a46ed02cebe34a35ced0ca734c5a3394
|
4
|
+
data.tar.gz: f442f7a6c6e000ffd5c6c629a8769bdc8803f3cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd42fb7567835ad7ca296370c05da3caa5c4415bcc58e8b977a1812a8cb91be4b3cfd5571be94ed563165724f4c1d40dd2bb88048ea0be13beeccf1d54887c9c
|
7
|
+
data.tar.gz: 2ef7c1f07b5bdbabb5ebd69fe7251941dfe1b30b712c26eed704d1ef838fb6f651d9010b5051ae91bf95576ac406a886f1e34839fd80ae68c5bcfb8215ac38f6
|
data/lib/oga/version.rb
CHANGED
data/lib/oga/xml/element.rb
CHANGED
@@ -64,14 +64,14 @@ module Oga
|
|
64
64
|
#
|
65
65
|
# @return [Oga::XML::Attribute]
|
66
66
|
def attribute(name)
|
67
|
-
if html?
|
68
|
-
|
67
|
+
name_str, ns = if html?
|
68
|
+
[name.to_s, nil]
|
69
69
|
else
|
70
|
-
|
70
|
+
split_name(name)
|
71
71
|
end
|
72
72
|
|
73
73
|
attributes.each do |attr|
|
74
|
-
return attr if attribute_matches?(attr, ns,
|
74
|
+
return attr if attribute_matches?(attr, ns, name_str)
|
75
75
|
end
|
76
76
|
|
77
77
|
return
|
@@ -115,10 +115,10 @@ module Oga
|
|
115
115
|
if found
|
116
116
|
found.value = value
|
117
117
|
else
|
118
|
-
|
118
|
+
name_str, ns = split_name(name)
|
119
119
|
|
120
120
|
attr = Attribute.new(
|
121
|
-
:name =>
|
121
|
+
:name => name_str,
|
122
122
|
:namespace_name => ns,
|
123
123
|
:value => value
|
124
124
|
)
|
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.10'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yorick Peterse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|