epp-client-base 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 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-base'
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 = 'An extensible EPP client library.'
@@ -19,7 +19,7 @@ module EPPClient
19
19
  greeting_process(get_frame)
20
20
  end
21
21
 
22
- def greeting_process(xml)
22
+ def greeting_process(xml) #:nodoc:
23
23
  @srv_version = xml.xpath('epp:epp/epp:greeting/epp:svcMenu/epp:version', EPPClient::SCHEMAS_URL).map {|n| n.text}
24
24
  @srv_lang = xml.xpath('epp:epp/epp:greeting/epp:svcMenu/epp:lang', EPPClient::SCHEMAS_URL).map {|n| n.text}
25
25
  @srv_ns = xml.xpath('epp:epp/epp:greeting/epp:svcMenu/epp:objURI', EPPClient::SCHEMAS_URL).map {|n| n.text}
@@ -173,7 +173,7 @@ module EPPClient
173
173
  return ret
174
174
  end
175
175
 
176
- def domain_nss_xml(xml, nss)
176
+ def domain_nss_xml(xml, nss) #:nodoc:
177
177
  xml.ns do
178
178
  if nss.first.is_a?(Hash)
179
179
  nss.each do |ns|
@@ -199,7 +199,7 @@ module EPPClient
199
199
  end
200
200
  end
201
201
 
202
- def domain_contacts_xml(xml, args)
202
+ def domain_contacts_xml(xml, args) #:nodoc:
203
203
  args.each do |type,contacts|
204
204
  contacts.each do |c|
205
205
  xml.contact({:type => type}, c)
@@ -1,12 +1,5 @@
1
1
  module EPPClient
2
2
  module SSL
3
- def self.included(base) # :nodoc:
4
- base.class_eval do
5
- alias_method :open_connection_without_ssl, :open_connection
6
- alias_method :open_connection, :open_connection_with_ssl
7
- end
8
- end
9
-
10
3
  attr_reader :ssl_cert, :ssl_key
11
4
 
12
5
  def ssl_key=(key) #:nodoc:
@@ -37,10 +30,10 @@ module EPPClient
37
30
  end
38
31
  end
39
32
 
40
- def open_connection_with_ssl # :nodoc:
33
+ def open_connection # :nodoc:
41
34
  @context.cert ||= ssl_cert if ssl_cert.is_a?(OpenSSL::X509::Certificate)
42
35
  @context.key ||= ssl_key if ssl_key.is_a?(OpenSSL::PKey::RSA)
43
- open_connection_without_ssl
36
+ super
44
37
  end
45
38
  end
46
39
  end
@@ -1,3 +1,3 @@
1
1
  module EPPClient
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epp-client-base
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
@@ -135,9 +135,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements: []
136
136
 
137
137
  rubyforge_project:
138
- rubygems_version: 1.8.16
138
+ rubygems_version: 1.8.24
139
139
  signing_key:
140
140
  specification_version: 3
141
141
  summary: An extensible EPP client library
142
142
  test_files: []
143
143
 
144
+ has_rdoc: