hwid 0.2.7 → 0.2.8

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 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf5f02abc40d8fed666c54a114c57f9fb306e6cd
4
- data.tar.gz: 787f1663100f88f7380501cafc871e5d30846ff6
3
+ metadata.gz: 1faaf21f59377fe46496924d8134230232c17d11
4
+ data.tar.gz: 305bd8ce6cbc9480c854a7e889b7b43d1e71ae0b
5
5
  SHA512:
6
- metadata.gz: 3269367eea485271cabf0578b26b73ca8ef69dfb9e9a80c6751b202e9c1ffa67bb60e1c317219561f4059ce851f050daa41398adc2547089188a93fe0bd7d97e
7
- data.tar.gz: 3ed7fe15c4fb851c70b41708687f0ac8f4fbf7a3461b2c328063d3849d9c2fa48c8e69f209d37549967b6ab8d883d3c14a2f6ebcb0a8fc1d52f6de73041e77b0
6
+ metadata.gz: 8879627977daad9a40fd2f3c31eacf3b53526ff37f4e5dcbe928b57e39287f5c107d22bb3a004799ce551a5eb0daea089e39a305144745cd8ae2dc56b562246a
7
+ data.tar.gz: 3a6e0e43d35903a6e2895af3330b78d6b6576fbcca9b77dab43d8288193fa4bcda84cd95ed6cc6310054d193b67dc7d21745e41af0b7770a8a583bbc125f748e
@@ -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)
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.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Sproule