enterprise-ohai 0.1.4 → 0.1.5

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.
@@ -25,8 +25,7 @@ by_uuid_root = '/dev/disk/by-uuid'
25
25
 
26
26
  section.split("\n").each do |line|
27
27
  case line
28
- when '' then break
29
- when %r{^Error: (.*): } then path = $1
28
+ when %r{^Error: (.*): } then disks[$1] ||= Mash.new
30
29
  when %r{^Model: (.*)$} then info[:model] = $1
31
30
  when %r{^Disk (.*): (.*)$} then path, info[:size] = $1, $2
32
31
  when %r{^Number\s+} then headers = line.split(/\s{2,}/).map {|h| h.downcase.gsub(/\W/, '_') }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enterprise-ohai
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - GitHub