atom-tools 2.0.2 → 2.0.3
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.
- 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