hwid 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/hwid/base.rb +2 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d8f59d2a11ea5c7f6989bfb1fc5cb05b114f3c9
4
- data.tar.gz: c0e5a283e8cba2a5d9fcbd057143d76430ab2e3f
3
+ metadata.gz: 5b0808b5b056a8c1f9c13d85302bd744d8d26fae
4
+ data.tar.gz: 009384c5f4767f70232e9b1fe087b10caaf26447
5
5
  SHA512:
6
- metadata.gz: f2db283b294bc44e775e3c8381484fd52fa338409513f0e02ff6b34727ae125447aa7527fa8896263d5e54eeff23949fc9c2071d2cf9ca6c49c3841d599fc35a
7
- data.tar.gz: 8cb48d2597376d0072aec5a4e1ae6c7c6c28d7b518cbdc2f7aebd3ae79f55b86bdd0cacd2a2667b4311b8378a7e149eab15e8ff20e43ad0b8f92c3e48bc063e9
6
+ metadata.gz: d6d6d3eb156dcd749eb716a8cac548dba4e342fd704cb6d68be7e6982aa5858516218fc7d80d663ea6f4de86a0ed0f217c6b899ddacbe74ca1165e1d4e3b2731
7
+ data.tar.gz: fcf187aa1b4b66ddbecfcf61e896c4fa0bb94ee8a24b42524a72f3832ea40d5fdaea2bc813402561313b992671d9e4f7e13abd32f5543c6eee7e61906f5156b4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hwid (0.2.2)
4
+ hwid (0.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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: )\K.*'").first
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hwid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule