hwid 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hwid/base.rb +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4dc288d856c21d038400075d15a935a42919016
4
- data.tar.gz: 028d331013a3016c04004d59e1f08e50fd544c02
3
+ metadata.gz: cf5f02abc40d8fed666c54a114c57f9fb306e6cd
4
+ data.tar.gz: 787f1663100f88f7380501cafc871e5d30846ff6
5
5
  SHA512:
6
- metadata.gz: c8369ed0d0da949f8e7b99660b9f81011465bd6a9b375b5a9b8caada003602405c2b6044b0cc55ddd9585ef8cb913bee87fcc9f3c84654f671d14dc62bea993b
7
- data.tar.gz: 33d6f3e9ec7205d803ed452926471071e1ab939acae23acea55f9041ff4e60496e87956888b1f6b4e711b4508d4ba4984028fba6ee855a5b1e77cd6b844c8d02
6
+ metadata.gz: 3269367eea485271cabf0578b26b73ca8ef69dfb9e9a80c6751b202e9c1ffa67bb60e1c317219561f4059ce851f050daa41398adc2547089188a93fe0bd7d97e
7
+ data.tar.gz: 3ed7fe15c4fb851c70b41708687f0ac8f4fbf7a3461b2c328063d3849d9c2fa48c8e69f209d37549967b6ab8d883d3c14a2f6ebcb0a8fc1d52f6de73041e77b0
@@ -61,8 +61,11 @@ 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: )\\K.*'")
65
- puts "Interim result is #{res.inspect}"
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.6
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-02 00:00:00.000000000 Z
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