fog-dynect 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/ruby.yml +34 -0
- data/.github/workflows/stale.yml +23 -0
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/fog/bin/dynect.rb +1 -1
- data/lib/fog/dynect.rb +2 -4
- data/lib/fog/dynect/dns.rb +15 -2
- data/lib/fog/dynect/models/dns/record.rb +2 -2
- data/lib/fog/dynect/models/dns/records.rb +3 -3
- data/lib/fog/dynect/models/dns/zone.rb +3 -3
- data/lib/fog/dynect/models/dns/zones.rb +3 -3
- data/lib/fog/dynect/requests/dns/delete_record.rb +4 -4
- data/lib/fog/dynect/requests/dns/delete_zone.rb +2 -2
- data/lib/fog/dynect/requests/dns/get_all_records.rb +2 -2
- data/lib/fog/dynect/requests/dns/get_node_list.rb +2 -2
- data/lib/fog/dynect/requests/dns/get_record.rb +2 -2
- data/lib/fog/dynect/requests/dns/get_zone.rb +2 -2
- data/lib/fog/dynect/requests/dns/post_record.rb +2 -2
- data/lib/fog/dynect/requests/dns/post_session.rb +2 -2
- data/lib/fog/dynect/requests/dns/post_zone.rb +2 -2
- data/lib/fog/dynect/requests/dns/put_record.rb +2 -2
- data/lib/fog/dynect/requests/dns/put_zone.rb +2 -2
- data/lib/fog/dynect/version.rb +1 -1
- metadata +9 -7
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0878424c0374df937df5fac2b25b89040d3ea9da03f8243d06bb614f6d519b93'
|
4
|
+
data.tar.gz: cb6b47bf3a11497e624a7d6e115080bb3b5533d1a441ac61bf437388c6b531d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b76b699dcad587ff7d902a5431d1cc258445f82aa2c6dd2177f7ef6b8ea70640ea55e5bef09ad9fc077938276c31b11bb4afd114815d59b855e8ee130256b80e
|
7
|
+
data.tar.gz: 36b9ee90c40b7948d7259de4ed94ad17add6c86598322cb5b6546ca1a51aedc1d18353487c828ca91ac1d0a7b1769863f528980df0040a60e301d5c9aa6e6c41
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
strategy:
|
21
|
+
matrix:
|
22
|
+
ruby-version: ['2.5', '2.6', '2.7', '3.0', 'head']
|
23
|
+
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- name: Set up Ruby
|
27
|
+
uses: ruby/setup-ruby@v1
|
28
|
+
with:
|
29
|
+
ruby-version: ${{ matrix.ruby-version }}
|
30
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
31
|
+
- name: Install dependencies
|
32
|
+
run: bundle install
|
33
|
+
- name: Run tests
|
34
|
+
run: bundle exec rake
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: Mark stale issues and pull requests
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: "30 1 * * *"
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
stale:
|
9
|
+
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/stale@v3
|
14
|
+
with:
|
15
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
16
|
+
days-before-stale: 60
|
17
|
+
days-before-close: 7
|
18
|
+
exempt-issue-labels: 'pinned,security'
|
19
|
+
exempt-pr-labels: 'pinned,security'
|
20
|
+
stale-issue-message: 'This issue has been marked inactive and will be closed if no further activity occurs.'
|
21
|
+
stale-pr-message: 'This pr has been marked inactive and will be closed if no further activity occurs.'
|
22
|
+
stale-issue-label: 'no-issue-activity'
|
23
|
+
stale-pr-label: 'no-pr-activity'
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Fog::Dynect
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/fog/fog-dynect/actions/workflows/ruby.yml/badge.svg)](https://github.com/fog/fog-dynect/actions/workflows/ruby.yml)
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
data/lib/fog/bin/dynect.rb
CHANGED
data/lib/fog/dynect.rb
CHANGED
@@ -5,15 +5,13 @@ require 'fog/json'
|
|
5
5
|
require 'fog/xml'
|
6
6
|
|
7
7
|
module Fog
|
8
|
-
module DNS
|
9
|
-
autoload :Dynect, File.expand_path('../dynect/dns', __FILE__)
|
10
|
-
end
|
11
|
-
|
12
8
|
module Dynect
|
13
9
|
extend Fog::Provider
|
14
10
|
|
15
11
|
autoload :VERSION, File.expand_path('../dynect/version', __FILE__)
|
16
12
|
|
13
|
+
autoload :DNS, File.expand_path('../dynect/dns', __FILE__)
|
14
|
+
|
17
15
|
service(:dns, 'DNS')
|
18
16
|
|
19
17
|
class Mock
|
data/lib/fog/dynect/dns.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Dynect
|
3
|
+
class DNS < Fog::Service
|
4
4
|
requires :dynect_customer, :dynect_username, :dynect_password
|
5
5
|
recognizes :timeout, :persistent, :job_poll_timeout, :version
|
6
6
|
recognizes :provider # remove post deprecation
|
@@ -152,4 +152,17 @@ module Fog
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
end
|
155
|
+
|
156
|
+
# @deprecated
|
157
|
+
module DNS
|
158
|
+
# @deprecated
|
159
|
+
class Dynect < Fog::Dynect::DNS
|
160
|
+
# @deprecated
|
161
|
+
# @overrides Fog::Service.new (from the fog-core gem)
|
162
|
+
def self.new(*)
|
163
|
+
Fog::Logger.deprecation 'Fog::DNS::Dynect is deprecated, please use Fog::Dynect::DNS.'
|
164
|
+
super
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
155
168
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'fog/dynect/models/dns/record'
|
2
2
|
|
3
3
|
module Fog
|
4
|
-
module
|
5
|
-
class
|
4
|
+
module Dynect
|
5
|
+
class DNS
|
6
6
|
class Records < Fog::Collection
|
7
7
|
attribute :zone
|
8
8
|
|
9
|
-
model Fog::DNS::
|
9
|
+
model Fog::Dynect::DNS::Record
|
10
10
|
|
11
11
|
def all(options = {})
|
12
12
|
requires :zone
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'fog/dynect/models/dns/records'
|
2
2
|
|
3
3
|
module Fog
|
4
|
-
module
|
5
|
-
class
|
4
|
+
module Dynect
|
5
|
+
class DNS
|
6
6
|
class Zone < Fog::Model
|
7
7
|
identity :domain
|
8
8
|
|
@@ -35,7 +35,7 @@ module Fog
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def records
|
38
|
-
@records ||= Fog::DNS::
|
38
|
+
@records ||= Fog::Dynect::DNS::Records.new(:zone => self, :service => service)
|
39
39
|
end
|
40
40
|
|
41
41
|
def nameservers
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'fog/dynect/models/dns/zone'
|
2
2
|
|
3
3
|
module Fog
|
4
|
-
module
|
5
|
-
class
|
4
|
+
module Dynect
|
5
|
+
class DNS
|
6
6
|
class Zones < Fog::Collection
|
7
|
-
model Fog::DNS::
|
7
|
+
model Fog::Dynect::DNS::Zone
|
8
8
|
|
9
9
|
def all
|
10
10
|
data = service.get_zone.body['data'].map do |zone|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Dynect
|
3
|
+
class DNS
|
4
4
|
class Real
|
5
5
|
# Delete a record
|
6
6
|
#
|
@@ -22,9 +22,9 @@ module Fog
|
|
22
22
|
|
23
23
|
class Mock
|
24
24
|
def delete_record(type, zone, fqdn, record_id)
|
25
|
-
raise Fog::DNS::
|
25
|
+
raise Fog::Dynect::DNS::NotFound unless zone = self.data[:zones][zone]
|
26
26
|
|
27
|
-
raise Fog::DNS::
|
27
|
+
raise Fog::Dynect::DNS::NotFound unless zone[:records][type].find { |record| record[:fqdn] == fqdn && record[:record_id] == record_id.to_i }
|
28
28
|
|
29
29
|
zone[:records_to_delete] << {
|
30
30
|
:type => type,
|
data/lib/fog/dynect/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-dynect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wesley Beary
|
8
8
|
- The fog team
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -104,8 +104,10 @@ executables: []
|
|
104
104
|
extensions: []
|
105
105
|
extra_rdoc_files: []
|
106
106
|
files:
|
107
|
+
- ".github/dependabot.yml"
|
108
|
+
- ".github/workflows/ruby.yml"
|
109
|
+
- ".github/workflows/stale.yml"
|
107
110
|
- ".gitignore"
|
108
|
-
- ".travis.yml"
|
109
111
|
- CHANGELOG.md
|
110
112
|
- CONTRIBUTING.md
|
111
113
|
- CONTRIBUTORS.md
|
@@ -144,7 +146,7 @@ homepage: http://github.com/fog/fog-dynect
|
|
144
146
|
licenses:
|
145
147
|
- MIT
|
146
148
|
metadata: {}
|
147
|
-
post_install_message:
|
149
|
+
post_install_message:
|
148
150
|
rdoc_options: []
|
149
151
|
require_paths:
|
150
152
|
- lib
|
@@ -159,8 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
161
|
- !ruby/object:Gem::Version
|
160
162
|
version: '0'
|
161
163
|
requirements: []
|
162
|
-
rubygems_version: 3.
|
163
|
-
signing_key:
|
164
|
+
rubygems_version: 3.2.15
|
165
|
+
signing_key:
|
164
166
|
specification_version: 4
|
165
167
|
summary: Module for the 'fog' gem to support Dynect DNS.
|
166
168
|
test_files: []
|