scan_beacon 0.7.10 → 0.7.11

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: 117db20ee4f7cd1fc589e92d2103d133965de5ac
4
- data.tar.gz: d040e3aff1516c7bd3e35bfa808c0ec0dcc0d98a
3
+ metadata.gz: d1df3b05cb1b80b2632d9429feca85170c96e29c
4
+ data.tar.gz: 768a37e54b3ee6fe284f1ac4f7dbaf5b18888c0c
5
5
  SHA512:
6
- metadata.gz: e8ddb631ca9945f1e159860401d213a43dd809a6dfd7559c7a28cbfec294dc6b8738b66bba9e8a39450ec977aa1dc80dd80123f6dce83511cc04bbc8827a4027
7
- data.tar.gz: 47d412535feaff442b50c324e966ef4c898a7e370b84b81f2379fcf461b02896955045b5fe8a6378889097e7fd1a12b92d90425b2ae8cc26fa3378d0be2f51e9
6
+ metadata.gz: b5ca9e993f2cd316ff3208225a645ae78aeb013fcc01bbfeb1f1762ab0939e173c3075fd6712e5d3eb21103d8818357a66673d18dd948636fe06a341d772cd1c
7
+ data.tar.gz: 88669f993924cf6b809ca0092afaa965b434a3bf5ea60b672d039673cc743b3ff12e08d9e86479abf2ef8ed156c4d1111b26a24f3bea3225d0340e6ac0cfa185
@@ -63,7 +63,7 @@ VALUE method_stop_advertising();
63
63
  @"data": mfgData,
64
64
  @"rssi": RSSI
65
65
  };
66
- @synchronized(_scans) {
66
+ @synchronized(self) {
67
67
  [_scans addObject: scan];
68
68
  }
69
69
  } else if (serviceData) {
@@ -74,7 +74,7 @@ VALUE method_stop_advertising();
74
74
  @"rssi": RSSI,
75
75
  @"service_uuid": uuid.data
76
76
  };
77
- @synchronized(_scans) {
77
+ @synchronized(self) {
78
78
  [_scans addObject: scan];
79
79
  }
80
80
  }
@@ -97,7 +97,7 @@ VALUE method_stop_advertising();
97
97
  - (NSArray *) scans
98
98
  {
99
99
  NSArray *scanCopy;
100
- @synchronized(_scans) {
100
+ @synchronized(self) {
101
101
  scanCopy = _scans;
102
102
  _scans = [[NSMutableArray alloc] init];
103
103
  }
@@ -169,7 +169,7 @@ VALUE method_scan()
169
169
  @try {
170
170
  bleDelegate = [[BLEDelegate alloc] init];
171
171
  dispatch_queue_t scanQueue;
172
- scanQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);
172
+ scanQueue = dispatch_queue_create("scan_beacon", DISPATCH_QUEUE_SERIAL);
173
173
  centralManager = [[CBCentralManager alloc] initWithDelegate:bleDelegate queue:scanQueue];
174
174
  BOOL exit = NO;
175
175
  while (!exit) {
@@ -1,3 +1,3 @@
1
1
  module ScanBeacon
2
- VERSION = "0.7.10"
2
+ VERSION = "0.7.11"
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.7.10
4
+ version: 0.7.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radius Networks
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-21 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler