sys-proctree 0.0.8 → 0.0.10

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: 2e088d7bdc96549e9e87eb382a2b39d62305e1c0
4
- data.tar.gz: e99d7c2b880ee0f2b6aa61e1d0f4865d27429057
3
+ metadata.gz: 0ab9a1f86c3fb77f2ce69bbeaa71eb0cf1ef5bb7
4
+ data.tar.gz: 9609fc754377e52b6d06e5fb08a8411527b4bb91
5
5
  SHA512:
6
- metadata.gz: d2e0f9c47c52f8d4e573088104ccba8a212d1cb02b8126c2adff278370299e206d0e005211969c1445a3c4f39ec395ff26ab6ddf4151f0fc06a9fccb04ae12ac
7
- data.tar.gz: 48ebfc33ee443d95ce8eb34f2b5db02a24d6b885e238341ddfe9b34c1908b687c0e845620f45a39d79a6ea019c688a1357e0ac65d01901255385d7b85dcc4f94
6
+ metadata.gz: 04acaa2b48f3190782151632a428ff84dcca65b8acbca5a772f7e0d2f404d7138341e678cfd9cc18b6766db8d492466953610cc79ce75793c228736b99e68224
7
+ data.tar.gz: a97493edc79c2eeeac10967b74067884b76f45fd5edfae1d9a6562fef5eae495f63a1033b9213d2ab194f45a217dced6092bc121c741ec7757fd2c3401020b7c
@@ -4,13 +4,13 @@ module Sys
4
4
  module Process
5
5
 
6
6
  def kill_tree(signal, pid)
7
- pids = ::Sys::ProcTree::Tree.find(pid)
8
- pids.map do |pid|
7
+ pids_in_tree = ::Sys::ProcTree::Tree.find(pid)
8
+ pids_in_tree.map do |pid_in_tree|
9
9
  begin
10
- ::Process.kill(signal, pid)
11
- ::Process.wait(pid)
10
+ ::Process.kill(signal, pid_in_tree)
11
+ ::Process.wait(pid_in_tree)
12
12
  rescue
13
- [ pid, nil ]
13
+ [ pid_in_tree, nil ]
14
14
  end
15
15
  end
16
16
  end
@@ -3,12 +3,8 @@ module Sys
3
3
 
4
4
  class Tree
5
5
 
6
- class << self
7
-
8
- def find(pid)
9
- self.new(pid).pids
10
- end
11
-
6
+ def self.find(pid)
7
+ self.new(pid).pids
12
8
  end
13
9
 
14
10
  def initialize(pid)
@@ -1,5 +1,5 @@
1
1
  module Sys
2
2
  module ProcTree
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.10".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,116 +1,115 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-proctree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ueckerman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-19 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sys-proctable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.8
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.8
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: travis-lint
28
+ name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '0.41'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '0.41'
41
41
  - !ruby/object:Gem::Dependency
42
- name: metric_fu
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.11'
47
+ version: '3.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.11'
54
+ version: '3.5'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
56
+ name: os
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.2'
61
+ version: '0.9'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.2'
68
+ version: '0.9'
69
69
  - !ruby/object:Gem::Dependency
70
- name: os
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.9'
75
+ version: '11.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.9'
82
+ version: '11.2'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '10.4'
89
+ version: '0.12'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '10.4'
96
+ version: '0.12'
97
97
  - !ruby/object:Gem::Dependency
98
- name: simplecov
98
+ name: travis-lint
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.10'
103
+ version: '2.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.10'
111
- description: Discovers and kills process trees via process lists provided by the sys-proctable
112
- gem
113
- email: " matthew.ueckerman@myob.com "
110
+ version: '2.0'
111
+ description: Discovers and kills process trees via analysing running process lists
112
+ email: matthew.ueckerman@myob.com
114
113
  executables: []
115
114
  extensions: []
116
115
  extra_rdoc_files: []
@@ -143,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
142
  requirements:
144
143
  - - ">="
145
144
  - !ruby/object:Gem::Version
146
- version: 1.9.3
145
+ version: '2.0'
147
146
  required_rubygems_version: !ruby/object:Gem::Requirement
148
147
  requirements:
149
148
  - - ">="
@@ -151,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
150
  version: '0'
152
151
  requirements: []
153
152
  rubyforge_project: sys-proctree
154
- rubygems_version: 2.4.6
153
+ rubygems_version: 2.5.1
155
154
  signing_key:
156
155
  specification_version: 4
157
156
  summary: Discovers and can attempt to lay waste to a process tree