cozaepp 0.0.5 → 0.1.0
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/lib/cozaepp/version.rb +1 -1
- data/lib/cozaepp.rb +31 -1
- metadata +2 -2
data/lib/cozaepp/version.rb
CHANGED
data/lib/cozaepp.rb
CHANGED
@@ -186,7 +186,32 @@ module CozaEPP
|
|
186
186
|
svtrid = Hpricot::XML(result).at("//epp:epp//epp:response//epp:trID//epp:svTRID/")
|
187
187
|
if statusCode == "1000" then
|
188
188
|
resData = Hpricot::XML(result).at("//epp:epp//epp:response//epp:resData//")
|
189
|
-
|
189
|
+
infoContact = {
|
190
|
+
:contactStatus => Array.new,
|
191
|
+
:contactName => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:postalInfo//contact:name/"),
|
192
|
+
:contactOrg => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:postalInfo//contact:org/"),
|
193
|
+
:contactStreet => Array.new,
|
194
|
+
:contactCity => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:postalInfo//contact:addr//contact:city/"),
|
195
|
+
:contactSp => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:postalInfo//contact:addr//contact:sp/"),
|
196
|
+
:contactPc => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:postalInfo//contact:addr//contact:pc/"),
|
197
|
+
:contactCc => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:postalInfo//contact:addr//contact:cc/"),
|
198
|
+
:contactVoice => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:voice/"),
|
199
|
+
:contactFax => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:fax/"),
|
200
|
+
:contactEmail => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:email/"),
|
201
|
+
:contactVoice => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:voice/"),
|
202
|
+
:contactClID => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:clID/"),
|
203
|
+
:contactCrID => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:crID/"),
|
204
|
+
:contactCrDate => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:crDate/"),
|
205
|
+
:contactUpID => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:upID/"),
|
206
|
+
:contactUpDate => Hpricot::XML(resData.to_s).at("//epp:resData//contact:infData//contact:upDate/"),
|
207
|
+
}
|
208
|
+
Hpricot::XML(resData.to_s).search("//epp:resData//contact:infData//contact:status//s/").each do |status|
|
209
|
+
infoContact[:contactStatus] << status
|
210
|
+
end
|
211
|
+
Hpricot::XML(resData.to_s).search("//epp:resData//contact:infData//contact:postalInfo//contact:addr//contact:street/").each do |street|
|
212
|
+
infoContact[:contactStreet] << street
|
213
|
+
end
|
214
|
+
return {:status => statusCode, :text => statusMsg, :cltrid => cltrid, :svtrid => svtrid, :resdata => resData, :infocontact => infoContact }
|
190
215
|
else
|
191
216
|
return {:status => statusCode, :text => statusMsg, :cltrid => cltrid, :svtrid => svtrid }
|
192
217
|
end
|
@@ -228,6 +253,11 @@ module CozaEPP
|
|
228
253
|
:domainRoid => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:roid/"),
|
229
254
|
:domainNs => Array.new,
|
230
255
|
:domainClID => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:clID/"),
|
256
|
+
:domainCrID => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:crID/"),
|
257
|
+
:domainCrDate => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:crDate/"),
|
258
|
+
:domainUpID => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:upID/"),
|
259
|
+
:domainUpDate => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:upDate/"),
|
260
|
+
:domainExDate => Hpricot::XML(resData.to_s).at("//epp:resData//domain:infData//domain:exDate/"),
|
231
261
|
}
|
232
262
|
Hpricot::XML(resData.to_s).search("//epp:resData//domain:infData//domain:ns//domain:hostAttr//domain:hostName/").each do |ns|
|
233
263
|
infoDomain[:domainNs] << ns
|
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
|
4
|
+
version: 0.1.0
|
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: 2012-11-
|
12
|
+
date: 2012-11-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: API to Uniforum's EPP service
|
15
15
|
email:
|