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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3f77b5d1875cbe806f725f554e7f63209da6da3
4
- data.tar.gz: 3f53c193d0df201cfcb9ab94fdca200c5daa9e2f
3
+ metadata.gz: 4d37c1adc6f0749181e2f7c73d237429ce20a842
4
+ data.tar.gz: 8080428600979d11005c1917484aaf84a04c5d87
5
5
  SHA512:
6
- metadata.gz: d7242c6c3ac10947e0e11b3bc27fa46cefbb7d50e7685e465cc90924b89406905b7e9e9b42bd257d93728500aaad0910211f1046d7f5459a2a0ec47ff65eccd8
7
- data.tar.gz: 401280be6d9ed24d82b075df6ee4f07bfa7950334853ccbdd462fe6e1b15773b4e7db709864587fa550f16ed385c5fd4ac2a61dd4814703c3336d776ecd581e5
6
+ metadata.gz: 83db60b9cb073df5902350e620b44c07ed66131d37893d7789ffb326aa0ac8aaad2fa63b68b418e7dc40fe50c6d64121a99c8bf41b8a43378b1b9d020d73b3da
7
+ data.tar.gz: 88824d73a049af2fa8e8d458e6767326a7b57f4710017e662aeb7cf2be8a59339f6e50cf51ed562a082c59b3a3412730949f9f672611fc6ad66fdac2455c1792
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gmaps4rails (2.0.4)
4
+ gmaps4rails (2.0.5)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -62,13 +62,17 @@ module Gmaps4rails
62
62
  @hash[:marker_title] = string
63
63
  end
64
64
 
65
- def json(json)
66
- @hash.merge! json
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
@@ -1,3 +1,3 @@
1
1
  module Gmaps4rails
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
@@ -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
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-06 00:00:00.000000000 Z
12
+ date: 2013-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec