We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25040e commit e07c944Copy full SHA for e07c944
Gemfile.lock
@@ -1,7 +1,7 @@
1
PATH
2
remote: .
3
specs:
4
- cr-exec (0.2.0)
+ cr-exec (0.2.1)
5
6
GEM
7
remote: https://rubygems.org/
lib/cr/exec.rb
@@ -21,9 +21,8 @@ def code(...)
21
127
22
end
23
24
- def output(*args, chomp: true)
25
- command = args.join(" ")
26
- output = `#{command}`
+ def output(*args, chomp: true, **options)
+ output = IO.popen(*args, **options).read
27
return output.chomp if chomp
28
29
output
lib/cr/exec/version.rb
@@ -2,6 +2,6 @@
module Cr
module Exec
- VERSION = "0.2.0"
+ VERSION = "0.2.1"
0 commit comments