cloudscopes 0.12.3 → 0.12.4

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: e7ae0b5e321d938a37c379cd119ae5c2371080c8
4
- data.tar.gz: 5b68ae55ceae175f4e2e68a8b0dd0e6b44ab4a8e
3
+ metadata.gz: 665483c84651e9195847877191797d7f97d6e236
4
+ data.tar.gz: d188686e5d9160702997257937bc8296c49b623e
5
5
  SHA512:
6
- metadata.gz: fa8ef1d60e74b43010fdce697fb59fab9575181dd503513cde036dfe93f6c12fd3b9e31fa2135e1e4c73e4c1efa74e0de80d2059f5df0eb5f6c7ab53220e352f
7
- data.tar.gz: be8f565eebb4ff8892f19e0c8cea2c84e785a8779216c78af0c3271f88b72410ea547dc2c3fb3fe734c85cf36cad1aa06df74ed1b2772f5cd38164f281bf5b50
6
+ metadata.gz: 6a7bcd5be66139c5832975546e9e0631e18dae69c0ceab1827ae46a99a2ddeb0f2daa8d13ae0208104b2b6977c574f6ecc63dd1aac65391166d930dad454c574
7
+ data.tar.gz: 7f203a96c24cb17f7f9b62c845e6b467953bab12dbf18b1fe922deba3a237447de99b74096d405830131d20f268124083fe71f0747ad04af0b10825c48a55575
@@ -5,9 +5,12 @@ module Cloudscopes
5
5
  class Process
6
6
 
7
7
  class SystemProcess
8
+
9
+ @@maxpid = File.read('/proc/sys/kernel/pid_max').to_i
10
+
8
11
  def initialize(id)
9
12
  @id = id.to_i
10
- raise "Invalid system process id #{id}" unless @id > 0 && @id <= 65536
13
+ raise "Invalid system process id #{id}" unless @id > 0 && @id <= @@maxpid
11
14
  end
12
15
 
13
16
  def procpath(field = nil)
@@ -1,3 +1,3 @@
1
1
  module Cloudscopes
2
- VERSION = "0.12.3"
2
+ VERSION = "0.12.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudscopes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-13 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.2.2
131
+ rubygems_version: 2.4.6
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Ruby gem to report system statistics to web based monitoring services such