hwid 0.2.7 → 0.2.8
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 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1faaf21f59377fe46496924d8134230232c17d11
|
4
|
+
data.tar.gz: 305bd8ce6cbc9480c854a7e889b7b43d1e71ae0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8879627977daad9a40fd2f3c31eacf3b53526ff37f4e5dcbe928b57e39287f5c107d22bb3a004799ce551a5eb0daea089e39a305144745cd8ae2dc56b562246a
|
7
|
+
data.tar.gz: 3a6e0e43d35903a6e2895af3330b78d6b6576fbcca9b77dab43d8288193fa4bcda84cd95ed6cc6310054d193b67dc7d21745e41af0b7770a8a583bbc125f748e
|
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 << "ubuntu" if `uname -a`.include?('Ubuntu')
|
33
34
|
platform << "linux" if (/linux/ =~ RUBY_PLATFORM) != nil
|
34
35
|
platform
|
35
36
|
end
|
@@ -40,6 +41,7 @@ module Hwid
|
|
40
41
|
return get_rasp_id if platform.include?("raspberry 2")
|
41
42
|
return get_mac_id if platform.include?("mac")
|
42
43
|
return get_linuxdebian_id if platform.include?("debian") #virtaul box ??
|
44
|
+
return get_linuxdebian_id if platform.include?("ubuntu") #virtaul box ??
|
43
45
|
return get_linux_id if platform.include?("linux")
|
44
46
|
end
|
45
47
|
def run_cmd(cmd)
|