idcfcloud 1.1.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e85df53cf877b508edb0741ace4be89179fcd6b7186df2323a7d992dc91e53e
4
- data.tar.gz: 9fb184070e033ad9fb6472a80eff05ff1d44a2cadde499afd8b53ad5868139a4
3
+ metadata.gz: b5716358ad42cbc82c5a73402b866e32cbe11597ecd257311ce0ea722ef1dd8e
4
+ data.tar.gz: eb77fe8d1ed74bb3c7e6e97816d2840d6e49c1470d686e14fc1ebe74945c8a50
5
5
  SHA512:
6
- metadata.gz: 1b1f4a11375d35f81b6abc8dcbeb477bec8c5a3325fa92d334b233adf9e2cb2910d68d6f797084ce6788164df08386185cb118035be2e0609a4e5454efb8bba3
7
- data.tar.gz: 7581a8ff47eef3af7a155c0faf9187580d3b3bb46f855a7bb7e26b8b13b6b379013e6510fb69f8527487926eb74542ce190e18bc2521884cfb9af0495353cbd5
6
+ metadata.gz: 303bae3af7be4c7dadce097c25aa1b24b37f614ca1e9c15b92e5c5886184c4a76fb79cdb28fe6a3970cbeb8b2598f9d525d6b2512c18c7e5c304302631fac4b5
7
+ data.tar.gz: 3ff417df639f583493beaff231cdf844c2b70d50f2030b776c22d72885fc5a381e5035731680f4fc13989b6e2975e4a23fe4e2f23b94a6470e57a0b132e6ba16
data/CHANGELOG.md ADDED
@@ -0,0 +1,10 @@
1
+ # Changelog
2
+
3
+ ## 1.1.3
4
+
5
+ * Change ciphers setting
6
+ * Change argument type
7
+
8
+ ## 1.1.2
9
+
10
+ * Add the `jp-east-3` region as an option for: `ilb` and `compute`
data/bin/idcfcloud CHANGED
@@ -14,4 +14,12 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
14
14
  require "rubygems"
15
15
  require "bundler/setup"
16
16
 
17
+ require "net/https"
18
+ Net::HTTP.prepend(Module.new do
19
+ def use_ssl=(flag)
20
+ super
21
+ self.ciphers = "DEFAULT:!DH"
22
+ end
23
+ end)
24
+
17
25
  load Gem.bin_path("idcfcloud", "idcfcloud")
@@ -9,6 +9,9 @@ ilb:
9
9
  jp-east-2:
10
10
  schema: https://ilb.jp-east-2.idcfcloud.com/api/v1/schema
11
11
  host: ilb.jp-east-2.idcfcloud.com
12
+ jp-east-3:
13
+ schema: https://ilb.jp-east-3.idcfcloud.com/api/v1/schema
14
+ host: ilb.jp-east-3.idcfcloud.com
12
15
  jp-west:
13
16
  schema: https://ilb.jp-west.idcfcloud.com/api/v1/schema
14
17
  host: ilb.jp-west.idcfcloud.com
@@ -33,6 +36,9 @@ compute:
33
36
  jp-east-2:
34
37
  schema: https://compute.jp-east-2.idcfcloud.com/api/v1/schema
35
38
  host: compute.jp-east-2.idcfcloud.com
39
+ jp-east-3:
40
+ schema: https://compute.jp-east-3.idcfcloud.com/api/v1/schema
41
+ host: compute.jp-east-3.idcfcloud.com
36
42
  jp-west:
37
43
  schema: https://compute.jp-west.idcfcloud.com/api/v1/schema
38
44
  host: compute.jp-west.idcfcloud.com
@@ -23,7 +23,7 @@ module Idcf
23
23
  CODE_CONF_PATH = "#{BASE_PATH}/idcf/cli/conf/conf.yml".freeze
24
24
  USER_CONF_PATH = "#{USER_DIR_PATH}/config.ini".freeze
25
25
  USER_CONF_GLOBAL = "#{BASE_PATH}/../config/config.ini".freeze
26
- REGIONS = %w[jp-east jp-east-2 jp-west].freeze
26
+ REGIONS = %w[jp-east jp-east-2 jp-east-3 jp-west].freeze
27
27
  GLOBAL_CONF_ITEMS =
28
28
  {
29
29
  output_log: {
@@ -11,7 +11,7 @@ module Idcf
11
11
  type: :string,
12
12
  aliases: '-r',
13
13
  require: true,
14
- desc: 'region: jp-east/jp-east-2/jp-west'
14
+ desc: 'region: jp-east/jp-east-2/jp-east-3/jp-west'
15
15
 
16
16
  class << self
17
17
  def description
@@ -11,7 +11,7 @@ module Idcf
11
11
  type: :string,
12
12
  aliases: '-r',
13
13
  require: true,
14
- desc: 'region: jp-east/jp-east-2/jp-west'
14
+ desc: 'region: jp-east/jp-east-2/jp-east-3/jp-west'
15
15
 
16
16
  class << self
17
17
  def description
@@ -15,9 +15,9 @@ module Idcf
15
15
 
16
16
  def validate_each(record, attr, val)
17
17
  str = MESSAGES[:format]
18
- return record.errors.add(attr, str, {}) unless format?(val)
18
+ return record.errors.add(attr, str, **{}) unless format?(val)
19
19
  str = MESSAGES[:invalid]
20
- return record.errors.add(attr, str, {}) unless valid?(val)
20
+ return record.errors.add(attr, str, **{}) unless valid?(val)
21
21
  end
22
22
 
23
23
  protected
@@ -17,7 +17,7 @@ module Idcf
17
17
  return if nones.empty?
18
18
 
19
19
  msg = format(MESSAGES[:message], msg: nones.join('/'))
20
- record.errors.add(nones.first, msg, {})
20
+ record.errors.add(nones.first, msg, **{})
21
21
  end
22
22
 
23
23
  protected
@@ -1,5 +1,5 @@
1
1
  module Idcf
2
2
  module Cli
3
- VERSION = '1.1.1'.freeze
3
+ VERSION = '1.1.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idcfcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - IDC Frontier Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-18 00:00:00.000000000 Z
11
+ date: 2023-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -268,6 +268,7 @@ files:
268
268
  - ".codeclimate.yml"
269
269
  - ".gitignore"
270
270
  - ".rubocop.yml"
271
+ - CHANGELOG.md
271
272
  - Gemfile
272
273
  - LICENSE.txt
273
274
  - README.md
@@ -358,8 +359,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
358
359
  - !ruby/object:Gem::Version
359
360
  version: '0'
360
361
  requirements: []
361
- rubygems_version: 3.1.4
362
- signing_key:
362
+ rubygems_version: 3.1.6
363
+ signing_key:
363
364
  specification_version: 4
364
365
  summary: IDCF Cli tools
365
366
  test_files: []