radbeacon 0.1.2 → 0.1.3

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: 0b27bf9cb74b691a408265c6305d9319985844b7
4
- data.tar.gz: 48c26c0c8a839c840a16593b2461450594daf544
3
+ metadata.gz: acbace96d85649544d6bd94f74cc024e5eec4906
4
+ data.tar.gz: a933ac298ca2e668265340de86d62cb2ec9cfe50
5
5
  SHA512:
6
- metadata.gz: 8e72075ccbd5136d236bea05ecbbd9214b6f8aaae9c5bfc1b3d48140957b100f83838f74d69e32e7440bf48b945e3811c4f42e6615bad45c23f1faeceade6315
7
- data.tar.gz: 46cf1db04fe6e64dc4900132b57c1b51e20ecca783c510bc2a0e82d6764bd5dcd5f04fd1c50382002bf23df9c369740064bb6cb0a2261fc964d480e05b8c15ff
6
+ metadata.gz: a684e57b932f5ae3ac208342873d0ea761a4e2f121a56f4196dd2af2b7e690ff5f6c0b615a1dd3e0dbb4d0abffaa80ea028a8306c23f1dd051f168bcbea0fd6b
7
+ data.tar.gz: c0ddc583bbf25a503fe4652e02690b3839bf9d13b30d0515321cbad399e4ac77eea385efd650a6150413422b25142c16847e3af2402bd556aae01f3e6a9168f5
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- radbeacon (0.1.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.2.0)
12
- rspec-core (~> 3.2.0)
13
- rspec-expectations (~> 3.2.0)
14
- rspec-mocks (~> 3.2.0)
15
- rspec-core (3.2.2)
16
- rspec-support (~> 3.2.0)
17
- rspec-expectations (3.2.0)
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.2.0)
20
- rspec-mocks (3.2.1)
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.2.0)
23
- rspec-support (3.2.2)
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
@@ -128,7 +128,7 @@ module Radbeacon
128
128
  result
129
129
  end
130
130
 
131
- private
131
+ protected
132
132
 
133
133
  attr_writer :mac_address, :name, :is_connectable, :characteristics, :values, :errors
134
134
 
@@ -137,9 +137,12 @@ module Radbeacon
137
137
  con(lock_commands)
138
138
  end
139
139
 
140
- private
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
- cmd = "gatttool -b #{@mac_address} --interactive"
158
- PTY.spawn(cmd) do |output, input, pid|
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)
@@ -1,3 +1,3 @@
1
1
  module Radbeacon
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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: 2015-06-11 00:00:00.000000000 Z
11
+ date: 2016-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler