Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rderoldan1 committed Jul 25, 2013
1 parent 40a15ae commit a6dbdb3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/mac_example.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/ruby

#License: (MIT), Copyright (C) 2013 Author Phil Chen, Contributor Ruben Espinosa
#License: (MIT), Copyright (C) 2013 Author Ruben Espinosa

require 'usagewatch_ext'

Expand Down
11 changes: 9 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
require 'rubygems'
require 'bundler/setup'
require 'usagewatch'
require 'usagewatch_ext'
require 'coveralls'
Coveralls.wear!

os = RUBY_PLATFORM
if os.include? "darwin"
require "usagewatch_ext"
puts "Testing Mac Version"
elsif os.include? "linux"
require "usagewatch"
puts "Testing Linux Version"
end

RSpec.configure do |config|

end
2 changes: 1 addition & 1 deletion usagewatch_ext.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require 'usagewatch_ext/version'
Gem::Specification.new do |spec|
spec.name = "usagewatch_ext"
spec.version = UsagewatchExt::VERSION
spec.authors = ["Ruben Espinosa"]
spec.authors = ["Ruben Espinosa, Phil Chen"]
spec.email = ["[email protected]"]
spec.description = %q{A Ruby Gem with methods to find usage statistics such as CPU, Disk, TCP/UDP Connections, Load, Bandwidth, Disk I/O, and Memory}
spec.summary = %q{Extended version of usagewatch}
Expand Down

0 comments on commit a6dbdb3

Please sign in to comment.