process_exists 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: bc2f4245c3eeed85cb4f0632f6cd33c38812141b
4
- data.tar.gz: 45dc11b9f15569a8dfe919a436a42d30169dd971
3
+ metadata.gz: 1a7336bbe25d1c17a899c67b8738c3a452c263f1
4
+ data.tar.gz: d293996fdd66f93be16226453781a7c5a0fab749
5
5
  SHA512:
6
- metadata.gz: d7ebf7d28867545da67402e62fc631ea855caf07fcb9d2f9875f10d2d1de6621a6ad87732b6ce898bd08cf1af72fae000ccd832093d215dec2516df3175f73c9
7
- data.tar.gz: 8f8c86049bfec34a7e5d6f375344ce32a1eed125397fdda499925d6f5317003bb6b72d737b6f1ed1c912de4dc61506cf67041f801cc6a4b40ae74a0b2e933fb4
6
+ metadata.gz: 6e3ad96bea3284e72ef5b70a635b0f3bdeaf18cd69fd64e1c039dfb7ec5f724128124b52adf16d7818ebd4139536b82dd328a7b4b09c54aa5a796214f0b0fa53
7
+ data.tar.gz: f1259d9ca0b1978dd67a2f5bb4068a039b88bff47f339a013a6b78ee2e8b8233988f00b1781afef961a3f6e7b0557467cd92077c4367d9e074f40b3d1dc1aa66
data/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  [![Code Climate](https://codeclimate.com/github/wilsonsilva/process_exists/badges/gpa.svg)](https://codeclimate.com/github/wilsonsilva/process_exists)
5
5
  [![Build Status](https://travis-ci.org/wilsonsilva/process_exists.svg?branch=master)](https://travis-ci.org/wilsonsilva/process_exists)
6
6
  [![Dependency Status](https://gemnasium.com/wilsonsilva/process_exists.svg)](https://gemnasium.com/wilsonsilva/process_exists)
7
+ [![Inline docs](http://inch-ci.org/github/wilsonsilva/process_exists.png?branch=master)](http://inch-ci.org/github/wilsonsilva/process_exists)
7
8
 
8
9
  ## Description
9
10
 
@@ -1,5 +1,5 @@
1
1
  # Contains the gem version
2
2
  module ProcessExists
3
3
  # process_exists version
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -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 the signal 0 to a given PID to check if any process with the given PID is running."
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
- if running_specs_as_root?
19
- it "returns true when a pid exists and belongs to another user" do
20
- # Process ID 1 is usually the init process primarily responsible for starting and shutting down the system.
21
- expect(subject.exists?(1)).to be true
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.2
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-05 00:00:00.000000000 Z
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 the signal 0 to a given PID to check if any process with the given
84
- PID is running.
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: []