google_static_maps_helper 1.3.6 → 1.3.7
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/changelog.txt +3 -0
- data/lib/google_static_maps_helper.rb +5 -5
- data/lib/google_static_maps_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc3b1f8fedc9305d84b0cc3332f378bd40cdebf101d0e41dc43612c088fbbd0
|
4
|
+
data.tar.gz: eb7c8f2723e3ec54a27f39362320212047d5cbc83b793ea8b64956be068432c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0417026d675d2e70d4f1a4288432d3614bb0c49c46fa9ae963cf162aa59054bb1323264b42bffd747810cfcf6721c533f9615ac2439e8f84ea52e1f9bbb334b0
|
7
|
+
data.tar.gz: 900a3386da65ee3e2f9c273d2398b000937bb968b7d61ed8364025aefbf204f13e136b3aae0f937a425e306cfee994743140f9433c760cd4c09d63bceaf06d11
|
data/changelog.txt
CHANGED
@@ -6,7 +6,7 @@ require File.dirname(__FILE__) + '/google_static_maps_helper/marker'
|
|
6
6
|
require File.dirname(__FILE__) + '/google_static_maps_helper/path'
|
7
7
|
require File.dirname(__FILE__) + '/google_static_maps_helper/gmap_polyline_encoder'
|
8
8
|
|
9
|
-
#
|
9
|
+
#
|
10
10
|
# The Google Static Map Helper provides a simple interface to the
|
11
11
|
# Google Static Maps V2 API (http://code.google.com/apis/maps/documentation/staticmaps/).
|
12
12
|
#
|
@@ -14,14 +14,14 @@ require File.dirname(__FILE__) + '/google_static_maps_helper/gmap_polyline_encod
|
|
14
14
|
# <tt>Map</tt>:: A map is what keeps all of the state of which you'll build a URL for.
|
15
15
|
# <tt>Marker</tt>:: One or more markers can be added to the map. A marker can be customized with size, label and color.
|
16
16
|
# <tt>Path</tt>:: A path will create lines or polygons in your map.
|
17
|
-
#
|
17
|
+
#
|
18
18
|
# == About
|
19
19
|
#
|
20
20
|
# Author:: Thorbjørn Hermansen (thhermansen@gmail.com)
|
21
21
|
#
|
22
22
|
module GoogleStaticMapsHelper
|
23
23
|
# The basic url to the API which we'll build the URL from
|
24
|
-
API_URL = '
|
24
|
+
API_URL = 'https://maps.google.com/maps/api/staticmap'
|
25
25
|
|
26
26
|
class OptionMissing < ArgumentError; end # Raised when required options is not sent in during construction
|
27
27
|
class OptionNotExist < ArgumentError; end # Raised when incoming options include keys which is invalid
|
@@ -31,7 +31,7 @@ module GoogleStaticMapsHelper
|
|
31
31
|
|
32
32
|
class << self
|
33
33
|
attr_accessor :key, :size, :sensor
|
34
|
-
|
34
|
+
|
35
35
|
#
|
36
36
|
# Provides a simple DSL stripping away the need of manually instantiating classes
|
37
37
|
#
|
@@ -41,7 +41,7 @@ module GoogleStaticMapsHelper
|
|
41
41
|
# GoogleStaticMapsHelper.key = 'your google key'
|
42
42
|
# GoogleStaticMapsHelper.size = '300x600'
|
43
43
|
# GoogleStaticMapsHelper.sensor = false
|
44
|
-
#
|
44
|
+
#
|
45
45
|
# # Then, you'll be able to do:
|
46
46
|
# url = GoogleStaticMapsHelper.url_for do
|
47
47
|
# marker :lng => 1, :lat => 2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_static_maps_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thorbjørn Hermansen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|