cozaepp 0.0.3 → 0.0.4

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/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ Version 0.0.4
2
+ *Merge https://github.com/tgenov/cozaepp/commit/4605eb8107d259bc38dc3571381934be4368c92d
3
+
1
4
  Version 0.0.3
2
5
  *Removed dependency on epp gem from rubygems.org since it lacks SSL features (see README for installing SSL-capable gem)
3
6
 
data/README.md CHANGED
@@ -13,6 +13,7 @@ N.B version 0.0.2+ requires an SSL-patched version of the epp gem found at https
13
13
  Option 1:
14
14
 
15
15
  gem install cozaepp
16
+
16
17
  git clone https://github.com/tgenov/epp && cd epp && rake install
17
18
 
18
19
  Option 2:
@@ -1,3 +1,3 @@
1
1
  module Cozaepp
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/cozaepp.rb CHANGED
@@ -200,7 +200,16 @@ module CozaEPP
200
200
  svtrid = Hpricot::XML(result).at("//epp:epp//epp:response//epp:trID//epp:svTRID/")
201
201
  if statusCode == "1000" then
202
202
  resData = Hpricot::XML(result).at("//epp:epp//epp:response//epp:resData//")
203
- return {:status => statusCode, :text => statusMsg, :cltrid => cltrid, :svtrid => svtrid, :resdata => resData }
203
+ infoDomain = {
204
+ :domainName => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:name/"),
205
+ :domainRoid => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:roid/"),
206
+ :domainNs => Array.new,
207
+ :domainClID => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:clID/"),
208
+ }
209
+ Hpricot::XML(resData.to_s).search("//epp:resData//domain:infData//domain:ns//domain:hostAttr//domain:hostName/").each do |ns|
210
+ infoDomain[:domainNs] << ns
211
+ end
212
+ return {:status => statusCode, :text => statusMsg, :cltrid => cltrid, :svtrid => svtrid, :resdata => infoDomain }
204
213
  else
205
214
  return {:status => statusCode, :text => statusMsg, :cltrid => cltrid, :svtrid => svtrid }
206
215
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cozaepp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: