gandi_v5 0.8.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +49 -9
- data/README.md +64 -15
- data/lib/gandi_v5/billing/info/prepaid.rb +1 -0
- data/lib/gandi_v5/data/converter/array_of.rb +3 -2
- data/lib/gandi_v5/data/converter/integer.rb +3 -2
- data/lib/gandi_v5/data/converter/symbol.rb +3 -2
- data/lib/gandi_v5/data/converter/time.rb +3 -2
- data/lib/gandi_v5/data/converter.rb +3 -2
- data/lib/gandi_v5/data.rb +13 -14
- data/lib/gandi_v5/domain/availability/product/period.rb +1 -1
- data/lib/gandi_v5/domain/contact.rb +5 -5
- data/lib/gandi_v5/domain/tld.rb +2 -2
- data/lib/gandi_v5/domain/transfer_in/availability.rb +51 -0
- data/lib/gandi_v5/domain/transfer_in.rb +172 -0
- data/lib/gandi_v5/domain/web_forwarding.rb +182 -0
- data/lib/gandi_v5/domain.rb +52 -13
- data/lib/gandi_v5/email/forward.rb +1 -1
- data/lib/gandi_v5/email/mailbox.rb +6 -6
- data/lib/gandi_v5/email/slot.rb +1 -1
- data/lib/gandi_v5/email.rb +3 -0
- data/lib/gandi_v5/error/gandi_error.rb +1 -0
- data/lib/gandi_v5/live_dns/domain/dnssec_key.rb +16 -11
- data/lib/gandi_v5/live_dns/domain/snapshot.rb +5 -1
- data/lib/gandi_v5/live_dns/domain/tsig_key.rb +8 -5
- data/lib/gandi_v5/live_dns/domain.rb +29 -1
- data/lib/gandi_v5/live_dns.rb +2 -0
- data/lib/gandi_v5/simple_hosting/instance/application.rb +1 -0
- data/lib/gandi_v5/simple_hosting/instance/database.rb +1 -0
- data/lib/gandi_v5/simple_hosting/instance/language.rb +1 -1
- data/lib/gandi_v5/simple_hosting/instance/upgrade.rb +1 -0
- data/lib/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone.rb +2 -1
- data/lib/gandi_v5/simple_hosting/instance/virtual_host.rb +90 -5
- data/lib/gandi_v5/simple_hosting/instance.rb +9 -0
- data/lib/gandi_v5/simple_hosting.rb +1 -0
- data/lib/gandi_v5/template/dispatch.rb +109 -0
- data/lib/gandi_v5/template/payload/dns_record.rb +23 -0
- data/lib/gandi_v5/template/payload/web_forwarding.rb +82 -0
- data/lib/gandi_v5/template/payload.rb +64 -0
- data/lib/gandi_v5/template.rb +271 -0
- data/lib/gandi_v5/version.rb +1 -1
- data/lib/gandi_v5.rb +115 -66
- data/spec/.rubocop.yml +3 -50
- data/spec/features/list_domain_renewals_spec.rb +16 -0
- data/spec/features/list_email_addresses_spec.rb +39 -0
- data/spec/fixtures/bodies/GandiV5_Domain_TransferIn/fetch.yml +21 -0
- data/spec/fixtures/bodies/GandiV5_Domain_TransferIn_Availability/fetch.yml +10 -0
- data/spec/fixtures/bodies/GandiV5_Domain_WebForwarding/fetch.yml +9 -0
- data/spec/fixtures/bodies/GandiV5_Domain_WebForwarding/list.yml +9 -0
- data/spec/fixtures/bodies/GandiV5_Template/fetch.yml +41 -0
- data/spec/fixtures/bodies/GandiV5_Template/list.yml +20 -0
- data/spec/fixtures/bodies/GandiV5_Template_Dispatch/fetch.yml +49 -0
- data/spec/fixtures/vcr/Examples/List_domain_renewals.yml +54 -0
- data/spec/fixtures/vcr/Examples/List_email_addresses.yml +103 -0
- data/spec/spec_helper.rb +8 -7
- data/spec/units/gandi_v5/domain/transfer_in/availability_spec.rb +49 -0
- data/spec/units/gandi_v5/domain/transfer_in_spec.rb +143 -0
- data/spec/units/gandi_v5/domain/web_forwarding_spec.rb +150 -0
- data/spec/units/gandi_v5/domain_spec.rb +50 -0
- data/spec/units/gandi_v5/simple_hosting/instance/virtual_host_spec.rb +125 -0
- data/spec/units/gandi_v5/simple_hosting/instance_spec.rb +8 -0
- data/spec/units/gandi_v5/template/dispatch_spec.rb +70 -0
- data/spec/units/gandi_v5/template/payload/web_forwarding_spec.rb +44 -0
- data/spec/units/gandi_v5/template_spec.rb +341 -0
- data/spec/units/gandi_v5_spec.rb +1 -1
- metadata +191 -57
- data/.gitignore +0 -26
- data/.rspec +0 -3
- data/.rubocop.yml +0 -74
- data/.travis.yml +0 -38
- data/FUNDING.yml +0 -10
- data/Gemfile +0 -6
- data/Guardfile +0 -39
- data/Rakefile +0 -3
- data/bin/console +0 -13
- data/gandi_v5.gemspec +0 -42
- data/spec/units/gandi_v5/billing/info_spec.rb +0 -4
- data/spec/units/gandi_v5/domain/availability/product/period_spec.rb +0 -4
- data/spec/units/gandi_v5/domain/availability/product/price_spec.rb +0 -4
- data/spec/units/gandi_v5/domain/availability/product_spec.rb +0 -4
- data/spec/units/gandi_v5/domain/availability/tax_spec.rb +0 -4
- data/spec/units/gandi_v5/domain/contract_spec.rb +0 -4
- data/spec/units/gandi_v5/domain/dates_spec.rb +0 -4
- data/spec/units/gandi_v5/domain/restore_information_spec.rb +0 -4
- data/spec/units/gandi_v5/error_spec.rb +0 -4
- data/spec/units/gandi_v5/sharing_space_spec.rb +0 -4
- data/spec/units/gandi_v5/simple_hosting/instance/database_spec.rb +0 -4
- data/spec/units/gandi_v5/simple_hosting/instance/language_spec.rb +0 -4
- data/spec/units/gandi_v5/simple_hosting/instance/upgrade_spec.rb +0 -4
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.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Gauld
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -58,20 +58,6 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '2.1'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: coveralls
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '0.8'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '0.8'
|
75
61
|
- !ruby/object:Gem::Dependency
|
76
62
|
name: guard
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,14 +188,14 @@ dependencies:
|
|
202
188
|
requirements:
|
203
189
|
- - "~>"
|
204
190
|
- !ruby/object:Gem::Version
|
205
|
-
version: '
|
191
|
+
version: '1.7'
|
206
192
|
type: :development
|
207
193
|
prerelease: false
|
208
194
|
version_requirements: !ruby/object:Gem::Requirement
|
209
195
|
requirements:
|
210
196
|
- - "~>"
|
211
197
|
- !ruby/object:Gem::Version
|
212
|
-
version: '
|
198
|
+
version: '1.7'
|
213
199
|
- !ruby/object:Gem::Dependency
|
214
200
|
name: rubocop-performance
|
215
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,20 +210,62 @@ dependencies:
|
|
224
210
|
- - "~>"
|
225
211
|
- !ruby/object:Gem::Version
|
226
212
|
version: '1.7'
|
213
|
+
- !ruby/object:Gem::Dependency
|
214
|
+
name: rubocop-rake
|
215
|
+
requirement: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - "~>"
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: 0.5.1
|
220
|
+
type: :development
|
221
|
+
prerelease: false
|
222
|
+
version_requirements: !ruby/object:Gem::Requirement
|
223
|
+
requirements:
|
224
|
+
- - "~>"
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: 0.5.1
|
227
|
+
- !ruby/object:Gem::Dependency
|
228
|
+
name: rubocop-rspec
|
229
|
+
requirement: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - "~>"
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: '2.1'
|
234
|
+
type: :development
|
235
|
+
prerelease: false
|
236
|
+
version_requirements: !ruby/object:Gem::Requirement
|
237
|
+
requirements:
|
238
|
+
- - "~>"
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
version: '2.1'
|
227
241
|
- !ruby/object:Gem::Dependency
|
228
242
|
name: simplecov
|
229
243
|
requirement: !ruby/object:Gem::Requirement
|
230
244
|
requirements:
|
231
245
|
- - "~>"
|
232
246
|
- !ruby/object:Gem::Version
|
233
|
-
version: '0.
|
247
|
+
version: '0.18'
|
248
|
+
type: :development
|
249
|
+
prerelease: false
|
250
|
+
version_requirements: !ruby/object:Gem::Requirement
|
251
|
+
requirements:
|
252
|
+
- - "~>"
|
253
|
+
- !ruby/object:Gem::Version
|
254
|
+
version: '0.18'
|
255
|
+
- !ruby/object:Gem::Dependency
|
256
|
+
name: simplecov-lcov
|
257
|
+
requirement: !ruby/object:Gem::Requirement
|
258
|
+
requirements:
|
259
|
+
- - "~>"
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: '0.8'
|
234
262
|
type: :development
|
235
263
|
prerelease: false
|
236
264
|
version_requirements: !ruby/object:Gem::Requirement
|
237
265
|
requirements:
|
238
266
|
- - "~>"
|
239
267
|
- !ruby/object:Gem::Version
|
240
|
-
version: '0.
|
268
|
+
version: '0.8'
|
241
269
|
- !ruby/object:Gem::Dependency
|
242
270
|
name: timecop
|
243
271
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,27 +308,19 @@ dependencies:
|
|
280
308
|
- - "~>"
|
281
309
|
- !ruby/object:Gem::Version
|
282
310
|
version: '3.6'
|
283
|
-
description:
|
311
|
+
description:
|
284
312
|
email:
|
285
|
-
- robert@robertgauld.
|
286
|
-
executables:
|
287
|
-
- console
|
313
|
+
- robert@robertgauld.uk
|
314
|
+
executables: []
|
288
315
|
extensions: []
|
289
|
-
extra_rdoc_files:
|
316
|
+
extra_rdoc_files:
|
317
|
+
- README.md
|
318
|
+
- CHANGELOG.md
|
319
|
+
- LICENSE.md
|
290
320
|
files:
|
291
|
-
- ".gitignore"
|
292
|
-
- ".rspec"
|
293
|
-
- ".rubocop.yml"
|
294
|
-
- ".travis.yml"
|
295
321
|
- CHANGELOG.md
|
296
|
-
- FUNDING.yml
|
297
|
-
- Gemfile
|
298
|
-
- Guardfile
|
299
322
|
- LICENSE.md
|
300
323
|
- README.md
|
301
|
-
- Rakefile
|
302
|
-
- bin/console
|
303
|
-
- gandi_v5.gemspec
|
304
324
|
- lib/gandi_v5.rb
|
305
325
|
- lib/gandi_v5/billing.rb
|
306
326
|
- lib/gandi_v5/billing/info.rb
|
@@ -325,6 +345,9 @@ files:
|
|
325
345
|
- lib/gandi_v5/domain/renewal_information.rb
|
326
346
|
- lib/gandi_v5/domain/restore_information.rb
|
327
347
|
- lib/gandi_v5/domain/tld.rb
|
348
|
+
- lib/gandi_v5/domain/transfer_in.rb
|
349
|
+
- lib/gandi_v5/domain/transfer_in/availability.rb
|
350
|
+
- lib/gandi_v5/domain/web_forwarding.rb
|
328
351
|
- lib/gandi_v5/email.rb
|
329
352
|
- lib/gandi_v5/email/forward.rb
|
330
353
|
- lib/gandi_v5/email/mailbox.rb
|
@@ -350,8 +373,15 @@ files:
|
|
350
373
|
- lib/gandi_v5/simple_hosting/instance/upgrade.rb
|
351
374
|
- lib/gandi_v5/simple_hosting/instance/virtual_host.rb
|
352
375
|
- lib/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone.rb
|
376
|
+
- lib/gandi_v5/template.rb
|
377
|
+
- lib/gandi_v5/template/dispatch.rb
|
378
|
+
- lib/gandi_v5/template/payload.rb
|
379
|
+
- lib/gandi_v5/template/payload/dns_record.rb
|
380
|
+
- lib/gandi_v5/template/payload/web_forwarding.rb
|
353
381
|
- lib/gandi_v5/version.rb
|
354
382
|
- spec/.rubocop.yml
|
383
|
+
- spec/features/list_domain_renewals_spec.rb
|
384
|
+
- spec/features/list_email_addresses_spec.rb
|
355
385
|
- spec/fixtures/bodies/GandiV5_Billing/info.yml
|
356
386
|
- spec/fixtures/bodies/GandiV5_Domain/fetch.yml
|
357
387
|
- spec/fixtures/bodies/GandiV5_Domain/fetch_contacts.yml
|
@@ -364,6 +394,10 @@ files:
|
|
364
394
|
- spec/fixtures/bodies/GandiV5_Domain_Availability/fetch.yml
|
365
395
|
- spec/fixtures/bodies/GandiV5_Domain_TLD/fetch.yml
|
366
396
|
- spec/fixtures/bodies/GandiV5_Domain_TLD/list.yml
|
397
|
+
- spec/fixtures/bodies/GandiV5_Domain_TransferIn/fetch.yml
|
398
|
+
- spec/fixtures/bodies/GandiV5_Domain_TransferIn_Availability/fetch.yml
|
399
|
+
- spec/fixtures/bodies/GandiV5_Domain_WebForwarding/fetch.yml
|
400
|
+
- spec/fixtures/bodies/GandiV5_Domain_WebForwarding/list.yml
|
367
401
|
- spec/fixtures/bodies/GandiV5_Email_Forward/list.yml
|
368
402
|
- spec/fixtures/bodies/GandiV5_Email_Mailbox/fetch.yml
|
369
403
|
- spec/fixtures/bodies/GandiV5_Email_Mailbox/list.yml
|
@@ -386,10 +420,14 @@ files:
|
|
386
420
|
- spec/fixtures/bodies/GandiV5_SimpleHosting_Instance/list.yml
|
387
421
|
- spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/fetch.yml
|
388
422
|
- spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/list.yml
|
423
|
+
- spec/fixtures/bodies/GandiV5_Template/fetch.yml
|
424
|
+
- spec/fixtures/bodies/GandiV5_Template/list.yml
|
425
|
+
- spec/fixtures/bodies/GandiV5_Template_Dispatch/fetch.yml
|
426
|
+
- spec/fixtures/vcr/Examples/List_domain_renewals.yml
|
427
|
+
- spec/fixtures/vcr/Examples/List_email_addresses.yml
|
389
428
|
- spec/spec_helper.rb
|
390
429
|
- spec/test.env
|
391
430
|
- spec/units/gandi_v5/billing/info/prepaid_spec.rb
|
392
|
-
- spec/units/gandi_v5/billing/info_spec.rb
|
393
431
|
- spec/units/gandi_v5/billing_spec.rb
|
394
432
|
- spec/units/gandi_v5/data/converter/array_of_spec.rb
|
395
433
|
- spec/units/gandi_v5/data/converter/integer_spec.rb
|
@@ -398,18 +436,14 @@ files:
|
|
398
436
|
- spec/units/gandi_v5/data/converter_spec.rb
|
399
437
|
- spec/units/gandi_v5/data_spec.rb
|
400
438
|
- spec/units/gandi_v5/domain/auto_renew_spec.rb
|
401
|
-
- spec/units/gandi_v5/domain/availability/product/period_spec.rb
|
402
|
-
- spec/units/gandi_v5/domain/availability/product/price_spec.rb
|
403
|
-
- spec/units/gandi_v5/domain/availability/product_spec.rb
|
404
|
-
- spec/units/gandi_v5/domain/availability/tax_spec.rb
|
405
439
|
- spec/units/gandi_v5/domain/availability_spec.rb
|
406
440
|
- spec/units/gandi_v5/domain/contact_spec.rb
|
407
|
-
- spec/units/gandi_v5/domain/contract_spec.rb
|
408
|
-
- spec/units/gandi_v5/domain/dates_spec.rb
|
409
441
|
- spec/units/gandi_v5/domain/live_dns_spec.rb
|
410
442
|
- spec/units/gandi_v5/domain/renewal_information_spec.rb
|
411
|
-
- spec/units/gandi_v5/domain/restore_information_spec.rb
|
412
443
|
- spec/units/gandi_v5/domain/tld_spec.rb
|
444
|
+
- spec/units/gandi_v5/domain/transfer_in/availability_spec.rb
|
445
|
+
- spec/units/gandi_v5/domain/transfer_in_spec.rb
|
446
|
+
- spec/units/gandi_v5/domain/web_forwarding_spec.rb
|
413
447
|
- spec/units/gandi_v5/domain_spec.rb
|
414
448
|
- spec/units/gandi_v5/email/forward_spec.rb
|
415
449
|
- spec/units/gandi_v5/email/mailbox/responder_spec.rb
|
@@ -417,7 +451,6 @@ files:
|
|
417
451
|
- spec/units/gandi_v5/email/offer_spec.rb
|
418
452
|
- spec/units/gandi_v5/email/slot_spec.rb
|
419
453
|
- spec/units/gandi_v5/error/gandi_error_spec.rb
|
420
|
-
- spec/units/gandi_v5/error_spec.rb
|
421
454
|
- spec/units/gandi_v5/live_dns/domain/dnssec_key_spec.rb
|
422
455
|
- spec/units/gandi_v5/live_dns/domain/record_spec.rb
|
423
456
|
- spec/units/gandi_v5/live_dns/domain/snapshot_spec.rb
|
@@ -426,22 +459,34 @@ files:
|
|
426
459
|
- spec/units/gandi_v5/live_dns_spec.rb
|
427
460
|
- spec/units/gandi_v5/organization/customer_spec.rb
|
428
461
|
- spec/units/gandi_v5/organization_spec.rb
|
429
|
-
- spec/units/gandi_v5/sharing_space_spec.rb
|
430
462
|
- spec/units/gandi_v5/simple_hosting/instance/application_spec.rb
|
431
|
-
- spec/units/gandi_v5/simple_hosting/instance/database_spec.rb
|
432
|
-
- spec/units/gandi_v5/simple_hosting/instance/language_spec.rb
|
433
|
-
- spec/units/gandi_v5/simple_hosting/instance/upgrade_spec.rb
|
434
463
|
- spec/units/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone_spec.rb
|
435
464
|
- spec/units/gandi_v5/simple_hosting/instance/virtual_host_spec.rb
|
436
465
|
- spec/units/gandi_v5/simple_hosting/instance_spec.rb
|
437
466
|
- spec/units/gandi_v5/simple_hosting_spec.rb
|
467
|
+
- spec/units/gandi_v5/template/dispatch_spec.rb
|
468
|
+
- spec/units/gandi_v5/template/payload/web_forwarding_spec.rb
|
469
|
+
- spec/units/gandi_v5/template_spec.rb
|
438
470
|
- spec/units/gandi_v5_spec.rb
|
439
471
|
homepage: https://github.com/robertgauld/gandi_v5
|
440
472
|
licenses:
|
441
|
-
- BSD
|
442
|
-
metadata:
|
443
|
-
|
444
|
-
|
473
|
+
- BSD-3-Clause
|
474
|
+
metadata:
|
475
|
+
bug_tracker_uri: https://github.com/robertgauld/gandi_v5/issues
|
476
|
+
changelog_uri: https://github.com/robertgauld/gandi_v5/blob/main/CHANGELOG.md
|
477
|
+
documentation_uri: https://rubydoc.info/github/robertgauld/gandi_v5/main
|
478
|
+
homepage_uri: https://github.com/robertgauld/gandi_v5
|
479
|
+
source_code_uri: https://github.com/robertgauld/gandi_v5
|
480
|
+
rubygems_mfa_required: 'true'
|
481
|
+
post_install_message:
|
482
|
+
rdoc_options:
|
483
|
+
- "--title"
|
484
|
+
- gandi_v5 - Make use of Gandi's V5 API.
|
485
|
+
- "--main"
|
486
|
+
- README.md
|
487
|
+
- "--line-numbers"
|
488
|
+
- "--inline-source"
|
489
|
+
- "--quiet"
|
445
490
|
require_paths:
|
446
491
|
- lib
|
447
492
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -455,8 +500,97 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
455
500
|
- !ruby/object:Gem::Version
|
456
501
|
version: 2.6.14
|
457
502
|
requirements: []
|
458
|
-
rubygems_version: 3.
|
459
|
-
signing_key:
|
503
|
+
rubygems_version: 3.2.22
|
504
|
+
signing_key:
|
460
505
|
specification_version: 4
|
461
506
|
summary: Make use of Gandi's V5 API.
|
462
|
-
test_files:
|
507
|
+
test_files:
|
508
|
+
- spec/.rubocop.yml
|
509
|
+
- spec/features/list_domain_renewals_spec.rb
|
510
|
+
- spec/features/list_email_addresses_spec.rb
|
511
|
+
- spec/fixtures/bodies/GandiV5_Billing/info.yml
|
512
|
+
- spec/fixtures/bodies/GandiV5_Domain/fetch.yml
|
513
|
+
- spec/fixtures/bodies/GandiV5_Domain/fetch_contacts.yml
|
514
|
+
- spec/fixtures/bodies/GandiV5_Domain/fetch_glue_records.yml
|
515
|
+
- spec/fixtures/bodies/GandiV5_Domain/fetch_livedns.yml
|
516
|
+
- spec/fixtures/bodies/GandiV5_Domain/fetch_name_servers.yml
|
517
|
+
- spec/fixtures/bodies/GandiV5_Domain/fetch_renewal_info.yml
|
518
|
+
- spec/fixtures/bodies/GandiV5_Domain/fetch_restore_info.yml
|
519
|
+
- spec/fixtures/bodies/GandiV5_Domain/list.yml
|
520
|
+
- spec/fixtures/bodies/GandiV5_Domain_Availability/fetch.yml
|
521
|
+
- spec/fixtures/bodies/GandiV5_Domain_TLD/fetch.yml
|
522
|
+
- spec/fixtures/bodies/GandiV5_Domain_TLD/list.yml
|
523
|
+
- spec/fixtures/bodies/GandiV5_Domain_TransferIn/fetch.yml
|
524
|
+
- spec/fixtures/bodies/GandiV5_Domain_TransferIn_Availability/fetch.yml
|
525
|
+
- spec/fixtures/bodies/GandiV5_Domain_WebForwarding/fetch.yml
|
526
|
+
- spec/fixtures/bodies/GandiV5_Domain_WebForwarding/list.yml
|
527
|
+
- spec/fixtures/bodies/GandiV5_Email_Forward/list.yml
|
528
|
+
- spec/fixtures/bodies/GandiV5_Email_Mailbox/fetch.yml
|
529
|
+
- spec/fixtures/bodies/GandiV5_Email_Mailbox/list.yml
|
530
|
+
- spec/fixtures/bodies/GandiV5_Email_Slot/fetch.yml
|
531
|
+
- spec/fixtures/bodies/GandiV5_Email_Slot/list.yml
|
532
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain/fetch.yml
|
533
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain/list.yml
|
534
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain/list_tsig.yml
|
535
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain/nameservers.yml
|
536
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain_DnssecKey/fetch.yml
|
537
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain_DnssecKey/list.yml
|
538
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain_Snapshot/fetch.yml
|
539
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain_Snapshot/list.yml
|
540
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain_TsigKey/fetch.yml
|
541
|
+
- spec/fixtures/bodies/GandiV5_LiveDNS_Domain_TsigKey/list.yml
|
542
|
+
- spec/fixtures/bodies/GandiV5_Organization/fetch.yml
|
543
|
+
- spec/fixtures/bodies/GandiV5_Organization/list.yml
|
544
|
+
- spec/fixtures/bodies/GandiV5_Organization_Customer/list.yml
|
545
|
+
- spec/fixtures/bodies/GandiV5_SimpleHosting_Instance/fetch.yml
|
546
|
+
- spec/fixtures/bodies/GandiV5_SimpleHosting_Instance/list.yml
|
547
|
+
- spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/fetch.yml
|
548
|
+
- spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/list.yml
|
549
|
+
- spec/fixtures/bodies/GandiV5_Template/fetch.yml
|
550
|
+
- spec/fixtures/bodies/GandiV5_Template/list.yml
|
551
|
+
- spec/fixtures/bodies/GandiV5_Template_Dispatch/fetch.yml
|
552
|
+
- spec/fixtures/vcr/Examples/List_domain_renewals.yml
|
553
|
+
- spec/fixtures/vcr/Examples/List_email_addresses.yml
|
554
|
+
- spec/spec_helper.rb
|
555
|
+
- spec/test.env
|
556
|
+
- spec/units/gandi_v5/billing/info/prepaid_spec.rb
|
557
|
+
- spec/units/gandi_v5/billing_spec.rb
|
558
|
+
- spec/units/gandi_v5/data/converter/array_of_spec.rb
|
559
|
+
- spec/units/gandi_v5/data/converter/integer_spec.rb
|
560
|
+
- spec/units/gandi_v5/data/converter/symbol_spec.rb
|
561
|
+
- spec/units/gandi_v5/data/converter/time_spec.rb
|
562
|
+
- spec/units/gandi_v5/data/converter_spec.rb
|
563
|
+
- spec/units/gandi_v5/data_spec.rb
|
564
|
+
- spec/units/gandi_v5/domain/auto_renew_spec.rb
|
565
|
+
- spec/units/gandi_v5/domain/availability_spec.rb
|
566
|
+
- spec/units/gandi_v5/domain/contact_spec.rb
|
567
|
+
- spec/units/gandi_v5/domain/live_dns_spec.rb
|
568
|
+
- spec/units/gandi_v5/domain/renewal_information_spec.rb
|
569
|
+
- spec/units/gandi_v5/domain/tld_spec.rb
|
570
|
+
- spec/units/gandi_v5/domain/transfer_in/availability_spec.rb
|
571
|
+
- spec/units/gandi_v5/domain/transfer_in_spec.rb
|
572
|
+
- spec/units/gandi_v5/domain/web_forwarding_spec.rb
|
573
|
+
- spec/units/gandi_v5/domain_spec.rb
|
574
|
+
- spec/units/gandi_v5/email/forward_spec.rb
|
575
|
+
- spec/units/gandi_v5/email/mailbox/responder_spec.rb
|
576
|
+
- spec/units/gandi_v5/email/mailbox_spec.rb
|
577
|
+
- spec/units/gandi_v5/email/offer_spec.rb
|
578
|
+
- spec/units/gandi_v5/email/slot_spec.rb
|
579
|
+
- spec/units/gandi_v5/error/gandi_error_spec.rb
|
580
|
+
- spec/units/gandi_v5/live_dns/domain/dnssec_key_spec.rb
|
581
|
+
- spec/units/gandi_v5/live_dns/domain/record_spec.rb
|
582
|
+
- spec/units/gandi_v5/live_dns/domain/snapshot_spec.rb
|
583
|
+
- spec/units/gandi_v5/live_dns/domain/tsig_key_spec.rb
|
584
|
+
- spec/units/gandi_v5/live_dns/domain_spec.rb
|
585
|
+
- spec/units/gandi_v5/live_dns_spec.rb
|
586
|
+
- spec/units/gandi_v5/organization/customer_spec.rb
|
587
|
+
- spec/units/gandi_v5/organization_spec.rb
|
588
|
+
- spec/units/gandi_v5/simple_hosting/instance/application_spec.rb
|
589
|
+
- spec/units/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone_spec.rb
|
590
|
+
- spec/units/gandi_v5/simple_hosting/instance/virtual_host_spec.rb
|
591
|
+
- spec/units/gandi_v5/simple_hosting/instance_spec.rb
|
592
|
+
- spec/units/gandi_v5/simple_hosting_spec.rb
|
593
|
+
- spec/units/gandi_v5/template/dispatch_spec.rb
|
594
|
+
- spec/units/gandi_v5/template/payload/web_forwarding_spec.rb
|
595
|
+
- spec/units/gandi_v5/template_spec.rb
|
596
|
+
- spec/units/gandi_v5_spec.rb
|
data/.gitignore
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# Because this is a gem, ignore Gemfile.lock:
|
2
|
-
|
3
|
-
Gemfile.lock
|
4
|
-
|
5
|
-
# And because this is Ruby, ignore the following
|
6
|
-
# (source: https://github.com/github/gitignore/blob/master/Ruby.gitignore):
|
7
|
-
|
8
|
-
.ruby-version
|
9
|
-
notes.txt
|
10
|
-
todo.txt
|
11
|
-
*.gem
|
12
|
-
*.rbc
|
13
|
-
.bundle
|
14
|
-
.config
|
15
|
-
coverage
|
16
|
-
InstalledFiles
|
17
|
-
lib/bundler/man
|
18
|
-
pkg
|
19
|
-
rdoc
|
20
|
-
doc
|
21
|
-
spec/reports
|
22
|
-
test/tmp
|
23
|
-
test/version_tmp
|
24
|
-
tmp
|
25
|
-
gemfiles/*.lock
|
26
|
-
.yardoc
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-performance
|
3
|
-
AllCops:
|
4
|
-
TargetRubyVersion: 2.6.0
|
5
|
-
Gemspec/RequiredRubyVersion:
|
6
|
-
Enabled: false
|
7
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
8
|
-
Enabled: true
|
9
|
-
Layout/SpaceAroundMethodCallOperator:
|
10
|
-
Enabled: true
|
11
|
-
Lint/DeprecatedOpenSSLConstant:
|
12
|
-
Enabled: true
|
13
|
-
Lint/MixedRegexpCaptureTypes:
|
14
|
-
Enabled: true
|
15
|
-
Lint/RaiseException:
|
16
|
-
Enabled: true
|
17
|
-
Lint/StructNewOverride:
|
18
|
-
Enabled: true
|
19
|
-
Metrics/AbcSize:
|
20
|
-
Max: 20
|
21
|
-
Metrics/ClassLength:
|
22
|
-
Max: 250
|
23
|
-
Metrics/CyclomaticComplexity:
|
24
|
-
Max: 8
|
25
|
-
Metrics/MethodLength:
|
26
|
-
Max: 15
|
27
|
-
Metrics/ModuleLength:
|
28
|
-
Max: 200
|
29
|
-
Metrics/ParameterLists:
|
30
|
-
Max: 6
|
31
|
-
Performance/AncestorsInclude:
|
32
|
-
Enabled: true
|
33
|
-
Performance/BigDecimalWithNumericArgument:
|
34
|
-
Enabled: true
|
35
|
-
Performance/RedundantSortBlock:
|
36
|
-
Enabled: true
|
37
|
-
Performance/RedundantStringChars:
|
38
|
-
Enabled: true
|
39
|
-
Performance/ReverseFirst:
|
40
|
-
Enabled: true
|
41
|
-
Performance/SortReverse:
|
42
|
-
Enabled: true
|
43
|
-
Performance/Squeeze:
|
44
|
-
Enabled: true
|
45
|
-
Performance/StringInclude:
|
46
|
-
Enabled: true
|
47
|
-
Style/AccessorGrouping:
|
48
|
-
Enabled: true
|
49
|
-
Style/BisectedAttrAccessor:
|
50
|
-
Enabled: true
|
51
|
-
Style/DocumentationMethod:
|
52
|
-
Enabled: true
|
53
|
-
Style/ExponentialNotation:
|
54
|
-
Enabled: true
|
55
|
-
Style/HashEachMethods:
|
56
|
-
Enabled: true
|
57
|
-
Style/HashTransformKeys:
|
58
|
-
Enabled: true
|
59
|
-
Style/HashTransformValues:
|
60
|
-
Enabled: true
|
61
|
-
Style/RedundantAssignment:
|
62
|
-
Enabled: true
|
63
|
-
Style/RedundantFetchBlock:
|
64
|
-
Enabled: true
|
65
|
-
Style/RedundantRegexpCharacterClass:
|
66
|
-
Enabled: true
|
67
|
-
Style/RedundantRegexpEscape:
|
68
|
-
Enabled: true
|
69
|
-
Style/SignalException:
|
70
|
-
Enabled: false
|
71
|
-
Style/SlicingWithRange:
|
72
|
-
Enabled: true
|
73
|
-
Layout/LineLength:
|
74
|
-
Max: 100
|
data/.travis.yml
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.6.0
|
4
|
-
- 2.6.1
|
5
|
-
- 2.6.2
|
6
|
-
- 2.6.3
|
7
|
-
- 2.6.4
|
8
|
-
- 2.6.5
|
9
|
-
- 2.6.6
|
10
|
-
- 2.7.0
|
11
|
-
- 2.7.1
|
12
|
-
- truffleruby-20.1.0
|
13
|
-
gemfile:
|
14
|
-
- Gemfile
|
15
|
-
branches:
|
16
|
-
only:
|
17
|
-
- master
|
18
|
-
- staging
|
19
|
-
- /gh(?:\d)+(?:-.+)?/
|
20
|
-
- /dev_ver_\d+\.\d+/
|
21
|
-
env:
|
22
|
-
global:
|
23
|
-
# CC_TEST_REPORTER_ID for reporting test coverage to code climate
|
24
|
-
- secure: "C3AcK+/2A4h2+ZayJXc89EQp76o8/2RL03PdtVjWPI6cfBSwN174ImWSdIcs6+Bjv8GH+bADsM4epkTjI7H24wh80If/4jAZJMB6LsAxVC3rZVx2UfDghp1Lwcy6BkNx4VVXMQJUR4rA8fXNd1l6n2a72RbPhTaGYxggw+yiKYNjj5m/u3HWPzTQ9wIx/rLzb2shQU1P9tDX4eRqJixYsd8LvStvXewUKlTQSaxNczzfcSOmeJrrytJGuPQxgBx67hlN40cs84oEbhndjlekZRwYepsRcan9umJEDHnE+k0wLlz/vb2cshYp5tdcfkqspaEhUSV7Vr7ZQNIppI3XyY1hs/pTYc2Vytp3OiY0EXBjKRmiHcnmA8EIkrV9i4OSt6Af3EQJaYU56a0BCaEqzRoQJWOZDS8bVowuO4rY8/xINQBwTojIYAplI/vqX/7xvlRbzIgeWdpvQipPC01d2JtmI/5D1FdGWtzYcDCTRTbHyWmjhr7Jt8qEDMFkbpkcAQiS61baEQ0p4CxaLYm/lpPco1U3e/gMOb/EXDhOrF1I8lSBmVJE/Uz2/3kfOa1DQSxDSRmV1nU3pSd7PUi25Pdx0rezJjRl1UC2gnsNZrCLbplk+VkImXTt3iirV/RuHDo+YVT0efaws7TVH7Uf87jqWf4VZEw/KI3tzfF43CE="
|
25
|
-
before_install: gem update bundler
|
26
|
-
before_script:
|
27
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter && ./cc-test-reporter before-build
|
28
|
-
script:
|
29
|
-
- if [[ $(echo $TRAVIS_JOB_NUMBER | awk -F . '{ print $2 }') == '1' ]]; then bundle exec rubocop; fi
|
30
|
-
- bundle exec rspec
|
31
|
-
after_script:
|
32
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
33
|
-
notifications:
|
34
|
-
slack:
|
35
|
-
on_success: always
|
36
|
-
on_failure: always
|
37
|
-
rooms:
|
38
|
-
- secure: Nx1TmVs32ILAvH3Cv+jX6rZh1hgx3YaY9azC3PIaJba/bF9xXY1l8L4wF0dJGupQlFP3lWN3Y/aPIJo3SNbH+qll9o317105FfTecPWloyiDgWvz5qPz+oh5MImBUs220jW2XsaACfZkGTUsQt8OUCfhtUeUiW+YqqfAZEwnl+0TyTSFBSLKSNdMcT0sKYPb0IuX5WrOspokSoE9+QL5k0cNN8d78MvtUIC6Em5/ffKVbk4TulQhbzyUhIlPDoxVELq16dQ7njyWJb58khOCaJGV7a2NdFvFCJqImFVQPRT5Ad6EJMQ461cdPY5+ZwxDGlIkA5Srt1L+CyV2wJtMarCIPoGQaxuOTVjNiedEmzblg3K9VXkI7Q5LupJ+vOBhtUS54ODYVBnQgoNVPuRe6T81VZ7NCejeest9bqga8QAVVNhKvMvb6l+YXabnPo7okDZM4+4AlaG/pBKWKjxDJ5QXlbRUZqnJt36sA7y3wvIxnYMX45oaqLD9OS8DQ7Va9+9bsPGZnI0oQrkoPGazGnCryvNtEdl+Qy2KSFaocJL7XLavmAYCmqnNGIaO0eiI+VoX9rvOadDNaPJoa6G4YpO+yTBlx1mxLjneY3FfCHZ1lma7UxzV0t0AVYZtnYBalXbw3mvIWEg6PPRI2uXGCvwUBrNCQqonULsRTFSseMw=
|
data/FUNDING.yml
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
2
|
-
patreon: robertgauld
|
3
|
-
open_collective: # Replace with a single Open Collective username
|
4
|
-
ko_fi: # Replace with a single Ko-fi username
|
5
|
-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
6
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
7
|
-
liberapay: # Replace with a single Liberapay username
|
8
|
-
issuehunt: # Replace with a single IssueHunt username
|
9
|
-
otechie: # Replace with a single Otechie username
|
10
|
-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
data/Gemfile
DELETED
data/Guardfile
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
guard :bundler do
|
4
|
-
watch(/^Gemfile(?:\.lock)$/)
|
5
|
-
watch(/^.+\.gemspec$/)
|
6
|
-
end
|
7
|
-
|
8
|
-
# rubocop:disable Metrics/BlockLength
|
9
|
-
group :red_green_refactor, halt_on_fail: true do
|
10
|
-
group :rspec do
|
11
|
-
guard(
|
12
|
-
:rspec,
|
13
|
-
all_on_start: true,
|
14
|
-
all_after_pass: false,
|
15
|
-
notification: :failed,
|
16
|
-
cmd: 'bundle exec rspec'
|
17
|
-
) do
|
18
|
-
watch(%r{^spec/.+_spec\.rb$})
|
19
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/units/#{m[1]}_spec.rb" }
|
20
|
-
watch('spec/spec_helper.rb') { 'spec' }
|
21
|
-
watch(%r{^spec/.+_shared\.rb$}) { 'spec' }
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
group :rubocop do
|
26
|
-
guard(
|
27
|
-
:rubocop,
|
28
|
-
all_on_start: true,
|
29
|
-
all_after_pass: false,
|
30
|
-
notification: :failed,
|
31
|
-
keep_failed: false
|
32
|
-
) do
|
33
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| [m[0], "spec/units/#{m[1]}_spec.rb"] }
|
34
|
-
watch(%r{^spec/.+?/(.+)_spec\.rb$}) { |m| [m[0], "lib/#{m[1]}.rb"] }
|
35
|
-
watch(%r{^(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
# rubocop:enable Metrics/BlockLength
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
Dotenv.load
|
5
|
-
|
6
|
-
unless ENV.key?('GANDI_API_KEY')
|
7
|
-
puts 'YOU MUST SET YOUR API KEY -> GandiV5.api_key = \'…\''
|
8
|
-
puts 'You can avoid having to do this by'
|
9
|
-
puts 'setting the environment variable GANDI_API_KEY.'
|
10
|
-
end
|
11
|
-
|
12
|
-
require 'irb'
|
13
|
-
IRB.start
|
data/gandi_v5.gemspec
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
-
require File.join(File.dirname(__FILE__), 'lib', 'gandi_v5', 'version')
|
5
|
-
|
6
|
-
Gem::Specification.new do |gem|
|
7
|
-
gem.name = 'gandi_v5'
|
8
|
-
gem.license = 'BSD 3 clause'
|
9
|
-
gem.version = GandiV5::VERSION
|
10
|
-
gem.authors = ['Robert Gauld']
|
11
|
-
gem.email = ['robert@robertgauld.co.uk']
|
12
|
-
gem.homepage = 'https://github.com/robertgauld/gandi_v5'
|
13
|
-
gem.summary = 'Make use of Gandi\'s V5 API.'
|
14
|
-
|
15
|
-
gem.files = `git ls-files`.split("\n")
|
16
|
-
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
-
gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
18
|
-
gem.require_paths = ['lib']
|
19
|
-
|
20
|
-
gem.required_ruby_version = '>= 2.4'
|
21
|
-
gem.required_rubygems_version = '>= 2.6.14'
|
22
|
-
|
23
|
-
gem.add_dependency 'dotenv', '~> 2.5'
|
24
|
-
gem.add_dependency 'rest-client', '>= 2', '< 3'
|
25
|
-
gem.add_dependency 'zeitwerk', '~> 2.1'
|
26
|
-
|
27
|
-
gem.add_development_dependency 'coveralls', '~> 0.8'
|
28
|
-
gem.add_development_dependency 'guard', '~> 2.15'
|
29
|
-
gem.add_development_dependency 'guard-bundler', '~> 2.2'
|
30
|
-
gem.add_development_dependency 'guard-rspec', '~> 4.2', '>= 4.2.5'
|
31
|
-
gem.add_development_dependency 'guard-rubocop', '~> 1.3'
|
32
|
-
gem.add_development_dependency 'rake', '~> 12.0'
|
33
|
-
gem.add_development_dependency 'rb-inotify', '~> 0.9'
|
34
|
-
gem.add_development_dependency 'rspec', '>= 3.7', '< 4'
|
35
|
-
gem.add_development_dependency 'rspec-its', '~> 1.3'
|
36
|
-
gem.add_development_dependency 'rubocop', '~> 0.87'
|
37
|
-
gem.add_development_dependency 'rubocop-performance', '~> 1.7'
|
38
|
-
gem.add_development_dependency 'simplecov', '~> 0.7'
|
39
|
-
gem.add_development_dependency 'timecop', '~> 0.5'
|
40
|
-
gem.add_development_dependency 'vcr', '~> 4.0'
|
41
|
-
gem.add_development_dependency 'webmock', '~> 3.6'
|
42
|
-
end
|