hwid 0.2.2 → 0.2.3

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 +7 -1
  3. data/lib/hwid/base.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f44c0fe7b1ff5a8cd16a63d653b30b280fa40aa
4
- data.tar.gz: 7d37970422730f21fa7a04d4a9051ac892999556
3
+ metadata.gz: 2d8f59d2a11ea5c7f6989bfb1fc5cb05b114f3c9
4
+ data.tar.gz: c0e5a283e8cba2a5d9fcbd057143d76430ab2e3f
5
5
  SHA512:
6
- metadata.gz: 184dcb46c742466b1715526314b70682882130970d808f36b97a51cff1e7f99264dabe7c88edbf54d08d4bc4fb789871ee06f1c217c7e0c6dd45055573c4f223
7
- data.tar.gz: b19a6d84e054b1e687f94676404473cf2553d76da9820626e042dba514534e8db8762f9c3be549365954c43df05b87a0db5415e68c2266d32faef5d74fdc7353
6
+ metadata.gz: f2db283b294bc44e775e3c8381484fd52fa338409513f0e02ff6b34727ae125447aa7527fa8896263d5e54eeff23949fc9c2071d2cf9ca6c49c3841d599fc35a
7
+ data.tar.gz: 8cb48d2597376d0072aec5a4e1ae6c7c6c28d7b518cbdc2f7aebd3ae79f55b86bdd0cacd2a2667b4311b8378a7e149eab15e8ff20e43ad0b8f92c3e48bc063e9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hwid (0.2.0)
4
+ hwid (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -24,3 +24,9 @@ DEPENDENCIES
24
24
  codeclimate-test-reporter
25
25
  hwid!
26
26
  minitest
27
+
28
+ RUBY VERSION
29
+ ruby 2.1.5p273
30
+
31
+ BUNDLED WITH
32
+ 1.14.6
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("lshw | grep -A 10 '*-cpu' | grep -oP '(serial: )\K.*'").split[1]
64
+ res=run_cmd("lshw | grep -A 10 '*-cpu' | grep -oP '(serial: )\K.*'").first
65
65
  puts "debian command result: #{res}"
66
66
  res
67
67
  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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule