hwid 0.3.6 → 0.3.7

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 +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df9b22d944cd80752570ecab0e5166e41346de4120ddb27f0bf9a52e9d5e4a43
4
- data.tar.gz: b37f213684bf33c0c29e0ced30b4c7fd293e287df608f781812667c36d1c45f8
3
+ metadata.gz: df832715e3641f71341f5efb2e661589d42519451718f991f2a4af110e7cb64e
4
+ data.tar.gz: 5c507bcb861ecb07404a92259eca992f26b7885bf7fc0ed77b921d6a8210df4b
5
5
  SHA512:
6
- metadata.gz: 7cddbba729bbdfe16009db4847f01e897c24ec712666822a7bfe128105d45c090a527a5584001f33287038a9d457bc4356210ce2f1da70b80ffa062961e426e9
7
- data.tar.gz: 6826a8ae18f63f7431c5ebc82b7bde80698d78139ded1e4179c175e22b1fb81484be59a2e5b62dfff6eea4f5ceb4c79b07f24c8f8bb02df09ae62282159455a3
6
+ metadata.gz: 7e1a0afc9eade10a4ed31219650d12d15f8f17cae434dde489c5ed98fb1712bf17682a2bb4484a1b0a4eaffe812bbd2cedb096944bea8ed95de495e1ed618e2a
7
+ data.tar.gz: 8e5f23cb646c81753fa6e4b8cc647bc670ba426b681a14984f822745efa0fda8d9b4400f56ed6f429e98696085df401644b6fb07a76b870553ad09ba159e622c
data/lib/hwid/base.rb CHANGED
@@ -30,6 +30,7 @@ module Hwid
30
30
  platform << "x86" if (/x86/ =~ RUBY_PLATFORM) != nil
31
31
  platform << "i686" if (/i686/ =~ RUBY_PLATFORM) != nil
32
32
  platform << "debian" if `uname -a`.include?('Debian')
33
+ platform << "microsoft" if `uname -a`.include?('Microsoft')
33
34
  platform << "ubuntu" if `uname -a`.include?('Ubuntu')
34
35
  platform << "linux" if (/linux/ =~ RUBY_PLATFORM) != nil
35
36
  platform
@@ -40,7 +41,7 @@ module Hwid
40
41
  return get_rasp_id if platform.include?("raspberry")
41
42
  return get_rasp_id if platform.include?("raspberry 2")
42
43
  return get_mac_id if platform.include?("mac")
43
- return get_windows_id if platform.include?("Microsoft")
44
+ return get_windows_id if platform.include?("microsoft")
44
45
  return get_linuxdebian_id if platform.include?("debian") #virtaul box ??
45
46
  return get_linuxdebian_id if platform.include?("ubuntu") #virtaul box ??
46
47
  return get_linux_id if platform.include?("linux")
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.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule