radbeacon 0.1.2 → 0.1.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 +4 -4
- data/Gemfile.lock +15 -12
- data/lib/radbeacon/bluetooth_le_device.rb +1 -1
- data/lib/radbeacon/usb.rb +6 -3
- data/lib/radbeacon/version.rb +1 -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: acbace96d85649544d6bd94f74cc024e5eec4906
|
|
4
|
+
data.tar.gz: a933ac298ca2e668265340de86d62cb2ec9cfe50
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a684e57b932f5ae3ac208342873d0ea761a4e2f121a56f4196dd2af2b7e690ff5f6c0b615a1dd3e0dbb4d0abffaa80ea028a8306c23f1dd051f168bcbea0fd6b
|
|
7
|
+
data.tar.gz: c0ddc583bbf25a503fe4652e02690b3839bf9d13b30d0515321cbad399e4ac77eea385efd650a6150413422b25142c16847e3af2402bd556aae01f3e6a9168f5
|
data/Gemfile.lock
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
radbeacon (0.1.
|
|
4
|
+
radbeacon (0.1.3)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
9
|
diff-lcs (1.2.5)
|
|
10
10
|
rake (10.1.0)
|
|
11
|
-
rspec (3.
|
|
12
|
-
rspec-core (~> 3.
|
|
13
|
-
rspec-expectations (~> 3.
|
|
14
|
-
rspec-mocks (~> 3.
|
|
15
|
-
rspec-core (3.
|
|
16
|
-
rspec-support (~> 3.
|
|
17
|
-
rspec-expectations (3.
|
|
11
|
+
rspec (3.4.0)
|
|
12
|
+
rspec-core (~> 3.4.0)
|
|
13
|
+
rspec-expectations (~> 3.4.0)
|
|
14
|
+
rspec-mocks (~> 3.4.0)
|
|
15
|
+
rspec-core (3.4.4)
|
|
16
|
+
rspec-support (~> 3.4.0)
|
|
17
|
+
rspec-expectations (3.4.0)
|
|
18
18
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
-
rspec-support (~> 3.
|
|
20
|
-
rspec-mocks (3.
|
|
19
|
+
rspec-support (~> 3.4.0)
|
|
20
|
+
rspec-mocks (3.4.1)
|
|
21
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
-
rspec-support (~> 3.
|
|
23
|
-
rspec-support (3.
|
|
22
|
+
rspec-support (~> 3.4.0)
|
|
23
|
+
rspec-support (3.4.1)
|
|
24
24
|
|
|
25
25
|
PLATFORMS
|
|
26
26
|
ruby
|
|
@@ -30,3 +30,6 @@ DEPENDENCIES
|
|
|
30
30
|
radbeacon!
|
|
31
31
|
rake (~> 10.0)
|
|
32
32
|
rspec (~> 3.2)
|
|
33
|
+
|
|
34
|
+
BUNDLED WITH
|
|
35
|
+
1.12.4
|
data/lib/radbeacon/usb.rb
CHANGED
|
@@ -137,9 +137,12 @@ module Radbeacon
|
|
|
137
137
|
con(lock_commands)
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
protected
|
|
141
|
+
|
|
141
142
|
attr_writer :mac_address, :errors, :dev_model, :dev_id, :dev_version
|
|
142
143
|
|
|
144
|
+
private
|
|
145
|
+
|
|
143
146
|
def defaults
|
|
144
147
|
@dev_name = "RadBeacon USB"
|
|
145
148
|
@uuid = "2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6"
|
|
@@ -154,8 +157,8 @@ module Radbeacon
|
|
|
154
157
|
def con(commands)
|
|
155
158
|
@errors = []
|
|
156
159
|
result = false
|
|
157
|
-
|
|
158
|
-
PTY.spawn(
|
|
160
|
+
cmd_line = "gatttool -b #{@mac_address} --interactive"
|
|
161
|
+
PTY.spawn(cmd_line) do |output, input, pid|
|
|
159
162
|
output.expect(/\[LE\]>/)
|
|
160
163
|
input.puts "connect"
|
|
161
164
|
if output.expect(/Connection successful/, TIMEOUT)
|
data/lib/radbeacon/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: radbeacon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.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:
|
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|