nifcloud-dns 0.3.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35d5bfad67f815e1e7897a62cceea81cbdcf6513530bcf0d680719ccbd76ef54
4
- data.tar.gz: 960ba27999274d756155d9db571a680fbb2ddc69b224849595f5ef7757e04712
3
+ metadata.gz: 1843e96425a5f400ba0b887bc86a345ee5f796da1fff09cf02d2c2a1c5385a14
4
+ data.tar.gz: ac54a5b37b5bf1858e13f391c2700b229d2f4afe60765ecf80da17858e6e34fb
5
5
  SHA512:
6
- metadata.gz: 3df803d8052bbbb07ef8029f8b222784512e0f2fe440de3123ea0e756b4f8ef6d604676ec5b99b873e0fce2e07cb364620bb7d9557a255f43f78a61e65749250
7
- data.tar.gz: ef6779ae30d20db56e580800a5db04f756102498d50f477f7bfdbbecc2fcacd326fbb4c1de0f5f03b3ba26e7f2c2b571b685d2f9592a8d2de3a93a494162c03a
6
+ metadata.gz: caa80ce371d1b6f0dc30beb57a4691fe9c3888fc0cedb4007d99e5c9c49907caacfa244f4a885264cbdebe8fc2f493c9ff1a7e2075e2313f8d964ec6301d3138
7
+ data.tar.gz: 19620fe1a2a2a60a1eaa5fc65295acdc9f15422310727e0e9661593f2f4eb1ab9ba019c78cdcd8ed8348fd03675c34419778bc38bbf904a58371e2010ff4d0dc
@@ -13,8 +13,6 @@ jobs:
13
13
  steps:
14
14
  - uses: actions/checkout@v2
15
15
  - uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: 3.2.2
18
16
  - run: bundle install
19
17
 
20
18
  - name: Setup git config
@@ -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
data/.rubocop.yml CHANGED
@@ -1,3 +1,2 @@
1
1
  AllCops:
2
- TargetRubyVersion: 3.2
3
2
  NewCops: enable
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.4.3
1
+ 4.0.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nifcloud-dns (0.3.3)
4
+ nifcloud-dns (0.3.4)
5
5
  ruby-hmac
6
6
  xml-simple
7
7
 
@@ -10,67 +10,73 @@ GEM
10
10
  specs:
11
11
  ast (2.4.3)
12
12
  backport (1.2.0)
13
- base64 (0.2.0)
14
- benchmark (0.4.0)
13
+ base64 (0.3.0)
14
+ benchmark (0.5.0)
15
15
  coderay (1.1.3)
16
16
  diff-lcs (1.6.2)
17
17
  docile (1.4.1)
18
- jaro_winkler (1.6.1)
19
- json (2.12.0)
20
- kramdown (2.5.1)
21
- rexml (>= 3.3.9)
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
25
  language_server-protocol (3.17.0.5)
25
26
  lint_roller (1.1.0)
26
27
  logger (1.7.0)
27
28
  method_source (1.1.0)
28
- nokogiri (1.18.8-aarch64-linux-gnu)
29
+ nokogiri (1.19.0-aarch64-linux-gnu)
29
30
  racc (~> 1.4)
30
- nokogiri (1.18.8-arm-linux-gnu)
31
+ nokogiri (1.19.0-arm-linux-gnu)
31
32
  racc (~> 1.4)
32
- nokogiri (1.18.8-arm64-darwin)
33
+ nokogiri (1.19.0-arm64-darwin)
33
34
  racc (~> 1.4)
34
- nokogiri (1.18.8-x86_64-darwin)
35
+ nokogiri (1.19.0-x86_64-darwin)
35
36
  racc (~> 1.4)
36
- nokogiri (1.18.8-x86_64-linux-gnu)
37
+ nokogiri (1.19.0-x86_64-linux-gnu)
37
38
  racc (~> 1.4)
38
39
  observer (0.1.2)
39
- ostruct (0.6.1)
40
+ open3 (0.2.1)
41
+ ostruct (0.6.3)
40
42
  parallel (1.27.0)
41
- parser (3.3.8.0)
43
+ parser (3.3.10.1)
42
44
  ast (~> 2.4.1)
43
45
  racc
44
- prism (1.4.0)
45
- pry (0.15.2)
46
+ prism (1.9.0)
47
+ pry (0.16.0)
46
48
  coderay (~> 1.1)
47
49
  method_source (~> 1.0)
48
- pry-doc (1.5.0)
50
+ reline (>= 0.6.0)
51
+ pry-doc (1.7.0)
49
52
  pry (~> 0.11)
50
- yard (~> 0.9.11)
53
+ yard (~> 0.9.21)
51
54
  racc (1.8.1)
52
55
  rainbow (3.1.1)
53
56
  rake (12.3.3)
54
- rbs (3.9.3)
57
+ rbs (3.10.3)
55
58
  logger
56
- regexp_parser (2.10.0)
57
- reverse_markdown (3.0.0)
59
+ tsort
60
+ regexp_parser (2.11.3)
61
+ reline (0.6.3)
62
+ io-console (~> 0.5)
63
+ reverse_markdown (3.0.2)
58
64
  nokogiri
59
- rexml (3.4.1)
60
- rspec (3.13.0)
65
+ rexml (3.4.4)
66
+ rspec (3.13.2)
61
67
  rspec-core (~> 3.13.0)
62
68
  rspec-expectations (~> 3.13.0)
63
69
  rspec-mocks (~> 3.13.0)
64
- rspec-core (3.13.3)
70
+ rspec-core (3.13.6)
65
71
  rspec-support (~> 3.13.0)
66
- rspec-expectations (3.13.4)
72
+ rspec-expectations (3.13.5)
67
73
  diff-lcs (>= 1.2.0, < 2.0)
68
74
  rspec-support (~> 3.13.0)
69
- rspec-mocks (3.13.4)
75
+ rspec-mocks (3.13.7)
70
76
  diff-lcs (>= 1.2.0, < 2.0)
71
77
  rspec-support (~> 3.13.0)
72
- rspec-support (3.13.3)
73
- rubocop (1.75.5)
78
+ rspec-support (3.13.7)
79
+ rubocop (1.84.2)
74
80
  json (~> 2.3)
75
81
  language_server-protocol (~> 3.17.0.2)
76
82
  lint_roller (~> 1.1.0)
@@ -78,47 +84,54 @@ GEM
78
84
  parser (>= 3.3.0.2)
79
85
  rainbow (>= 2.2.2, < 4.0)
80
86
  regexp_parser (>= 2.9.3, < 3.0)
81
- rubocop-ast (>= 1.44.0, < 2.0)
87
+ rubocop-ast (>= 1.49.0, < 2.0)
82
88
  ruby-progressbar (~> 1.7)
83
89
  unicode-display_width (>= 2.4.0, < 4.0)
84
- rubocop-ast (1.44.1)
90
+ rubocop-ast (1.49.0)
85
91
  parser (>= 3.3.7.2)
86
- prism (~> 1.4)
92
+ prism (~> 1.7)
87
93
  ruby-hmac (0.4.0)
88
94
  ruby-progressbar (1.13.0)
89
95
  simplecov (0.22.0)
90
96
  docile (~> 1.1)
91
97
  simplecov-html (~> 0.11)
92
98
  simplecov_json_formatter (~> 0.1)
93
- simplecov-html (0.13.1)
99
+ simplecov-html (0.13.2)
94
100
  simplecov_json_formatter (0.1.4)
95
- solargraph (0.54.3)
101
+ solargraph (0.58.2)
102
+ ast (~> 2.4.3)
96
103
  backport (~> 1.2)
97
104
  benchmark (~> 0.4)
98
- bundler (~> 2.0)
105
+ bundler (>= 2.0)
99
106
  diff-lcs (~> 1.4)
100
107
  jaro_winkler (~> 1.6, >= 1.6.1)
101
108
  kramdown (~> 2.3)
102
109
  kramdown-parser-gfm (~> 1.1)
103
110
  logger (~> 1.6)
104
111
  observer (~> 0.1)
112
+ open3 (~> 0.2.1)
105
113
  ostruct (~> 0.6)
106
114
  parser (~> 3.0)
107
- rbs (~> 3.3)
115
+ prism (~> 1.4)
116
+ rbs (>= 3.6.1, <= 4.0.0.dev.4)
108
117
  reverse_markdown (~> 3.0)
109
- rubocop (~> 1.38)
118
+ rubocop (~> 1.76)
110
119
  thor (~> 1.0)
111
120
  tilt (~> 2.0)
112
121
  yard (~> 0.9, >= 0.9.24)
122
+ yard-activesupport-concern (~> 0.0)
113
123
  yard-solargraph (~> 0.1)
114
- thor (1.3.2)
115
- tilt (2.6.0)
116
- unicode-display_width (3.1.4)
117
- unicode-emoji (~> 4.0, >= 4.0.4)
118
- unicode-emoji (4.0.4)
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)
119
130
  xml-simple (1.1.9)
120
131
  rexml
121
- yard (0.9.37)
132
+ yard (0.9.38)
133
+ yard-activesupport-concern (0.0.1)
134
+ yard (>= 0.8)
122
135
  yard-solargraph (0.1.0)
123
136
  yard (~> 0.9)
124
137
 
@@ -126,6 +139,7 @@ PLATFORMS
126
139
  arm64-darwin-22
127
140
  arm64-darwin-23
128
141
  arm64-darwin-24
142
+ arm64-darwin-25
129
143
  linux
130
144
  x86_64-darwin-20
131
145
 
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. Check features by repl
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
- 4. Build a gem
63
+ 5. Build a gem
61
64
  * bundle exec rake build
62
65
 
63
66
  ## Contributing
@@ -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
- Change: {
47
- Action: action,
48
- ResourceRecordSet: {
49
- Name: name,
50
- Type: type,
51
- TTL: ttl,
52
- ResourceRecords: {
53
- Value: value
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
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nifcloud
4
4
  module DNS
5
- VERSION = '0.3.3'
5
+ VERSION = '0.3.4'
6
6
  end
7
7
  end
@@ -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,7 +20,7 @@ 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 = '~> 3.2'
23
+ spec.required_ruby_version = '~> 4.0'
24
24
  spec.metadata['rubygems_mfa_required'] = 'true'
25
25
 
26
26
  spec.add_dependency 'ruby-hmac'
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.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: 2025-05-15 00:00:00.000000000 Z
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,7 @@ extensions: []
46
45
  extra_rdoc_files: []
47
46
  files:
48
47
  - ".github/workflows/gem.yml"
48
+ - ".github/workflows/rspec.yml"
49
49
  - ".github/workflows/rubocop.yml"
50
50
  - ".gitignore"
51
51
  - ".rspec"
@@ -72,7 +72,6 @@ homepage: https://github.com/kakakikikeke/nifcloud-dns
72
72
  licenses: []
73
73
  metadata:
74
74
  rubygems_mfa_required: 'true'
75
- post_install_message:
76
75
  rdoc_options: []
77
76
  require_paths:
78
77
  - lib
@@ -80,15 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - "~>"
82
81
  - !ruby/object:Gem::Version
83
- version: '3.2'
82
+ version: '4.0'
84
83
  required_rubygems_version: !ruby/object:Gem::Requirement
85
84
  requirements:
86
85
  - - ">="
87
86
  - !ruby/object:Gem::Version
88
87
  version: '0'
89
88
  requirements: []
90
- rubygems_version: 3.4.10
91
- signing_key:
89
+ rubygems_version: 4.0.3
92
90
  specification_version: 4
93
91
  summary: Ruby SDK for nifcloud DNS.
94
92
  test_files: []