epp-client-rgp 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA512:
3
- metadata.gz: 74573b716eb8db94db3c092191648cfc12ce808a80d7c111527b0ce1e2a1ced53ec77887aebfc3b3dce5da260598c7e9853f21c448ddce66f52b5df85b63bd85
4
- data.tar.gz: f90ccdb354674dd1c1093e1e5b344efbc360e1b08039c423cabbb66b9f005f43b9f3f75ae5ed44cae63adff00bda4b9b40a916e9c8fd2fd252421358ccbafa8f
5
2
  SHA1:
6
- metadata.gz: 384c9a890b26af9fa6c327eb03b982c0ebd69fff
7
- data.tar.gz: 918179c0025faa5bcfba43f780c31d98201ea22d
3
+ metadata.gz: 8c531a61775dd4ee51f6907764c61de3ef1dd6b5
4
+ data.tar.gz: 4ad9fc48f9eca08bb8e6eac054557edf73d1dab2
5
+ SHA512:
6
+ metadata.gz: 45c7157859de0998f7e1cef9830a5a423365241a6a8521a65b926f813c7c8b279a254acefd4b02c7518637eb38148735731a23da344cf57c7ba436c0de1a2854
7
+ data.tar.gz: 30e637510c02f1195409d915cc6cb53723c52c83d055f489a630c2523b1eedec30aa889d90dfd2ade3d82cea4a007c0b78057ad9202f86ea7d0e4b5f556c59fc
data/Rakefile CHANGED
@@ -2,9 +2,9 @@
2
2
  require 'rake'
3
3
  require 'rdoc/task'
4
4
  require 'rubygems/package_task'
5
- require "bundler/gem_helper"
5
+ require 'bundler/gem_helper'
6
6
 
7
- MY_GEMS = Dir['*.gemspec'].map {|g| g.sub(/.*-(.*)\.gemspec/, '\1')}
7
+ MY_GEMS = Dir['*.gemspec'].map { |g| g.sub(/.*-(.*)\.gemspec/, '\1') }
8
8
 
9
9
  MY_GEMS.each do |g|
10
10
  namespace g do
@@ -26,10 +26,10 @@ task :build => 'all:build'
26
26
  task :install => 'all:install'
27
27
  task :push => 'all:push'
28
28
 
29
- desc "Generate documentation for the Rails framework"
29
+ desc 'Generate documentation for the Rails framework'
30
30
  Rake::RDocTask.new do |rdoc|
31
31
  rdoc.rdoc_dir = 'doc/rdoc'
32
- rdoc.title = "Documentation"
32
+ rdoc.title = 'Documentation'
33
33
 
34
34
  rdoc.options << '--line-numbers' << '--inline-source'
35
35
  rdoc.options << '--charset' << 'utf-8'
@@ -38,4 +38,3 @@ Rake::RDocTask.new do |rdoc|
38
38
  rdoc.rdoc_files.include('ChangeLog')
39
39
  rdoc.rdoc_files.include('lib/**/*.rb')
40
40
  end
41
-
@@ -8,12 +8,12 @@ Gem::Specification.new do |gem|
8
8
  gem.email = ['m@absolight.fr']
9
9
  gem.description = 'RGP EPP client library.'
10
10
  gem.summary = 'RGP EPP client library'
11
- gem.homepage = "https://github.com/Absolight/epp-client"
11
+ gem.homepage = 'https://github.com/Absolight/epp-client'
12
12
 
13
13
  gem.required_ruby_version = '>= 1.8.7'
14
- gem.required_rubygems_version = ">= 1.3.6"
14
+ gem.required_rubygems_version = '>= 1.3.6'
15
15
 
16
- gem.files = [
16
+ gem.files = [
17
17
  'ChangeLog',
18
18
  'Gemfile',
19
19
  'MIT-LICENSE',
@@ -28,7 +28,7 @@ Gem::Specification.new do |gem|
28
28
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
29
29
  gem.require_paths = ['lib']
30
30
 
31
- gem.add_development_dependency "bundler", ">= 1.0.0"
31
+ gem.add_development_dependency 'bundler', '>= 1.0.0'
32
32
  gem.add_dependency('nokogiri', '~> 1.4')
33
33
  gem.add_dependency('builder', '>= 2.1.2')
34
34
  end
@@ -15,36 +15,34 @@ module EPPClient
15
15
  def domain_info_process(xml) #:nodoc:
16
16
  ret = super(xml)
17
17
  if (rgp_status = xml.xpath('epp:extension/rgp:infData/rgp:rgpStatus', EPPClient::SCHEMAS_URL)).size > 0
18
- ret[:rgpStatus] = rgp_status.map {|s| s.attr('s')}
18
+ ret[:rgpStatus] = rgp_status.map { |s| s.attr('s') }
19
19
  end
20
20
  ret
21
21
  end
22
22
 
23
23
  def domain_restore_xml(args) #:nodoc:
24
24
  command(lambda do |xml|
25
- xml.update do
26
- xml.update('xmlns' => EPPClient::SCHEMAS_URL['domain-1.0']) do
27
- xml.name args[:name]
28
- end
29
- end
25
+ xml.update do
26
+ xml.update('xmlns' => EPPClient::SCHEMAS_URL['domain-1.0']) do
27
+ xml.name args[:name]
28
+ end
29
+ end
30
30
  end, lambda do |xml|
31
- xml.update('xmlns' => EPPClient::SCHEMAS_URL['rgp-1.0']) do
32
- if args.key?(:report)
33
- xml.restore(:op => 'report') do
34
- [:preData, :postData, :delTime, :resTime, :resReason].each do |v|
35
- xml.__send__(v, args[:report][v])
36
- end
37
- args[:report][:statements].each do |s|
38
- xml.statement s
39
- end
40
- if args[:report].key?(:other)
41
- xml.other args[:report][:other]
42
- end
43
- end
44
- else
45
- xml.restore(:op => 'request')
46
- end
47
- end
31
+ xml.update('xmlns' => EPPClient::SCHEMAS_URL['rgp-1.0']) do
32
+ if args.key?(:report)
33
+ xml.restore(:op => 'report') do
34
+ [:preData, :postData, :delTime, :resTime, :resReason].each do |v|
35
+ xml.__send__(v, args[:report][v])
36
+ end
37
+ args[:report][:statements].each do |s|
38
+ xml.statement s
39
+ end
40
+ xml.other args[:report][:other] if args[:report].key?(:other)
41
+ end
42
+ else
43
+ xml.restore(:op => 'request')
44
+ end
45
+ end
48
46
  end)
49
47
  end
50
48
 
@@ -90,7 +88,7 @@ module EPPClient
90
88
  end
91
89
 
92
90
  def domain_restore_process(xml) #:nodoc:
93
- xml.xpath('epp:extension/rgp:upData/rgp:rgpStatus', EPPClient::SCHEMAS_URL).map {|s| s.attr('s')}
91
+ xml.xpath('epp:extension/rgp:upData/rgp:rgpStatus', EPPClient::SCHEMAS_URL).map { |s| s.attr('s') }
94
92
  end
95
93
  end
96
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epp-client-rgp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathieu Arnold
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2016-02-10 00:00:00 Z
12
+ date: 2016-02-17 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler