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 +4 -4
- data/lib/ProMotion/map/map_screen_module.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64053c678871e7edbe5731c9627fdb527b71ab54
|
4
|
+
data.tar.gz: 3aef92fbedc6f4f9fb4a4adf459184ffb060d593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
12
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ProMotion
|