hwid 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/Gemfile.lock +9 -9
- data/lib/hwid/base.rb +4 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1b82456af18716d338fc91d02aa0b480cc4484e2d13bfd36aa9f667ed637d41e
|
4
|
+
data.tar.gz: ae2198c7e47d46b8b9455231c792b02c97063a161945a7a5ad71c6b302b115e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a68c9c3cf0c3285776b6defb4c798f6b46e753acbde534d500907d44772c2d229ff812300598565058593e506818171f7baf0fc6bc99f33c5661fa5c4daab8a
|
7
|
+
data.tar.gz: 47f48d19bd5b310553dfcbae50f4cb9129c9603f3ca4a6bff556458704f9125b2d19136d3dedac3c94cb0beace110639fa4325df93e52efde67f9b10f2d5e5c9
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hwid (0.2.
|
4
|
+
hwid (0.2.9)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
codeclimate-test-reporter (0.
|
10
|
-
simplecov (
|
9
|
+
codeclimate-test-reporter (1.0.9)
|
10
|
+
simplecov (<= 0.13)
|
11
11
|
docile (1.1.5)
|
12
|
-
|
13
|
-
|
14
|
-
simplecov (0.
|
12
|
+
json (2.2.0)
|
13
|
+
minitest (5.11.3)
|
14
|
+
simplecov (0.13.0)
|
15
15
|
docile (~> 1.1.0)
|
16
|
-
|
17
|
-
simplecov-html (~> 0.
|
18
|
-
simplecov-html (0.
|
16
|
+
json (>= 1.8, < 3)
|
17
|
+
simplecov-html (~> 0.10.0)
|
18
|
+
simplecov-html (0.10.2)
|
19
19
|
|
20
20
|
PLATFORMS
|
21
21
|
ruby
|
data/lib/hwid/base.rb
CHANGED
@@ -64,8 +64,10 @@ module Hwid
|
|
64
64
|
def get_linuxdebian_id
|
65
65
|
res="Serial: unknown"
|
66
66
|
# 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.*
|
67
|
-
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.*'")
|
68
|
-
|
67
|
+
# 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.*'")
|
68
|
+
res=run_cmd(" lshw -quiet -class cpu -class network -disable usb -disable pci -disable cpuinfo -disable dmi -disable memory -disable isapnp -disable ide -disable device-tree -disable spd | grep -oP '(serial: )\K.*'")
|
69
|
+
res=res.gsub("0000-","")
|
70
|
+
res=res.gsub("\n","")
|
69
71
|
#res=run_cmd("lshw | grep -A 10 '*-cpu' | grep -oP '(serial: )\\K.*'")
|
70
72
|
#puts "Interim result is #{res.inspect}"
|
71
73
|
res=res.chomp
|
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.9
|
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-
|
11
|
+
date: 2019-03-28 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
|
@@ -109,8 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 1.3.4
|
111
111
|
requirements: []
|
112
|
-
|
113
|
-
rubygems_version: 2.4.3
|
112
|
+
rubygems_version: 3.0.2
|
114
113
|
signing_key:
|
115
114
|
specification_version: 4
|
116
115
|
summary: Hardware id for mac and rasp pi (not secure)
|