epp-client-smallregistry 0.15.0 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -7
  2. data/lib/epp-client/smallregistry.rb +4 -4
  3. metadata +72 -61
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 9ce55839344414492ea52c18a156de42b11aeb72
4
- data.tar.gz: 17511216caf0433573bd3e6943b55c07c4975b64
5
- SHA512:
6
- metadata.gz: fdf3af5bd4ab31b42768b41099f0cff5537a94a44affda477d976527c6114f1dfbc91c17b560a11860c9aa6f04c73380523d4114abfa3ffbddf13e2941401ca7
7
- data.tar.gz: 2fe2395652253fa87170e4ff2c00013758d3f0c4e6001ffc0087aa364d2adb6d8ea85a7a59b8e5fbbf718a7864dbd76ef89b8b4cbb563bf952dc0b06697f5c83
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 30e3e31bf0478cc2d1d4e3eda0d148f8074d5d3c
4
+ data.tar.gz: 7c282b61f2c1694d683946e16bcde1a599e61c4f
5
+ SHA512:
6
+ metadata.gz: 18c3ace2fc94b051d31d6cbbb0695f0d6b0dc9db3307c7cdb40ab619f93d94beafab4def35cf6925c03fa590ab1c1f3e9dd4d52919427d335fa7b2715a779f85
7
+ data.tar.gz: baef315f3d34fdadf839f8e5ccf6aafb1ca30a251ebbb87f60981fc97bb1cca271a6fc97a3ae2a375acf6fafa4d2798c940dbdf5f00c56c7c49e5e4c7e2f6c76
@@ -35,7 +35,7 @@ module EPPClient
35
35
  # See EPPClient for other attributes.
36
36
  def initialize(attrs)
37
37
  unless attrs.key?(:client_id) && attrs.key?(:password) && attrs.key?(:ssl_cert) && attrs.key?(:ssl_key)
38
- fail ArgumentError, 'client_id, password, ssl_cert and ssl_key are required'
38
+ raise ArgumentError, 'client_id, password, ssl_cert and ssl_key are required'
39
39
  end
40
40
  if attrs.delete(:test) == true
41
41
  attrs[:server] ||= 'epp.test.smallregistry.net'
@@ -70,14 +70,14 @@ module EPPClient
70
70
 
71
71
  def contact_info_process(xml) #:nodoc:
72
72
  ret = super
73
- if (contact = xml.xpath('epp:extension/sr:ext/sr:infData/sr:contact', EPPClient::SCHEMAS_URL)).size > 0
74
- if (person = contact.xpath('sr:person', EPPClient::SCHEMAS_URL)).size > 0
73
+ unless (contact = xml.xpath('epp:extension/sr:ext/sr:infData/sr:contact', EPPClient::SCHEMAS_URL)).empty?
74
+ unless (person = contact.xpath('sr:person', EPPClient::SCHEMAS_URL)).empty?
75
75
  ret[:person] = {
76
76
  :birthDate => Date.parse(person.xpath('sr:birthDate', EPPClient::SCHEMAS_URL).text),
77
77
  :birthPlace => person.xpath('sr:birthPlace', EPPClient::SCHEMAS_URL).text,
78
78
  }
79
79
  end
80
- if (org = contact.xpath('sr:org', EPPClient::SCHEMAS_URL)).size > 0
80
+ unless (org = contact.xpath('sr:org', EPPClient::SCHEMAS_URL)).empty?
81
81
  ret[:org] = { :companySerial => org.xpath('sr:companySerial', EPPClient::SCHEMAS_URL).text }
82
82
  end
83
83
  end
metadata CHANGED
@@ -1,76 +1,92 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: epp-client-smallregistry
3
- version: !ruby/object:Gem::Version
4
- version: 0.15.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.15.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Mathieu Arnold
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2016-02-17 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
19
17
  - - ">="
20
- - !ruby/object:Gem::Version
18
+ - !ruby/object:Gem::Version
21
19
  version: 1.0.0
22
20
  type: :development
23
- version_requirements: *id001
24
- - !ruby/object:Gem::Dependency
25
- name: nokogiri
26
21
  prerelease: false
27
- requirement: &id002 !ruby/object:Gem::Requirement
28
- requirements:
29
- - - ~>
30
- - !ruby/object:Gem::Version
31
- version: "1.4"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.4'
32
34
  type: :runtime
33
- version_requirements: *id002
34
- - !ruby/object:Gem::Dependency
35
- name: builder
36
35
  prerelease: false
37
- requirement: &id003 !ruby/object:Gem::Requirement
38
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: builder
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
39
45
  - - ">="
40
- - !ruby/object:Gem::Version
46
+ - !ruby/object:Gem::Version
41
47
  version: 2.1.2
42
48
  type: :runtime
43
- version_requirements: *id003
44
- - !ruby/object:Gem::Dependency
45
- name: epp-client-base
46
49
  prerelease: false
47
- requirement: &id004 !ruby/object:Gem::Requirement
48
- requirements:
49
- - - "="
50
- - !ruby/object:Gem::Version
51
- version: 0.15.0
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 2.1.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: epp-client-base
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.15.1
52
62
  type: :runtime
53
- version_requirements: *id004
54
- - !ruby/object:Gem::Dependency
55
- name: epp-client-secdns
56
63
  prerelease: false
57
- requirement: &id005 !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "="
60
- - !ruby/object:Gem::Version
61
- version: 0.15.0
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.15.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: epp-client-secdns
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 0.15.1
62
76
  type: :runtime
63
- version_requirements: *id005
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 0.15.1
64
83
  description: Smallregistry EPP client library.
65
- email:
84
+ email:
66
85
  - m@absolight.fr
67
86
  executables: []
68
-
69
87
  extensions: []
70
-
71
88
  extra_rdoc_files: []
72
-
73
- files:
89
+ files:
74
90
  - ChangeLog
75
91
  - EXAMPLE.SMALLREGISTRY
76
92
  - Gemfile
@@ -82,30 +98,25 @@ files:
82
98
  - vendor/smallregistry/sr-1.0.xsd
83
99
  homepage: https://github.com/Absolight/epp-client
84
100
  licenses: []
85
-
86
101
  metadata: {}
87
-
88
102
  post_install_message:
89
103
  rdoc_options: []
90
-
91
- require_paths:
104
+ require_paths:
92
105
  - lib
93
- required_ruby_version: !ruby/object:Gem::Requirement
94
- requirements:
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
95
108
  - - ">="
96
- - !ruby/object:Gem::Version
109
+ - !ruby/object:Gem::Version
97
110
  version: 1.8.7
98
- required_rubygems_version: !ruby/object:Gem::Requirement
99
- requirements:
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
100
113
  - - ">="
101
- - !ruby/object:Gem::Version
114
+ - !ruby/object:Gem::Version
102
115
  version: 1.3.6
103
116
  requirements: []
104
-
105
117
  rubyforge_project:
106
- rubygems_version: 2.0.17
118
+ rubygems_version: 2.4.8
107
119
  signing_key:
108
120
  specification_version: 4
109
121
  summary: Smallregistry EPP client library
110
122
  test_files: []
111
-