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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b366ee44d4b95a00a977cbfdcf3e7cc7aff2cc1d3f72c03e0df2c2858aaf22e8
4
- data.tar.gz: 8a622678016ca76e554a6b80d40dbea7dd7d6db5a494b5d7dd83944e68d66921
3
+ metadata.gz: 299da5a35fccbc561453ee2dc9584f7aec510b1fe9dd34e8c7ae3221b6253dbb
4
+ data.tar.gz: 242f37afb8733342cafd7694d73de4247f2887a027cb4f33da210eff1dc81380
5
5
  SHA512:
6
- metadata.gz: 73a9bee03f689d2f1e7334b6b927ba8cd45efb8422729c1abe93bf9062e26de47886ff0e70dc518ed01eeab7330e8777cd25a2c6fa270d6f16d32c0979de8d8d
7
- data.tar.gz: cf6679d1245593b36ab18481ea4c83a14da4953cf41e6e849b92951a5dc5301c3603ef42476fe1cab0995d008b5356233f50dc2135f9f3d2530c5a61683560cd
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(RUBY_CMD + cmd), **run_options)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniCli
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Blumtritt