diff --git a/bindings/ruby/examples/cpu_info.rb b/bindings/ruby/examples/cpu_info.rb index a38dec8d..94931666 100644 --- a/bindings/ruby/examples/cpu_info.rb +++ b/bindings/ruby/examples/cpu_info.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' sigar = Sigar.new diff --git a/bindings/ruby/examples/df.rb b/bindings/ruby/examples/df.rb index 38a02014..3668aada 100644 --- a/bindings/ruby/examples/df.rb +++ b/bindings/ruby/examples/df.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' def format_size(size) return Sigar.format_size(size * 1024) diff --git a/bindings/ruby/examples/free.rb b/bindings/ruby/examples/free.rb index 71007a89..b2005e7f 100644 --- a/bindings/ruby/examples/free.rb +++ b/bindings/ruby/examples/free.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' sigar = Sigar.new mem = sigar.mem diff --git a/bindings/ruby/examples/ifconfig.rb b/bindings/ruby/examples/ifconfig.rb index d0cf21cd..45412192 100644 --- a/bindings/ruby/examples/ifconfig.rb +++ b/bindings/ruby/examples/ifconfig.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' sigar = Sigar.new iflist = sigar.net_interface_list diff --git a/bindings/ruby/examples/logging.rb b/bindings/ruby/examples/logging.rb index a0524c24..e9845880 100644 --- a/bindings/ruby/examples/logging.rb +++ b/bindings/ruby/examples/logging.rb @@ -1,6 +1,6 @@ # Example illustrating the use of the optional logger. -require 'rbsigar' +require 'sigar' require 'logger' sigar = Sigar.new diff --git a/bindings/ruby/examples/net_info.rb b/bindings/ruby/examples/net_info.rb index 22ca59c5..af22fe05 100644 --- a/bindings/ruby/examples/net_info.rb +++ b/bindings/ruby/examples/net_info.rb @@ -1,6 +1,6 @@ # Example illustrating the collecting of network information. -require 'rbsigar' +require 'sigar' sigar = Sigar.new diff --git a/bindings/ruby/examples/netstat.rb b/bindings/ruby/examples/netstat.rb index 9903f281..b1b726ab 100644 --- a/bindings/ruby/examples/netstat.rb +++ b/bindings/ruby/examples/netstat.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' require 'socket' #XXX this example is incomplete wrt: diff --git a/bindings/ruby/examples/pargs.rb b/bindings/ruby/examples/pargs.rb index 92c7876b..fde9b4cd 100644 --- a/bindings/ruby/examples/pargs.rb +++ b/bindings/ruby/examples/pargs.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' def output(sigar, pid) args = sigar.proc_args(pid) diff --git a/bindings/ruby/examples/penv.rb b/bindings/ruby/examples/penv.rb index 1ca054c8..c2250ad0 100644 --- a/bindings/ruby/examples/penv.rb +++ b/bindings/ruby/examples/penv.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' def output(sigar, pid) env = sigar.proc_env(pid) diff --git a/bindings/ruby/examples/route.rb b/bindings/ruby/examples/route.rb index 5978b7cd..d51e2d5a 100644 --- a/bindings/ruby/examples/route.rb +++ b/bindings/ruby/examples/route.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' def flags(flags) f = "" diff --git a/bindings/ruby/examples/version.rb b/bindings/ruby/examples/version.rb index fbcccdf1..865af841 100644 --- a/bindings/ruby/examples/version.rb +++ b/bindings/ruby/examples/version.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' require 'rbconfig' puts "Sigar version......." + Sigar::VERSION diff --git a/bindings/ruby/examples/who.rb b/bindings/ruby/examples/who.rb index ab29574b..0bb921f9 100644 --- a/bindings/ruby/examples/who.rb +++ b/bindings/ruby/examples/who.rb @@ -1,4 +1,4 @@ -require 'rbsigar' +require 'sigar' def format_time(who) return Time.at(who.time).strftime("%b %e %H:%M") diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb index 648f6e6f..0d4b4512 100644 --- a/bindings/ruby/extconf.rb +++ b/bindings/ruby/extconf.rb @@ -1,7 +1,7 @@ require 'mkmf' require 'rbconfig' -extension_name = 'rbsigar' +extension_name = 'sigar' print 'Ruby platform=' + RUBY_PLATFORM + "\n" diff --git a/bindings/ruby/rbsigar.c b/bindings/ruby/rbsigar.c index ab650c56..6d598f0d 100644 --- a/bindings/ruby/rbsigar.c +++ b/bindings/ruby/rbsigar.c @@ -815,7 +815,7 @@ static void Init_rbsigar_version(VALUE rclass) RB_SIGAR_DEFINE_CONST_STR("VERSION", sv->version); } -void Init_rbsigar(void) +void Init_sigar(void) { VALUE rclass = rb_define_class("Sigar", rb_cObject); diff --git a/bindings/ruby/test/helper.rb b/bindings/ruby/test/helper.rb index 32ff247f..cab818a0 100644 --- a/bindings/ruby/test/helper.rb +++ b/bindings/ruby/test/helper.rb @@ -1,5 +1,5 @@ require 'test/unit' -require 'rbsigar' +require 'sigar' module Test::Unit::Assertions def assert_gt_eq_zero(value, message)