mini-cli 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mini-cli/run.rb +8 -6
- data/lib/mini-cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 299da5a35fccbc561453ee2dc9584f7aec510b1fe9dd34e8c7ae3221b6253dbb
|
4
|
+
data.tar.gz: 242f37afb8733342cafd7694d73de4247f2887a027cb4f33da210eff1dc81380
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da79647fb91708e556151c22296aa0febe509c9502bbbe327e6fb10cfd3cc22b851f402cede01e25d1df6b9e42382200cc7d34c28f8dab7fc1fac9984dda6d47
|
7
|
+
data.tar.gz: bb7bfb271ea6cbb2e30e4a0833746a30869e484ddc4e7d13c6f1c5f44acdca10d29081f0b52fe9c045685974d6ef6c188ce0e6147cd57f331deb020d74abeacb
|
data/lib/mini-cli/run.rb
CHANGED
@@ -16,7 +16,7 @@ module MiniCli
|
|
16
16
|
|
17
17
|
def run_ruby(*cmd, **run_options)
|
18
18
|
require 'shellwords'
|
19
|
-
run(Shellwords.join(
|
19
|
+
run(Shellwords.join(RUBY_CMD_ + cmd), **run_options)
|
20
20
|
end
|
21
21
|
|
22
22
|
def run_script(script, status: false, chdir: nil)
|
@@ -25,11 +25,6 @@ module MiniCli
|
|
25
25
|
|
26
26
|
private
|
27
27
|
|
28
|
-
RUBY_CMD =
|
29
|
-
%w[--disable gems --disable did_you_mean --disable rubyopt].unshift(
|
30
|
-
RbConfig.ruby
|
31
|
-
).freeze
|
32
|
-
|
33
28
|
def __run_proc(stdin_data, in_write)
|
34
29
|
return :read unless stdin_data
|
35
30
|
proc do |out|
|
@@ -43,4 +38,11 @@ module MiniCli
|
|
43
38
|
out.read
|
44
39
|
end
|
45
40
|
end
|
41
|
+
|
42
|
+
RUBY_CMD_ =
|
43
|
+
%w[--disable gems --disable did_you_mean --disable rubyopt].unshift(
|
44
|
+
RbConfig.ruby
|
45
|
+
).freeze
|
46
|
+
|
47
|
+
private_constant(:RUBY_CMD_)
|
46
48
|
end
|
data/lib/mini-cli/version.rb
CHANGED