gmaps4rails 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gmaps4rails/markers_builder.rb +6 -2
- data/lib/gmaps4rails/version.rb +1 -1
- data/spec/lib/markers_builder_spec.rb +8 -1
- 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: 4d37c1adc6f0749181e2f7c73d237429ce20a842
|
4
|
+
data.tar.gz: 8080428600979d11005c1917484aaf84a04c5d87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83db60b9cb073df5902350e620b44c07ed66131d37893d7789ffb326aa0ac8aaad2fa63b68b418e7dc40fe50c6d64121a99c8bf41b8a43378b1b9d020d73b3da
|
7
|
+
data.tar.gz: 88824d73a049af2fa8e8d458e6767326a7b57f4710017e662aeb7cf2be8a59339f6e50cf51ed562a082c59b3a3412730949f9f672611fc6ad66fdac2455c1792
|
data/Gemfile.lock
CHANGED
@@ -62,13 +62,17 @@ module Gmaps4rails
|
|
62
62
|
@hash[:marker_title] = string
|
63
63
|
end
|
64
64
|
|
65
|
-
def json(
|
66
|
-
@hash.merge!
|
65
|
+
def json(hash)
|
66
|
+
@hash.merge! hash
|
67
67
|
end
|
68
68
|
|
69
69
|
def picture(hash)
|
70
70
|
@hash[:picture] = hash
|
71
71
|
end
|
72
|
+
|
73
|
+
def shadow(hash)
|
74
|
+
@hash[:shadow] = hash
|
75
|
+
end
|
72
76
|
end
|
73
77
|
end
|
74
78
|
end
|
data/lib/gmaps4rails/version.rb
CHANGED
@@ -14,13 +14,19 @@ describe Gmaps4rails::MarkersBuilder do
|
|
14
14
|
:width => "32",
|
15
15
|
:height => "32"
|
16
16
|
}}
|
17
|
+
let(:shadow) { {
|
18
|
+
:url => "shadow",
|
19
|
+
:width => "30",
|
20
|
+
:height => "30"
|
21
|
+
} }
|
17
22
|
let(:expected_hash) { {
|
18
23
|
:lat => lat,
|
19
24
|
:lng => lng,
|
20
25
|
:marker_title => name,
|
21
26
|
:some_id => id,
|
22
27
|
:infowindow => infowindow,
|
23
|
-
:picture => picture
|
28
|
+
:picture => picture,
|
29
|
+
:shadow => shadow
|
24
30
|
}}
|
25
31
|
let(:object) { OpenStruct.new(
|
26
32
|
:latitude => lat,
|
@@ -34,6 +40,7 @@ describe Gmaps4rails::MarkersBuilder do
|
|
34
40
|
marker.lng user.longitude
|
35
41
|
marker.infowindow infowindow
|
36
42
|
marker.picture picture
|
43
|
+
marker.shadow shadow
|
37
44
|
marker.title user.name
|
38
45
|
marker.json({ :some_id => user.some_id })
|
39
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmaps4rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Roth
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|