gandi_v5 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +14 -4
  4. data/.travis.yml +16 -1
  5. data/CHANGELOG.md +80 -2
  6. data/FUNDING.yml +10 -0
  7. data/Guardfile +5 -6
  8. data/LICENSE.md +2 -6
  9. data/README.md +17 -23
  10. data/gandi_v5.gemspec +4 -3
  11. data/lib/gandi_v5.rb +54 -15
  12. data/lib/gandi_v5/billing.rb +2 -4
  13. data/lib/gandi_v5/billing/info.rb +0 -2
  14. data/lib/gandi_v5/data.rb +1 -2
  15. data/lib/gandi_v5/data/converter.rb +0 -4
  16. data/lib/gandi_v5/data/converter/integer.rb +26 -0
  17. data/lib/gandi_v5/domain.rb +201 -101
  18. data/lib/gandi_v5/domain/auto_renew.rb +4 -4
  19. data/lib/gandi_v5/domain/availability.rb +46 -0
  20. data/lib/gandi_v5/domain/availability/product.rb +49 -0
  21. data/lib/gandi_v5/domain/availability/product/period.rb +24 -0
  22. data/lib/gandi_v5/domain/availability/product/price.rb +36 -0
  23. data/lib/gandi_v5/domain/availability/tax.rb +20 -0
  24. data/lib/gandi_v5/domain/live_dns.rb +42 -0
  25. data/lib/gandi_v5/domain/renewal_information.rb +0 -3
  26. data/lib/gandi_v5/domain/sharing_space.rb +10 -2
  27. data/lib/gandi_v5/domain/tld.rb +57 -0
  28. data/lib/gandi_v5/email.rb +0 -4
  29. data/lib/gandi_v5/email/forward.rb +108 -0
  30. data/lib/gandi_v5/email/mailbox.rb +85 -24
  31. data/lib/gandi_v5/email/mailbox/responder.rb +43 -2
  32. data/lib/gandi_v5/email/offer.rb +2 -2
  33. data/lib/gandi_v5/email/slot.rb +52 -18
  34. data/lib/gandi_v5/error.rb +0 -2
  35. data/lib/gandi_v5/error/gandi_error.rb +2 -2
  36. data/lib/gandi_v5/live_dns.rb +20 -4
  37. data/lib/gandi_v5/live_dns/domain.rb +21 -150
  38. data/lib/gandi_v5/live_dns/has_zone_records.rb +153 -0
  39. data/lib/gandi_v5/live_dns/record_set.rb +1 -1
  40. data/lib/gandi_v5/live_dns/zone.rb +24 -165
  41. data/lib/gandi_v5/live_dns/zone/snapshot.rb +27 -8
  42. data/lib/gandi_v5/organization.rb +39 -6
  43. data/lib/gandi_v5/organization/customer.rb +90 -0
  44. data/lib/gandi_v5/version.rb +1 -1
  45. data/spec/.rubocop.yml +9 -2
  46. data/spec/features/domain_spec.rb +2 -2
  47. data/spec/features/livedns_zone_spec.rb +12 -13
  48. data/spec/fixtures/bodies/GandiV5_Billing/{info.yaml → info.yml} +0 -0
  49. data/spec/fixtures/bodies/GandiV5_Domain/{get.yaml → fetch.yml} +8 -0
  50. data/spec/fixtures/bodies/GandiV5_Domain/{fetch_contacts.yaml → fetch_contacts.yml} +0 -0
  51. data/spec/fixtures/bodies/GandiV5_Domain/fetch_glue_records.yml +7 -0
  52. data/spec/fixtures/bodies/GandiV5_Domain/fetch_livedns.yml +6 -0
  53. data/spec/fixtures/bodies/GandiV5_Domain/fetch_name_servers.yml +2 -0
  54. data/spec/fixtures/bodies/GandiV5_Domain/{renewal_info.yaml → fetch_renewal_info.yml} +0 -3
  55. data/spec/fixtures/bodies/GandiV5_Domain/{restore_info.yaml → fetch_restore_info.yml} +0 -0
  56. data/spec/fixtures/bodies/GandiV5_Domain/{list.yaml → list.yml} +1 -0
  57. data/spec/fixtures/bodies/{GandiV5_Domain/availability.yaml → GandiV5_Domain_Availability/fetch.yml} +0 -0
  58. data/spec/fixtures/bodies/{GandiV5_Domain/tld.yaml → GandiV5_Domain_TLD/fetch.yml} +0 -0
  59. data/spec/fixtures/bodies/{GandiV5_Domain/tlds.yaml → GandiV5_Domain_TLD/list.yml} +0 -0
  60. data/spec/fixtures/bodies/GandiV5_Email_Forward/list.yml +6 -0
  61. data/spec/fixtures/bodies/GandiV5_Email_Mailbox/{get.yaml → fetch.yml} +0 -0
  62. data/spec/fixtures/bodies/GandiV5_Email_Mailbox/{list.yaml → list.yml} +0 -0
  63. data/spec/fixtures/bodies/GandiV5_Email_Slot/{get.yaml → fetch.yml} +0 -0
  64. data/spec/fixtures/bodies/GandiV5_Email_Slot/{list.yaml → list.yml} +0 -0
  65. data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain/{get.yaml → fetch.yml} +0 -0
  66. data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain/{list.yaml → list.yml} +0 -0
  67. data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone/{get.yaml → fetch.yml} +0 -0
  68. data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone/{list.yaml → list.yml} +0 -0
  69. data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone_Snapshot/{get.yaml → fetch.yml} +0 -0
  70. data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone_Snapshot/list.yml +3 -0
  71. data/spec/fixtures/bodies/GandiV5_Organization/{get.yaml → fetch.yml} +0 -0
  72. data/spec/fixtures/bodies/GandiV5_Organization/list.yml +7 -0
  73. data/spec/fixtures/bodies/GandiV5_Organization_Customer/list.yml +8 -0
  74. data/spec/fixtures/vcr/Domain_features/List_domains.yml +2 -1
  75. data/spec/spec_helper.rb +2 -2
  76. data/spec/units/gandi_v5/billing_spec.rb +4 -4
  77. data/spec/units/gandi_v5/data/converter/integer_spec.rb +16 -0
  78. data/spec/units/gandi_v5/domain/auto_renew_spec.rb +5 -5
  79. data/spec/units/gandi_v5/domain/availability/product/period_spec.rb +4 -0
  80. data/spec/units/gandi_v5/domain/availability/product/price_spec.rb +4 -0
  81. data/spec/units/gandi_v5/domain/availability/product_spec.rb +4 -0
  82. data/spec/units/gandi_v5/domain/availability/tax_spec.rb +4 -0
  83. data/spec/units/gandi_v5/domain/availability_spec.rb +43 -0
  84. data/spec/units/gandi_v5/domain/live_dns_spec.rb +45 -0
  85. data/spec/units/gandi_v5/domain/tld_spec.rb +29 -0
  86. data/spec/units/gandi_v5/domain_spec.rb +359 -91
  87. data/spec/units/gandi_v5/email/forward_spec.rb +121 -0
  88. data/spec/units/gandi_v5/email/mailbox/responder_spec.rb +52 -0
  89. data/spec/units/gandi_v5/email/mailbox_spec.rb +174 -33
  90. data/spec/units/gandi_v5/email/offer_spec.rb +1 -1
  91. data/spec/units/gandi_v5/email/slot_spec.rb +113 -17
  92. data/spec/units/gandi_v5/live_dns/domain_spec.rb +73 -43
  93. data/spec/units/gandi_v5/live_dns/zone/snapshot_spec.rb +32 -3
  94. data/spec/units/gandi_v5/live_dns/zone_spec.rb +70 -52
  95. data/spec/units/gandi_v5/live_dns_spec.rb +24 -0
  96. data/spec/units/gandi_v5/organization/customer_spec.rb +81 -0
  97. data/spec/units/gandi_v5/organization_spec.rb +52 -1
  98. data/spec/units/gandi_v5_spec.rb +56 -19
  99. metadata +71 -29
  100. data/TODO.md +0 -29
@@ -3,6 +3,30 @@
3
3
  describe GandiV5 do
4
4
  let(:api_key) { ENV['GANDI_API_KEY'] }
5
5
 
6
+ it '.domain' do
7
+ returns = double GandiV5::Domain
8
+ expect(GandiV5::Domain).to receive(:fetch).with('example.com').and_return(returns)
9
+ expect(described_class.domain('example.com')).to be returns
10
+ end
11
+
12
+ it '.domains' do
13
+ returns = double Array
14
+ expect(GandiV5::Domain).to receive(:list).with(param: :value).and_return(returns)
15
+ expect(described_class.domains(param: :value)).to be returns
16
+ end
17
+
18
+ it '.mailboxes' do
19
+ returns = double Array
20
+ expect(GandiV5::Email::Mailbox).to receive(:list).with('example.com', param: :value).and_return(returns)
21
+ expect(described_class.mailboxes('example.com', param: :value)).to be returns
22
+ end
23
+
24
+ it '.mailbox_slots' do
25
+ returns = double Array
26
+ expect(GandiV5::Email::Slot).to receive(:list).with('example.com').and_return(returns)
27
+ expect(described_class.mailbox_slots('example.com')).to be returns
28
+ end
29
+
6
30
  it 'Has a version' do
7
31
  expect(defined?(GandiV5::VERSION)).to eq 'constant'
8
32
  expect(GandiV5::VERSION).to_not be_empty
@@ -23,6 +47,10 @@ describe GandiV5 do
23
47
  end
24
48
 
25
49
  describe 'Uses RestClient' do
50
+ let(:response) do
51
+ double RestClient::Response, body: 'Hello world!', headers: { content_type: 'text/plain' }
52
+ end
53
+
26
54
  %i[get delete].each do |method|
27
55
  describe ":#{method}" do
28
56
  it 'As JSON' do
@@ -30,34 +58,34 @@ describe GandiV5 do
30
58
  response = double RestClient::Response, body: response_data.to_json, headers: { content_type: 'application/json' }
31
59
  expect(described_class).to receive(:prepare_headers)
32
60
  expect(RestClient).to receive(method).with('url', hash_including(accept: 'application/json')).and_return(response)
33
- expect(described_class.send(method, 'url', accept: 'application/json')).to eq response_data
61
+ expect(described_class.send(method, 'url', accept: 'application/json')).to match_array [response, response_data]
34
62
  end
35
63
 
36
64
  it 'As text' do
37
- response_data = 'Hello world!'
38
- response = double RestClient::Response, body: response_data, headers: { content_type: 'text/plain' }
39
65
  expect(described_class).to receive(:prepare_headers)
40
66
  expect(RestClient).to receive(method).with('url', hash_including(accept: 'text/plain')).and_return(response)
41
- expect(described_class.send(method, 'url', accept: 'text/plain')).to eq response_data
67
+ expect(described_class.send(method, 'url', accept: 'text/plain')).to match_array [response, 'Hello world!']
42
68
  end
43
69
 
44
70
  it 'Passes request headers' do
45
71
  expect(described_class).to receive(:prepare_headers)
46
72
  expect(described_class).to receive(:parse_response)
47
- expect(RestClient).to receive(method).with(anything, header: 'value')
48
- expect(described_class.send(method, 'url', header: 'value')).to be_nil
73
+ expect(RestClient).to receive(method).with(anything, header: 'value').and_return(response)
74
+ expect(described_class.send(method, 'url', header: 'value')).to match_array [response, nil]
49
75
  end
50
76
 
51
77
  it 'Adds authentication header' do
52
78
  expect(RestClient).to receive(method).with(anything, hash_including(Authorization: 'Apikey abdce12345'))
79
+ .and_return(response)
53
80
  expect(described_class).to receive(:parse_response)
54
- expect(described_class.send(method, 'https://api.gandi.net/v5/')).to be_nil
81
+ expect(described_class.send(method, 'https://api.gandi.net/v5/')).to match_array [response, nil]
55
82
  end
56
83
 
57
84
  it 'Default accept header' do
58
85
  expect(RestClient).to receive(method).with(any_args, hash_including(accept: 'application/json'))
86
+ .and_return(response)
59
87
  expect(described_class).to receive(:parse_response)
60
- expect(described_class.send(method, 'https://api.gandi.net/v5/')).to be_nil
88
+ expect(described_class.send(method, 'https://api.gandi.net/v5/')).to match_array [response, nil]
61
89
  end
62
90
 
63
91
  it 'Converts a 406 (bad request) exception' do
@@ -68,6 +96,13 @@ describe GandiV5 do
68
96
  end
69
97
  end
70
98
 
99
+ it ':delete handles no content-type' do
100
+ response = double RestClient::Response, headers: {}
101
+ expect(described_class).to receive(:prepare_headers)
102
+ expect(RestClient).to receive(:delete).with('url', hash_including(accept: 'text/plain')).and_return(response)
103
+ expect(described_class.delete('url', accept: 'text/plain')).to match_array [response, nil]
104
+ end
105
+
71
106
  %i[patch post put].each do |method|
72
107
  describe ":#{method}" do
73
108
  let(:payload) { '{"say":"hello world"}' }
@@ -78,48 +113,50 @@ describe GandiV5 do
78
113
  expect(described_class).to receive(:prepare_headers)
79
114
  expect(RestClient).to receive(method).with('url', payload, hash_including(accept: 'application/json'))
80
115
  .and_return(response)
81
- expect(described_class.send(method, 'url', payload, accept: 'application/json')).to eq response_data
116
+ expect(described_class.send(method, 'url', payload, accept: 'application/json'))
117
+ .to match_array [response, response_data]
82
118
  end
83
119
 
84
120
  it 'As text' do
85
- response_data = 'hello world'
86
- response = double RestClient::Response, body: response_data, headers: { content_type: 'text/plain' }
87
121
  expect(described_class).to receive(:prepare_headers)
88
122
  expect(RestClient).to receive(method).with('url', payload, hash_including(accept: 'text/plain'))
89
123
  .and_return(response)
90
- expect(described_class.send(method, 'url', payload, accept: 'text/plain')).to eq response_data
124
+ array = [response, 'Hello world!']
125
+ expect(described_class.send(method, 'url', payload, accept: 'text/plain')).to match_array array
91
126
  end
92
127
 
93
128
  it 'Passes payload' do
94
129
  expect(described_class).to receive(:prepare_headers)
95
130
  expect(described_class).to receive(:parse_response)
96
- expect(RestClient).to receive(method).with(anything, payload, any_args)
97
- expect(described_class.send(method, 'url', payload)).to be_nil
131
+ expect(RestClient).to receive(method).with(anything, payload, any_args).and_return(response)
132
+ expect(described_class.send(method, 'url', payload)).to match_array [response, nil]
98
133
  end
99
134
 
100
135
  it 'Passes request headers' do
101
136
  expect(described_class).to receive(:prepare_headers)
102
137
  expect(described_class).to receive(:parse_response)
103
- expect(RestClient).to receive(method).with(any_args, hash_including(header: 'value'))
104
- expect(described_class.send(method, 'url', payload, header: 'value')).to be_nil
138
+ expect(RestClient).to receive(method).with(any_args, hash_including(header: 'value')).and_return(response)
139
+ expect(described_class.send(method, 'url', payload, header: 'value')).to match_array [response, nil]
105
140
  end
106
141
 
107
142
  it 'Adds content type header' do
108
143
  expect(RestClient).to receive(method).with(any_args, hash_including('content-type': 'application/json'))
109
144
  expect(described_class).to receive(:parse_response)
110
- expect(described_class.send(method, 'https://api.gandi.net/v5/', payload)).to be_nil
145
+ expect(described_class.send(method, 'https://api.gandi.net/v5/', payload)).to match_array [nil, nil]
111
146
  end
112
147
 
113
148
  it 'Adds authentication header' do
114
149
  expect(RestClient).to receive(method).with(any_args, hash_including(Authorization: 'Apikey abdce12345'))
150
+ .and_return(response)
115
151
  expect(described_class).to receive(:parse_response)
116
- expect(described_class.send(method, 'https://api.gandi.net/v5/', payload)).to be_nil
152
+ expect(described_class.send(method, 'https://api.gandi.net/v5/', payload)).to match_array [response, nil]
117
153
  end
118
154
 
119
155
  it 'Default accept header' do
120
156
  expect(RestClient).to receive(method).with(any_args, hash_including(accept: 'application/json'))
157
+ .and_return(response)
121
158
  expect(described_class).to receive(:parse_response)
122
- expect(described_class.send(method, 'https://api.gandi.net/v5/', payload)).to be_nil
159
+ expect(described_class.send(method, 'https://api.gandi.net/v5/', payload)).to match_array [response, nil]
123
160
  end
124
161
 
125
162
  it 'Converts a 406 (bad request) exception' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gandi_v5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gauld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -44,20 +44,34 @@ dependencies:
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '3'
47
+ - !ruby/object:Gem::Dependency
48
+ name: zeitwerk
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '2.1'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.1'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: coveralls
49
63
  requirement: !ruby/object:Gem::Requirement
50
64
  requirements:
51
65
  - - "~>"
52
66
  - !ruby/object:Gem::Version
53
- version: '0.7'
67
+ version: '0.8'
54
68
  type: :development
55
69
  prerelease: false
56
70
  version_requirements: !ruby/object:Gem::Requirement
57
71
  requirements:
58
72
  - - "~>"
59
73
  - !ruby/object:Gem::Version
60
- version: '0.7'
74
+ version: '0.8'
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: guard
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -188,14 +202,14 @@ dependencies:
188
202
  requirements:
189
203
  - - "~>"
190
204
  - !ruby/object:Gem::Version
191
- version: '0.67'
205
+ version: '0.73'
192
206
  type: :development
193
207
  prerelease: false
194
208
  version_requirements: !ruby/object:Gem::Requirement
195
209
  requirements:
196
210
  - - "~>"
197
211
  - !ruby/object:Gem::Version
198
- version: '0.67'
212
+ version: '0.73'
199
213
  - !ruby/object:Gem::Dependency
200
214
  name: rubocop-performance
201
215
  requirement: !ruby/object:Gem::Requirement
@@ -258,14 +272,14 @@ dependencies:
258
272
  requirements:
259
273
  - - "~>"
260
274
  - !ruby/object:Gem::Version
261
- version: '3.5'
275
+ version: '3.6'
262
276
  type: :development
263
277
  prerelease: false
264
278
  version_requirements: !ruby/object:Gem::Requirement
265
279
  requirements:
266
280
  - - "~>"
267
281
  - !ruby/object:Gem::Version
268
- version: '3.5'
282
+ version: '3.6'
269
283
  description:
270
284
  email:
271
285
  - robert@robertgauld.co.uk
@@ -279,12 +293,12 @@ files:
279
293
  - ".rubocop.yml"
280
294
  - ".travis.yml"
281
295
  - CHANGELOG.md
296
+ - FUNDING.yml
282
297
  - Gemfile
283
298
  - Guardfile
284
299
  - LICENSE.md
285
300
  - README.md
286
301
  - Rakefile
287
- - TODO.md
288
302
  - bin/console
289
303
  - gandi_v5.gemspec
290
304
  - lib/gandi_v5.rb
@@ -294,17 +308,26 @@ files:
294
308
  - lib/gandi_v5/data.rb
295
309
  - lib/gandi_v5/data/converter.rb
296
310
  - lib/gandi_v5/data/converter/array_of.rb
311
+ - lib/gandi_v5/data/converter/integer.rb
297
312
  - lib/gandi_v5/data/converter/symbol.rb
298
313
  - lib/gandi_v5/data/converter/time.rb
299
314
  - lib/gandi_v5/domain.rb
300
315
  - lib/gandi_v5/domain/auto_renew.rb
316
+ - lib/gandi_v5/domain/availability.rb
317
+ - lib/gandi_v5/domain/availability/product.rb
318
+ - lib/gandi_v5/domain/availability/product/period.rb
319
+ - lib/gandi_v5/domain/availability/product/price.rb
320
+ - lib/gandi_v5/domain/availability/tax.rb
301
321
  - lib/gandi_v5/domain/contact.rb
302
322
  - lib/gandi_v5/domain/contract.rb
303
323
  - lib/gandi_v5/domain/dates.rb
324
+ - lib/gandi_v5/domain/live_dns.rb
304
325
  - lib/gandi_v5/domain/renewal_information.rb
305
326
  - lib/gandi_v5/domain/restore_information.rb
306
327
  - lib/gandi_v5/domain/sharing_space.rb
328
+ - lib/gandi_v5/domain/tld.rb
307
329
  - lib/gandi_v5/email.rb
330
+ - lib/gandi_v5/email/forward.rb
308
331
  - lib/gandi_v5/email/mailbox.rb
309
332
  - lib/gandi_v5/email/mailbox/responder.rb
310
333
  - lib/gandi_v5/email/offer.rb
@@ -313,35 +336,44 @@ files:
313
336
  - lib/gandi_v5/error/gandi_error.rb
314
337
  - lib/gandi_v5/live_dns.rb
315
338
  - lib/gandi_v5/live_dns/domain.rb
339
+ - lib/gandi_v5/live_dns/has_zone_records.rb
316
340
  - lib/gandi_v5/live_dns/record_set.rb
317
341
  - lib/gandi_v5/live_dns/zone.rb
318
342
  - lib/gandi_v5/live_dns/zone/snapshot.rb
319
343
  - lib/gandi_v5/organization.rb
344
+ - lib/gandi_v5/organization/customer.rb
320
345
  - lib/gandi_v5/version.rb
321
346
  - spec/.rubocop.yml
322
347
  - spec/features/domain_spec.rb
323
348
  - spec/features/livedns_domain_spec.rb
324
349
  - spec/features/livedns_zone_spec.rb
325
350
  - spec/features/mailbox_spec.rb
326
- - spec/fixtures/bodies/GandiV5_Billing/info.yaml
327
- - spec/fixtures/bodies/GandiV5_Domain/availability.yaml
328
- - spec/fixtures/bodies/GandiV5_Domain/fetch_contacts.yaml
329
- - spec/fixtures/bodies/GandiV5_Domain/get.yaml
330
- - spec/fixtures/bodies/GandiV5_Domain/list.yaml
331
- - spec/fixtures/bodies/GandiV5_Domain/renewal_info.yaml
332
- - spec/fixtures/bodies/GandiV5_Domain/restore_info.yaml
333
- - spec/fixtures/bodies/GandiV5_Domain/tld.yaml
334
- - spec/fixtures/bodies/GandiV5_Domain/tlds.yaml
335
- - spec/fixtures/bodies/GandiV5_Email_Mailbox/get.yaml
336
- - spec/fixtures/bodies/GandiV5_Email_Mailbox/list.yaml
337
- - spec/fixtures/bodies/GandiV5_Email_Slot/get.yaml
338
- - spec/fixtures/bodies/GandiV5_Email_Slot/list.yaml
339
- - spec/fixtures/bodies/GandiV5_LiveDNS_Domain/get.yaml
340
- - spec/fixtures/bodies/GandiV5_LiveDNS_Domain/list.yaml
341
- - spec/fixtures/bodies/GandiV5_LiveDNS_Zone/get.yaml
342
- - spec/fixtures/bodies/GandiV5_LiveDNS_Zone/list.yaml
343
- - spec/fixtures/bodies/GandiV5_LiveDNS_Zone_Snapshot/get.yaml
344
- - spec/fixtures/bodies/GandiV5_Organization/get.yaml
351
+ - spec/fixtures/bodies/GandiV5_Billing/info.yml
352
+ - spec/fixtures/bodies/GandiV5_Domain/fetch.yml
353
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_contacts.yml
354
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_glue_records.yml
355
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_livedns.yml
356
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_name_servers.yml
357
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_renewal_info.yml
358
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_restore_info.yml
359
+ - spec/fixtures/bodies/GandiV5_Domain/list.yml
360
+ - spec/fixtures/bodies/GandiV5_Domain_Availability/fetch.yml
361
+ - spec/fixtures/bodies/GandiV5_Domain_TLD/fetch.yml
362
+ - spec/fixtures/bodies/GandiV5_Domain_TLD/list.yml
363
+ - spec/fixtures/bodies/GandiV5_Email_Forward/list.yml
364
+ - spec/fixtures/bodies/GandiV5_Email_Mailbox/fetch.yml
365
+ - spec/fixtures/bodies/GandiV5_Email_Mailbox/list.yml
366
+ - spec/fixtures/bodies/GandiV5_Email_Slot/fetch.yml
367
+ - spec/fixtures/bodies/GandiV5_Email_Slot/list.yml
368
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain/fetch.yml
369
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain/list.yml
370
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Zone/fetch.yml
371
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Zone/list.yml
372
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Zone_Snapshot/fetch.yml
373
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Zone_Snapshot/list.yml
374
+ - spec/fixtures/bodies/GandiV5_Organization/fetch.yml
375
+ - spec/fixtures/bodies/GandiV5_Organization/list.yml
376
+ - spec/fixtures/bodies/GandiV5_Organization_Customer/list.yml
345
377
  - spec/fixtures/vcr/Domain_features/List_domains.yml
346
378
  - spec/fixtures/vcr/Domain_features/Renew_domain.yml
347
379
  - spec/fixtures/vcr/LiveDNS_Domain_features/List_domains.yml
@@ -355,18 +387,27 @@ files:
355
387
  - spec/units/gandi_v5/billing/info_spec.rb
356
388
  - spec/units/gandi_v5/billing_spec.rb
357
389
  - spec/units/gandi_v5/data/converter/array_of_spec.rb
390
+ - spec/units/gandi_v5/data/converter/integer_spec.rb
358
391
  - spec/units/gandi_v5/data/converter/symbol_spec.rb
359
392
  - spec/units/gandi_v5/data/converter/time_spec.rb
360
393
  - spec/units/gandi_v5/data/converter_spec.rb
361
394
  - spec/units/gandi_v5/data_spec.rb
362
395
  - spec/units/gandi_v5/domain/auto_renew_spec.rb
396
+ - spec/units/gandi_v5/domain/availability/product/period_spec.rb
397
+ - spec/units/gandi_v5/domain/availability/product/price_spec.rb
398
+ - spec/units/gandi_v5/domain/availability/product_spec.rb
399
+ - spec/units/gandi_v5/domain/availability/tax_spec.rb
400
+ - spec/units/gandi_v5/domain/availability_spec.rb
363
401
  - spec/units/gandi_v5/domain/contact_spec.rb
364
402
  - spec/units/gandi_v5/domain/contract_spec.rb
365
403
  - spec/units/gandi_v5/domain/dates_spec.rb
404
+ - spec/units/gandi_v5/domain/live_dns_spec.rb
366
405
  - spec/units/gandi_v5/domain/renewal_information_spec.rb
367
406
  - spec/units/gandi_v5/domain/restore_information_spec.rb
368
407
  - spec/units/gandi_v5/domain/sharing_space_spec.rb
408
+ - spec/units/gandi_v5/domain/tld_spec.rb
369
409
  - spec/units/gandi_v5/domain_spec.rb
410
+ - spec/units/gandi_v5/email/forward_spec.rb
370
411
  - spec/units/gandi_v5/email/mailbox/responder_spec.rb
371
412
  - spec/units/gandi_v5/email/mailbox_spec.rb
372
413
  - spec/units/gandi_v5/email/offer_spec.rb
@@ -378,6 +419,7 @@ files:
378
419
  - spec/units/gandi_v5/live_dns/zone/snapshot_spec.rb
379
420
  - spec/units/gandi_v5/live_dns/zone_spec.rb
380
421
  - spec/units/gandi_v5/live_dns_spec.rb
422
+ - spec/units/gandi_v5/organization/customer_spec.rb
381
423
  - spec/units/gandi_v5/organization_spec.rb
382
424
  - spec/units/gandi_v5_spec.rb
383
425
  homepage: https://github.com/robertgauld/gandi_v5
@@ -399,7 +441,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
399
441
  - !ruby/object:Gem::Version
400
442
  version: 2.6.14
401
443
  requirements: []
402
- rubygems_version: 3.0.3
444
+ rubygems_version: 3.1.2
403
445
  signing_key:
404
446
  specification_version: 4
405
447
  summary: Make use of Gandi's V5 API.
data/TODO.md DELETED
@@ -1,29 +0,0 @@
1
- # To Do List
2
-
3
- * Domain:
4
- * [ ] .restore_information - test when I have a restorable domain
5
- * [ ] .create - return created domain
6
- * [ ] .availability - return a new type of object
7
- * [ ] .tld * return a new type of object
8
- * Email Mailbox:
9
- * [ ] .create - check type is valid
10
- * [ ] .create - check a slot is available
11
- * [ ] .create - fetch created mailbox
12
- * Email Slot:
13
- * [ ] #delete - check for inactiveness
14
- * [ ] #delete - check for refundableness
15
- * [ ] .create - fetch created slot
16
- * LiveDNS Domain:
17
- * [ ] #replace_??_records_for - incorporate into #replace_records_for
18
- * [ ] Make record type a symbol
19
- * [ ] Add #zone method
20
- * LiveDNS Zone:
21
- * [ ] .create - fetch created zone
22
- * [ ] #replace_??_records_for - incorporate into #replace_records_for
23
- * [ ] Make record type a symbol
24
- * [ ] Add #zone method
25
- * LiveDNS Zone Snapshot:
26
- * [ ] Move method for getting listing to here
27
- * Gandi updates from 2019-05-23:
28
- * [ ] Domain API: Domain hosts (glue records)
29
- * [ ] Domain API: Domain nameservers