proceso 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3d49661725405e398e78ba8b53acd8d9c28d8110
4
+ data.tar.gz: 0acfd2992fe40aa6c188f747eb1b934ae43accb6
5
+ SHA512:
6
+ metadata.gz: c41bda0b3153f6564b05cfb806eafa005d2bc69947af100a0393f2a22e07059b7653a9ba4b0008fdebae2af70e7f089ecfd8f970c3d6826615d588e1d21842c6
7
+ data.tar.gz: f4788aace60dd4ed5c3f6c8b23f8a10046fcaa3b3b86ace7f01ac57bf3a16ed7b9f8ca31c345223efd8d4990214e4e6f5918a1048abf6baac87bc87b37dcda81
@@ -0,0 +1,3 @@
1
+ require "mkmf"
2
+
3
+ create_makefile('proceso/proceso')
@@ -0,0 +1,3 @@
1
+ module Proceso
2
+ VERSION = "0.0.0"
3
+ end
data/lib/proceso.rb ADDED
@@ -0,0 +1 @@
1
+ require 'proceso/proceso'
@@ -0,0 +1,43 @@
1
+ require "spec_helper"
2
+
3
+ describe Proceso do
4
+
5
+ let(:process) { Proceso::Info.new($$) }
6
+
7
+ it "should create new Process object with pid" do
8
+ expect { Proceso::Info.new($$) }.to_not raise_error
9
+ end
10
+
11
+ it "creates new Base object without argument will raise error" do
12
+ expect { Proceso::Info.new }.to raise_error
13
+ end
14
+
15
+ it "should be running" do
16
+ process.running?.should be_true
17
+ end
18
+
19
+ it "should return process name" do
20
+ process.name.should =~ /ruby/
21
+ end
22
+
23
+ it "should return resident size in bytes" do
24
+ process.resident_size.should be_kind_of(Numeric)
25
+ end
26
+
27
+ it "should return virtual size in bytes" do
28
+ process.virtual_size.should be_kind_of(Numeric)
29
+ end
30
+
31
+ it "should return cpu usage" do
32
+ process.cpu_usage.should be_kind_of(Float)
33
+ end
34
+
35
+ it "should return user cpu times" do
36
+ process.user_cpu_times.should be_kind_of(Float)
37
+ end
38
+
39
+ it "should return system cpu times" do
40
+ process.system_cpu_times.should be_kind_of(Float)
41
+ end
42
+
43
+ end
@@ -0,0 +1,5 @@
1
+ require 'bundler/setup'
2
+ lib_path = File.join(File.dirname(__FILE__), "..", "lib")
3
+ $LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
4
+
5
+ require "proceso"
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: proceso
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Bryan Goines
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-compiler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubygems-tasks
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Easiest way to retrieve the process information
70
+ email:
71
+ - bryann83@gmail.com
72
+ executables: []
73
+ extensions:
74
+ - ext/proceso/extconf.rb
75
+ extra_rdoc_files: []
76
+ files:
77
+ - lib/proceso/version.rb
78
+ - lib/proceso.rb
79
+ - spec/proceso_spec.rb
80
+ - spec/spec_helper.rb
81
+ - ext/proceso/extconf.rb
82
+ homepage: https://github.com/bry4n/proceso
83
+ licenses:
84
+ - MIT
85
+ metadata: {}
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ - ext/proceso
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubyforge_project:
103
+ rubygems_version: 2.1.11
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Simple process information gather
107
+ test_files:
108
+ - spec/proceso_spec.rb
109
+ - spec/spec_helper.rb