motion-distance 0.2.0 → 0.2.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -6
  3. data/lib/motion/distance.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 419bcf40f8964936b49b0ab8b6720cd9d46be693
4
- data.tar.gz: a022d6885be32f527083a140954af237469fa689
3
+ metadata.gz: bcb7d3f855ab072b1fcf6ce4b1d07296a1d00193
4
+ data.tar.gz: 97228a409ca36054f4997a8b54fc840827afee7f
5
5
  SHA512:
6
- metadata.gz: b2b41702229ae08411b5a587284c0a18298f1de06388092b55b4c517aed79ccb4ce787ffb3a71d648417069e62ca82e50b20fa27febbac0c80e7a0e91a4b36bc
7
- data.tar.gz: 00bdd42ca66e9f1bc7b7ca7fb4c6154ac6afa41cf413cd71b57ad37e1f791cbb680915d3e1574d4d5ac63e40367a6273abe1bed99677e7adf7c4fd11246c6892
6
+ metadata.gz: 3f91f49c4bea9cb6537c0aed57adcbf47a80c5661814ab3eb261ef8e884dba122ae7f06a5d94cc7f75b53aa9ff16767cfc4455dc5f67f896b9446b27729ed07e
7
+ data.tar.gz: 7ef0318d0303ebbee86b65b4102e93508dd619dd5522812804488b79ef8c7fa0cdda973afe8e22c1e6bcb18c1997c7df95d9f08e3865381b0ba392f93401f6ae
data/README.md CHANGED
@@ -31,12 +31,14 @@ You must also specify an activity type. This will help the OS know when to pause
31
31
  You may also set a level of accuracy.
32
32
 
33
33
  ```ruby
34
- KCLLocationAccuracyBestForNavigation
35
- KCLLocationAccuracyBest
36
- KCLLocationAccuracyNearestTenMeters
37
- KCLLocationAccuracyHundredMeters
38
- KCLLocationAccuracyKilometer
39
- KCLLocationAccuracyThreeKilometers
34
+ # KCLLocationAccuracyBestForNavigation
35
+ # KCLLocationAccuracyBest
36
+ # KCLLocationAccuracyNearestTenMeters
37
+ # KCLLocationAccuracyHundredMeters
38
+ # KCLLocationAccuracyKilometer
39
+ # KCLLocationAccuracyThreeKilometers
40
+
41
+ @distance.accuracy = KCLLocationAccuracyBest
40
42
  ```
41
43
 
42
44
  Now you can call `#get` to begin tracking any distance travelled. Each time the phone registers a location change
@@ -11,7 +11,7 @@ module Motion
11
11
  def stop_updating
12
12
  location_manager.stopUpdatingLocation
13
13
 
14
- @total_distance = 0
14
+ @total = 0
15
15
  @last_location = nil
16
16
  @callback = nil
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-distance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Raxworthy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-01 00:00:00.000000000 Z
11
+ date: 2013-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -34,7 +34,7 @@ files:
34
34
  - README.md
35
35
  - lib/motion/distance.rb
36
36
  - lib/motion-distance.rb
37
- homepage: ''
37
+ homepage: https://github.com/willrax/motion-distance
38
38
  licenses:
39
39
  - MIT
40
40
  metadata: {}
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 2.0.3
57
+ rubygems_version: 2.0.14
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: Easy distance tracking for iOS RubyMotion projects.