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 +4 -4
- data/.github/workflows/rubocop.yml +2 -2
- data/.rubocop.yml +4 -1
- data/lib/yao/yrb/cli.rb +15 -15
- data/lib/yao/yrb/version.rb +1 -1
- data/yao-yrb.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a96acfc9779dff8cf2aaf2f616f62c665a8cbc0c3fa72a65b983124c2f756e06
|
4
|
+
data.tar.gz: 473ebdf791ed4156c216fa801f9117a6cb8d0b6cc6c46cd778d0d2303e38f14b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
10
|
+
ruby: [3.0, 3.3]
|
11
11
|
steps:
|
12
12
|
- uses: actions/checkout@master
|
13
13
|
- name: Set up Ruby
|
14
|
-
uses:
|
14
|
+
uses: ruby/setup-ruby@v1
|
15
15
|
with:
|
16
16
|
ruby-version: ${{ matrix.ruby }}
|
17
17
|
- name: Install dependencies
|
data/.rubocop.yml
CHANGED
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 = / \.\.\.\]
|
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
|
41
|
-
tenant_name ENV
|
42
|
-
username ENV
|
43
|
-
password ENV
|
44
|
-
ca_cert ENV
|
45
|
-
client_cert ENV
|
46
|
-
client_key ENV
|
47
|
-
region_name ENV
|
48
|
-
identity_api_version ENV
|
49
|
-
user_domain_name ENV
|
50
|
-
project_domain_name ENV
|
51
|
-
debug ENV
|
52
|
-
debug_record_response ENV
|
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
|
data/lib/yao/yrb/version.rb
CHANGED
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 = '>=
|
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.
|
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:
|
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:
|
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:
|
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:
|
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.
|
156
|
+
rubygems_version: 3.5.9
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: irb with yao
|