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 CHANGED
@@ -7,7 +7,7 @@ require "spec/rake/spectask"
7
7
  require "rake/clean"
8
8
 
9
9
  NAME = "atom-tools"
10
- VERS = "2.0.2"
10
+ VERS = "2.0.3"
11
11
 
12
12
  # the following from markaby-0.5's tools/rakehelp
13
13
  def setup_tests
@@ -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
- unless x.namespaces[ns[0]]
292
- x.add_namespace *ns
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
- x.attributes["#{ns[0]}:#{name}"] = v.to_s
297
+
298
+ x.attributes[n] = v.to_s
295
299
  end
296
300
  end
297
301
  end
@@ -17,7 +17,7 @@ class String # :nodoc:
17
17
  end
18
18
 
19
19
  module Atom
20
- TOOLS_VERSION = '2.0.2'
20
+ TOOLS_VERSION = '2.0.3'
21
21
  UA = "atom-tools " + TOOLS_VERSION
22
22
 
23
23
  module DigestAuth
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atom-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brendan Taylor