hwid 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hwid/base.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df832715e3641f71341f5efb2e661589d42519451718f991f2a4af110e7cb64e
|
4
|
+
data.tar.gz: 5c507bcb861ecb07404a92259eca992f26b7885bf7fc0ed77b921d6a8210df4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?("
|
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")
|