locomotion 0.0.2 → 0.0.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: 25012d48eb0b25351374c35d3dd36775c47ba3ef
4
- data.tar.gz: c9e483a9bdc6847023e50588bfc9d6dc666bd6fa
3
+ metadata.gz: eb78cbd836a4e268cfa2de4229b0321e79395a84
4
+ data.tar.gz: 076ec8aad1472b53c1134d002a962dc9b6121ca3
5
5
  SHA512:
6
- metadata.gz: b37cb7167f99eb7f43c4b0489384362d5fe4f2190013be3d4dd0ff2ee12a41f78f895a49ae5d33656bac78934278036860c287a2fb1abbf0afa6bd3832394736
7
- data.tar.gz: f5a706cdb0e36c1b0ad6ec16cbba97dbf2bc6cf696793706941804b7c05e52d55a2e4271176d90245078f586d94ad2843ae7f55c5d4fd76769c832f866fc769c
6
+ metadata.gz: e46baff6202dc6f2567abcca48c74c0b5f9fea8bbab2606f13728a0380b605d7d133af6b53ab7790b1630543e6eb091e28dc148c1bd23bc329a6200fccfde970
7
+ data.tar.gz: 176e7098e6874a3303870f8a17ea623968e611e8bf69ed577fd7ba5c3edf3de5eee205b8848eb5bcb0fde9652961da715d31cdf7394e881915c533b6c13b5f86
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  build/**
19
+ .repl_history
@@ -1,3 +1,3 @@
1
1
  module Locomotion
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -7,6 +7,7 @@ module Locomotion
7
7
  @location_manager.delegate = @delegate
8
8
  @location_manager.distanceFilter = KCLDistanceFilterNone
9
9
  @location_manager.desiredAccuracy = KCLLocationAccuracyBest
10
+ @location_manager.pausesLocationUpdatesAutomatically = false if @location_manager.respond_to?(:pausesLocationUpdatesAutomatically)
10
11
  self
11
12
  end
12
13
  attr_reader :location_manager
@@ -6,7 +6,14 @@ describe 'integration into an app' do
6
6
  end
7
7
 
8
8
  it 'updates the location label' do
9
- view('location').should.satisfy { |label| label.text =~ /-?\d+\.\d+,-?\d+\.\d+/ }
9
+ if CLLocationManager.authorizationStatus == KCLAuthorizationStatusAuthorized
10
+ wait(1) {}
11
+ view('location').should.satisfy { |label| label.text =~ /-?\d+\.\d+,-?\d+\.\d+/ }
12
+ else
13
+ warn "ENABLE LOCATION SERVICES FOR TEST"
14
+ wait(5) {}
15
+ view('location').should.satisfy { |label| label.text =~ /-?\d+\.\d+,-?\d+\.\d+/ }
16
+ end
10
17
  end
11
18
 
12
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Rowe
metadata.gz.sig CHANGED
Binary file