epp-client-rgp 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +7 -3
- data/epp-client-rgp.gemspec +0 -1
- data/lib/epp-client/rgp.rb +11 -20
- metadata +6 -5
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}")
|
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 :
|
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 :
|
27
|
+
task :push => 'all:push'
|
24
28
|
|
25
29
|
desc "Generate documentation for the Rails framework"
|
26
30
|
Rake::RDocTask.new do |rdoc|
|
data/epp-client-rgp.gemspec
CHANGED
@@ -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-rgp'
|
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 = 'RGP EPP client library.'
|
data/lib/epp-client/rgp.rb
CHANGED
@@ -1,28 +1,19 @@
|
|
1
|
-
# RFC3915[http://tools.ietf.org/html/rfc3915]
|
2
|
-
#
|
3
|
-
# Domain Registry Grace Period Mapping for the
|
4
|
-
# Extensible Provisioning Protocol (EPP)
|
5
|
-
#
|
6
|
-
# Has to be included after the initialize, domain_info and domain_update
|
7
|
-
# definitions.
|
8
1
|
module EPPClient
|
2
|
+
# RFC3915[http://tools.ietf.org/html/rfc3915]
|
3
|
+
#
|
4
|
+
# Domain Registry Grace Period Mapping for the
|
5
|
+
# Extensible Provisioning Protocol (EPP)
|
6
|
+
#
|
7
|
+
# Has to be included after the initialize, domain_info and domain_update
|
8
|
+
# definitions.
|
9
9
|
module RGP
|
10
|
-
def
|
11
|
-
|
12
|
-
alias_method :initialize_without_rgp, :initialize
|
13
|
-
alias_method :initialize, :initialize_with_rgp
|
14
|
-
alias_method :domain_info_process_without_rgp, :domain_info_process
|
15
|
-
alias_method :domain_info_process, :domain_info_process_with_rgp
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def initialize_with_rgp(args) #:nodoc:
|
20
|
-
initialize_without_rgp(args)
|
10
|
+
def initialize(args) #:nodoc:
|
11
|
+
super
|
21
12
|
@extensions << EPPClient::SCHEMAS_URL['rgp']
|
22
13
|
end
|
23
14
|
|
24
|
-
def
|
25
|
-
ret =
|
15
|
+
def domain_info_process(xml) #:nodoc:
|
16
|
+
ret = super(xml)
|
26
17
|
if (rgp_status = xml.xpath('epp:extension/rgp:infData/rgp:rgpStatus', EPPClient::SCHEMAS_URL)).size > 0
|
27
18
|
ret[:rgpStatus] = rgp_status.map {|s| s.attr('s')}
|
28
19
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epp-client-rgp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 0.11.
|
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:
|
18
|
+
date: 2013-02-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|
@@ -116,9 +116,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements: []
|
117
117
|
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 1.8.
|
119
|
+
rubygems_version: 1.8.24
|
120
120
|
signing_key:
|
121
121
|
specification_version: 3
|
122
122
|
summary: RGP EPP client library
|
123
123
|
test_files: []
|
124
124
|
|
125
|
+
has_rdoc:
|