epp-client-hostmaster 0.2.4 → 0.2.5

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
- if nss.first.is_a? Hash
31
- nss.each do |ns|
30
+ nss.each do |ns|
31
+ if ns.is_a? Hash
32
32
  xml.domain :hostAttr do
33
33
  xml.domain :hostName, ns[:hostName]
34
34
  if ns.key?(:hostAddrv4)
@@ -42,9 +42,7 @@ module EPPClient
42
42
  end
43
43
  end
44
44
  end
45
- end
46
- else
47
- nss.each do |ns|
45
+ else
48
46
  xml.domain :hostObj, ns
49
47
  end
50
48
  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.4'
12
+ VERSION = '0.2.5'
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.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler