oga 2.9-java → 2.10-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d27e065ce05a7439b437bc7ea2ab2c52540a091
4
- data.tar.gz: 6d4b244371d61225e06b34ac178dc6efbbf8ef3c
3
+ metadata.gz: 90af3fae974cdb945df6dfa952f9196379326edc
4
+ data.tar.gz: 2162af9689c42d89e7a36da721316f7b5dc65c86
5
5
  SHA512:
6
- metadata.gz: d066607fa609522acac93dd6fa4607a83a7bdec373cd6ec60f3d73f4552caeaf08cc9d7419499a32fb018ce905c4bb7af49ff311fd1060459719202da1709b84
7
- data.tar.gz: 70b58daca99896cf059b88a7487468d976f7681fbac2729410016b841c33d1d59d3b37df2c3c708fb2eb9825770421d1a4adff1e8db95962e46a945c22bc16d0
6
+ metadata.gz: b1c5647df79713928315dd968371766667d26d0300559018b5d4bf88500cc474901fba2e36e087fe0d1885987203706e51aee7b94b23f644344fe17fe842eaaa
7
+ data.tar.gz: 7dff70deac042976831a70f40fa5b23f5a87e6a789aa521e4b454ffdebdc28eb7c9c95f05da9c1f06ea4d677a6dd1488b31236e3ce5517e5fecd6595e324c20c
Binary file
@@ -1,3 +1,3 @@
1
1
  module Oga
2
- VERSION = '2.9'
2
+ VERSION = '2.10'
3
3
  end # Oga
@@ -64,14 +64,14 @@ module Oga
64
64
  #
65
65
  # @return [Oga::XML::Attribute]
66
66
  def attribute(name)
67
- if html?
68
- ns = nil
67
+ name_str, ns = if html?
68
+ [name.to_s, nil]
69
69
  else
70
- name, ns = split_name(name)
70
+ split_name(name)
71
71
  end
72
72
 
73
73
  attributes.each do |attr|
74
- return attr if attribute_matches?(attr, ns, name)
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
- name, ns = split_name(name)
118
+ name_str, ns = split_name(name)
119
119
 
120
120
  attr = Attribute.new(
121
- :name => 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.9'
4
+ version: '2.10'
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-02-10 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement