ProMotion-map 0.4.1 → 0.4.2

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: 35f4a8eac3b35aab4e6ce647f13b70067874101f
4
- data.tar.gz: a3c5d1fb7fadb59a956ea90d7125ec060071df63
3
+ metadata.gz: 64053c678871e7edbe5731c9627fdb527b71ab54
4
+ data.tar.gz: 3aef92fbedc6f4f9fb4a4adf459184ffb060d593
5
5
  SHA512:
6
- metadata.gz: 1de93a95d1294c9d1a2c6ed575c4f381835746a5674790a0883fd2ad8bc0de53ad6c5986ba1441a4519def05c5bd231c1e5ff7f6641860937ca0bb5a562eb849
7
- data.tar.gz: 0cf359ef14f0c4978c45f13545d18db814ab9b1f5440bd55b2b3cb0227c4bd9ed6ba03d3f5119b197a7b6d4b53d4fe81a9d7a802efa5834b1fa31a5b6b8b285a
6
+ metadata.gz: 55bfb725bcbba98691a3848fb92fed298813560c9d773ebe2f58903bd3e723d856e922415346a5e2a1663180ce5fb882f198396052b081eeb6ac06badb7e80a7
7
+ data.tar.gz: 1e3aec7ee94d35c82c216f8abcd1ba0cd05b881c0b449df2632481fa87753dc10f6c17f318f7fa6f845abbad2bb09c8ecd102ad1ea8b6546ac0032d2dc3e48b9
@@ -47,6 +47,10 @@ module ProMotion
47
47
  end
48
48
 
49
49
  def show_user_location
50
+ if location_manager.respondsToSelector('requestWhenInUseAuthorization')
51
+ location_manager.requestWhenInUseAuthorization
52
+ end
53
+
50
54
  set_show_user_location true
51
55
  end
52
56
 
@@ -279,5 +283,14 @@ module ProMotion
279
283
  base.extend(MapClassMethods)
280
284
  end
281
285
 
286
+ private
287
+
288
+ def location_manager
289
+ @location_manager ||= CLLocationManager.alloc.init
290
+ @location_manager.delegate ||= self
291
+ @location_manager
292
+ end
293
+
294
+
282
295
  end
283
296
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ProMotion-map
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rickert
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-29 00:00:00.000000000 Z
12
+ date: 2014-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ProMotion