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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3820c8be84ba4c0e2ad4c5569216015e617197febe13d205c47b202518cfbc5f
4
- data.tar.gz: 0e105f441cbc2b26151a907a5b6e9bb9ed07bcc84242f8f6d35c47ba91cb112c
3
+ metadata.gz: 1843e96425a5f400ba0b887bc86a345ee5f796da1fff09cf02d2c2a1c5385a14
4
+ data.tar.gz: ac54a5b37b5bf1858e13f391c2700b229d2f4afe60765ecf80da17858e6e34fb
5
5
  SHA512:
6
- metadata.gz: e76d74ff23ae74ffa3e0e5aed33b7ba1481a05adaab0ac5de4a887def6b5049249b6d0d6b42b8c61980766c93c44a44153b9f91975d7ecb4a2bb49d732c586f4
7
- data.tar.gz: e4f4216850720ff7b3396e5b3619332aac4f65b555f4c799b101cecd9f1b3a27d2198f7ca3d83fca584fcbf7f55e858154eb31248604086be6059b4db6917632
6
+ metadata.gz: caa80ce371d1b6f0dc30beb57a4691fe9c3888fc0cedb4007d99e5c9c49907caacfa244f4a885264cbdebe8fc2f493c9ff1a7e2075e2313f8d964ec6301d3138
7
+ data.tar.gz: 19620fe1a2a2a60a1eaa5fc65295acdc9f15422310727e0e9661593f2f4eb1ab9ba019c78cdcd8ed8348fd03675c34419778bc38bbf904a58371e2010ff4d0dc
@@ -1,4 +1,4 @@
1
- name: ci
1
+ name: gem
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
@@ -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
@@ -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
@@ -1,3 +1,2 @@
1
1
  AllCops:
2
- TargetRubyVersion: 3.2
3
2
  NewCops: enable
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.5
1
+ 4.0.1
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ source 'https://rubygems.org'
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
7
7
  group :development do
8
+ gem 'base64'
8
9
  gem 'bundler', '~> 2.0'
9
10
  gem 'pry'
10
11
  gem 'pry-doc'
data/Gemfile.lock CHANGED
@@ -1,121 +1,150 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nifcloud-dns (0.3.2)
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.2)
11
+ ast (2.4.3)
12
12
  backport (1.2.0)
13
- benchmark (0.3.0)
13
+ base64 (0.3.0)
14
+ benchmark (0.5.0)
14
15
  coderay (1.1.3)
15
- diff-lcs (1.5.1)
16
+ diff-lcs (1.6.2)
16
17
  docile (1.4.1)
17
- e2mmap (0.1.0)
18
- jaro_winkler (1.6.0)
19
- json (2.7.4)
20
- kramdown (2.4.0)
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.3)
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.16.7-aarch64-linux)
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.16.7-arm64-darwin)
31
+ nokogiri (1.19.0-arm-linux-gnu)
31
32
  racc (~> 1.4)
32
- nokogiri (1.16.7-x86-linux)
33
+ nokogiri (1.19.0-arm64-darwin)
33
34
  racc (~> 1.4)
34
- nokogiri (1.16.7-x86_64-darwin)
35
+ nokogiri (1.19.0-x86_64-darwin)
35
36
  racc (~> 1.4)
36
- nokogiri (1.16.7-x86_64-linux)
37
+ nokogiri (1.19.0-x86_64-linux-gnu)
37
38
  racc (~> 1.4)
38
- parallel (1.26.3)
39
- parser (3.3.5.0)
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
- pry (0.14.2)
46
+ prism (1.9.0)
47
+ pry (0.16.0)
43
48
  coderay (~> 1.1)
44
49
  method_source (~> 1.0)
45
- pry-doc (1.5.0)
50
+ reline (>= 0.6.0)
51
+ pry-doc (1.7.0)
46
52
  pry (~> 0.11)
47
- yard (~> 0.9.11)
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 (2.8.4)
52
- regexp_parser (2.9.2)
53
- reverse_markdown (2.1.1)
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.3.9)
56
- rspec (3.13.0)
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.2)
70
+ rspec-core (3.13.6)
61
71
  rspec-support (~> 3.13.0)
62
- rspec-expectations (3.13.3)
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.2)
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.1)
69
- rubocop (1.67.0)
78
+ rspec-support (3.13.7)
79
+ rubocop (1.84.2)
70
80
  json (~> 2.3)
71
- language_server-protocol (>= 3.17.0)
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.4, < 3.0)
76
- rubocop-ast (>= 1.32.2, < 2.0)
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, < 3.0)
79
- rubocop-ast (1.32.3)
80
- parser (>= 3.3.1.0)
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.1)
99
+ simplecov-html (0.13.2)
88
100
  simplecov_json_formatter (0.1.4)
89
- solargraph (0.50.0)
101
+ solargraph (0.58.2)
102
+ ast (~> 2.4.3)
90
103
  backport (~> 1.2)
91
- benchmark
92
- bundler (~> 2.0)
104
+ benchmark (~> 0.4)
105
+ bundler (>= 2.0)
93
106
  diff-lcs (~> 1.4)
94
- e2mmap
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
- rbs (~> 2.0)
100
- reverse_markdown (~> 2.0)
101
- rubocop (~> 1.38)
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
- thor (1.3.2)
106
- tilt (2.4.0)
107
- unicode-display_width (2.6.0)
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.37)
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.11
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. 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
@@ -14,7 +14,7 @@ module Nifcloud
14
14
  NAMESPACE = 'https://route53.amazonaws.com/doc/2012-12-12/'
15
15
 
16
16
  def initialize(access_key, secret_key)
17
- super(access_key, secret_key)
17
+ super
18
18
  @http, @req, @uri = nil
19
19
  end
20
20
 
@@ -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.2'
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,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 = '~> 3.2'
23
+ spec.required_ruby_version = '~> 4.0'
24
24
  spec.metadata['rubygems_mfa_required'] = 'true'
25
25
 
26
- spec.add_runtime_dependency 'ruby-hmac'
27
- spec.add_runtime_dependency 'xml-simple'
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.2
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: 2024-10-29 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,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: '3.2'
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: 3.5.16
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: []