epp-client-afnic 0.11.0 → 0.11.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.
data/Rakefile CHANGED
@@ -8,19 +8,23 @@ MY_GEMS = Dir['*.gemspec'].map {|g| g.sub(/.*-(.*)\.gemspec/, '\1')}
8
8
 
9
9
  MY_GEMS.each do |g|
10
10
  namespace g do
11
- Bundler::GemHelper.new(Dir.pwd, "epp-client-#{g}").install
11
+ bgh = Bundler::GemHelper.new(Dir.pwd, "epp-client-#{g}")
12
+ bgh.install
13
+ task :push do
14
+ sh "gem push #{File.join(Dir.pwd, 'pkg', "epp-client-#{g}-#{bgh.__send__(:version)}.gem")}"
15
+ end
12
16
  end
13
17
  end
14
18
 
15
19
  namespace :all do
16
20
  task :build => MY_GEMS.map { |f| "#{f}:build" }
17
21
  task :install => MY_GEMS.map { |f| "#{f}:install" }
18
- task :release => MY_GEMS.map { |f| "#{f}:release" }
22
+ task :push => MY_GEMS.map { |f| "#{f}:push" }
19
23
  end
20
24
 
21
25
  task :build => 'all:build'
22
26
  task :install => 'all:install'
23
- task :release => 'all:release'
27
+ task :push => 'all:push'
24
28
 
25
29
  desc "Generate documentation for the Rails framework"
26
30
  Rake::RDocTask.new do |rdoc|
@@ -4,7 +4,6 @@ require File.expand_path('../lib/epp-client/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = 'epp-client-afnic'
6
6
  gem.version = EPPClient::VERSION
7
- gem.date = '2010-05-14'
8
7
  gem.authors = ['Mathieu Arnold']
9
8
  gem.email = ['m@absolight.fr']
10
9
  gem.description = 'AFNIC EPP client library.'
@@ -34,7 +33,7 @@ Gem::Specification.new do |gem|
34
33
  gem.add_development_dependency "bundler", ">= 1.0.0"
35
34
  gem.add_dependency('nokogiri', '~> 1.4')
36
35
  gem.add_dependency('builder', '>= 2.1.2')
37
- gem.add_dependency('epp-client-base', "~> #{EPPClient::VERSION}")
38
- gem.add_dependency('epp-client-rgp', "~> #{EPPClient::VERSION}")
39
- gem.add_dependency('epp-client-secdns', "~> #{EPPClient::VERSION}")
36
+ gem.add_dependency('epp-client-base', "#{EPPClient::VERSION}")
37
+ gem.add_dependency('epp-client-rgp', "#{EPPClient::VERSION}")
38
+ gem.add_dependency('epp-client-secdns', "#{EPPClient::VERSION}")
40
39
  end
@@ -32,8 +32,8 @@ module EPPClient
32
32
  @extensions << EPPClient::SCHEMAS_URL['frnic']
33
33
  end
34
34
 
35
- # Extends the base domain check so that the specific afnic check
36
- # informations are processed, the additionnal informations are :
35
+ # Extends the EPPClient::Domain#domain_check so that the specific AFNIC
36
+ # check informations are processed, the additionnal informations are :
37
37
  #
38
38
  # [<tt>:reserved</tt>] the domain is a reserved name.
39
39
  # [<tt>:rsvReason</tt>] the optional reason why the domain is reserved.
@@ -60,8 +60,8 @@ module EPPClient
60
60
  return ret
61
61
  end
62
62
 
63
- # Extends the base domain info so that the specific afnic <tt>:status</tt>
64
- # can be added.
63
+ # Extends the EPPClient::Domain#domain_info so that the specific AFNIC
64
+ # <tt>:status</tt> can be added.
65
65
  def domain_info(domain)
66
66
  super # placeholder so that I can add some doc
67
67
  end
@@ -69,6 +69,7 @@ module EPPClient
69
69
  def domain_info_process(xml) #:nodoc:
70
70
  ret = super
71
71
  if (frnic_status = xml.xpath('epp:extension/frnic:ext/frnic:resData/frnic:infData/frnic:domain/frnic:status', EPPClient::SCHEMAS_URL)).size > 0
72
+ ret[:status] ||= [] # The status is optional, there may be none at this point.
72
73
  ret[:status] += frnic_status.map {|s| s.attr('s')}
73
74
  end
74
75
  ret
@@ -110,8 +111,8 @@ module EPPClient
110
111
  end
111
112
  private :legalEntityInfos
112
113
 
113
- # Extends the base contact info so that the specific afnic check
114
- # informations are processed, the additionnal informations are :
114
+ # Extends the EPPClient::Contact#contact_info so that the specific AFNIC
115
+ # check informations are processed, the additionnal informations are :
115
116
  #
116
117
  # either :
117
118
  # [<tt>:legalEntityInfos</tt>]
@@ -294,8 +295,8 @@ module EPPClient
294
295
  insert_extension(ret, ext)
295
296
  end
296
297
 
297
- # Extends the base contact create so that the specific afnic create
298
- # informations can be sent, the additionnal informations are :
298
+ # Extends the EPPClient::Contact#contact_create so that the specific AFNIC
299
+ # create informations can be sent, the additionnal informations are :
299
300
  #
300
301
  # either :
301
302
  # [<tt>:legalEntityInfos</tt>]
@@ -373,8 +374,9 @@ module EPPClient
373
374
  ret
374
375
  end
375
376
 
376
- # Make sure there's no <tt>:ns</tt>, <tt>:dsData</tt> or <tt>:keyData</tt>
377
- # records, AFNIC's servers sends quite a strange error when there is.
377
+ # Extends the EPPClient::Domain#domain_create to make sure there's no
378
+ # <tt>:ns</tt>, <tt>:dsData</tt> or <tt>:keyData</tt> records, AFNIC's
379
+ # servers sends quite a strange error when there is.
378
380
  def domain_create(args)
379
381
  raise ArgumentError, "You can't create a domain with ns records, you must do an update afterwards" if args.key?(:ns)
380
382
  raise ArgumentError, "You can't create a domain with ds or key records, you must do an update afterwards" if args.key?(:dsData) || args.key?(:keyData)
@@ -424,8 +426,8 @@ module EPPClient
424
426
  end
425
427
  end
426
428
 
427
- # Extends the base contact update so that the specific afnic update
428
- # informations can be sent, the additionnal informations are :
429
+ # Extends the EPPClient::Contact#contact_update so that the specific AFNIC
430
+ # update informations can be sent, the additionnal informations are :
429
431
  #
430
432
  # [<tt>:add</tt>/<tt>:rem</tt>]
431
433
  # adds or removes the following datas :
@@ -440,8 +442,8 @@ module EPPClient
440
442
  super # placeholder so that I can add some doc
441
443
  end
442
444
 
443
- # Extends the base domain update so that afnic's weirdnesses can be taken
444
- # into account.
445
+ # Extends the EPPClient::Domain#domain_update so that AFNIC's weirdnesses
446
+ # can be taken into account.
445
447
  #
446
448
  # AFNIC does not support ns/hostObj, only ns/hostAttr/Host*, so, take care
447
449
  # of this here.
@@ -467,8 +469,8 @@ module EPPClient
467
469
  super
468
470
  end
469
471
 
470
- # Extends the base poll req to be able to parse quallification response
471
- # extension.
472
+ # Extends the EPPClient::Poll#poll_req to be able to parse quallification
473
+ # response extension.
472
474
  def poll_req
473
475
  super # placeholder so that I can add some doc
474
476
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epp-client-afnic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 0
10
- version: 0.11.0
9
+ - 1
10
+ version: 0.11.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mathieu Arnold
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-14 00:00:00 Z
18
+ date: 2013-02-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirement: &id004 !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
73
- - - ~>
73
+ - - "="
74
74
  - !ruby/object:Gem::Version
75
- hash: 51
75
+ hash: 49
76
76
  segments:
77
77
  - 0
78
78
  - 11
79
- - 0
80
- version: 0.11.0
79
+ - 1
80
+ version: 0.11.1
81
81
  type: :runtime
82
82
  version_requirements: *id004
83
83
  - !ruby/object:Gem::Dependency
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirement: &id005 !ruby/object:Gem::Requirement
87
87
  none: false
88
88
  requirements:
89
- - - ~>
89
+ - - "="
90
90
  - !ruby/object:Gem::Version
91
- hash: 51
91
+ hash: 49
92
92
  segments:
93
93
  - 0
94
94
  - 11
95
- - 0
96
- version: 0.11.0
95
+ - 1
96
+ version: 0.11.1
97
97
  type: :runtime
98
98
  version_requirements: *id005
99
99
  - !ruby/object:Gem::Dependency
@@ -102,14 +102,14 @@ dependencies:
102
102
  requirement: &id006 !ruby/object:Gem::Requirement
103
103
  none: false
104
104
  requirements:
105
- - - ~>
105
+ - - "="
106
106
  - !ruby/object:Gem::Version
107
- hash: 51
107
+ hash: 49
108
108
  segments:
109
109
  - 0
110
110
  - 11
111
- - 0
112
- version: 0.11.0
111
+ - 1
112
+ version: 0.11.1
113
113
  type: :runtime
114
114
  version_requirements: *id006
115
115
  description: AFNIC EPP client library.
@@ -166,9 +166,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  requirements: []
167
167
 
168
168
  rubyforge_project:
169
- rubygems_version: 1.8.16
169
+ rubygems_version: 1.8.24
170
170
  signing_key:
171
171
  specification_version: 3
172
172
  summary: AFNIC EPP client library
173
173
  test_files: []
174
174
 
175
+ has_rdoc: