epp-xml 0.3.0 → 0.4.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 +4 -4
- data/lib/epp-xml/domain.rb +16 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bbebda20c6d357f69d3e3723b7740f3a68eff0c
|
4
|
+
data.tar.gz: 268936fe59a1966ba1eb9f79c253d6f42565bbd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97bd39a12161c6f6af2d91b9f475d09c17b799822ee7853bee46d6ba76dcd2e71d01d1d7440d45f71cbebeac7f5c020cf16b98052fa95c8c57bbe440a7b03acf
|
7
|
+
data.tar.gz: 93afc3a6c8c65eb3f553116067b3fcae6c4a09316ec6389dbf32c00f0292f64c86b82379102eb0f6a94a188b1b43434e1824ee1e834edcf53e88b7895af840bb
|
data/lib/epp-xml/domain.rb
CHANGED
@@ -143,5 +143,21 @@ module EppXmlCore
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
end
|
146
|
+
|
147
|
+
def renew(xml_params = {})
|
148
|
+
xml = Builder::XmlMarkup.new
|
149
|
+
|
150
|
+
xml.instruct!(:xml, standalone: 'no')
|
151
|
+
xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0') do
|
152
|
+
xml.command do
|
153
|
+
xml.renew do
|
154
|
+
xml.tag!('domain:renew', 'xmlns:domain' => 'urn:ietf:params:xml:ns:domain-1.0') do
|
155
|
+
EppXml.generate_xml_from_hash(xml_params, xml, 'domain:')
|
156
|
+
end
|
157
|
+
end
|
158
|
+
xml.clTRID 'ABC-12345'
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
146
162
|
end
|
147
163
|
end
|