sys-uname 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +5 -0
- data/Rakefile +1 -3
- data/lib/unix/sys/uname.rb +1 -1
- data/lib/windows/sys/uname.rb +10 -2
- data/sys-uname.gemspec +1 -1
- data/test/test_sys_uname.rb +1 -1
- metadata +3 -3
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::
|
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
|
data/lib/unix/sys/uname.rb
CHANGED
data/lib/windows/sys/uname.rb
CHANGED
@@ -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.
|
23
|
+
VERSION = '0.9.2'
|
16
24
|
|
17
25
|
fields = %w[
|
18
26
|
boot_device
|
data/sys-uname.gemspec
CHANGED
data/test/test_sys_uname.rb
CHANGED
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.
|
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
|
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.
|
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
|