sys-uptime 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,12 @@
1
+ == 0.5.1 - 26-Jul-2007
2
+ * Fixed bug in the MS Windows version caused by incorrect parsing of an
3
+ MS specific date format (caused by a bug in Ruby 1.8.6). Thanks go to
4
+ Robert H. for the spot.
5
+ * Inlined the Rake installation tasks, so the install.rb file has been
6
+ removed.
7
+ * Added an 'install_gem' Rake task, and updated the README installation
8
+ instructions.
9
+
1
10
  == 0.5.0 - 30-Mar-2007
2
11
  * For platforms that use C code, the code now always uses the sysctl()
3
12
  function if supported by your system. This replaces the platform specific
data/README CHANGED
@@ -7,12 +7,8 @@
7
7
  A C compiler, except for MS Windows.
8
8
 
9
9
  = Installation
10
- === Manual
11
10
  rake test (optional)
12
- rake install
13
- === Gems
14
- ruby sys-uptime.gemspec
15
- gem install sys-uptime-X.Y.Z.gem # Where 'X.Y.Z' are version numbers
11
+ rake install (non-gem) or rake install_gem (gem).
16
12
 
17
13
  == Notes
18
14
  For additional documentation see doc/uptime.txt.
data/ext/extconf.rb CHANGED
@@ -13,6 +13,8 @@ if RUBY_PLATFORM =~ /windows|win32|cygwin|mingw|dos|linux/i
13
13
  exit
14
14
  end
15
15
 
16
+ dir_config('uptime')
17
+
16
18
  have_header('sys/loadavg.h')
17
19
 
18
20
  if have_func('sysctl')
data/ext/uptime.c CHANGED
@@ -51,7 +51,7 @@
51
51
 
52
52
  #define MAXSTRINGSIZE 32 /* reasonable limit */
53
53
 
54
- #define SYS_UPTIME_VERSION "0.5.0"
54
+ #define SYS_UPTIME_VERSION "0.5.1"
55
55
 
56
56
  VALUE cUptimeError;
57
57
 
data/test/tc_uptime.rb CHANGED
@@ -10,7 +10,7 @@ include Sys
10
10
 
11
11
  class TC_Uptime < Test::Unit::TestCase
12
12
  def test_version
13
- assert_equal('0.5.0', Uptime::VERSION)
13
+ assert_equal('0.5.1', Uptime::VERSION)
14
14
  end
15
15
 
16
16
  def test_seconds
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: sys-uptime
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.0
7
- date: 2007-03-30 00:00:00 -06:00
6
+ version: 0.5.1
7
+ date: 2007-07-26 00:00:00 -06:00
8
8
  summary: A Ruby interface for getting system uptime information.
9
9
  require_paths:
10
10
  - lib