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
Show file tree
Hide file tree
Changes from all commits
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
39 changes: 28 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,31 +1,47 @@
PATH
remote: .
specs:
epp-client-afnic (0.12.0)
epp-client-afnic (0.13.1)
builder (>= 2.1.2)
epp-client-base (= 0.12.0)
epp-client-rgp (= 0.12.0)
epp-client-secdns (= 0.12.0)
epp-client-base (= 0.13.1)
epp-client-rgp (= 0.13.1)
epp-client-secdns (= 0.13.1)
nokogiri (~> 1.4)
epp-client-base (0.12.0)
epp-client-base (0.13.1)
builder (>= 2.1.2)
nokogiri (~> 1.4)
epp-client-rgp (0.12.0)
epp-client-rgp (0.13.1)
builder (>= 2.1.2)
nokogiri (~> 1.4)
epp-client-secdns (0.12.0)
epp-client-secdns (0.13.1)
builder (>= 2.1.2)
nokogiri (~> 1.4)
epp-client-smallregistry (0.12.0)
epp-client-smallregistry (0.13.1)
builder (>= 2.1.2)
epp-client-base (= 0.12.0)
epp-client-base (= 0.13.1)
epp-client-secdns (= 0.13.1)
nokogiri (~> 1.4)

GEM
remote: http://rubygems.org/
specs:
builder (3.1.4)
nokogiri (1.5.6)
builder (3.2.2)
diff-lcs (1.2.5)
mini_portile (0.6.0)
nokogiri (1.6.3.1)
mini_portile (= 0.6.0)
rspec (3.1.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
rspec-mocks (~> 3.1.0)
rspec-core (3.1.7)
rspec-support (~> 3.1.0)
rspec-expectations (3.1.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.1.0)
rspec-mocks (3.1.3)
rspec-support (~> 3.1.0)
rspec-support (3.1.2)

PLATFORMS
ruby
Expand All @@ -37,3 +53,4 @@ DEPENDENCIES
epp-client-rgp!
epp-client-secdns!
epp-client-smallregistry!
rspec
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require 'rake'
require 'rdoc/task'
require 'rubygems/package_task'
require "bundler/gem_helper"
require 'rspec/core/rake_task'

MY_GEMS = Dir['*.gemspec'].map {|g| g.sub(/.*-(.*)\.gemspec/, '\1')}

Expand Down Expand Up @@ -39,3 +40,6 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end

RSpec::Core::RakeTask.new(:spec)

task :default => :spec
21 changes: 11 additions & 10 deletions epp-client-base.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
require File.expand_path('../lib/epp-client/version', __FILE__)

Gem::Specification.new do |gem|
gem.name = 'epp-client-base'
gem.name = 'globo-epp-client'
gem.version = EPPClient::VERSION
gem.authors = ['Mathieu Arnold']
gem.email = ['[email protected]']
gem.authors = ['Ernesto Thorp']
gem.email = ['[email protected]']
gem.description = 'An extensible EPP client library.'
gem.summary = 'An extensible EPP client library'
gem.homepage = "https://github.com/Absolight/epp-client"

gem.required_ruby_version = '>= 1.8.7'
gem.required_rubygems_version = ">= 1.3.6"
gem.summary = 'An extensible EPP client library based on https://github.com/Absolight/epp-client'
gem.homepage = "https://github.com/ernestothorp/epp-client"
gem.required_ruby_version = '>= 2.0.0'
gem.required_rubygems_version = ">= 2.0.0"

gem.files = [
'ChangeLog',
Expand Down Expand Up @@ -47,7 +46,9 @@ Gem::Specification.new do |gem|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.require_paths = ['lib']

gem.add_development_dependency "bundler", ">= 1.0.0"
gem.add_development_dependency "bundler", "~> 1.6"
gem.add_development_dependency "rake"
gem.add_development_dependency 'rspec'

gem.add_dependency('nokogiri', '~> 1.4')
gem.add_dependency('builder', '>= 2.1.2')
end
10 changes: 1 addition & 9 deletions lib/epp-client/base.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'openssl'
require 'socket'
require 'nokogiri'
require 'builder'
require 'date'
require "epp-client/version"
require 'epp-client/xml'
Expand All @@ -22,19 +21,12 @@ class Base
host-1.0
contact-1.0
]
SCHEMAS_EXT_IETF = %w[
rgp-1.0
]

EPPClient::SCHEMAS_URL = SCHEMAS.inject({}) do |a,s|
a[s.sub(/-1\.0$/, '')] = "urn:ietf:params:xml:ns:#{s}" if s =~ /-1\.0$/
a[s] = "urn:ietf:params:xml:ns:#{s}"
a
end.merge!(SCHEMAS_EXT_IETF.inject({}) do |a,s|
a[s.sub(/-1\.0$/, '')] = "urn:ietf:params:xml:ns:#{s}" if s =~ /-1\.0$/
a[s] = "urn:ietf:params:xml:ns:#{s}"
a
end)
end

include EPPClient::XML
include EPPClient::Session
Expand Down
2 changes: 1 addition & 1 deletion lib/epp-client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def send_request(xml)
# sends a frame
def send_frame(xml)
@sent_frame = xml
@socket.write([xml.size + 4].pack("N") + xml)
@socket.write([xml.bytesize + 4].pack("N") + xml)
sent_frame_to_xml
return
end
Expand Down
Loading