cozaepp 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/lib/cozaepp/version.rb +1 -1
- data/lib/cozaepp.rb +4 -4
- metadata +3 -2
data/CHANGELOG
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
Version 0.0.2
|
2
|
+
* Added SSL functionality (required by the production EPP service)
|
3
|
+
|
4
|
+
Version 0.0.1
|
5
|
+
* Initial version (built while testing accreditation against the test EPP environment)
|
6
|
+
* Supports all EPP messages documented by the registry, but a lot of the return data can be cleaned up.
|
data/lib/cozaepp/version.rb
CHANGED
data/lib/cozaepp.rb
CHANGED
@@ -7,7 +7,7 @@ require "cozaepp/version"
|
|
7
7
|
|
8
8
|
module CozaEPP
|
9
9
|
class Client
|
10
|
-
def initialize(server, tag, password, port = 3121)
|
10
|
+
def initialize(server, tag, password, sslcert = nil, sslkey = nil, port = 3121)
|
11
11
|
raise ArgumentError unless server and tag and password
|
12
12
|
@gemRoot = Gem::Specification.find_by_name("cozaepp").gem_dir
|
13
13
|
@eppTag = tag
|
@@ -16,7 +16,9 @@ module CozaEPP
|
|
16
16
|
:server => server,
|
17
17
|
:port => port,
|
18
18
|
:tag => tag,
|
19
|
-
:password => password
|
19
|
+
:password => password,
|
20
|
+
:sslcert => sslcert,
|
21
|
+
:sslkey => sslkey
|
20
22
|
)
|
21
23
|
@epp.open_connection
|
22
24
|
end
|
@@ -285,7 +287,6 @@ module CozaEPP
|
|
285
287
|
cltrid = gen_cltrid
|
286
288
|
xml = ERB.new(File.read(@gemRoot + "/erb/renew.erb")).result(binding)
|
287
289
|
result = @epp.send_request(xml)
|
288
|
-
puts result
|
289
290
|
statusCode = Hpricot::XML(result).at("//epp:epp//epp:response//epp:result")[:code]
|
290
291
|
statusMsg = Hpricot::XML(result).at("//epp:epp//epp:response//epp:result//epp:msg/")
|
291
292
|
svtrid = Hpricot::XML(result).at("//epp:epp//epp:response//epp:trID//epp:svTRID/")
|
@@ -297,7 +298,6 @@ module CozaEPP
|
|
297
298
|
cltrid = gen_cltrid
|
298
299
|
xml = ERB.new(File.read(@gemRoot + "/erb/set_autorenew.erb")).result(binding)
|
299
300
|
result = @epp.send_request(xml)
|
300
|
-
puts result
|
301
301
|
statusCode = Hpricot::XML(result).at("//epp:epp//epp:response//epp:result")[:code]
|
302
302
|
statusMsg = Hpricot::XML(result).at("//epp:epp//epp:response//epp:result//epp:msg/")
|
303
303
|
svtrid = Hpricot::XML(result).at("//epp:epp//epp:response//epp:trID//epp:svTRID/")
|
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.0.2
|
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-
|
12
|
+
date: 2012-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: epp
|
@@ -35,6 +35,7 @@ extensions: []
|
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
37
|
- .gitignore
|
38
|
+
- CHANGELOG
|
38
39
|
- Gemfile
|
39
40
|
- LICENSE
|
40
41
|
- README.md
|