scan_beacon 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 550976870aa3d7f518228e93593726e616bffc66
4
- data.tar.gz: b0517dacd6c2fa94ac86832fecbc546e33fe0dbc
3
+ metadata.gz: 453a795addb54b043ac29982f0395fbb5743a1d0
4
+ data.tar.gz: 4fd59e1a99885c0cf5e17cd7877ad363e73a0c1b
5
5
  SHA512:
6
- metadata.gz: c9dc9cf1415db8bb9f0c09e2d3b600698b36dc0a37a53daf28b144cb22d1b30bfc472e8bba55f8da3425883b2f36372f8a42bcd5bf86c139bc72065d2a9ca23b
7
- data.tar.gz: 9478e8d3767d8d2279cd3f7eb91f5b1ce1d4006e8dc98f8cc4fcf563ad745806a552be30919c47d23b74d8237e99cacb4c5587b130698e88b53d5338e343da5a
6
+ metadata.gz: 582c93d0c9fbf5ea888c9dab95bf497f96117c59a728af7d4c50cd123ebe718d487153e249e1095fa284f792d43f7b41999d902ba1643ba0a9ed31af5ac0a349
7
+ data.tar.gz: 49edf9cc43da116604e454ace44e45916acf6f688ba4834954e1994bf07bf830efa6f00dd6c58d87b517c15aa013cb27b3ed7586e4a2c7f446aaa92d3add6972
@@ -60,7 +60,7 @@ module ScanBeacon
60
60
  # use a timeout here because we're using this to detect BLE112s and if it
61
61
  # isn't one, it may not respond right away
62
62
  response = bg_command(@file, BG_MSG_CLASS_SYSTEM, BG_GET_ADDRESS,nil,nil,0.2)
63
- response[4..-1].reverse.unpack("H2:H2:H2:H2:H2:H2").join(":") if response.length == 10
63
+ response[4..-1].reverse.unpack("H2:H2:H2:H2:H2:H2").join(":") if response && response.length == 10
64
64
  end
65
65
 
66
66
  def start_scan
@@ -1,3 +1,3 @@
1
1
  module ScanBeacon
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scan_beacon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radius Networks
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-01 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler