gandi_v5 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -9
  3. data/README.md +54 -10
  4. data/lib/gandi_v5.rb +112 -66
  5. data/lib/gandi_v5/billing/info/prepaid.rb +1 -0
  6. data/lib/gandi_v5/data.rb +1 -0
  7. data/lib/gandi_v5/data/converter.rb +3 -2
  8. data/lib/gandi_v5/data/converter/array_of.rb +3 -2
  9. data/lib/gandi_v5/data/converter/integer.rb +3 -2
  10. data/lib/gandi_v5/data/converter/symbol.rb +3 -2
  11. data/lib/gandi_v5/data/converter/time.rb +3 -2
  12. data/lib/gandi_v5/domain.rb +9 -6
  13. data/lib/gandi_v5/domain/availability/product/period.rb +1 -1
  14. data/lib/gandi_v5/domain/contact.rb +5 -5
  15. data/lib/gandi_v5/domain/tld.rb +2 -2
  16. data/lib/gandi_v5/domain/transfer_in.rb +170 -0
  17. data/lib/gandi_v5/domain/transfer_in/availability.rb +51 -0
  18. data/lib/gandi_v5/email.rb +1 -0
  19. data/lib/gandi_v5/email/mailbox.rb +1 -1
  20. data/lib/gandi_v5/error/gandi_error.rb +1 -0
  21. data/lib/gandi_v5/live_dns.rb +2 -0
  22. data/lib/gandi_v5/live_dns/domain.rb +28 -1
  23. data/lib/gandi_v5/live_dns/domain/dnssec_key.rb +16 -11
  24. data/lib/gandi_v5/live_dns/domain/snapshot.rb +4 -0
  25. data/lib/gandi_v5/live_dns/domain/tsig_key.rb +7 -4
  26. data/lib/gandi_v5/simple_hosting.rb +1 -0
  27. data/lib/gandi_v5/simple_hosting/instance.rb +3 -0
  28. data/lib/gandi_v5/simple_hosting/instance/application.rb +1 -0
  29. data/lib/gandi_v5/simple_hosting/instance/database.rb +1 -0
  30. data/lib/gandi_v5/simple_hosting/instance/language.rb +1 -1
  31. data/lib/gandi_v5/simple_hosting/instance/upgrade.rb +1 -0
  32. data/lib/gandi_v5/simple_hosting/instance/virtual_host.rb +2 -2
  33. data/lib/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone.rb +1 -0
  34. data/lib/gandi_v5/version.rb +1 -1
  35. data/spec/features/list_domain_renewals_spec.rb +16 -0
  36. data/spec/features/list_email_addresses_spec.rb +39 -0
  37. data/spec/fixtures/bodies/GandiV5_Domain_TransferIn/fetch.yml +21 -0
  38. data/spec/fixtures/bodies/GandiV5_Domain_TransferIn_Availability/fetch.yml +10 -0
  39. data/spec/fixtures/vcr/Examples/List_domain_renewals.yml +54 -0
  40. data/spec/fixtures/vcr/Examples/List_email_addresses.yml +103 -0
  41. data/spec/units/gandi_v5/domain/transfer_in/availability_spec.rb +49 -0
  42. data/spec/units/gandi_v5/domain/transfer_in_spec.rb +143 -0
  43. metadata +127 -20
  44. data/.gitignore +0 -26
  45. data/.rspec +0 -3
  46. data/.rubocop.yml +0 -74
  47. data/.travis.yml +0 -38
  48. data/FUNDING.yml +0 -10
  49. data/Gemfile +0 -6
  50. data/Guardfile +0 -39
  51. data/Rakefile +0 -3
  52. data/bin/console +0 -13
  53. data/gandi_v5.gemspec +0 -42
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.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gauld
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-18 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -282,25 +282,17 @@ dependencies:
282
282
  version: '3.6'
283
283
  description:
284
284
  email:
285
- - robert@robertgauld.co.uk
286
- executables:
287
- - console
285
+ - robert@robertgauld.uk
286
+ executables: []
288
287
  extensions: []
289
- extra_rdoc_files: []
288
+ extra_rdoc_files:
289
+ - README.md
290
+ - CHANGELOG.md
291
+ - LICENSE.md
290
292
  files:
291
- - ".gitignore"
292
- - ".rspec"
293
- - ".rubocop.yml"
294
- - ".travis.yml"
295
293
  - CHANGELOG.md
296
- - FUNDING.yml
297
- - Gemfile
298
- - Guardfile
299
294
  - LICENSE.md
300
295
  - README.md
301
- - Rakefile
302
- - bin/console
303
- - gandi_v5.gemspec
304
296
  - lib/gandi_v5.rb
305
297
  - lib/gandi_v5/billing.rb
306
298
  - lib/gandi_v5/billing/info.rb
@@ -325,6 +317,8 @@ files:
325
317
  - lib/gandi_v5/domain/renewal_information.rb
326
318
  - lib/gandi_v5/domain/restore_information.rb
327
319
  - lib/gandi_v5/domain/tld.rb
320
+ - lib/gandi_v5/domain/transfer_in.rb
321
+ - lib/gandi_v5/domain/transfer_in/availability.rb
328
322
  - lib/gandi_v5/email.rb
329
323
  - lib/gandi_v5/email/forward.rb
330
324
  - lib/gandi_v5/email/mailbox.rb
@@ -352,6 +346,8 @@ files:
352
346
  - lib/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone.rb
353
347
  - lib/gandi_v5/version.rb
354
348
  - spec/.rubocop.yml
349
+ - spec/features/list_domain_renewals_spec.rb
350
+ - spec/features/list_email_addresses_spec.rb
355
351
  - spec/fixtures/bodies/GandiV5_Billing/info.yml
356
352
  - spec/fixtures/bodies/GandiV5_Domain/fetch.yml
357
353
  - spec/fixtures/bodies/GandiV5_Domain/fetch_contacts.yml
@@ -364,6 +360,8 @@ files:
364
360
  - spec/fixtures/bodies/GandiV5_Domain_Availability/fetch.yml
365
361
  - spec/fixtures/bodies/GandiV5_Domain_TLD/fetch.yml
366
362
  - spec/fixtures/bodies/GandiV5_Domain_TLD/list.yml
363
+ - spec/fixtures/bodies/GandiV5_Domain_TransferIn/fetch.yml
364
+ - spec/fixtures/bodies/GandiV5_Domain_TransferIn_Availability/fetch.yml
367
365
  - spec/fixtures/bodies/GandiV5_Email_Forward/list.yml
368
366
  - spec/fixtures/bodies/GandiV5_Email_Mailbox/fetch.yml
369
367
  - spec/fixtures/bodies/GandiV5_Email_Mailbox/list.yml
@@ -386,6 +384,8 @@ files:
386
384
  - spec/fixtures/bodies/GandiV5_SimpleHosting_Instance/list.yml
387
385
  - spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/fetch.yml
388
386
  - spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/list.yml
387
+ - spec/fixtures/vcr/Examples/List_domain_renewals.yml
388
+ - spec/fixtures/vcr/Examples/List_email_addresses.yml
389
389
  - spec/spec_helper.rb
390
390
  - spec/test.env
391
391
  - spec/units/gandi_v5/billing/info/prepaid_spec.rb
@@ -410,6 +410,8 @@ files:
410
410
  - spec/units/gandi_v5/domain/renewal_information_spec.rb
411
411
  - spec/units/gandi_v5/domain/restore_information_spec.rb
412
412
  - spec/units/gandi_v5/domain/tld_spec.rb
413
+ - spec/units/gandi_v5/domain/transfer_in/availability_spec.rb
414
+ - spec/units/gandi_v5/domain/transfer_in_spec.rb
413
415
  - spec/units/gandi_v5/domain_spec.rb
414
416
  - spec/units/gandi_v5/email/forward_spec.rb
415
417
  - spec/units/gandi_v5/email/mailbox/responder_spec.rb
@@ -439,9 +441,21 @@ files:
439
441
  homepage: https://github.com/robertgauld/gandi_v5
440
442
  licenses:
441
443
  - BSD 3 clause
442
- metadata: {}
444
+ metadata:
445
+ bug_tracker_uri: https://github.com/robertgauld/gandi_v5/issues
446
+ changelog_uri: https://github.com/robertgauld/gandi_v5/blob/main/CHANGELOG.md
447
+ documentation_uri: https://rubydoc.info/github/robertgauld/gandi_v5/main
448
+ homepage_uri: https://github.com/robertgauld/gandi_v5
449
+ source_code_uri: https://github.com/robertgauld/gandi_v5
443
450
  post_install_message:
444
- rdoc_options: []
451
+ rdoc_options:
452
+ - "--title"
453
+ - gandi_v5 - Make use of Gandi's V5 API.
454
+ - "--main"
455
+ - README.md
456
+ - "--line-numbers"
457
+ - "--inline-source"
458
+ - "--quiet"
445
459
  require_paths:
446
460
  - lib
447
461
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -459,4 +473,97 @@ rubygems_version: 3.1.2
459
473
  signing_key:
460
474
  specification_version: 4
461
475
  summary: Make use of Gandi's V5 API.
462
- test_files: []
476
+ test_files:
477
+ - spec/fixtures/bodies/GandiV5_Domain_Availability/fetch.yml
478
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_name_servers.yml
479
+ - spec/fixtures/bodies/GandiV5_Domain/fetch.yml
480
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_contacts.yml
481
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_glue_records.yml
482
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_livedns.yml
483
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_renewal_info.yml
484
+ - spec/fixtures/bodies/GandiV5_Domain/list.yml
485
+ - spec/fixtures/bodies/GandiV5_Domain/fetch_restore_info.yml
486
+ - spec/fixtures/bodies/GandiV5_Billing/info.yml
487
+ - spec/fixtures/bodies/GandiV5_Domain_TLD/fetch.yml
488
+ - spec/fixtures/bodies/GandiV5_Domain_TLD/list.yml
489
+ - spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/fetch.yml
490
+ - spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/list.yml
491
+ - spec/fixtures/bodies/GandiV5_Organization/fetch.yml
492
+ - spec/fixtures/bodies/GandiV5_Organization/list.yml
493
+ - spec/fixtures/bodies/GandiV5_Email_Forward/list.yml
494
+ - spec/fixtures/bodies/GandiV5_Domain_TransferIn/fetch.yml
495
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain_Snapshot/fetch.yml
496
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain_Snapshot/list.yml
497
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain_TsigKey/fetch.yml
498
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain_TsigKey/list.yml
499
+ - spec/fixtures/bodies/GandiV5_Email_Mailbox/fetch.yml
500
+ - spec/fixtures/bodies/GandiV5_Email_Mailbox/list.yml
501
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain/fetch.yml
502
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain/list.yml
503
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain/nameservers.yml
504
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain/list_tsig.yml
505
+ - spec/fixtures/bodies/GandiV5_Email_Slot/fetch.yml
506
+ - spec/fixtures/bodies/GandiV5_Email_Slot/list.yml
507
+ - spec/fixtures/bodies/GandiV5_SimpleHosting_Instance/fetch.yml
508
+ - spec/fixtures/bodies/GandiV5_SimpleHosting_Instance/list.yml
509
+ - spec/fixtures/bodies/GandiV5_Organization_Customer/list.yml
510
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain_DnssecKey/fetch.yml
511
+ - spec/fixtures/bodies/GandiV5_LiveDNS_Domain_DnssecKey/list.yml
512
+ - spec/fixtures/bodies/GandiV5_Domain_TransferIn_Availability/fetch.yml
513
+ - spec/fixtures/vcr/Examples/List_email_addresses.yml
514
+ - spec/fixtures/vcr/Examples/List_domain_renewals.yml
515
+ - spec/.rubocop.yml
516
+ - spec/features/list_domain_renewals_spec.rb
517
+ - spec/features/list_email_addresses_spec.rb
518
+ - spec/spec_helper.rb
519
+ - spec/units/gandi_v5/live_dns/domain/record_spec.rb
520
+ - spec/units/gandi_v5/live_dns/domain/tsig_key_spec.rb
521
+ - spec/units/gandi_v5/live_dns/domain/snapshot_spec.rb
522
+ - spec/units/gandi_v5/live_dns/domain/dnssec_key_spec.rb
523
+ - spec/units/gandi_v5/live_dns/domain_spec.rb
524
+ - spec/units/gandi_v5/domain/contract_spec.rb
525
+ - spec/units/gandi_v5/domain/transfer_in_spec.rb
526
+ - spec/units/gandi_v5/domain/availability_spec.rb
527
+ - spec/units/gandi_v5/domain/contact_spec.rb
528
+ - spec/units/gandi_v5/domain/restore_information_spec.rb
529
+ - spec/units/gandi_v5/domain/tld_spec.rb
530
+ - spec/units/gandi_v5/domain/live_dns_spec.rb
531
+ - spec/units/gandi_v5/domain/transfer_in/availability_spec.rb
532
+ - spec/units/gandi_v5/domain/auto_renew_spec.rb
533
+ - spec/units/gandi_v5/domain/renewal_information_spec.rb
534
+ - spec/units/gandi_v5/domain/dates_spec.rb
535
+ - spec/units/gandi_v5/domain/availability/product_spec.rb
536
+ - spec/units/gandi_v5/domain/availability/tax_spec.rb
537
+ - spec/units/gandi_v5/domain/availability/product/period_spec.rb
538
+ - spec/units/gandi_v5/domain/availability/product/price_spec.rb
539
+ - spec/units/gandi_v5/billing_spec.rb
540
+ - spec/units/gandi_v5/domain_spec.rb
541
+ - spec/units/gandi_v5/simple_hosting/instance_spec.rb
542
+ - spec/units/gandi_v5/simple_hosting/instance/language_spec.rb
543
+ - spec/units/gandi_v5/simple_hosting/instance/virtual_host_spec.rb
544
+ - spec/units/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone_spec.rb
545
+ - spec/units/gandi_v5/simple_hosting/instance/database_spec.rb
546
+ - spec/units/gandi_v5/simple_hosting/instance/application_spec.rb
547
+ - spec/units/gandi_v5/simple_hosting/instance/upgrade_spec.rb
548
+ - spec/units/gandi_v5/organization/customer_spec.rb
549
+ - spec/units/gandi_v5/email/offer_spec.rb
550
+ - spec/units/gandi_v5/email/mailbox_spec.rb
551
+ - spec/units/gandi_v5/email/forward_spec.rb
552
+ - spec/units/gandi_v5/email/mailbox/responder_spec.rb
553
+ - spec/units/gandi_v5/email/slot_spec.rb
554
+ - spec/units/gandi_v5/simple_hosting_spec.rb
555
+ - spec/units/gandi_v5/billing/info_spec.rb
556
+ - spec/units/gandi_v5/billing/info/prepaid_spec.rb
557
+ - spec/units/gandi_v5/organization_spec.rb
558
+ - spec/units/gandi_v5/live_dns_spec.rb
559
+ - spec/units/gandi_v5/sharing_space_spec.rb
560
+ - spec/units/gandi_v5/data_spec.rb
561
+ - spec/units/gandi_v5/data/converter_spec.rb
562
+ - spec/units/gandi_v5/data/converter/time_spec.rb
563
+ - spec/units/gandi_v5/data/converter/array_of_spec.rb
564
+ - spec/units/gandi_v5/data/converter/integer_spec.rb
565
+ - spec/units/gandi_v5/data/converter/symbol_spec.rb
566
+ - spec/units/gandi_v5/error_spec.rb
567
+ - spec/units/gandi_v5/error/gandi_error_spec.rb
568
+ - spec/units/gandi_v5_spec.rb
569
+ - spec/test.env
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
@@ -1,3 +0,0 @@
1
- --color
2
- --format documentation
3
- --require spec_helper
@@ -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
@@ -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=
@@ -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
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in gandi_v5.gemspec
6
- gemspec
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
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
@@ -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
@@ -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