sensu-spawn 2.2.2 → 2.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0205c7ef4fdc0bf14f2417c4266406b8c9ef453d
4
- data.tar.gz: fe9e8b7b696760c66c8a3b92ca7969cf8731a91f
3
+ metadata.gz: 1a5a81f1c507c17fe6ca0f16c1dce5c944958a6a
4
+ data.tar.gz: d33b32d2d97319ca17d63a195da403093623069a
5
5
  SHA512:
6
- metadata.gz: ac0835dd4cbfaeb818dd55331685c2e4e707bdd65beb3917169c18daf1e6f7107a89edbad7d55e5dbbbfa99e01255823a6ade9a3768336b6f07fba7c299a49ee
7
- data.tar.gz: 054bbbf455e0a9f85b4d72050a7b1951686107d79f65fa24b640f811618b338a19025924a1688e41a7c9487b9ccf2f7ca7e2cdb5698bfc685db706a620de7e35
6
+ metadata.gz: 99aa1bb173e70e49ae845cff3264f50d6024d87e264f7628e915de6c3c9e225b743e731a0481a8f8773a55107d4a0b0f858f6407dba80e0ffd841fcb216dc2ae
7
+ data.tar.gz: e14c231a59f55f26fb911d4bc90f304b5269cd089a43ca0377365d7b7e30cce1800a1f8b9ed72cfbdf2487f1c2d11eb5753da7999019251321119592fed7d9fc
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -2,7 +2,14 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/sensu/sensu-spawn/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/sensu/sensu-spawn/compare/v2.2.1...HEAD)
5
+ [Full Changelog](https://github.com/sensu/sensu-spawn/compare/v2.2.2...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Only enable posix spawn on x86\_64 and i386 [\#23](https://github.com/sensu/sensu-spawn/pull/23) ([portertech](https://github.com/portertech))
10
+
11
+ ## [v2.2.2](https://github.com/sensu/sensu-spawn/tree/v2.2.2) (2018-03-08)
12
+ [Full Changelog](https://github.com/sensu/sensu-spawn/compare/v2.2.1...v2.2.2)
6
13
 
7
14
  **Merged pull requests:**
8
15
 
@@ -20,6 +20,7 @@ rescue LoadError; end
20
20
  module Sensu
21
21
  module Spawn
22
22
  POSIX_SPAWN_PLATFORMS = [:linux, :macosx].freeze
23
+ POSIX_SPAWN_ARCHS = ["x86_64", "i386"].freeze
23
24
 
24
25
  @@mutex = Mutex.new
25
26
 
@@ -62,7 +63,9 @@ module Sensu
62
63
  # @return [TrueClass, FalseClass]
63
64
  def posix_spawn?
64
65
  return @posix_spawn unless @posix_spawn.nil?
65
- @posix_spawn = POSIX_SPAWN_PLATFORMS.include?(ChildProcess.os)
66
+ platform_supported = POSIX_SPAWN_PLATFORMS.include?(ChildProcess.os)
67
+ arch_supported = POSIX_SPAWN_ARCHS.include?(ChildProcess.arch)
68
+ @posix_spawn = platform_supported && arch_supported
66
69
  end
67
70
 
68
71
  # Determine if the current platform is Windows.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-spawn"
5
- spec.version = "2.2.2"
5
+ spec.version = "2.3.0"
6
6
  spec.authors = ["Sean Porter"]
7
7
  spec.email = ["portertech@gmail.com", "engineering@sensu.io"]
8
8
  spec.summary = "The Sensu spawn process library"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-spawn
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -30,7 +30,7 @@ cert_chain:
30
30
  jOeGyhtQa9j4FFmsEJDg59f5v/3hECXsa3Xuml3foaFHzX3Ya/YIyd2YFxvkFKIu
31
31
  GVbe7A3YdxzdkH2Es/Ym9twdxXaIDdXzj8sWhw==
32
32
  -----END CERTIFICATE-----
33
- date: 2018-03-08 00:00:00.000000000 Z
33
+ date: 2018-04-12 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: eventmachine
metadata.gz.sig CHANGED
Binary file