hwid 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +9 -9
  4. data/lib/hwid/base.rb +4 -2
  5. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1faaf21f59377fe46496924d8134230232c17d11
4
- data.tar.gz: 305bd8ce6cbc9480c854a7e889b7b43d1e71ae0b
2
+ SHA256:
3
+ metadata.gz: 1b82456af18716d338fc91d02aa0b480cc4484e2d13bfd36aa9f667ed637d41e
4
+ data.tar.gz: ae2198c7e47d46b8b9455231c792b02c97063a161945a7a5ad71c6b302b115e5
5
5
  SHA512:
6
- metadata.gz: 8879627977daad9a40fd2f3c31eacf3b53526ff37f4e5dcbe928b57e39287f5c107d22bb3a004799ce551a5eb0daea089e39a305144745cd8ae2dc56b562246a
7
- data.tar.gz: 3a6e0e43d35903a6e2895af3330b78d6b6576fbcca9b77dab43d8288193fa4bcda84cd95ed6cc6310054d193b67dc7d21745e41af0b7770a8a583bbc125f748e
6
+ metadata.gz: 8a68c9c3cf0c3285776b6defb4c798f6b46e753acbde534d500907d44772c2d229ff812300598565058593e506818171f7baf0fc6bc99f33c5661fa5c4daab8a
7
+ data.tar.gz: 47f48d19bd5b310553dfcbae50f4cb9129c9603f3ca4a6bff556458704f9125b2d19136d3dedac3c94cb0beace110639fa4325df93e52efde67f9b10f2d5e5c9
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- ruby '2.1.5'
2
+ ruby '2.4.0'
3
3
  gem "codeclimate-test-reporter"
4
4
  gem "minitest"
5
5
  #gem "minitest-rails"
data/Gemfile.lock CHANGED
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hwid (0.2.4)
4
+ hwid (0.2.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- codeclimate-test-reporter (0.4.0)
10
- simplecov (>= 0.7.1, < 1.0.0)
9
+ codeclimate-test-reporter (1.0.9)
10
+ simplecov (<= 0.13)
11
11
  docile (1.1.5)
12
- minitest (5.4.0)
13
- multi_json (1.10.1)
14
- simplecov (0.9.0)
12
+ json (2.2.0)
13
+ minitest (5.11.3)
14
+ simplecov (0.13.0)
15
15
  docile (~> 1.1.0)
16
- multi_json
17
- simplecov-html (~> 0.8.0)
18
- simplecov-html (0.8.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.8
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-01-03 00:00:00.000000000 Z
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
- rubyforge_project: hwid
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)