hwid 0.2.6 → 0.2.7
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.
- checksums.yaml +4 -4
- data/lib/hwid/base.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf5f02abc40d8fed666c54a114c57f9fb306e6cd
|
4
|
+
data.tar.gz: 787f1663100f88f7380501cafc871e5d30846ff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3269367eea485271cabf0578b26b73ca8ef69dfb9e9a80c6751b202e9c1ffa67bb60e1c317219561f4059ce851f050daa41398adc2547089188a93fe0bd7d97e
|
7
|
+
data.tar.gz: 3ed7fe15c4fb851c70b41708687f0ac8f4fbf7a3461b2c328063d3849d9c2fa48c8e69f209d37549967b6ab8d883d3c14a2f6ebcb0a8fc1d52f6de73041e77b0
|
data/lib/hwid/base.rb
CHANGED
@@ -61,8 +61,11 @@ module Hwid
|
|
61
61
|
end
|
62
62
|
def get_linuxdebian_id
|
63
63
|
res="Serial: unknown"
|
64
|
-
|
65
|
-
|
64
|
+
# lshw -quiet -class cpu -disable usb -disable network -disable pci -disable cpuinfo -disable dmi -disable memory -disable isapnp -disable ide -disable device-tree -disable spd | grep -oP '(serial: )\K.*
|
65
|
+
res=run_cmd("lshw -quiet -class cpu -disable usb -disable network -disable pci -disable cpuinfo -disable dmi -disable memory -disable isapnp -disable ide -disable device-tree -disable spd | grep -oP '(serial: )\\K.*'")
|
66
|
+
|
67
|
+
#res=run_cmd("lshw | grep -A 10 '*-cpu' | grep -oP '(serial: )\\K.*'")
|
68
|
+
#puts "Interim result is #{res.inspect}"
|
66
69
|
res=res.chomp
|
67
70
|
puts "debian command result: #{res}"
|
68
71
|
res
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hwid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Sproule
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Get a rough hardware id of the system that the gem is running on
|
14
14
|
email: scott.sproule@ficonab.com
|