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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/epp-xml/domain.rb +16 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1438a7162e74d7d25c738b65fd378c82ac92ff16
4
- data.tar.gz: eb7d053f8c8ab0234b117fb09a6dd1e3e05fd9aa
3
+ metadata.gz: 6bbebda20c6d357f69d3e3723b7740f3a68eff0c
4
+ data.tar.gz: 268936fe59a1966ba1eb9f79c253d6f42565bbd2
5
5
  SHA512:
6
- metadata.gz: 7a167218fde87fdc5204b9393bfccc6458b5355fe2b29cd5b44ee6bc5278f6fb0f8a016becf7db12e84a7a2d80d789304c17f176e16fea689e566274cdfee8f6
7
- data.tar.gz: 16ad2aceaefbe12503637377d57d5c707d7ecb3f83a1acb60c71a55b9d8bb5372ff70a0e50e3b28ede4c67b00f7c7a3195abc5748095d1800f9815ab21fdee9f
6
+ metadata.gz: 97bd39a12161c6f6af2d91b9f475d09c17b799822ee7853bee46d6ba76dcd2e71d01d1d7440d45f71cbebeac7f5c020cf16b98052fa95c8c57bbe440a7b03acf
7
+ data.tar.gz: 93afc3a6c8c65eb3f553116067b3fcae6c4a09316ec6389dbf32c00f0292f64c86b82379102eb0f6a94a188b1b43434e1824ee1e834edcf53e88b7895af840bb
@@ -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
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GiTLAB LTD