rubyment 0.6.25520442 → 0.6.25520645
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rubyment.rb +18 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac992ef2ff77f2b3f5a7e1a392c4a0c36f40c893
|
4
|
+
data.tar.gz: 87ac55e2f114f278ed74dc13c6f689f265781405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 583ca6633c08eb781326c4abb175c4c56ba4e976029ff373e8bc7e4945ab94769db2add9bf872acf7e9e27bdfdf69aac1c6e48dd44fc96c2a33e97f6d7619d2c
|
7
|
+
data.tar.gz: 06bae45d3ba2a8c5d3d3cc2845ae2a1b1dd04079c981f04ac0437cf885f3218608bd0b25a5814fb65bc4cb00991dacaf95ed06408f4b6dde619a631eebc4041b
|
data/lib/rubyment.rb
CHANGED
@@ -3361,6 +3361,24 @@ n8mFEtUKobsK
|
|
3361
3361
|
end
|
3362
3362
|
|
3363
3363
|
|
3364
|
+
def shell_popen2e_command args=[]
|
3365
|
+
command,
|
3366
|
+
reserved = args
|
3367
|
+
require "open3"
|
3368
|
+
stdin, stdoutanderr, wait_thr = Open3.popen2e(":;" + command)
|
3369
|
+
[ stdoutanderr.entries, stdin, wait_thr, wait_thr.value.success? ]
|
3370
|
+
end
|
3371
|
+
|
3372
|
+
|
3373
|
+
def shell_popen3_command args=[]
|
3374
|
+
command,
|
3375
|
+
reserved = args
|
3376
|
+
require "open3"
|
3377
|
+
stdin, stdout, stderr, wait_thr = Open3.popen3(":;" + command)
|
3378
|
+
[ stdout.entries, stderr.entries, stdin, wait_thr, wait_thr.value.success? ]
|
3379
|
+
end
|
3380
|
+
|
3381
|
+
|
3364
3382
|
# test for functions that adds syntatic sugar to
|
3365
3383
|
# exceptions.
|
3366
3384
|
def test__rune_functions args = ARGV
|