ruby-wmi 0.2.0 → 0.2.1

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.
@@ -1,4 +1,11 @@
1
- == 1.0.0 / 2007-07-19
1
+ == 0.2.1 / 2007-07-19
2
+
3
+ * minor enhancements
4
+ * fixed version numbers
5
+ * fixed sample code
6
+
7
+
8
+ == 0.2.0 / 2007-07-19
2
9
 
3
10
  * 1 major enhancement
4
11
  * Birthday!
@@ -1,5 +1,5 @@
1
1
  class Ruby_wmi
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
4
4
 
5
5
  $:.unshift(File.dirname(__FILE__)) unless
@@ -1,4 +1,4 @@
1
- require 'wmi'
1
+ require 'ruby-wmi'
2
2
 
3
3
  disks = WMI::Win32_LogicalDisk.find(:all)
4
4
 
@@ -1,10 +1,4 @@
1
- #~ 'active_wmi'
2
- #~ 'wmi_rb'
3
- #~ 'ruby-wmi'
4
- #~ 'rWMI'
5
- #~ 'wmi4r'
6
-
7
- require 'wmi'
1
+ require 'ruby-wmi'
8
2
 
9
3
  LOGOFF = 0
10
4
 
@@ -1,13 +1,13 @@
1
- require 'wmi'
1
+ require 'ruby-wmi'
2
2
 
3
- properties = ['Description','MaxCapacity','MemoryDevices','MemoryErrorCorrection']
3
+ properties = ['Description','MaxCapacity','MemoryDevices','MemoryErrorCorrection']
4
4
 
5
5
 
6
6
  mem = WMI::Win32_PhysicalMemoryArray.find(:all, :host => 'server1')
7
7
  mem.each{|i| puts properties.map{|p| "#{p}: #{i[p]}"}}
8
8
 
9
- mem2 = WMI::Win32_PhysicalMemoryArray.find(:all, {:host => 'server2', :credentials =>
10
- {:user => 'domain\\gordon', :passwd => 'password'}
9
+ mem2 = WMI::Win32_PhysicalMemoryArray.find(:all, {:host => 'server2', :credentials =>
10
+ {:user => 'domain\\gordon', :passwd => 'password'}
11
11
  }
12
12
  )
13
13
  mem2.each{|i| puts properties.map{|p| "#{p}: #{i[p]}"}}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-wmi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gordon Thiesfeld