hwid 0.4.3 → 0.4.4

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 +5 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c96072e38d1e5e0588ee1e07933040f4a73e8575525d5259c94adac3b37196e0
4
- data.tar.gz: 912ad6268eb868d51acf35458ee2fcfae60fbfe3515312d798a54fa4f3663ec9
3
+ metadata.gz: a026efd18eec5bbbbf010fc70042a5002a98118ae7084d59422b111099eb2c1f
4
+ data.tar.gz: 7d37c477509db219459b659b2c526f7698828e552ef35572967f04f5cdb2da24
5
5
  SHA512:
6
- metadata.gz: 0076ee5b029f906868342c64c9e46163c10afe5dbf811ff3690bbf9fa075becb110a9660c24e2329f045f1b50039007f6eb6a352399b052b29abc7e7e3813ae7
7
- data.tar.gz: 774f65b97b8031f24d03d3ae395cba55335378fa0ea22006af033c26c6304d2ea8628a7a85b99c49d0bf2692cb263b55b85cb39ba5c0b089a50ac87217f1ba7d
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
- puts "Unname is `uname -a`"
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 `uname -a`.include?('Microsoft')
34
- platform << "debian" if `uname -a`.include?('Debian')
35
- platform << "ubuntu" if `uname -a`.include?('Ubuntu')
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
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.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule