atom-tools 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/atom/element.rb +7 -3
- data/lib/atom/http.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/atom/element.rb
CHANGED
@@ -288,10 +288,14 @@ module Atom # :nodoc:
|
|
288
288
|
|
289
289
|
self.on_build do |e,x|
|
290
290
|
if v = e.get(name)
|
291
|
-
|
292
|
-
|
291
|
+
n = name.to_s
|
292
|
+
|
293
|
+
if x.namespace != ns[1]
|
294
|
+
x.add_namespace *ns unless x.namespaces[ns[0]]
|
295
|
+
n = "#{ns[0]}:#{n}"
|
293
296
|
end
|
294
|
-
|
297
|
+
|
298
|
+
x.attributes[n] = v.to_s
|
295
299
|
end
|
296
300
|
end
|
297
301
|
end
|
data/lib/atom/http.rb
CHANGED