hwid 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d32bbef3deb4468c6390515d14ad8ff60b37ee6
4
- data.tar.gz: 23977fd022384631e90de804d510303435cae18f
3
+ metadata.gz: 1acbcdbe7bf7996eb7316f0116a2fa4d0d84bb95
4
+ data.tar.gz: 9664e30eaef53b64a8b7eacfc6472be47758f0f2
5
5
  SHA512:
6
- metadata.gz: c77a798313622eed2aebcec9a370b2d5a7b6c7674a823061503908db04c9180ad39e07039f8abff530ae7f6f835fd8477cb94c160814b479a7ae73ebdc8ff6a7
7
- data.tar.gz: f620a385f1451118a74356cd233f2bc4b7c3657c532654ed3dc9ef149163065e217d072f623da2a6cf59b80a95d964647cd8923d168dbd63433a38e1c4906e55
6
+ metadata.gz: 4397d9754e7a17a59d088936a212624c3e11810adfba52cbc52856df59ba5c9b1af1857ef3bc5b5143dfdbfe75c132fe60e2ffcd83ebbdba5828531e8cd864fa
7
+ data.tar.gz: 9d99f51347eed347d64da3ea1e1c6cfe81a5642ad961b5bcfb6160ebb7c90d744dea818c7c0eee69f3cdfbaef2a73062df0cffb5bd613c8c50b9e8160a69ce3c
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- ruby '2.0.0'
2
+ ruby '2.1.5'
3
3
  gem "codeclimate-test-reporter"
4
4
  gem "minitest"
5
5
  #gem "minitest-rails"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hwid (0.1.3)
4
+ hwid (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -11,7 +11,6 @@ Simple hwid id
11
11
  THis is not secure but gives a simple way to identify the hardware from a particular client application.
12
12
 
13
13
  It is a bit slow so perhaps only call it upon startup
14
-
15
14
 
16
15
  Usage
17
16
  =======
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'rubygems'
3
3
  require 'hwid'
4
- puts 'System id is:'
5
- puts Hwid.systemid
4
+ puts 'System id is: ' + Hwid.systemid
@@ -18,9 +18,10 @@ module Hwid
18
18
  end
19
19
  def systemid
20
20
  rasp=(/arm-linux/ =~ RUBY_PLATFORM) != nil
21
+ rasp2=(/armv7l-linux/ =~ RUBY_PLATFORM) != nil
21
22
  mac=(/darwin/ =~ RUBY_PLATFORM) != nil
22
23
  linux=(/linux/ =~ RUBY_PLATFORM) != nil
23
- return get_rasp_id if rasp
24
+ return get_rasp_id if rasp or rasp2
24
25
  return get_mac_id if mac
25
26
  return get_linux_id if linux
26
27
  end
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.5
4
+ version: 0.1.6
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-09-06 00:00:00.000000000 Z
11
+ date: 2015-09-01 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
@@ -76,17 +76,17 @@ require_paths:
76
76
  - lib
77
77
  required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - '>='
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: 1.3.4
87
87
  requirements: []
88
88
  rubyforge_project: hwid
89
- rubygems_version: 2.2.2
89
+ rubygems_version: 2.4.3
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Hardware id for mac and rasp pi (not secure)