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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubyment.rb +18 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cce36ba8078584171153cda12ca7047f3d200432
4
- data.tar.gz: d5a3ac0260a86b0777233502f000f2fa346a5538
3
+ metadata.gz: ac992ef2ff77f2b3f5a7e1a392c4a0c36f40c893
4
+ data.tar.gz: 87ac55e2f114f278ed74dc13c6f689f265781405
5
5
  SHA512:
6
- metadata.gz: 2ad63e004ceb35092d1bb56df6a7b4d832c94e6f164f759b4b8955ac345c43cdc4e59c644a7e6230c27618ae75f3e9dd6d460db0864380d440307d3fca013994
7
- data.tar.gz: 483f0e5096aa5bbe5044e9e3968110e9f4472f6becc35aa036bd92f6b67782390a07938f948c782103839e89415969fc033ad0d11b56a670a510aa9f5cae0ad4
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.25520442
4
+ version: 0.6.25520645
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribamar Santarosa