diff --git a/examples/mac_example.rb b/examples/mac_example.rb index 0fd0247..4d7bb52 100644 --- a/examples/mac_example.rb +++ b/examples/mac_example.rb @@ -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' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c431b20..81a6c1c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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 diff --git a/usagewatch_ext.gemspec b/usagewatch_ext.gemspec index e43bcb2..38ffa4d 100644 --- a/usagewatch_ext.gemspec +++ b/usagewatch_ext.gemspec @@ -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 = ["rderoldan1@gmail.com"] 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}