hwid 0.3.7 → 0.4.0

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hwid/base.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df832715e3641f71341f5efb2e661589d42519451718f991f2a4af110e7cb64e
4
- data.tar.gz: 5c507bcb861ecb07404a92259eca992f26b7885bf7fc0ed77b921d6a8210df4b
3
+ metadata.gz: 347ac63e9b96d23e4023bf5aadf258d5c80b5a0246361baeae9fea081287602c
4
+ data.tar.gz: 8dca11a19ca1ad94776702b3be99f0c78887e87af3f26a667b0368d8d85c087b
5
5
  SHA512:
6
- metadata.gz: 7e1a0afc9eade10a4ed31219650d12d15f8f17cae434dde489c5ed98fb1712bf17682a2bb4484a1b0a4eaffe812bbd2cedb096944bea8ed95de495e1ed618e2a
7
- data.tar.gz: 8e5f23cb646c81753fa6e4b8cc647bc670ba426b681a14984f822745efa0fda8d9b4400f56ed6f429e98696085df401644b6fb07a76b870553ad09ba159e622c
6
+ metadata.gz: 1124b3a1888b84ecd94cb80b98d192625b3f9bc7d99d3b22bf39eb88e48e618b72e08ab20d6022b07d351a2c6d9627f90ed31764b3b55a04fbe76abcaa50fd13
7
+ data.tar.gz: 35fc3b996254f7e2c365bf50121b81da8e6073d26073819515bb0b217cea6653388fbd7769f1e302dbf9ad897bc5856320c10442cd97b38db4fbbcc4b223328d
@@ -37,7 +37,7 @@ module Hwid
37
37
  end
38
38
  def systemid
39
39
  platform=get_platform
40
- # puts "platform is #{platform} #{RUBY_PLATFORM}"
40
+ puts "debug: platform is #{platform} #{RUBY_PLATFORM}"
41
41
  return get_rasp_id if platform.include?("raspberry")
42
42
  return get_rasp_id if platform.include?("raspberry 2")
43
43
  return get_mac_id if platform.include?("mac")
@@ -61,7 +61,7 @@ module Hwid
61
61
  end
62
62
  def get_windows_id
63
63
  puts "running windows linux sigh"
64
- res=run_cmd("lshw -quiet -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.*'")
64
+ res=run_cmd("lshw -quiet -class network -disable usb -disable spd | grep -oP '(serial: )\\K.*'")
65
65
  res=res.gsub("0000-","")
66
66
  res=res.gsum(":","")
67
67
  res=res.gsub("\n","")
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.3.7
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule