epp-xml 0.10.0 → 0.10.1
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 +4 -4
- data/lib/client_transaction_id.rb +14 -0
- data/lib/epp-xml/contact.rb +4 -2
- data/lib/epp-xml/domain.rb +4 -2
- data/lib/epp-xml/keyrelay.rb +4 -2
- data/lib/epp-xml/session.rb +4 -2
- data/lib/epp-xml.rb +15 -9
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6e014f16dd7adb1748dd3015f6355ac4518b7ef
|
4
|
+
data.tar.gz: c7e957b18dd5760bda52a325473a06d38aee0ebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 828c3c112bc24d0af011a499beab2e7525cd79a5f347110741f3accf0b90b4a5da4697a1a00da7e20a55207a8c5e776f3d780b77453d0f28abf9782e179bc5b1
|
7
|
+
data.tar.gz: 486e13682b3b075e73dc02117d98e637a109ba23b763f10fe3e74b3e015878a10e2ea0f9d0ae89f2f2d9c6484f4fcc477c95aec35292eed73c5fa618ee961b2c
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ClientTransactionId
|
2
|
+
attr_accessor :cl_trid_prefix, :cl_trid
|
3
|
+
|
4
|
+
def initialize(args = {})
|
5
|
+
self.cl_trid = args[:cl_trid]
|
6
|
+
self.cl_trid_prefix = args[:cl_trid_prefix]
|
7
|
+
end
|
8
|
+
|
9
|
+
def clTRID
|
10
|
+
return cl_trid if cl_trid
|
11
|
+
return "#{cl_trid_prefix}-#{Time.now.to_i}" if cl_trid_prefix
|
12
|
+
Time.now.to_i
|
13
|
+
end
|
14
|
+
end
|
data/lib/epp-xml/contact.rb
CHANGED
data/lib/epp-xml/domain.rb
CHANGED
data/lib/epp-xml/keyrelay.rb
CHANGED
data/lib/epp-xml/session.rb
CHANGED
data/lib/epp-xml.rb
CHANGED
@@ -4,19 +4,25 @@ require 'epp-xml/session'
|
|
4
4
|
require 'epp-xml/domain'
|
5
5
|
require 'epp-xml/contact'
|
6
6
|
require 'epp-xml/keyrelay'
|
7
|
+
require 'client_transaction_id'
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
class EppXml
|
10
|
+
include ClientTransactionId
|
10
11
|
|
11
|
-
def
|
12
|
-
|
13
|
-
self.cl_trid_prefix = args[:cl_trid_prefix]
|
12
|
+
def domain
|
13
|
+
@cached_domain ||= EppXml::Domain.new(cl_trid: cl_trid, cl_trid_prefix: cl_trid_prefix)
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
def contact
|
17
|
+
@cached_contact ||= EppXml::Contact.new(cl_trid: cl_trid, cl_trid_prefix: cl_trid_prefix)
|
18
|
+
end
|
19
|
+
|
20
|
+
def session
|
21
|
+
@cached_session ||= EppXml::Session.new(cl_trid: cl_trid, cl_trid_prefix: cl_trid_prefix)
|
22
|
+
end
|
23
|
+
|
24
|
+
def keyrelay
|
25
|
+
@cached_keyrelay ||= EppXml::Keyrelay.new(cl_trid: cl_trid, cl_trid_prefix: cl_trid_prefix)
|
20
26
|
end
|
21
27
|
|
22
28
|
class << self
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epp-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GiTLAB LTD
|
@@ -72,6 +72,7 @@ executables: []
|
|
72
72
|
extensions: []
|
73
73
|
extra_rdoc_files: []
|
74
74
|
files:
|
75
|
+
- lib/client_transaction_id.rb
|
75
76
|
- lib/epp-xml.rb
|
76
77
|
- lib/epp-xml/contact.rb
|
77
78
|
- lib/epp-xml/domain.rb
|