nifcloud-dns 0.3.2 → 0.3.4
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.
- checksums.yaml +4 -4
- data/.github/workflows/gem.yml +1 -3
- data/.github/workflows/rspec.yml +21 -0
- data/.github/workflows/rubocop.yml +19 -0
- data/.rubocop.yml +0 -1
- data/.ruby-version +1 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +81 -52
- data/README.md +5 -2
- data/lib/nifcloud/client.rb +1 -1
- data/lib/nifcloud/dns/record.rb +11 -9
- data/lib/nifcloud/dns/version.rb +1 -1
- data/lib/nifcloud/dns/zone.rb +4 -4
- data/nifcloud-dns.gemspec +3 -3
- metadata +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1843e96425a5f400ba0b887bc86a345ee5f796da1fff09cf02d2c2a1c5385a14
|
|
4
|
+
data.tar.gz: ac54a5b37b5bf1858e13f391c2700b229d2f4afe60765ecf80da17858e6e34fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: caa80ce371d1b6f0dc30beb57a4691fe9c3888fc0cedb4007d99e5c9c49907caacfa244f4a885264cbdebe8fc2f493c9ff1a7e2075e2313f8d964ec6301d3138
|
|
7
|
+
data.tar.gz: 19620fe1a2a2a60a1eaa5fc65295acdc9f15422310727e0e9661593f2f4eb1ab9ba019c78cdcd8ed8348fd03675c34419778bc38bbf904a58371e2010ff4d0dc
|
data/.github/workflows/gem.yml
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Rspec test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "master"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
rspec:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
env:
|
|
12
|
+
MODE: dev
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout repository
|
|
15
|
+
uses: actions/checkout@v3
|
|
16
|
+
- name: Set up Ruby
|
|
17
|
+
uses: ruby/setup-ruby@v1
|
|
18
|
+
with:
|
|
19
|
+
bundler-cache: true
|
|
20
|
+
- name: Run Rspec
|
|
21
|
+
run: bundle exec rspec spec/nifcloud/client_spec.rb
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: RuboCop Linter
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "master"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
rubocop:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout repository
|
|
13
|
+
uses: actions/checkout@v3
|
|
14
|
+
- name: Set up Ruby
|
|
15
|
+
uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
bundler-cache: true
|
|
18
|
+
- name: Run RuboCop
|
|
19
|
+
run: bundle exec rubocop
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.1
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,121 +1,150 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nifcloud-dns (0.3.
|
|
4
|
+
nifcloud-dns (0.3.4)
|
|
5
5
|
ruby-hmac
|
|
6
6
|
xml-simple
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
ast (2.4.
|
|
11
|
+
ast (2.4.3)
|
|
12
12
|
backport (1.2.0)
|
|
13
|
-
|
|
13
|
+
base64 (0.3.0)
|
|
14
|
+
benchmark (0.5.0)
|
|
14
15
|
coderay (1.1.3)
|
|
15
|
-
diff-lcs (1.
|
|
16
|
+
diff-lcs (1.6.2)
|
|
16
17
|
docile (1.4.1)
|
|
17
|
-
|
|
18
|
-
jaro_winkler (1.
|
|
19
|
-
json (2.
|
|
20
|
-
kramdown (2.
|
|
21
|
-
rexml
|
|
18
|
+
io-console (0.8.2)
|
|
19
|
+
jaro_winkler (1.7.0)
|
|
20
|
+
json (2.18.1)
|
|
21
|
+
kramdown (2.5.2)
|
|
22
|
+
rexml (>= 3.4.4)
|
|
22
23
|
kramdown-parser-gfm (1.1.0)
|
|
23
24
|
kramdown (~> 2.0)
|
|
24
|
-
language_server-protocol (3.17.0.
|
|
25
|
+
language_server-protocol (3.17.0.5)
|
|
26
|
+
lint_roller (1.1.0)
|
|
27
|
+
logger (1.7.0)
|
|
25
28
|
method_source (1.1.0)
|
|
26
|
-
nokogiri (1.
|
|
27
|
-
racc (~> 1.4)
|
|
28
|
-
nokogiri (1.16.7-arm-linux)
|
|
29
|
+
nokogiri (1.19.0-aarch64-linux-gnu)
|
|
29
30
|
racc (~> 1.4)
|
|
30
|
-
nokogiri (1.
|
|
31
|
+
nokogiri (1.19.0-arm-linux-gnu)
|
|
31
32
|
racc (~> 1.4)
|
|
32
|
-
nokogiri (1.
|
|
33
|
+
nokogiri (1.19.0-arm64-darwin)
|
|
33
34
|
racc (~> 1.4)
|
|
34
|
-
nokogiri (1.
|
|
35
|
+
nokogiri (1.19.0-x86_64-darwin)
|
|
35
36
|
racc (~> 1.4)
|
|
36
|
-
nokogiri (1.
|
|
37
|
+
nokogiri (1.19.0-x86_64-linux-gnu)
|
|
37
38
|
racc (~> 1.4)
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
observer (0.1.2)
|
|
40
|
+
open3 (0.2.1)
|
|
41
|
+
ostruct (0.6.3)
|
|
42
|
+
parallel (1.27.0)
|
|
43
|
+
parser (3.3.10.1)
|
|
40
44
|
ast (~> 2.4.1)
|
|
41
45
|
racc
|
|
42
|
-
|
|
46
|
+
prism (1.9.0)
|
|
47
|
+
pry (0.16.0)
|
|
43
48
|
coderay (~> 1.1)
|
|
44
49
|
method_source (~> 1.0)
|
|
45
|
-
|
|
50
|
+
reline (>= 0.6.0)
|
|
51
|
+
pry-doc (1.7.0)
|
|
46
52
|
pry (~> 0.11)
|
|
47
|
-
yard (~> 0.9.
|
|
53
|
+
yard (~> 0.9.21)
|
|
48
54
|
racc (1.8.1)
|
|
49
55
|
rainbow (3.1.1)
|
|
50
56
|
rake (12.3.3)
|
|
51
|
-
rbs (
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
rbs (3.10.3)
|
|
58
|
+
logger
|
|
59
|
+
tsort
|
|
60
|
+
regexp_parser (2.11.3)
|
|
61
|
+
reline (0.6.3)
|
|
62
|
+
io-console (~> 0.5)
|
|
63
|
+
reverse_markdown (3.0.2)
|
|
54
64
|
nokogiri
|
|
55
|
-
rexml (3.
|
|
56
|
-
rspec (3.13.
|
|
65
|
+
rexml (3.4.4)
|
|
66
|
+
rspec (3.13.2)
|
|
57
67
|
rspec-core (~> 3.13.0)
|
|
58
68
|
rspec-expectations (~> 3.13.0)
|
|
59
69
|
rspec-mocks (~> 3.13.0)
|
|
60
|
-
rspec-core (3.13.
|
|
70
|
+
rspec-core (3.13.6)
|
|
61
71
|
rspec-support (~> 3.13.0)
|
|
62
|
-
rspec-expectations (3.13.
|
|
72
|
+
rspec-expectations (3.13.5)
|
|
63
73
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
64
74
|
rspec-support (~> 3.13.0)
|
|
65
|
-
rspec-mocks (3.13.
|
|
75
|
+
rspec-mocks (3.13.7)
|
|
66
76
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
67
77
|
rspec-support (~> 3.13.0)
|
|
68
|
-
rspec-support (3.13.
|
|
69
|
-
rubocop (1.
|
|
78
|
+
rspec-support (3.13.7)
|
|
79
|
+
rubocop (1.84.2)
|
|
70
80
|
json (~> 2.3)
|
|
71
|
-
language_server-protocol (
|
|
81
|
+
language_server-protocol (~> 3.17.0.2)
|
|
82
|
+
lint_roller (~> 1.1.0)
|
|
72
83
|
parallel (~> 1.10)
|
|
73
84
|
parser (>= 3.3.0.2)
|
|
74
85
|
rainbow (>= 2.2.2, < 4.0)
|
|
75
|
-
regexp_parser (>= 2.
|
|
76
|
-
rubocop-ast (>= 1.
|
|
86
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
87
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
77
88
|
ruby-progressbar (~> 1.7)
|
|
78
|
-
unicode-display_width (>= 2.4.0, <
|
|
79
|
-
rubocop-ast (1.
|
|
80
|
-
parser (>= 3.3.
|
|
89
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
90
|
+
rubocop-ast (1.49.0)
|
|
91
|
+
parser (>= 3.3.7.2)
|
|
92
|
+
prism (~> 1.7)
|
|
81
93
|
ruby-hmac (0.4.0)
|
|
82
94
|
ruby-progressbar (1.13.0)
|
|
83
95
|
simplecov (0.22.0)
|
|
84
96
|
docile (~> 1.1)
|
|
85
97
|
simplecov-html (~> 0.11)
|
|
86
98
|
simplecov_json_formatter (~> 0.1)
|
|
87
|
-
simplecov-html (0.13.
|
|
99
|
+
simplecov-html (0.13.2)
|
|
88
100
|
simplecov_json_formatter (0.1.4)
|
|
89
|
-
solargraph (0.
|
|
101
|
+
solargraph (0.58.2)
|
|
102
|
+
ast (~> 2.4.3)
|
|
90
103
|
backport (~> 1.2)
|
|
91
|
-
benchmark
|
|
92
|
-
bundler (
|
|
104
|
+
benchmark (~> 0.4)
|
|
105
|
+
bundler (>= 2.0)
|
|
93
106
|
diff-lcs (~> 1.4)
|
|
94
|
-
|
|
95
|
-
jaro_winkler (~> 1.5)
|
|
107
|
+
jaro_winkler (~> 1.6, >= 1.6.1)
|
|
96
108
|
kramdown (~> 2.3)
|
|
97
109
|
kramdown-parser-gfm (~> 1.1)
|
|
110
|
+
logger (~> 1.6)
|
|
111
|
+
observer (~> 0.1)
|
|
112
|
+
open3 (~> 0.2.1)
|
|
113
|
+
ostruct (~> 0.6)
|
|
98
114
|
parser (~> 3.0)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
115
|
+
prism (~> 1.4)
|
|
116
|
+
rbs (>= 3.6.1, <= 4.0.0.dev.4)
|
|
117
|
+
reverse_markdown (~> 3.0)
|
|
118
|
+
rubocop (~> 1.76)
|
|
102
119
|
thor (~> 1.0)
|
|
103
120
|
tilt (~> 2.0)
|
|
104
121
|
yard (~> 0.9, >= 0.9.24)
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
122
|
+
yard-activesupport-concern (~> 0.0)
|
|
123
|
+
yard-solargraph (~> 0.1)
|
|
124
|
+
thor (1.5.0)
|
|
125
|
+
tilt (2.7.0)
|
|
126
|
+
tsort (0.2.0)
|
|
127
|
+
unicode-display_width (3.2.0)
|
|
128
|
+
unicode-emoji (~> 4.1)
|
|
129
|
+
unicode-emoji (4.2.0)
|
|
108
130
|
xml-simple (1.1.9)
|
|
109
131
|
rexml
|
|
110
|
-
yard (0.9.
|
|
132
|
+
yard (0.9.38)
|
|
133
|
+
yard-activesupport-concern (0.0.1)
|
|
134
|
+
yard (>= 0.8)
|
|
135
|
+
yard-solargraph (0.1.0)
|
|
136
|
+
yard (~> 0.9)
|
|
111
137
|
|
|
112
138
|
PLATFORMS
|
|
113
139
|
arm64-darwin-22
|
|
114
140
|
arm64-darwin-23
|
|
141
|
+
arm64-darwin-24
|
|
142
|
+
arm64-darwin-25
|
|
115
143
|
linux
|
|
116
144
|
x86_64-darwin-20
|
|
117
145
|
|
|
118
146
|
DEPENDENCIES
|
|
147
|
+
base64
|
|
119
148
|
bundler (~> 2.0)
|
|
120
149
|
nifcloud-dns!
|
|
121
150
|
pry
|
|
@@ -126,4 +155,4 @@ DEPENDENCIES
|
|
|
126
155
|
solargraph
|
|
127
156
|
|
|
128
157
|
BUNDLED WITH
|
|
129
|
-
2.5.
|
|
158
|
+
2.5.16
|
data/README.md
CHANGED
|
@@ -55,9 +55,12 @@ Please register your test domain (`yourdomain.com`) into nifcloud DNS before sta
|
|
|
55
55
|
* bundle config path vendor
|
|
56
56
|
* bundle install
|
|
57
57
|
2. Fix or write codes ex) lib/nifcloud/dns/record.rb
|
|
58
|
-
3.
|
|
58
|
+
3. Test local
|
|
59
|
+
* bundle exec rspec spec/nifcloud/client_spec.rb
|
|
60
|
+
* bundle exec rubocop .
|
|
61
|
+
4. Check features by repl
|
|
59
62
|
* bundle console
|
|
60
|
-
|
|
63
|
+
5. Build a gem
|
|
61
64
|
* bundle exec rake build
|
|
62
65
|
|
|
63
66
|
## Contributing
|
data/lib/nifcloud/client.rb
CHANGED
data/lib/nifcloud/dns/record.rb
CHANGED
|
@@ -41,16 +41,18 @@ module Nifcloud
|
|
|
41
41
|
body = {
|
|
42
42
|
'@xmlns': Nifcloud::Client::NAMESPACE,
|
|
43
43
|
ChangeBatch: {
|
|
44
|
-
Comment: ['content' => comment],
|
|
44
|
+
Comment: [{ 'content' => comment }],
|
|
45
45
|
Changes: [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
{
|
|
47
|
+
Change: {
|
|
48
|
+
Action: action,
|
|
49
|
+
ResourceRecordSet: {
|
|
50
|
+
Name: name,
|
|
51
|
+
Type: type,
|
|
52
|
+
TTL: ttl,
|
|
53
|
+
ResourceRecords: {
|
|
54
|
+
Value: value
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
}
|
data/lib/nifcloud/dns/version.rb
CHANGED
data/lib/nifcloud/dns/zone.rb
CHANGED
|
@@ -25,10 +25,10 @@ module Nifcloud
|
|
|
25
25
|
def add(zone, comment: '') # rubocop:disable Metrics/MethodLength
|
|
26
26
|
body = {
|
|
27
27
|
'@xmlns': Nifcloud::Client::NAMESPACE,
|
|
28
|
-
Name: [content => zone],
|
|
29
|
-
CallerReference: [content => ''],
|
|
30
|
-
HostedZoneConfig: [content => ''],
|
|
31
|
-
Comment: [content => comment]
|
|
28
|
+
Name: [{ content => zone }],
|
|
29
|
+
CallerReference: [{ content => '' }],
|
|
30
|
+
HostedZoneConfig: [{ content => '' }],
|
|
31
|
+
Comment: [{ content => comment }]
|
|
32
32
|
}
|
|
33
33
|
options = {
|
|
34
34
|
AttrPrefix: true,
|
data/nifcloud-dns.gemspec
CHANGED
|
@@ -20,9 +20,9 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.bindir = 'exe'
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
22
|
spec.require_paths = ['lib']
|
|
23
|
-
spec.required_ruby_version = '~>
|
|
23
|
+
spec.required_ruby_version = '~> 4.0'
|
|
24
24
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
25
25
|
|
|
26
|
-
spec.
|
|
27
|
-
spec.
|
|
26
|
+
spec.add_dependency 'ruby-hmac'
|
|
27
|
+
spec.add_dependency 'xml-simple'
|
|
28
28
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nifcloud-dns
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kakakikikeke
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: ruby-hmac
|
|
@@ -46,6 +45,8 @@ extensions: []
|
|
|
46
45
|
extra_rdoc_files: []
|
|
47
46
|
files:
|
|
48
47
|
- ".github/workflows/gem.yml"
|
|
48
|
+
- ".github/workflows/rspec.yml"
|
|
49
|
+
- ".github/workflows/rubocop.yml"
|
|
49
50
|
- ".gitignore"
|
|
50
51
|
- ".rspec"
|
|
51
52
|
- ".rubocop.yml"
|
|
@@ -71,7 +72,6 @@ homepage: https://github.com/kakakikikeke/nifcloud-dns
|
|
|
71
72
|
licenses: []
|
|
72
73
|
metadata:
|
|
73
74
|
rubygems_mfa_required: 'true'
|
|
74
|
-
post_install_message:
|
|
75
75
|
rdoc_options: []
|
|
76
76
|
require_paths:
|
|
77
77
|
- lib
|
|
@@ -79,15 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
82
|
+
version: '4.0'
|
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements:
|
|
85
85
|
- - ">="
|
|
86
86
|
- !ruby/object:Gem::Version
|
|
87
87
|
version: '0'
|
|
88
88
|
requirements: []
|
|
89
|
-
rubygems_version:
|
|
90
|
-
signing_key:
|
|
89
|
+
rubygems_version: 4.0.3
|
|
91
90
|
specification_version: 4
|
|
92
91
|
summary: Ruby SDK for nifcloud DNS.
|
|
93
92
|
test_files: []
|