gandi 2.0.7 → 2.0.8
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/README +4 -1
- data/lib/gandi/session.rb +4 -2
- metadata +2 -2
data/README
CHANGED
|
@@ -31,4 +31,7 @@ api.domain.list
|
|
|
31
31
|
api.domain.info('mydomain.com')
|
|
32
32
|
api.hosting.list
|
|
33
33
|
api.catalog.list(product: {type: 'domains'})
|
|
34
|
-
...
|
|
34
|
+
...
|
|
35
|
+
api.domain.zone.clone_zone('zone_id') # instead of api.domain.zone.clone
|
|
36
|
+
api.domain.zone.version.new_version('zone_id') # instead of domain.zone.version.new
|
|
37
|
+
...
|
data/lib/gandi/session.rb
CHANGED
|
@@ -65,7 +65,7 @@ module Gandi
|
|
|
65
65
|
domain.webredir.delete
|
|
66
66
|
domain.webredir.list
|
|
67
67
|
domain.webredir.update
|
|
68
|
-
domain.zone.
|
|
68
|
+
domain.zone.clone_zone
|
|
69
69
|
domain.zone.count
|
|
70
70
|
domain.zone.create
|
|
71
71
|
domain.zone.delete
|
|
@@ -81,7 +81,7 @@ module Gandi
|
|
|
81
81
|
domain.zone.update
|
|
82
82
|
domain.zone.version.count
|
|
83
83
|
domain.zone.version.delete
|
|
84
|
-
domain.zone.version.
|
|
84
|
+
domain.zone.version.new_version
|
|
85
85
|
domain.zone.version.set
|
|
86
86
|
domain.zone.version.list
|
|
87
87
|
hosting.datacenter.list
|
|
@@ -171,6 +171,8 @@ module Gandi
|
|
|
171
171
|
method_name = chained.join(".")
|
|
172
172
|
if Gandi::VALID_METHODS.include?(method_name)
|
|
173
173
|
# puts "CALL: #{method_name} - #{api_key} - #{args.inspect}"
|
|
174
|
+
method_name.sub!('clone_zone','clone')
|
|
175
|
+
method_name.sub!('new_version','new')
|
|
174
176
|
res = self.server.call(method_name, api_key, *args)
|
|
175
177
|
if res.is_a?(Array)
|
|
176
178
|
res.collect! { |x| x.is_a?(Hash) ? Hashie::Mash.new(x) : x }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gandi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.8
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-06-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: hashie
|