google_static_maps_helper 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -64,7 +64,7 @@ When building a map object you have to supply key, sensor and size. Other option
64
64
  == Generate static map URL
65
65
  With the map object made, we are ready to add some markers to it:
66
66
  map << marker
67
- map << another_marker
67
+ map << another_marker << yet_another_marker << and_one_more_marker
68
68
 
69
69
  We can now ask the map for it's URL to where we'll get the requested map from. This URL can be used as src attribute on an image tag.
70
70
  map.url
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{google_static_maps_helper}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thorbj\303\270rn Hermansen"]
12
- s.date = %q{2009-10-14}
12
+ s.date = %q{2009-10-15}
13
13
  s.description = %q{This gem provides a simple interface to the Google Static Maps V2 API.}
14
14
  s.email = %q{thhermansen@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -54,6 +54,7 @@ module GoogleStaticMapsHelper
54
54
  def <<(marker)
55
55
  @markers << marker
56
56
  @markers.uniq!
57
+ self
57
58
  end
58
59
 
59
60
  def each
data/spec/map_spec.rb CHANGED
@@ -45,6 +45,11 @@ describe GoogleStaticMapsHelper::Map do
45
45
  @map << @marker
46
46
  @map.length.should == 1
47
47
  end
48
+
49
+ it "should be able to push map << marker << marker" do
50
+ @map << @marker << GoogleStaticMapsHelper::Marker.new(:lat => 3, :lng => 5)
51
+ @map.length.should == 2
52
+ end
48
53
  end
49
54
 
50
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_static_maps_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Thorbj\xC3\xB8rn Hermansen"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-14 00:00:00 +02:00
12
+ date: 2009-10-15 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency