sys-uname 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.9.2 - 1-May-2013
2
+ * Added a workaround for a win32ole thread bug. Thanks go to Tianlong Wu
3
+ for the spot.
4
+ * Altered platform handling slightly for Windows in the Rakefile.
5
+
1
6
  == 0.9.1 - 3-Jan-2013
2
7
  * Made FFI functions private.
3
8
  * Properly alias uname FFI function.
data/Rakefile CHANGED
@@ -20,9 +20,7 @@ namespace :gem do
20
20
  spec = eval(IO.read('sys-uname.gemspec'))
21
21
 
22
22
  if File::ALT_SEPARATOR
23
- spec.platform = Gem::Platform::CURRENT
24
- spec.platform.cpu = 'universal'
25
- spec.platform.version = nil
23
+ spec.platform = Gem::Platform::new(['universal', 'mingw32'])
26
24
  end
27
25
 
28
26
  Gem::Builder.new(spec).build
@@ -13,7 +13,7 @@ module Sys
13
13
  class Error < StandardError; end
14
14
 
15
15
  # The version of the sys-uname library
16
- VERSION = '0.9.1'
16
+ VERSION = '0.9.2'
17
17
 
18
18
  # :stopdoc
19
19
 
@@ -1,7 +1,15 @@
1
- require 'win32ole'
2
1
  require 'socket'
3
2
  require 'time'
4
3
 
4
+ # See Ruby bugs #2618 and #7681. This is a workaround.
5
+ BEGIN{
6
+ require 'win32ole'
7
+ if RUBY_VERSION.to_f < 2.0
8
+ WIN32OLE.ole_initialize
9
+ at_exit { WIN32OLE.ole_uninitialize }
10
+ end
11
+ }
12
+
5
13
  # The Sys module provides a namespace only.
6
14
  module Sys
7
15
 
@@ -12,7 +20,7 @@ module Sys
12
20
  class Error < StandardError; end
13
21
 
14
22
  # The version of the sys-uname library.
15
- VERSION = '0.9.1'
23
+ VERSION = '0.9.2'
16
24
 
17
25
  fields = %w[
18
26
  boot_device
data/sys-uname.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'sys-uname'
5
- spec.version = '0.9.1'
5
+ spec.version = '0.9.2'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.email = 'djberg96@gmail.com'
8
8
  spec.homepage = 'http://www.rubyforge.org/projects/sysutils'
@@ -14,7 +14,7 @@ class TC_Sys_Uname < Test::Unit::TestCase
14
14
  end
15
15
 
16
16
  test "version constant is set to expected value" do
17
- assert_equal('0.9.1', Uname::VERSION)
17
+ assert_equal('0.9.2', Uname::VERSION)
18
18
  end
19
19
 
20
20
  test "machine singleton method works as expected" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-uname
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-04 00:00:00.000000000 Z
12
+ date: 2013-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  requirements: []
74
74
  rubyforge_project: sysutils
75
- rubygems_version: 1.8.24
75
+ rubygems_version: 1.8.23
76
76
  signing_key:
77
77
  specification_version: 3
78
78
  summary: An interface for returning uname (platform) information