usagewatch_ext 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +3 -3
- data/examples/mac_example.rb +1 -1
- data/lib/usagewatch_ext.rb +1 -0
- data/lib/usagewatch_ext/mac.rb +1 -1
- data/lib/usagewatch_ext/version.rb +1 -1
- data/spec/{usagewatch_spec.rb → linux_spec.rb} +0 -0
- data/spec/mac_spec.rb +8 -8
- data/spec/version_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjI1MjAxNDFkODA3YjhlNjc5NWQ1OGVhNjRhMjgyZGFkNTk4MWFkMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDRjM2IzMjIxNTU5NDNjYTEzMTgyOTdmZmM2YjhmMDI1MTE2NTM3Ng==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWVhYTMxMDZjZTFlZTI0YTU5N2FhMzVmNzM5NzkxNzVmNDJjZGJlYmJlZDA2
|
10
|
+
ZDEyZGI0NTA0Y2RkNjJlOTkwYTU0NWY0ZjRkZDkyMDMwOWM4NTE1NDE1ZmMy
|
11
|
+
ODE1MDVmNWRmMzUxM2E3N2FjMTBlNjg5YzdkNDdlN2JjZDI3OWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTQxYjg5ZjM5YTZkOTJlNDY4YzJiZmNjNzJhYWQ1Yzc2Yzc1NjE2ZDg3NjNj
|
14
|
+
N2Y0MzE0MjlmYTIwYzEyZDQxNGI4NWNlZjA5ZjI1N2Q3MDQ3ODk4NWY5MTUx
|
15
|
+
N2ZlYzU3OGUwZjRmYjA3NDlkNGJiMmJlYTQzNGM3MWM5YmQxYzE=
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
[![Coverage Status](https://coveralls.io/repos/rderoldan1/
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/
|
3
|
-
[![Build Status](https://travis-ci.org/rderoldan1/
|
1
|
+
[![Coverage Status](https://coveralls.io/repos/rderoldan1/usagewatch_ext/badge.png)](https://coveralls.io/r/rderoldan1/usagewatch_ext)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/usagewatch_ext.png)](http://badge.fury.io/rb/usagewatch_ext)
|
3
|
+
[![Build Status](https://travis-ci.org/rderoldan1/usagewatch_ext.png?branch=master)](https://travis-ci.org/rderoldan1/usagewatch_ext)
|
4
4
|
|
5
5
|
# usagewatch extended version
|
6
6
|
|
data/examples/mac_example.rb
CHANGED
data/lib/usagewatch_ext.rb
CHANGED
data/lib/usagewatch_ext/mac.rb
CHANGED
File without changes
|
data/spec/mac_spec.rb
CHANGED
@@ -5,14 +5,14 @@ os = RUBY_PLATFORM
|
|
5
5
|
if os.include? "darwin"
|
6
6
|
describe 'IncludeLibrary' do
|
7
7
|
it 'should include the library' do
|
8
|
-
a =
|
9
|
-
a.should be
|
8
|
+
a = Usagewatch
|
9
|
+
a.should be Usagewatch
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'DiskUsage' do
|
14
14
|
it "should be the GB of disk used" do
|
15
|
-
a =
|
15
|
+
a = Usagewatch.uw_diskused
|
16
16
|
a.class.should be(Float)
|
17
17
|
a.should_not be_nil
|
18
18
|
a.should be >= 0
|
@@ -21,7 +21,7 @@ if os.include? "darwin"
|
|
21
21
|
|
22
22
|
describe 'CPUUsage' do
|
23
23
|
it "should be the percentage of cpu used" do
|
24
|
-
a =
|
24
|
+
a = Usagewatch.uw_cpuused
|
25
25
|
a.class.should be(Float)
|
26
26
|
a.should_not be_nil
|
27
27
|
a.should be <= 100
|
@@ -31,7 +31,7 @@ if os.include? "darwin"
|
|
31
31
|
|
32
32
|
describe 'PercentageDiskUsage' do
|
33
33
|
it "should be the percentage of GB of disk used" do
|
34
|
-
a =
|
34
|
+
a = Usagewatch.uw_diskused_perc
|
35
35
|
a.class.should be(Float)
|
36
36
|
a.should_not be_nil
|
37
37
|
a.should be <= 100
|
@@ -41,7 +41,7 @@ if os.include? "darwin"
|
|
41
41
|
|
42
42
|
describe 'LoadAverage' do
|
43
43
|
it "should be the average load of the past minute" do
|
44
|
-
a =
|
44
|
+
a = Usagewatch.uw_load
|
45
45
|
a.class.should be(Float)
|
46
46
|
a.should_not be_nil
|
47
47
|
a.should be >= 0
|
@@ -50,7 +50,7 @@ if os.include? "darwin"
|
|
50
50
|
|
51
51
|
describe 'TopCPUUsage' do
|
52
52
|
it "should be an array of top cpu consumption proccesses " do
|
53
|
-
a =
|
53
|
+
a = Usagewatch.uw_cputop
|
54
54
|
a.class.should be(Array )
|
55
55
|
a.should_not be_nil
|
56
56
|
a[0][0].class.should be String
|
@@ -61,7 +61,7 @@ if os.include? "darwin"
|
|
61
61
|
|
62
62
|
describe 'TopMEMUsage' do
|
63
63
|
it "should be an array of top mem consumption proccesses " do
|
64
|
-
a =
|
64
|
+
a = Usagewatch.uw_cputop
|
65
65
|
a.class.should be(Array )
|
66
66
|
a.should_not be_nil
|
67
67
|
a[0][0].class.should be String
|
data/spec/version_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usagewatch_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruben Espinosa
|
@@ -86,9 +86,9 @@ files:
|
|
86
86
|
- lib/usagewatch_ext.rb
|
87
87
|
- lib/usagewatch_ext/mac.rb
|
88
88
|
- lib/usagewatch_ext/version.rb
|
89
|
+
- spec/linux_spec.rb
|
89
90
|
- spec/mac_spec.rb
|
90
91
|
- spec/spec_helper.rb
|
91
|
-
- spec/usagewatch_spec.rb
|
92
92
|
- spec/version_spec.rb
|
93
93
|
- usagewatch_ext.gemspec
|
94
94
|
homepage: https://github.com/rderoldan1/usagewatch_ext
|
@@ -118,7 +118,7 @@ signing_key:
|
|
118
118
|
specification_version: 4
|
119
119
|
summary: Extended version of usagewatch
|
120
120
|
test_files:
|
121
|
+
- spec/linux_spec.rb
|
121
122
|
- spec/mac_spec.rb
|
122
123
|
- spec/spec_helper.rb
|
123
|
-
- spec/usagewatch_spec.rb
|
124
124
|
- spec/version_spec.rb
|