ovh_soapi 0.0.10 → 0.0.11

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/Manifest CHANGED
@@ -7,5 +7,6 @@ lib/ovh_soapi/nic.rb
7
7
  lib/ovh_soapi/order.rb
8
8
  lib/ovh_soapi/reseller.rb
9
9
  lib/ovh_soapi/session.rb
10
+ lib/ovh_soapi/service.rb
10
11
  ovh_soapi.gemspec
11
12
  pkg/ovh_soapi-0.0.1.alpha.gem
@@ -3,13 +3,13 @@ module OvhSoapi
3
3
  module Methods
4
4
 
5
5
  # Set domain MX filtering : none, simple (antispam) or full (antispam+antivirus).
6
- def set_domain_mx_filtering(domain,subdomain,type,mx)
7
- RpcDriver.soapi.emailSetDomainMxFiltering(Session.session, domain, subdomain, type, mx)
6
+ def set_domain_mx_filtering(domain,subdomain,type,mx)
7
+ RpcDriver.soapi.emailSetDomainMxFiltering(Session.session, domain, subdomain, type, mx)
8
8
  end
9
9
 
10
10
  # Set email master nic.
11
- def set_email_master_nic(domain,nic)
12
- RpcDriver.soapi.emailSetMasterNic(Session.session, domain, nic)
11
+ def set_email_master_nic(domain,nic)
12
+ RpcDriver.soapi.emailSetMasterNic(Session.session, domain, nic)
13
13
  end
14
14
 
15
15
  end
@@ -0,0 +1,15 @@
1
+ module OvhSoapi
2
+ class Service
3
+ module Methods
4
+
5
+ # Change the contact handle of an OVH service
6
+ def modify_contact(domain, component, contact, nic)
7
+ RpcDriver.soapi.serviceModifyContact(Session.session, domain, component, contact, nic)
8
+ end
9
+
10
+ end
11
+ include Methods
12
+ extend Methods
13
+ end
14
+
15
+ end
data/lib/ovh_soapi.rb CHANGED
@@ -5,6 +5,8 @@ require 'ovh_soapi/order'
5
5
  require 'ovh_soapi/reseller'
6
6
  require 'ovh_soapi/session'
7
7
  require 'ovh_soapi/email'
8
+ require 'ovh_soapi/service'
9
+
8
10
 
9
11
  # OVH Soapi sandbox flag
10
12
  OVH_SANDBOX = false;
@@ -16,7 +18,7 @@ module OvhSoapi
16
18
 
17
19
  # Create soapi object
18
20
  def self.soapi
19
- @soapi ||= SOAP::WSDLDriverFactory.new('https://www.ovh.com/soapi/soapi-re-1.11.wsdl').create_rpc_driver
21
+ @soapi ||= SOAP::WSDLDriverFactory.new('https://www.ovh.com/soapi/soapi-re-1.17.wsdl').create_rpc_driver
20
22
  end
21
23
 
22
24
  end
data/ovh_soapi.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ovh_soapi}
5
- s.version = "0.0.10"
5
+ s.version = "0.0.11"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Dumitru Ceban", "Beniamino Faggian"]
9
- s.date = %q{2010-10-05}
9
+ s.date = %q{2011-03-10}
10
10
  s.description = %q{Ruby client for OVH Soapi.}
11
11
  s.email = %q{awstin.at@gmail.com}
12
- s.extra_rdoc_files = ["README.md", "lib/ovh_soapi.rb", "lib/ovh_soapi/email.rb", "lib/ovh_soapi/domains.rb", "lib/ovh_soapi/nic.rb", "lib/ovh_soapi/order.rb", "lib/ovh_soapi/reseller.rb", "lib/ovh_soapi/session.rb"]
13
- s.files = ["Manifest", "README.md", "Rakefile", "lib/ovh_soapi.rb", "lib/ovh_soapi/email.rb", "lib/ovh_soapi/domains.rb", "lib/ovh_soapi/nic.rb", "lib/ovh_soapi/order.rb", "lib/ovh_soapi/reseller.rb", "lib/ovh_soapi/session.rb", "ovh_soapi.gemspec", "pkg/ovh_soapi-0.0.1.alpha.gem"]
12
+ s.extra_rdoc_files = ["README.md", "lib/ovh_soapi.rb", "lib/ovh_soapi/email.rb","lib/ovh_soapi/service.rb","lib/ovh_soapi/domains.rb", "lib/ovh_soapi/nic.rb", "lib/ovh_soapi/order.rb", "lib/ovh_soapi/reseller.rb", "lib/ovh_soapi/session.rb"]
13
+ s.files = ["Manifest", "README.md", "Rakefile", "lib/ovh_soapi.rb", "lib/ovh_soapi/email.rb", "lib/ovh_soapi/service.rb", "lib/ovh_soapi/domains.rb", "lib/ovh_soapi/nic.rb", "lib/ovh_soapi/order.rb", "lib/ovh_soapi/reseller.rb", "lib/ovh_soapi/session.rb", "ovh_soapi.gemspec", "pkg/ovh_soapi-0.0.1.alpha.gem"]
14
14
  s.homepage = %q{http://github.com/awstin/ovh-soapi}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ovh_soapi", "--main", "README.md"]
16
16
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovh_soapi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dumitru Ceban
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-05 00:00:00 +02:00
19
+ date: 2011-03-10 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -30,6 +30,7 @@ extra_rdoc_files:
30
30
  - README.md
31
31
  - lib/ovh_soapi.rb
32
32
  - lib/ovh_soapi/email.rb
33
+ - lib/ovh_soapi/service.rb
33
34
  - lib/ovh_soapi/domains.rb
34
35
  - lib/ovh_soapi/nic.rb
35
36
  - lib/ovh_soapi/order.rb
@@ -41,6 +42,7 @@ files:
41
42
  - Rakefile
42
43
  - lib/ovh_soapi.rb
43
44
  - lib/ovh_soapi/email.rb
45
+ - lib/ovh_soapi/service.rb
44
46
  - lib/ovh_soapi/domains.rb
45
47
  - lib/ovh_soapi/nic.rb
46
48
  - lib/ovh_soapi/order.rb