hwid 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/hwid/base.rb +4 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 647fe03df69a6ee4aa5925fad2ba7538287f13cc
4
- data.tar.gz: 5fe388fc26a5544a0d70e25599fa14e83d350130
3
+ metadata.gz: ae578623aadb82add60583d3f22297c397ed64b2
4
+ data.tar.gz: c56ff62737da375ba13af64ef9f9b09081b18635
5
5
  SHA512:
6
- metadata.gz: 6d56ff49b15441b9dac3ccda699bca7d80224f64c30e9bd8c13d2ae1db288915553d6f460096ada51ab23c21c5b51af2168cd914bed5732b459f61449e3a22d9
7
- data.tar.gz: 9ea93d9c0682320d2ba5de7185f382b3d1c2f761b6fe19afee0d6511ef299da95c70db870312db948e6c6f49c3032c82f7187fe3bbff9d2cca72acc4fcb749b2
6
+ metadata.gz: 798db1548252def785bc993711ef8bd5ebe5bbafcf556f3ece47704069659dd7a7b4f1c17c4b20cc503d19fbb764a9befda51f5379453687c16c147fd705045b
7
+ data.tar.gz: 650009f4aeb88107238b06faa746c9f63da3e61858d52bfb34982dd0699e5a453774da7f22338eeeb195a254796fd331277b123a61c4f68a0fdf2b7450f1452e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hwid (0.1.2)
4
+ hwid (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -42,7 +42,10 @@ module Hwid
42
42
  self.parse(res)
43
43
  end
44
44
  def get_linux_id
45
- res=run_cmd('ifconfig | grep HWaddr').split.last
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.3
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-08-17 00:00:00.000000000 Z
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