hwid 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hwid/base.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae578623aadb82add60583d3f22297c397ed64b2
|
4
|
+
data.tar.gz: c56ff62737da375ba13af64ef9f9b09081b18635
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 798db1548252def785bc993711ef8bd5ebe5bbafcf556f3ece47704069659dd7a7b4f1c17c4b20cc503d19fbb764a9befda51f5379453687c16c147fd705045b
|
7
|
+
data.tar.gz: 650009f4aeb88107238b06faa746c9f63da3e61858d52bfb34982dd0699e5a453774da7f22338eeeb195a254796fd331277b123a61c4f68a0fdf2b7450f1452e
|
data/Gemfile.lock
CHANGED
data/lib/hwid/base.rb
CHANGED
@@ -42,7 +42,10 @@ module Hwid
|
|
42
42
|
self.parse(res)
|
43
43
|
end
|
44
44
|
def get_linux_id
|
45
|
-
res=
|
45
|
+
res="Serial: unknown"
|
46
|
+
ifconfig_avail = !(ifconfig_path = `which ifconfig`.strip).empty? && File.executable(ifconfig_path)
|
47
|
+
res=run_cmd('ifconfig | grep HWaddr').split.last if ifconfig_avail
|
48
|
+
res
|
46
49
|
end
|
47
50
|
|
48
51
|
end # Class
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hwid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Sproule
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Get a rough hardware id of the system that the gem is running on
|
14
14
|
email: scott.sproule@ficonab.com
|