posix-spawn 0.3.14 → 0.3.15

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: 01e020a90230d321090d2a78ed58f6679b35d11f1a889e1ea4290a6e01ad6ca3
4
- data.tar.gz: 60a60a31086a398a9a5c17de2488cf3f4020aadf7f3bbe94a3a558a42404129e
3
+ metadata.gz: e80888255d57122ba2ad477c456582e0ebfdd05a61b175c60577ee8b38e579ad
4
+ data.tar.gz: 12d37e71310f0127b75b0f31da196c9c7554cac29a31d63754583f7737132190
5
5
  SHA512:
6
- metadata.gz: c1a2c99b5f08c59fb83c53f244e4395336a0aa5ddfc900a4a16ed57f038135ad3384efc6869afd6d4ec06964ecf4f13008db25cd6cb578dff8bfd7bdf5da04ae
7
- data.tar.gz: d4ab86a82d93d18de72263d21c3702e7a13eb1b6df27543cc9589429b49ff9046df9018fe6ed08a60ff1ba0ac28e5d1967ad27f4ecb60e4af25830ea89c9ce52
6
+ metadata.gz: 3371e197b9b63ec2dce0b64d070bce8628ccb63112bcd14e8f7426891d1acf4d4ce4bc9558f44a832eaabd194b4b11a7feb2f12db2dd1d6db60968b8b9bc1a2a
7
+ data.tar.gz: 4d63126f9866a66ac6cc50d811be076939e1048f490aa40c55db1931398e016d225c3ae3da939a93646be551e6b207066f1dd4d2a1ee4f7dfe859a4404325242
@@ -529,7 +529,7 @@ module POSIX
529
529
  #
530
530
  # Returns a [[cmdname, argv0], argv1, ...] array.
531
531
  def adjust_process_spawn_argv(args)
532
- if args.size == 1 && args[0] =~ /[ |>]/
532
+ if args.size == 1 && args[0].is_a?(String) && args[0] =~ /[ |>]/
533
533
  # single string with these characters means run it through the shell
534
534
  command_and_args = system_command_prefixes + [args[0]]
535
535
  [*command_and_args]
@@ -1,5 +1,3 @@
1
- require 'posix/spawn'
2
-
3
1
  module POSIX
4
2
  module Spawn
5
3
  # POSIX::Spawn::Child includes logic for executing child processes and
@@ -1,5 +1,5 @@
1
1
  module POSIX
2
2
  module Spawn
3
- VERSION = '0.3.14'
3
+ VERSION = '0.3.15'
4
4
  end
5
5
  end
@@ -322,7 +322,7 @@ module SpawnImplementationTests
322
322
  end
323
323
  end
324
324
 
325
- assert_match /oops/, exception.message
325
+ assert_match(/oops/, exception.message)
326
326
  end
327
327
 
328
328
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posix-spawn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.14
4
+ version: 0.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-16 00:00:00.000000000 Z
12
+ date: 2020-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler