yao-yrb 3.0.0 → 3.0.2

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: '03974297e498e76dfb04b4c9603c3cb4e7866d5f2f96281f65f957c6f30fbbcf'
4
- data.tar.gz: d1376851fd1ca871645b67e9af59c0cd4a95922da74cc883c173b2aec6626c6a
3
+ metadata.gz: a96acfc9779dff8cf2aaf2f616f62c665a8cbc0c3fa72a65b983124c2f756e06
4
+ data.tar.gz: 473ebdf791ed4156c216fa801f9117a6cb8d0b6cc6c46cd778d0d2303e38f14b
5
5
  SHA512:
6
- metadata.gz: f2dadc842acbc1cf337ab447c21b8b45e142c81183c78faddee2f98833b394a192169a62749a1172fc53fe95b251ee17ab6d4808b19450fcfb85880c80357faa
7
- data.tar.gz: 33a744ffc7128cd9e1c1f1494ff2a07dfb8c69bf95a43161d4d03b5a27a7ab6e57ee64c4551f09638c52922f3122d47c7ae132a78e992bf039918d700fcda57f
6
+ metadata.gz: e388fb8e55b29f400dd09a956a9c40ef90c27e666da39d89067ce0b0318b662f2368a1de4ff6ba36d8c40e5f26c9ce1dbb87ca43cfde186ce356b8a24a0ac6f2
7
+ data.tar.gz: adec7a89a0771c0b69a2df00c55b5e28959631723231c950822498c060a4dacae892c14e4f2ee1bba4be2ff3ab082f5e18909b529d98c0cbe60629d22c1377d7
@@ -7,11 +7,11 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: [3.0, 2.7]
10
+ ruby: [3.0, 3.3]
11
11
  steps:
12
12
  - uses: actions/checkout@master
13
13
  - name: Set up Ruby
14
- uses: actions/setup-ruby@v1
14
+ uses: ruby/setup-ruby@v1
15
15
  with:
16
16
  ruby-version: ${{ matrix.ruby }}
17
17
  - name: Install dependencies
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.7
2
+ TargetRubyVersion: 3.0
3
3
  SuggestExtensions: false
4
4
  NewCops: enable
5
5
 
@@ -14,3 +14,6 @@ Metrics/MethodLength:
14
14
 
15
15
  Metrics/AbcSize:
16
16
  Max: 27
17
+
18
+ Gemspec/DevelopmentDependencies:
19
+ EnforcedStyle: gemspec
data/lib/yao/yrb/cli.rb CHANGED
@@ -5,7 +5,7 @@ require 'irb'
5
5
  # [HACK] allow optional and multivalued parameters
6
6
  original_verbosity = $VERBOSE
7
7
  $VERBOSE = nil
8
- Clamp::Parameter::Definition::ELLIPSIS_SUFFIX = / \.\.\.\]?$/.freeze
8
+ Clamp::Parameter::Definition::ELLIPSIS_SUFFIX = / \.\.\.\]?$/
9
9
  $VERBOSE = original_verbosity
10
10
 
11
11
  module Yao
@@ -22,7 +22,7 @@ module Yao
22
22
  def execute
23
23
  yao_setup
24
24
 
25
- if script_mode.size
25
+ if script_mode.size.positive?
26
26
  script_file = script_mode.first
27
27
  load script_file
28
28
  else
@@ -37,19 +37,19 @@ module Yao
37
37
 
38
38
  def yao_setup
39
39
  Yao.configure do
40
- auth_url ENV['OS_AUTH_URL']
41
- tenant_name ENV['OS_TENANT_NAME']
42
- username ENV['OS_USERNAME']
43
- password ENV['OS_PASSWORD']
44
- ca_cert ENV['OS_CACERT']
45
- client_cert ENV['OS_CERT']
46
- client_key ENV['OS_KEY']
47
- region_name ENV['OS_REGION_NAME']
48
- identity_api_version ENV['OS_IDENTITY_API_VERSION']
49
- user_domain_name ENV['OS_USER_DOMAIN_NAME']
50
- project_domain_name ENV['OS_PROJECT_DOMAIN_NAME']
51
- debug ENV['YAO_DEBUG']
52
- debug_record_response ENV['YAO_DEBUG_RECORD_RESPONSE']
40
+ auth_url ENV.fetch('OS_AUTH_URL', nil)
41
+ tenant_name ENV.fetch('OS_TENANT_NAME', nil)
42
+ username ENV.fetch('OS_USERNAME', nil)
43
+ password ENV.fetch('OS_PASSWORD', nil)
44
+ ca_cert ENV.fetch('OS_CACERT', nil)
45
+ client_cert ENV.fetch('OS_CERT', nil)
46
+ client_key ENV.fetch('OS_KEY', nil)
47
+ region_name ENV.fetch('OS_REGION_NAME', nil)
48
+ identity_api_version ENV.fetch('OS_IDENTITY_API_VERSION', nil)
49
+ user_domain_name ENV.fetch('OS_USER_DOMAIN_NAME', nil)
50
+ project_domain_name ENV.fetch('OS_PROJECT_DOMAIN_NAME', nil)
51
+ debug ENV.fetch('YAO_DEBUG', nil)
52
+ debug_record_response ENV.fetch('YAO_DEBUG_RECORD_RESPONSE', nil)
53
53
  end
54
54
  end
55
55
  end
@@ -1,5 +1,5 @@
1
1
  module Yao
2
2
  module Yrb
3
- VERSION = '3.0.0'.freeze
3
+ VERSION = '3.0.2'.freeze
4
4
  end
5
5
  end
data/yao-yrb.gemspec CHANGED
@@ -34,9 +34,9 @@ Gem::Specification.new do |spec|
34
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
35
  spec.require_paths = ['lib']
36
36
 
37
- spec.required_ruby_version = '>= 2.7.0'
37
+ spec.required_ruby_version = '>= 3.0.0'
38
38
 
39
- spec.add_dependency 'yao'
39
+ spec.add_dependency 'yao', '>= 0.21.0'
40
40
 
41
41
  spec.add_dependency 'clamp', '~> 1.3.1'
42
42
  spec.add_dependency 'pry', '~> 0.13.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yao-yrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuki Koya
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yao
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.21.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: clamp
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -146,14 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 2.7.0
149
+ version: 3.0.0
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.2.32
156
+ rubygems_version: 3.5.9
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: irb with yao