epp-client 0.0.2 → 0.0.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{epp-client}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Geoff Garside"]
12
- s.date = %q{2010-12-21}
12
+ s.date = %q{2011-04-21}
13
13
  s.description = %q{Client for communicating with EPP services}
14
14
  s.email = %q{geoff@geoffgarside.co.uk}
15
15
  s.extra_rdoc_files = [
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  ]
37
37
  s.homepage = %q{http://github.com/geoffgarside/epp-client}
38
38
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.7}
39
+ s.rubygems_version = %q{1.7.2}
40
40
  s.summary = %q{EPP (Extensible Provisioning Protocol) Client}
41
41
  s.test_files = [
42
42
  "test/helper.rb",
@@ -44,7 +44,6 @@ Gem::Specification.new do |s|
44
44
  ]
45
45
 
46
46
  if s.respond_to? :specification_version then
47
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
47
  s.specification_version = 3
49
48
 
50
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -19,6 +19,20 @@ module EPP
19
19
  end
20
20
  end
21
21
 
22
+ # Returns the last request sent to the EPP server
23
+ #
24
+ # @return [Request] last request sent to the EPP server
25
+ def _last_request
26
+ @conn.last_request
27
+ end
28
+
29
+ # Returns the last response received from the EPP server
30
+ #
31
+ # @return [Request] last response received from the EPP server
32
+ def _last_response
33
+ @conn.last_response
34
+ end
35
+
22
36
  # Send hello command
23
37
  def hello
24
38
  @conn.connection do
@@ -53,13 +53,26 @@ module EPP
53
53
  # for the payload to be added into
54
54
  # @return [Response] EPP Response object
55
55
  def request(command, payload = nil, &block)
56
- req = if payload.nil? && block_given?
56
+ @req = if payload.nil? && block_given?
57
57
  Request.new(command, next_tid, &block)
58
58
  else
59
59
  Request.new(command, payload, next_tid)
60
60
  end
61
61
 
62
- send_recv_frame(req.to_s)
62
+ @resp = send_recv_frame(@req.to_s)
63
+ end
64
+
65
+ # Return the Request object created by the last call to #request
66
+ #
67
+ # @return [Request] Last created EPP Request object
68
+ def last_request
69
+ @req
70
+ end
71
+ # Return the Response object created by the last call to #request
72
+ #
73
+ # @return [Response] Last created EPP Response object
74
+ def last_response
75
+ @resp
63
76
  end
64
77
 
65
78
  # Runs a block while logged into the receiver
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epp-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
4
+ hash: 25
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geoff Garside
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-21 00:00:00 +00:00
19
- default_executable:
18
+ date: 2011-04-21 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: shoulda
@@ -86,7 +85,6 @@ files:
86
85
  - lib/epp-client/server.rb
87
86
  - test/helper.rb
88
87
  - test/test_epp-client.rb
89
- has_rdoc: true
90
88
  homepage: http://github.com/geoffgarside/epp-client
91
89
  licenses: []
92
90
 
@@ -116,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
114
  requirements: []
117
115
 
118
116
  rubyforge_project:
119
- rubygems_version: 1.3.7
117
+ rubygems_version: 1.7.2
120
118
  signing_key:
121
119
  specification_version: 3
122
120
  summary: EPP (Extensible Provisioning Protocol) Client