hwid 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hwid/base.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b0808b5b056a8c1f9c13d85302bd744d8d26fae
|
4
|
+
data.tar.gz: 009384c5f4767f70232e9b1fe087b10caaf26447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6d6d3eb156dcd749eb716a8cac548dba4e342fd704cb6d68be7e6982aa5858516218fc7d80d663ea6f4de86a0ed0f217c6b899ddacbe74ca1165e1d4e3b2731
|
7
|
+
data.tar.gz: fcf187aa1b4b66ddbecfcf61e896c4fa0bb94ee8a24b42524a72f3832ea40d5fdaea2bc813402561313b992671d9e4f7e13abd32f5543c6eee7e61906f5156b4
|
data/Gemfile.lock
CHANGED
data/lib/hwid/base.rb
CHANGED
@@ -61,7 +61,8 @@ module Hwid
|
|
61
61
|
end
|
62
62
|
def get_linuxdebian_id
|
63
63
|
res="Serial: unknown"
|
64
|
-
res=run_cmd("lshw | grep -A 10 '*-cpu' | grep -oP '(serial: )
|
64
|
+
res=run_cmd("lshw | grep -A 10 '*-cpu' | grep -oP '(serial: )\\K.*'")
|
65
|
+
res=res.chomp
|
65
66
|
puts "debian command result: #{res}"
|
66
67
|
res
|
67
68
|
end
|