process_exists 0.1.2 → 0.1.3
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/README.md +1 -0
- data/lib/process_exists/version.rb +1 -1
- data/process_exists.gemspec +1 -1
- data/spec/process_spec.rb +4 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a7336bbe25d1c17a899c67b8738c3a452c263f1
|
4
|
+
data.tar.gz: d293996fdd66f93be16226453781a7c5a0fab749
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e3ad96bea3284e72ef5b70a635b0f3bdeaf18cd69fd64e1c039dfb7ec5f724128124b52adf16d7818ebd4139536b82dd328a7b4b09c54aa5a796214f0b0fa53
|
7
|
+
data.tar.gz: f1259d9ca0b1978dd67a2f5bb4068a039b88bff47f339a013a6b78ee2e8b8233988f00b1781afef961a3f6e7b0557467cd92077c4367d9e074f40b3d1dc1aa66
|
data/README.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
[](https://codeclimate.com/github/wilsonsilva/process_exists)
|
5
5
|
[](https://travis-ci.org/wilsonsilva/process_exists)
|
6
6
|
[](https://gemnasium.com/wilsonsilva/process_exists)
|
7
|
+
[](http://inch-ci.org/github/wilsonsilva/process_exists)
|
7
8
|
|
8
9
|
## Description
|
9
10
|
|
data/process_exists.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = "process_exists"
|
7
7
|
gem.version = ProcessExists::VERSION
|
8
8
|
gem.summary = "Checks if a PID exists."
|
9
|
-
gem.description = "Sends
|
9
|
+
gem.description = "Sends a null signal to a process or a group of processes specified by pid to check if it exists."
|
10
10
|
gem.license = "MIT"
|
11
11
|
gem.authors = ["wilsonsilva"]
|
12
12
|
gem.email = "me@wilsonsilva.net"
|
data/spec/process_spec.rb
CHANGED
@@ -15,11 +15,9 @@ describe Process do
|
|
15
15
|
expect(subject.exists?(Process.pid)).to be true
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
18
|
+
it "returns true when a pid exists and belongs to another user" do
|
19
|
+
# Process ID 1 is usually the init process primarily responsible for starting and shutting down the system.
|
20
|
+
expect(subject.exists?(1)).to be true
|
21
|
+
end unless running_specs_as_root?
|
24
22
|
end
|
25
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_exists
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wilsonsilva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,8 +80,8 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.8'
|
83
|
-
description: Sends
|
84
|
-
|
83
|
+
description: Sends a null signal to a process or a group of processes specified by
|
84
|
+
pid to check if it exists.
|
85
85
|
email: me@wilsonsilva.net
|
86
86
|
executables: []
|
87
87
|
extensions: []
|