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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODM3NDNhZWQwMzIzMjc1MTRmNmU0ZjRkMGExZDNkNDFhNDYyN2RlMg==
4
+ ZjI1MjAxNDFkODA3YjhlNjc5NWQ1OGVhNjRhMjgyZGFkNTk4MWFkMg==
5
5
  data.tar.gz: !binary |-
6
- NWNiZWQxYjJiNjQ0ZjExZGI0ODY1ZGZjODgzM2VjNWYwZWU1MGY4Yg==
6
+ MDRjM2IzMjIxNTU5NDNjYTEzMTgyOTdmZmM2YjhmMDI1MTE2NTM3Ng==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTg0M2I0MTc1MTAwYmMxMjM5Y2MyYjIzNzFmY2E2Mzc5N2U0NzdjNTZkZGVm
10
- NDgxNzEwN2ZmNzY4YmRkODcxNTA4ZjRiNTZkOTYxNjdiNWRlODUwY2FjN2Q5
11
- OTU4NGViNmVmODUxNmEzMmJlMTY5ZTJkNjFhMjAyZjEzMjIxOGI=
9
+ ZWVhYTMxMDZjZTFlZTI0YTU5N2FhMzVmNzM5NzkxNzVmNDJjZGJlYmJlZDA2
10
+ ZDEyZGI0NTA0Y2RkNjJlOTkwYTU0NWY0ZjRkZDkyMDMwOWM4NTE1NDE1ZmMy
11
+ ODE1MDVmNWRmMzUxM2E3N2FjMTBlNjg5YzdkNDdlN2JjZDI3OWM=
12
12
  data.tar.gz: !binary |-
13
- OThhNzBhMjJiOGZkZDZjNmYzNmVmOGE5NzMxNzIxOWUzODg1NDA2YWEzMmVl
14
- NjRhZDM3OGE5NDYxYjNhMmM4MWUxODAxYjc0ODk4YmI3NTQ1ZTY1OWMzYzll
15
- MTBjNGM4NmRhNGE2MGNiMWI2N2Y3MDY1ZjdkYzQyYzI1ZjdmODk=
13
+ YTQxYjg5ZjM5YTZkOTJlNDY4YzJiZmNjNzJhYWQ1Yzc2Yzc1NjE2ZDg3NjNj
14
+ N2Y0MzE0MjlmYTIwYzEyZDQxNGI4NWNlZjA5ZjI1N2Q3MDQ3ODk4NWY5MTUx
15
+ N2ZlYzU3OGUwZjRmYjA3NDlkNGJiMmJlYTQzNGM3MWM5YmQxYzE=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- [![Coverage Status](https://coveralls.io/repos/rderoldan1/usagewatch/badge.png)](https://coveralls.io/r/rderoldan1/usagewatch)
2
- [![Gem Version](https://badge.fury.io/rb/usagewatch.png)](http://badge.fury.io/rb/usagewatch)
3
- [![Build Status](https://travis-ci.org/rderoldan1/usagewatch.png?branch=master)](https://travis-ci.org/rderoldan1/usagewatch)
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
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  require 'usagewatch_ext'
6
6
 
7
- usw = UsagewatchExt
7
+ usw = Usagewatch
8
8
 
9
9
  puts "#{usw.uw_diskused} Gigabytes Used"
10
10
  puts "#{usw.uw_diskused_perc} Percentage of Gigabytes Used"
@@ -9,6 +9,7 @@ module UsagewatchExt
9
9
  puts "Mac version is under development"
10
10
  elsif os.include? "linux"
11
11
  require "usagewatch/linux"
12
+ UsagewatchExt = Usagewatch
12
13
  elsif os =~ /cygwin|mswin|mingw|bccwin|wince|emx/
13
14
  puts "Windows" + text
14
15
  else
@@ -1,4 +1,4 @@
1
- module UsagewatchExt
1
+ module Usagewatch
2
2
 
3
3
  # Show disk used in GB
4
4
  def self.uw_diskused
@@ -1,3 +1,3 @@
1
1
  module UsagewatchExt
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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 = UsagewatchExt
9
- a.should be UsagewatchExt
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 = UsagewatchExt.uw_diskused
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 = UsagewatchExt.uw_cpuused
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 = UsagewatchExt.uw_diskused_perc
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 = UsagewatchExt.uw_load
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 = UsagewatchExt.uw_cputop
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 = UsagewatchExt.uw_cputop
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
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
 
4
4
  describe 'Version' do
5
5
  it 'should be the version number' do
6
- a = Usagewatch::VERSION
6
+ a = UsagewatchExt::VERSION
7
7
  a.class.should be(String)
8
8
  a.should_not be_nil
9
9
  end
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.1
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