proc_index 0.1.0 → 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: 8c2433eaf5d0ea9e807bd35f19d08c6e23795c19
4
- data.tar.gz: 5ef96d0299a739a15976c479fba44c1ef5923178
3
+ metadata.gz: e6e16fe215d96ff0ab929781a4fcc06f6478738b
4
+ data.tar.gz: 2cdb4bf5d815f4885af724e8bd4ed3d0d43b2a87
5
5
  SHA512:
6
- metadata.gz: de8c69313aa18e402612bde4f48fe596a36454e88757c160f253faa86157bc2e7e32fd3e19bf272d6832e1a0aadfbfe90de08612edbf6d51aaa0ee18f03ffe88
7
- data.tar.gz: e018530d9ed7f2b775dc6753e229785c1e8cbbdb5f0d254032c7e88859a6fe79bcd6e1e0ecfe48b3464da4d436ce21306b994f55ce6bd46635064f667135b8c4
6
+ metadata.gz: d10b77b79440d2ac5f97df4cf1ae20504cce1b3fb179dfd55de45d825878d55ab0293248892375e036597658841c55b9d52b880c22c0eeed02121fc4522f438b
7
+ data.tar.gz: 02918b36bd56505b3840414466c684c4f8243c821d05c52d357e41b3abdb761de65bba1d9cbb83b85ecaccbbc4ab199d92251a9baeacc56a253556e74d3860dd
data/README.md CHANGED
@@ -7,7 +7,19 @@ Printing all processes:
7
7
  $> data = ProcIndex.ps
8
8
  ...
9
9
  $> data.body
10
- => [<Hashie::Mash command="/System/Library/CoreServices/Dock.app/Contents/MacOS/Dock" cpu="36.0" mem="0.4" pid="354" rss="35780" started="Sat01PM" stat="U" time="8:08.24" tt="??" user="alexmanelis" vsz="2789684">...]
10
+ => [<Hashie::Mash
11
+ command="/System/Library/CoreServices/Dock.app/Contents/MacOS/Dock"
12
+ cpu="36.0"
13
+ mem="0.4"
14
+ pid="354"
15
+ rss="35780"
16
+ started="Sat01PM"
17
+ stat="U"
18
+ time="8:08.24"
19
+ tt="??"
20
+ user="alexmanelis"
21
+ vsz="2789684">,
22
+ ...]
11
23
 
12
24
  Searching by command:
13
25
 
@@ -46,6 +46,13 @@ module ProcIndex
46
46
  results.collect { |node| Process.kill 9, node.pid.to_i }
47
47
  end
48
48
 
49
+ #
50
+ # self.kill_by_pid
51
+ #
52
+ def self.kill_by_pid(pid)
53
+ Process.kill 9, pid.to_i
54
+ end
55
+
49
56
  #
50
57
  # self.ps
51
58
  #
@@ -1,3 +1,3 @@
1
1
  module ProcIndex
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -29,11 +29,11 @@ Gem::Specification.new do |gem|
29
29
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
30
30
  gem.require_paths = ['lib']
31
31
 
32
- gem.add_dependency 'awesome_print', '1.6.1'
33
32
  gem.add_dependency 'fuzzy_match', '2.1.0'
34
- gem.add_runtime_dependency 'hashie', '~> 3.4', '>= 3.4.3'
33
+ gem.add_runtime_dependency 'hashie', '~> 2.1', '>= 2.1.1'
34
+
35
35
  gem.add_development_dependency 'pry', '~> 0.10.3'
36
-
36
+ gem.add_development_dependency 'awesome_print', '1.6.1'
37
37
  gem.add_development_dependency 'bundler', '~> 1.10'
38
38
  gem.add_development_dependency 'rake', '~> 10.0'
39
39
  gem.add_development_dependency 'rdoc', '~> 4.0'
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proc_index
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Manelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-27 00:00:00.000000000 Z
11
+ date: 2015-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: awesome_print
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '='
18
- - !ruby/object:Gem::Version
19
- version: 1.6.1
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '='
25
- - !ruby/object:Gem::Version
26
- version: 1.6.1
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: fuzzy_match
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -44,20 +30,20 @@ dependencies:
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '3.4'
33
+ version: '2.1'
48
34
  - - ">="
49
35
  - !ruby/object:Gem::Version
50
- version: 3.4.3
36
+ version: 2.1.1
51
37
  type: :runtime
52
38
  prerelease: false
53
39
  version_requirements: !ruby/object:Gem::Requirement
54
40
  requirements:
55
41
  - - "~>"
56
42
  - !ruby/object:Gem::Version
57
- version: '3.4'
43
+ version: '2.1'
58
44
  - - ">="
59
45
  - !ruby/object:Gem::Version
60
- version: 3.4.3
46
+ version: 2.1.1
61
47
  - !ruby/object:Gem::Dependency
62
48
  name: pry
63
49
  requirement: !ruby/object:Gem::Requirement
@@ -72,6 +58,20 @@ dependencies:
72
58
  - - "~>"
73
59
  - !ruby/object:Gem::Version
74
60
  version: 0.10.3
61
+ - !ruby/object:Gem::Dependency
62
+ name: awesome_print
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '='
66
+ - !ruby/object:Gem::Version
67
+ version: 1.6.1
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '='
73
+ - !ruby/object:Gem::Version
74
+ version: 1.6.1
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: bundler
77
77
  requirement: !ruby/object:Gem::Requirement