hwid 0.2.1 → 0.2.2

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 +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 121de5c69126fcf97f7658e1d2a0afa74700c6ea
4
- data.tar.gz: a4675ee583d8becb73ae10c93da23fdb0e51d995
3
+ metadata.gz: 0f44c0fe7b1ff5a8cd16a63d653b30b280fa40aa
4
+ data.tar.gz: 7d37970422730f21fa7a04d4a9051ac892999556
5
5
  SHA512:
6
- metadata.gz: 0a2043702247ff470b310226499b8cba764d729e27e34b37651ecada74dbb7144017628c09a7087f8b544ccec728db29b39830046c6dae247ce2d4f17bcaddd8
7
- data.tar.gz: 23887b4d78d4927c490d6028705fae4fabe12ed1aa9390f5b092bf9c37ad3921a6cd4dd00707016ce4e4d0afc6d1eff48d55cb98abd62e0c4e702bfb604ad718
6
+ metadata.gz: 184dcb46c742466b1715526314b70682882130970d808f36b97a51cff1e7f99264dabe7c88edbf54d08d4bc4fb789871ee06f1c217c7e0c6dd45055573c4f223
7
+ data.tar.gz: b19a6d84e054b1e687f94676404473cf2553d76da9820626e042dba514534e8db8762f9c3be549365954c43df05b87a0db5415e68c2266d32faef5d74fdc7353
data/lib/hwid/base.rb CHANGED
@@ -61,7 +61,7 @@ module Hwid
61
61
  end
62
62
  def get_linuxdebian_id
63
63
  res="Serial: unknown"
64
- res=run_cmd('ip addr show | grep link/ether').split[1]
64
+ res=run_cmd("lshw | grep -A 10 '*-cpu' | grep -oP '(serial: )\K.*'").split[1]
65
65
  puts "debian command result: #{res}"
66
66
  res
67
67
  end
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-30 00:00:00.000000000 Z
11
+ date: 2019-01-02 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