idcfcloud 1.0.3 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +12 -0
- data/.rubocop.yml +12 -2
- data/README.md +16 -3
- data/idcfcloud.gemspec +6 -5
- data/lib/idcf/cli/extend/update_file.rb +1 -1
- data/lib/idcf/cli/version.rb +1 -1
- metadata +26 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e85df53cf877b508edb0741ace4be89179fcd6b7186df2323a7d992dc91e53e
|
4
|
+
data.tar.gz: 9fb184070e033ad9fb6472a80eff05ff1d44a2cadde499afd8b53ad5868139a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b1f4a11375d35f81b6abc8dcbeb477bec8c5a3325fa92d334b233adf9e2cb2910d68d6f797084ce6788164df08386185cb118035be2e0609a4e5454efb8bba3
|
7
|
+
data.tar.gz: 7581a8ff47eef3af7a155c0faf9187580d3b3bb46f855a7bb7e26b8b13b6b379013e6510fb69f8527487926eb74542ce190e18bc2521884cfb9af0495353cbd5
|
data/.codeclimate.yml
CHANGED
@@ -12,11 +12,23 @@ engines:
|
|
12
12
|
enabled: true
|
13
13
|
rubocop:
|
14
14
|
enabled: true
|
15
|
+
structure:
|
16
|
+
exclude_paths:
|
17
|
+
- 'test/**/*'
|
15
18
|
ratings:
|
16
19
|
paths:
|
17
20
|
- "**.rb"
|
21
|
+
checks:
|
22
|
+
argument-count:
|
23
|
+
config:
|
24
|
+
threshold: 6
|
25
|
+
method-complexity:
|
26
|
+
config:
|
27
|
+
threshold: 9
|
28
|
+
|
18
29
|
exclude_paths:
|
19
30
|
- vendor/bundle
|
20
31
|
- .idea
|
21
32
|
- bin
|
22
33
|
- doc
|
34
|
+
- output
|
data/.rubocop.yml
CHANGED
@@ -28,7 +28,7 @@ LineLength:
|
|
28
28
|
Exclude:
|
29
29
|
- 'test/**/*'
|
30
30
|
Style/ClassLength:
|
31
|
-
Max:
|
31
|
+
Max: 160
|
32
32
|
Exclude:
|
33
33
|
- 'test/**/*'
|
34
34
|
Style/ModuleLength:
|
@@ -38,4 +38,14 @@ Style/ModuleLength:
|
|
38
38
|
ParameterLists:
|
39
39
|
Max: 6
|
40
40
|
Style/DoubleNegation:
|
41
|
-
Enabled: false
|
41
|
+
Enabled: false
|
42
|
+
Style/SymbolArray:
|
43
|
+
Exclude:
|
44
|
+
- 'test/**/*'
|
45
|
+
Style/IndentHeredoc:
|
46
|
+
EnforcedStyle: active_support
|
47
|
+
Style/PercentLiteralDelimiters:
|
48
|
+
Exclude:
|
49
|
+
- 'test/**/*'
|
50
|
+
Lint/InterpolationCheck:
|
51
|
+
Enabled: false
|
data/README.md
CHANGED
@@ -78,7 +78,7 @@ idcfcloud your list_billing_history --json-path '$.data[?(@.month=="2017-10")]'
|
|
78
78
|
|
79
79
|
versions
|
80
80
|
|
81
|
-
Get a supported API version.
|
81
|
+
Get a supported API version.
|
82
82
|
|
83
83
|
```code
|
84
84
|
$ idcfcloud your versions
|
@@ -132,16 +132,29 @@ http://docs.idcf.jp/cloud/dns/#s_fid=4FEB16B56007BA5C-0BFB42ABA668ADA8
|
|
132
132
|
|
133
133
|
http://docs.idcf.jp/cloud/billing/
|
134
134
|
|
135
|
-
## Development
|
135
|
+
## Development && Test
|
136
136
|
|
137
137
|
Running the following test code is possible, but not recommended nor supported. Run only a code of a target.
|
138
138
|
|
139
|
+
🚨NOTE 🚨
|
140
|
+
|
141
|
+
- Be sure to specify `test/run_test.rb` before the test target.
|
142
|
+
- The test environment is not standalone. You need to apply for services and prepare your own environment.
|
143
|
+
At least an [ILB](https://www.idcf.jp/cloud/ilb/) is required to pass all tests.
|
144
|
+
- If you do not specify the region properly with the environment variable `TEST_REGION (default: jp-east)`, the test will not pass.
|
145
|
+
|
139
146
|
```code
|
140
|
-
$ bundle exec ruby test/run_test.rb idcf/cli/controller/test_your.rb
|
147
|
+
$ TEST_REGION=your_region bundle exec ruby test/run_test.rb idcf/cli/controller/test_your.rb
|
141
148
|
```
|
142
149
|
|
143
150
|
In order to avoid collapsed setting in ILB, make sure you understand how things work before running a code.
|
144
151
|
|
152
|
+
#### environments
|
153
|
+
|
154
|
+
|name|description|
|
155
|
+
|----|-----------|
|
156
|
+
|`TEST_REGION`|Region used in the test. (jp-east・jp-east-2・jp-west)|
|
157
|
+
|
145
158
|
## Contributing
|
146
159
|
|
147
160
|
1. Fork it ( https://github.com/idcf/idcfcloud-cli/fork )
|
data/idcfcloud.gemspec
CHANGED
@@ -22,19 +22,20 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.bindir = 'exe'
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
|
+
spec.required_ruby_version = '>= 2.5.0'
|
25
26
|
|
26
|
-
spec.add_development_dependency 'bundler', '
|
27
|
-
spec.add_development_dependency 'rake', '
|
27
|
+
spec.add_development_dependency 'bundler', '>= 1.14'
|
28
|
+
spec.add_development_dependency 'rake', '>= 10.0'
|
28
29
|
spec.add_development_dependency 'test-unit', '~> 3.2', '>= 3.2.5'
|
29
30
|
spec.add_development_dependency 'test-unit-notify', '~> 1.0', '>= 1.0.4'
|
30
31
|
|
31
|
-
spec.add_dependency 'activemodel', '
|
32
|
-
spec.add_dependency 'activesupport', '
|
32
|
+
spec.add_dependency 'activemodel', '>= 5.2.4.1'
|
33
|
+
spec.add_dependency 'activesupport', '>= 5.2.4.1'
|
33
34
|
spec.add_dependency 'builder', '~> 3.1'
|
34
35
|
spec.add_dependency 'CFPropertyList', '~> 2.3.5'
|
35
36
|
spec.add_dependency 'facter', '~> 2.5.1'
|
36
37
|
spec.add_dependency 'idcf-faraday_middleware', '~> 0.0.2'
|
37
|
-
spec.add_dependency 'idcf-json_hyper_schema', '~> 0.
|
38
|
+
spec.add_dependency 'idcf-json_hyper_schema', '~> 0.3.1'
|
38
39
|
spec.add_dependency 'inifile', '~> 3.0', '>= 3.0.0'
|
39
40
|
spec.add_dependency 'jsonpath', '~> 0.8.10'
|
40
41
|
spec.add_dependency 'kosi', '~> 1.0', '>= 1.0.0'
|
data/lib/idcf/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idcfcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IDC Frontier Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.14'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.14'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -82,42 +82,30 @@ dependencies:
|
|
82
82
|
name: activemodel
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- - "~>"
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '4.2'
|
88
85
|
- - ">="
|
89
86
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
87
|
+
version: 5.2.4.1
|
91
88
|
type: :runtime
|
92
89
|
prerelease: false
|
93
90
|
version_requirements: !ruby/object:Gem::Requirement
|
94
91
|
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '4.2'
|
98
92
|
- - ">="
|
99
93
|
- !ruby/object:Gem::Version
|
100
|
-
version:
|
94
|
+
version: 5.2.4.1
|
101
95
|
- !ruby/object:Gem::Dependency
|
102
96
|
name: activesupport
|
103
97
|
requirement: !ruby/object:Gem::Requirement
|
104
98
|
requirements:
|
105
|
-
- - "~>"
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
version: '4.2'
|
108
99
|
- - ">="
|
109
100
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
101
|
+
version: 5.2.4.1
|
111
102
|
type: :runtime
|
112
103
|
prerelease: false
|
113
104
|
version_requirements: !ruby/object:Gem::Requirement
|
114
105
|
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '4.2'
|
118
106
|
- - ">="
|
119
107
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
108
|
+
version: 5.2.4.1
|
121
109
|
- !ruby/object:Gem::Dependency
|
122
110
|
name: builder
|
123
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,34 +168,34 @@ dependencies:
|
|
180
168
|
requirements:
|
181
169
|
- - "~>"
|
182
170
|
- !ruby/object:Gem::Version
|
183
|
-
version: 0.
|
171
|
+
version: 0.3.1
|
184
172
|
type: :runtime
|
185
173
|
prerelease: false
|
186
174
|
version_requirements: !ruby/object:Gem::Requirement
|
187
175
|
requirements:
|
188
176
|
- - "~>"
|
189
177
|
- !ruby/object:Gem::Version
|
190
|
-
version: 0.
|
178
|
+
version: 0.3.1
|
191
179
|
- !ruby/object:Gem::Dependency
|
192
180
|
name: inifile
|
193
181
|
requirement: !ruby/object:Gem::Requirement
|
194
182
|
requirements:
|
195
|
-
- - ">="
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: 3.0.0
|
198
183
|
- - "~>"
|
199
184
|
- !ruby/object:Gem::Version
|
200
185
|
version: '3.0'
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: 3.0.0
|
201
189
|
type: :runtime
|
202
190
|
prerelease: false
|
203
191
|
version_requirements: !ruby/object:Gem::Requirement
|
204
192
|
requirements:
|
205
|
-
- - ">="
|
206
|
-
- !ruby/object:Gem::Version
|
207
|
-
version: 3.0.0
|
208
193
|
- - "~>"
|
209
194
|
- !ruby/object:Gem::Version
|
210
195
|
version: '3.0'
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: 3.0.0
|
211
199
|
- !ruby/object:Gem::Dependency
|
212
200
|
name: jsonpath
|
213
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,22 +214,22 @@ dependencies:
|
|
226
214
|
name: kosi
|
227
215
|
requirement: !ruby/object:Gem::Requirement
|
228
216
|
requirements:
|
229
|
-
- - ">="
|
230
|
-
- !ruby/object:Gem::Version
|
231
|
-
version: 1.0.0
|
232
217
|
- - "~>"
|
233
218
|
- !ruby/object:Gem::Version
|
234
219
|
version: '1.0'
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 1.0.0
|
235
223
|
type: :runtime
|
236
224
|
prerelease: false
|
237
225
|
version_requirements: !ruby/object:Gem::Requirement
|
238
226
|
requirements:
|
239
|
-
- - ">="
|
240
|
-
- !ruby/object:Gem::Version
|
241
|
-
version: 1.0.0
|
242
227
|
- - "~>"
|
243
228
|
- !ruby/object:Gem::Version
|
244
229
|
version: '1.0'
|
230
|
+
- - ">="
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: 1.0.0
|
245
233
|
- !ruby/object:Gem::Dependency
|
246
234
|
name: open_uri_redirections
|
247
235
|
requirement: !ruby/object:Gem::Requirement
|
@@ -363,14 +351,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
363
351
|
requirements:
|
364
352
|
- - ">="
|
365
353
|
- !ruby/object:Gem::Version
|
366
|
-
version:
|
354
|
+
version: 2.5.0
|
367
355
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
368
356
|
requirements:
|
369
357
|
- - ">="
|
370
358
|
- !ruby/object:Gem::Version
|
371
359
|
version: '0'
|
372
360
|
requirements: []
|
373
|
-
rubygems_version: 3.
|
361
|
+
rubygems_version: 3.1.4
|
374
362
|
signing_key:
|
375
363
|
specification_version: 4
|
376
364
|
summary: IDCF Cli tools
|