epp-client-hostmaster 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,8 +27,8 @@ module EPPClient
27
27
 
28
28
  def domain_nss_xml(xml, nss)
29
29
  xml.domain :ns do
30
- nss.each do |ns|
31
- if ns.is_a? Hash
30
+ if nss.first.is_a? Hash
31
+ nss.each do |ns|
32
32
  xml.domain :hostAttr do
33
33
  xml.domain :hostName, ns[:hostName]
34
34
  if ns.key?(:hostAddrv4)
@@ -42,7 +42,9 @@ module EPPClient
42
42
  end
43
43
  end
44
44
  end
45
- else
45
+ end
46
+ else
47
+ nss.each do |ns|
46
48
  xml.domain :hostObj, ns
47
49
  end
48
50
  end
@@ -9,7 +9,7 @@ require "#{File.dirname(__FILE__)}/hostmaster-transfer"
9
9
 
10
10
  module EPPClient
11
11
  class Hostmaster < Base
12
- VERSION = '0.2.5'
12
+ VERSION = '0.2.6'
13
13
 
14
14
  SCHEMAS = %w(domain-1.1 host-1.1 contact-1.1 rgp-1.1)
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epp-client-hostmaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: