Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing namespace to contact xmls #2

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c602856
added namespace support and authInfo to contact check
Jul 22, 2014
8d3b7a1
fixed contact check response. It was showing only the last record que…
Jul 22, 2014
14519a4
added namespace support to contact info
Jul 22, 2014
3428a3c
added namespace support to contact create
Jul 22, 2014
2991a86
added namespace support to contact delete
Jul 22, 2014
b47e651
added namespace support to domain check
Jul 23, 2014
c0b043c
added namespace support to domain info
Jul 23, 2014
a0e55e1
added crID field to domain info response
Jul 23, 2014
1611832
added namespace support to contatct update
Jul 23, 2014
b94af79
added namespace support to domain create
Jul 23, 2014
5539f84
added namespace support to domain update
Jul 23, 2014
4207dd9
added namespace support to domain delete
Jul 23, 2014
1fbace1
Replacing Builder::XmlMarkup by Nokogiri::XML::Builder
Oct 31, 2014
7f78265
updating Gemfile.lock
Oct 31, 2014
111ad71
bump to version 0.13.3
Oct 31, 2014
e20bb9c
setting env for testing
Oct 31, 2014
759d31d
fixing authInfo on ContatcInfo
Oct 31, 2014
4485870
Merge branch 'master' into testing
Oct 31, 2014
37b80b4
Fixed disclose with no type value on contact info.
Oct 31, 2014
2c83c12
added initial tests
Oct 31, 2014
375781e
removing authInfo from contact check
Nov 3, 2014
147a6c8
changed xml size count to bitesize to support two bytes characteres
Dec 11, 2014
eaf18fc
added test for contact_check with single item
Jan 16, 2015
5915132
set extension to return a simple xml to make compatible with tests
Jan 16, 2015
3d23386
added msg_id and msg_count to the return message of poll_req
Jan 16, 2015
84bead3
Removed builder requirement.
Jan 16, 2015
4d56bd0
removed wrong sintax
Jan 16, 2015
bc57b17
Fixed some missing namespace definitions.
Jan 16, 2015
3f26b68
Moved to new gem file
Jan 16, 2015
1e588bd
bump to version 1.0.3
Jan 16, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
added namespace support and authInfo to contact check
Ernesto Thorp committed Jul 22, 2014
commit c602856fe4980df9cbd5d01e01f102549b84d88f
30 changes: 19 additions & 11 deletions lib/epp-client/contact.rb
Original file line number Diff line number Diff line change
@@ -2,17 +2,25 @@ module EPPClient
module Contact
EPPClient::Poll::PARSERS['contact:infData'] = :contact_info_process

def contact_check_xml(*contacts) #:nodoc:
command do |xml|
xml.check do
xml.check('xmlns' => EPPClient::SCHEMAS_URL['contact-1.0']) do
contacts.each do |c|
xml.id(c)
end
end
end
end
end
CONTACT_NS = 'contact'

def contact_check_xml(contacts)
command do |xml|
xml.check do
xml.check do
xml.parent.namespace = xml.parent.add_namespace_definition(CONTACT_NS, EPPClient::SCHEMAS_URL[CONTACT_NS])
contacts[:ids].each do |contact|
xml[CONTACT_NS].id contact
end
if contacts.key?(:authInfo)
xml[CONTACT_NS].authInfo do
xml[CONTACT_NS].pw(contacts[:authInfo])
end
end
end
end
end
end

# Check the availability of contacts
#