hwid 0.4.3 → 0.4.4
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 +5 -4
- 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: a026efd18eec5bbbbf010fc70042a5002a98118ae7084d59422b111099eb2c1f
|
4
|
+
data.tar.gz: 7d37c477509db219459b659b2c526f7698828e552ef35572967f04f5cdb2da24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57f1c1a984759a680760de8836f53a32e91dbfa46c945d6c3eb053200e659112a5181d9686c64e012f28a8ba67f8f41d8490e03e48e9d929044f7a8377f60eb9
|
7
|
+
data.tar.gz: 50f19e07b7ef730897f3b75773105791ac7c1e9967e25eb0ee45996a8cbc91cb4b11adb05a28611f5164796f2b69e47643494d2258d28bdb178c9c122df2d3a8
|
data/lib/hwid/base.rb
CHANGED
@@ -22,7 +22,8 @@ module Hwid
|
|
22
22
|
# returns array of platforms
|
23
23
|
def get_platform
|
24
24
|
platform=[]
|
25
|
-
|
25
|
+
testos=`uname -a`
|
26
|
+
puts "osname is #{testos}"
|
26
27
|
platform << "raspberry" if (/arm-linux/ =~ RUBY_PLATFORM) != nil and `uname -a`.include?('armv6')
|
27
28
|
platform << "raspberry" if `uname -a`.include?('armv6')
|
28
29
|
platform << "raspberry 2" if (/armv7l-linux/ =~ RUBY_PLATFORM) != nil and !`uname -a`.include?('armv6')
|
@@ -30,9 +31,9 @@ module Hwid
|
|
30
31
|
platform << "arm" if (/arm/ =~ RUBY_PLATFORM) != nil
|
31
32
|
platform << "x86" if (/x86/ =~ RUBY_PLATFORM) != nil
|
32
33
|
platform << "i686" if (/i686/ =~ RUBY_PLATFORM) != nil
|
33
|
-
platform << "microsoft" if
|
34
|
-
platform << "debian" if
|
35
|
-
platform << "ubuntu" if
|
34
|
+
platform << "microsoft" if testos.include?('Microsoft')
|
35
|
+
platform << "debian" if testos.include?('Debian')
|
36
|
+
platform << "ubuntu" if testos.include?('Ubuntu')
|
36
37
|
platform << "linux" if (/linux/ =~ RUBY_PLATFORM) != nil
|
37
38
|
platform
|
38
39
|
end
|