sysinfo 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES.txt +6 -0
  2. data/bin/sysinfo +2 -2
  3. data/lib/sysinfo.rb +4 -10
  4. data/sysinfo.gemspec +1 -1
  5. metadata +62 -50
data/CHANGES.txt CHANGED
@@ -1,5 +1,11 @@
1
1
  SYSINFO, CHANGES
2
2
 
3
+ #### 0.8.0 (2012-04-30) #############################
4
+
5
+ * CHANGE: Removed #to_s
6
+ * CHANGE: #platform now returns VM-OS-IMPL-ARCH
7
+ * CHANGE: json is the default output format
8
+
3
9
  #### 0.7.2 (2010-02-12) #############################
4
10
 
5
11
  * CHANGE: Removed hanna dependency [Diego Elio 'Flameeyes' Pettenò]
data/bin/sysinfo CHANGED
@@ -29,9 +29,9 @@ module SysInfoCLI #:nodoc:
29
29
  about "Display system information"
30
30
  command :info do |obj|
31
31
  format = obj.global.format || :string
32
- format = :yaml if obj.global.verbose == true
32
+ format = :json if obj.global.verbose == true
33
33
  si = SysInfo.new
34
- puts si.dump(format)
34
+ puts format.to_s == 'string' ? si.platform : si.dump(format)
35
35
  end
36
36
 
37
37
  about "Display list of known architectures"
data/lib/sysinfo.rb CHANGED
@@ -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.3".freeze
12
+ VERSION = "0.8.0".freeze
13
13
  IMPLEMENTATIONS = [
14
14
 
15
15
  # These are for JRuby, System.getproperty('os.name').
@@ -140,16 +140,10 @@ class SysInfo < Storable
140
140
  Socket.do_not_reverse_lookup = orig
141
141
  end
142
142
 
143
- # Returns a Symbol of the short platform descriptor in the format: VM-OS
144
- # e.g. <tt>:java-unix</tt>
145
- def platform
146
- "#{@vm}-#{@os}".to_sym
147
- end
148
-
149
143
  # Returns a String of the full platform descriptor in the format: VM-OS-IMPL-ARCH
150
144
  # e.g. <tt>java-unix-osx-x86_64</tt>
151
- def to_s(*args)
152
- "#{@vm}-#{@os}-#{@impl}-#{@arch}".to_sym
145
+ def platform
146
+ "#{@vm}-#{@os}-#{@impl}-#{@arch}"
153
147
  end
154
148
 
155
149
  # Returns the environment paths as an Array
@@ -275,5 +269,5 @@ end
275
269
 
276
270
 
277
271
  if $0 == __FILE__
278
- puts SysInfo.new.to_yaml
272
+ puts SysInfo.new.dump('json')
279
273
  end
data/sysinfo.gemspec CHANGED
@@ -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.3"
4
+ s.version = "0.8.0"
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,47 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sysinfo
3
- version: !ruby/object:Gem::Version
4
- version: 0.7.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.0
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Delano Mandelbaum
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
-
12
- date: 2010-02-20 00:00:00 -05:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: storable
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
17
22
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
26
31
  name: drydock
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
27
38
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
35
- description: "SysInfo: All your system-independent infoz in one handy class."
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: ! 'SysInfo: All your system-independent infoz in one handy class.'
36
47
  email: delano@solutious.com
37
- executables:
48
+ executables:
38
49
  - sysinfo
39
50
  extensions: []
40
-
41
- extra_rdoc_files:
51
+ extra_rdoc_files:
42
52
  - README.rdoc
43
53
  - LICENSE.txt
44
- files:
54
+ files:
45
55
  - CHANGES.txt
46
56
  - LICENSE.txt
47
57
  - README.rdoc
@@ -49,37 +59,39 @@ files:
49
59
  - bin/sysinfo
50
60
  - lib/sysinfo.rb
51
61
  - sysinfo.gemspec
52
- has_rdoc: true
53
62
  homepage: http://solutious.com/
54
63
  licenses: []
55
-
56
64
  post_install_message:
57
- rdoc_options:
65
+ rdoc_options:
58
66
  - --line-numbers
59
67
  - --title
60
- - "SysInfo: All your system-independent infoz in one handy class."
68
+ - ! 'SysInfo: All your system-independent infoz in one handy class.'
61
69
  - --main
62
70
  - README.rdoc
63
- require_paths:
71
+ require_paths:
64
72
  - lib
65
- required_ruby_version: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: "0"
70
- version:
71
- required_rubygems_version: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: "0"
76
- version:
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ segments:
80
+ - 0
81
+ hash: 1706058782098846642
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ segments:
89
+ - 0
90
+ hash: 1706058782098846642
77
91
  requirements: []
78
-
79
92
  rubyforge_project: sysinfo
80
- rubygems_version: 1.3.5
93
+ rubygems_version: 1.8.22
81
94
  signing_key:
82
95
  specification_version: 3
83
- summary: "SysInfo: All your system-independent infoz in one handy class."
96
+ summary: ! 'SysInfo: All your system-independent infoz in one handy class.'
84
97
  test_files: []
85
-