sysinfo 0.7.0 → 0.7.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.
Files changed (4) hide show
  1. data/CHANGES.txt +4 -0
  2. data/lib/sysinfo.rb +3 -5
  3. data/sysinfo.gemspec +1 -1
  4. metadata +3 -3
@@ -1,6 +1,10 @@
1
1
  SYSINFO, CHANGES
2
2
 
3
3
 
4
+ #### 0.7.1 (2009-11-02) #############################
5
+
6
+ * CHANGE: Include ruby version and user name in standard dump.
7
+
4
8
  #### 0.7.0 (2009-08-24) #############################
5
9
 
6
10
  NOTE: SysInfo strings are not compatible with previous releases.
@@ -9,7 +9,7 @@ require 'time'
9
9
  # specifically lib/platform.rb.
10
10
  class SysInfo < Storable
11
11
  unless defined?(IMPLEMENTATIONS)
12
- VERSION = "0.7.0".freeze
12
+ VERSION = "0.7.1".freeze
13
13
  IMPLEMENTATIONS = [
14
14
 
15
15
  # These are for JRuby, System.getproperty('os.name').
@@ -77,6 +77,8 @@ class SysInfo < Storable
77
77
  def initialize
78
78
  @vm, @os, @impl, @arch = find_platform_info
79
79
  @hostname, @ipaddress_internal, @uptime = find_network_info
80
+ @ruby = RUBY_VERSION.split('.').collect { |v| v.to_i }
81
+ @user = ENV['USER']
80
82
  require 'Win32API' if @os == :windows && @vm == :ruby
81
83
  end
82
84
 
@@ -150,10 +152,6 @@ class SysInfo < Storable
150
152
  "#{@vm}-#{@os}-#{@impl}-#{@arch}".to_sym
151
153
  end
152
154
 
153
- # Returns Ruby version as an Array of Integers. e.g. [1,9,1]
154
- def ruby; RUBY_VERSION.split('.').collect { |v| v.to_i }; end
155
- # Return the name of the current user
156
- def user; ENV['USER']; end
157
155
  # Returns the environment paths as an Array
158
156
  def paths; execute_platform_specific(:paths); end
159
157
  # Returns the path to the current user's home directory
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "sysinfo"
3
3
  s.rubyforge_project = "sysinfo"
4
- s.version = "0.7.0"
4
+ s.version = "0.7.1"
5
5
  s.summary = "SysInfo: All your system-independent infoz in one handy class. "
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sysinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-24 00:00:00 -04:00
12
+ date: 2009-11-02 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements: []
78
78
 
79
79
  rubyforge_project: sysinfo
80
- rubygems_version: 1.3.2
80
+ rubygems_version: 1.3.5
81
81
  signing_key:
82
82
  specification_version: 3
83
83
  summary: "SysInfo: All your system-independent infoz in one handy class."