epp-client-base 0.13.1 → 0.14.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.
- checksums.yaml +7 -0
- data/lib/epp-client/domain.rb +74 -2
- data/lib/epp-client/version.rb +1 -1
- metadata +6 -40
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
metadata.gz: 77ee35cbe7938f4361e9f66716814012f9c1f30c93f0a514bd1316ee7a33dd82fd266609b7fa6cac31ebe9ab43d9251465f6cee240ca9214800ec9d05e14d8b6
|
4
|
+
data.tar.gz: f619b6f39bd0d9828ea288b9d7b3cd2ca05f9bca0cd7e6883c0471662b612fc750ce56aa03a2b64b84f2c396c0a3e660f6f471d0b717d388843c158fac6aee8e
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: 1c6900dbf010bf125e1b3214cd193abed46fbfb3
|
7
|
+
data.tar.gz: 3006a9a6ac7b05d6fe556cc02d92c93316a81e35
|
data/lib/epp-client/domain.rb
CHANGED
@@ -70,7 +70,9 @@ module EPPClient
|
|
70
70
|
# <tt>:roid</tt> the contact the authInfo is about.
|
71
71
|
#
|
72
72
|
# Returned is a hash mapping as closely as possible the result expected
|
73
|
-
# from the command as per Section
|
73
|
+
# from the command as per Section
|
74
|
+
# {3.1.2}[https://tools.ietf.org/html/rfc5731#section-3.1.2] of {RFC
|
75
|
+
# 5731}[https://tools.ietf.org/html/rfc5731] :
|
74
76
|
# [<tt>:name</tt>] The fully qualified name of the domain object.
|
75
77
|
# [<tt>:roid</tt>]
|
76
78
|
# The Repository Object IDentifier assigned to the domain object when
|
@@ -242,7 +244,7 @@ module EPPClient
|
|
242
244
|
#
|
243
245
|
# [<tt>:name</tt>] the domain name
|
244
246
|
# [<tt>:period</tt>]
|
245
|
-
# an optionnal hash containing the period for
|
247
|
+
# an optionnal hash containing the period for witch the domain is
|
246
248
|
# registered with the following keys :
|
247
249
|
# [<tt>:unit</tt>] the unit of time, either "m"onth or "y"ear.
|
248
250
|
# [<tt>:number</tt>] the number of unit of time.
|
@@ -407,5 +409,75 @@ module EPPClient
|
|
407
409
|
end
|
408
410
|
ret
|
409
411
|
end
|
412
|
+
|
413
|
+
def domain_transfer_xml(args) # :nodoc:
|
414
|
+
command do |xml|
|
415
|
+
xml.transfer('op' => args[:op]) do
|
416
|
+
xml.transfer('xmlns' => EPPClient::SCHEMAS_URL['domain-1.0']) do
|
417
|
+
xml.name(args[:name])
|
418
|
+
if args.key?(:period)
|
419
|
+
xml.period('unit' => args[:period][:unit]) do
|
420
|
+
args[:period][:number]
|
421
|
+
end
|
422
|
+
end
|
423
|
+
if args.key?(:authInfo)
|
424
|
+
xml.authInfo do
|
425
|
+
if args.key?(:roid)
|
426
|
+
xml.pw({:roid => args[:roid]}, args[:authInfo])
|
427
|
+
else
|
428
|
+
xml.pw(args[:authInfo])
|
429
|
+
end
|
430
|
+
end
|
431
|
+
end
|
432
|
+
end
|
433
|
+
end
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
# Transfers a domain
|
438
|
+
#
|
439
|
+
# Takes a hash with :
|
440
|
+
#
|
441
|
+
# [<tt>:name</tt>] The domain name
|
442
|
+
# [<tt>:op</tt>] An operation that can either be "query" or "request".
|
443
|
+
# [<tt>:authInfo</tt>]
|
444
|
+
# The authentication information and possibly <tt>:roid</tt> the contact
|
445
|
+
# the authInfo is about. The <tt>:authInfo</tt> information is optional
|
446
|
+
# when the operation type is "query" and mandatory when it is "request".
|
447
|
+
# [<tt>:period</tt>]
|
448
|
+
# An optionnal hash containing the period for witch the domain is
|
449
|
+
# registered with the following keys :
|
450
|
+
# [<tt>:unit</tt>] the unit of time, either "m"onth or "y"ear.
|
451
|
+
# [<tt>:number</tt>] the number of unit of time.
|
452
|
+
#
|
453
|
+
# Returned is a hash mapping as closely as possible the result expected
|
454
|
+
# from the command as per Section
|
455
|
+
# {3.1.3}[https://tools.ietf.org/html/rfc5731#section-3.1.3] and
|
456
|
+
# {3.2.4}[https://tools.ietf.org/html/rfc5731#section-3.2.4] of {RFC
|
457
|
+
# 5731}[https://tools.ietf.org/html/rfc5731] :
|
458
|
+
# [<tt>:name</tt>] The fully qualified name of the domain object.
|
459
|
+
# [<tt>:trStatus</tt>] The state of the most recent transfer request.
|
460
|
+
# [<tt>:reID</tt>]
|
461
|
+
# The identifier of the client that requested the object transfer.
|
462
|
+
# [<tt>:reDate</tt>] The date and time that the transfer was requested.
|
463
|
+
# [<tt>:acID</tt>]
|
464
|
+
# The identifier of the client that SHOULD act upon a PENDING transfer
|
465
|
+
# request. For all other status types, the value identifies the client
|
466
|
+
# that took the indicated action.
|
467
|
+
# [<tt>:acDate</tt>]
|
468
|
+
# The date and time of a required or completed response. For a PENDING
|
469
|
+
# request, the value identifies the date and time by which a response is
|
470
|
+
# required before an automated response action will be taken by the
|
471
|
+
# server. For all other status types, the value identifies the date and
|
472
|
+
# time when the request was completed.
|
473
|
+
#
|
474
|
+
# [<tt>:exDate</tt>]
|
475
|
+
# Optionnaly, the end of the domain object's validity period if the
|
476
|
+
# <transfer> command caused or causes a change in the validity period.
|
477
|
+
def domain_transfer(args)
|
478
|
+
response = send_request(domain_transfer_xml(args))
|
479
|
+
|
480
|
+
get_result(:xml => response, :callback => :domain_transfer_response)
|
481
|
+
end
|
410
482
|
end
|
411
483
|
end
|
data/lib/epp-client/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epp-client-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 13
|
9
|
-
- 1
|
10
|
-
version: 0.13.1
|
4
|
+
version: 0.14.0
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Mathieu Arnold
|
@@ -15,21 +9,15 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date:
|
12
|
+
date: 2016-02-10 00:00:00 Z
|
19
13
|
dependencies:
|
20
14
|
- !ruby/object:Gem::Dependency
|
21
15
|
name: bundler
|
22
16
|
prerelease: false
|
23
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
18
|
requirements:
|
26
19
|
- - ">="
|
27
20
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 23
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
- 0
|
33
21
|
version: 1.0.0
|
34
22
|
type: :development
|
35
23
|
version_requirements: *id001
|
@@ -37,14 +25,9 @@ dependencies:
|
|
37
25
|
name: nokogiri
|
38
26
|
prerelease: false
|
39
27
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
28
|
requirements:
|
42
29
|
- - ~>
|
43
30
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 7
|
45
|
-
segments:
|
46
|
-
- 1
|
47
|
-
- 4
|
48
31
|
version: "1.4"
|
49
32
|
type: :runtime
|
50
33
|
version_requirements: *id002
|
@@ -52,15 +35,9 @@ dependencies:
|
|
52
35
|
name: builder
|
53
36
|
prerelease: false
|
54
37
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
38
|
requirements:
|
57
39
|
- - ">="
|
58
40
|
- !ruby/object:Gem::Version
|
59
|
-
hash: 15
|
60
|
-
segments:
|
61
|
-
- 2
|
62
|
-
- 1
|
63
|
-
- 2
|
64
41
|
version: 2.1.2
|
65
42
|
type: :runtime
|
66
43
|
version_requirements: *id003
|
@@ -105,40 +82,29 @@ files:
|
|
105
82
|
homepage: https://github.com/Absolight/epp-client
|
106
83
|
licenses: []
|
107
84
|
|
85
|
+
metadata: {}
|
86
|
+
|
108
87
|
post_install_message:
|
109
88
|
rdoc_options: []
|
110
89
|
|
111
90
|
require_paths:
|
112
91
|
- lib
|
113
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
93
|
requirements:
|
116
94
|
- - ">="
|
117
95
|
- !ruby/object:Gem::Version
|
118
|
-
hash: 57
|
119
|
-
segments:
|
120
|
-
- 1
|
121
|
-
- 8
|
122
|
-
- 7
|
123
96
|
version: 1.8.7
|
124
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
98
|
requirements:
|
127
99
|
- - ">="
|
128
100
|
- !ruby/object:Gem::Version
|
129
|
-
hash: 23
|
130
|
-
segments:
|
131
|
-
- 1
|
132
|
-
- 3
|
133
|
-
- 6
|
134
101
|
version: 1.3.6
|
135
102
|
requirements: []
|
136
103
|
|
137
104
|
rubyforge_project:
|
138
|
-
rubygems_version:
|
105
|
+
rubygems_version: 2.0.17
|
139
106
|
signing_key:
|
140
|
-
specification_version:
|
107
|
+
specification_version: 4
|
141
108
|
summary: An extensible EPP client library
|
142
109
|
test_files: []
|
143
110
|
|
144
|
-
has_rdoc:
|