gmaps4rails 2.0.0 → 2.0.1
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.
- data/.travis.yml +3 -0
- data/Gemfile.lock +1 -1
- data/README.rdoc +8 -3
- data/gmaps4rails.gemspec +2 -2
- data/lib/gmaps4rails/version.rb +1 -1
- data/vendor/assets/javascripts/gmaps/google/builders/map.coffee +1 -1
- metadata +4 -6
- data/script/gmaps4rails.rake +0 -7
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
-
== Google Maps for Rails
|
1
|
+
== Google Maps for Rails
|
2
|
+
{<img src="https://secure.travis-ci.org/apneadiving/Google-Maps-for-Rails.png?branch=master" alt="Build Status" />}[http://travis-ci.org/apneadiving/Google-Maps-for-Rails]
|
3
|
+
{<img src="https://codeclimate.com/github/apneadiving/Google-Maps-for-Rails.png" />}[https://codeclimate.com/github/apneadiving/Google-Maps-for-Rails]
|
4
|
+
{<img src="https://badge.fury.io/rb/gmaps4rails.png" alt="Gem Version" />}[http://badge.fury.io/rb/gmaps4rails]
|
5
|
+
{<img src="http://api.coderwall.com/apneadiving/endorsecount.png" alt="Endorse" />}[http://coderwall.com/apneadiving]
|
2
6
|
|
3
7
|
Gmaps4rails is developed to simply create a Google Map with overlays (markers, infowindows...).
|
8
|
+
Yet it's backed on a very flexible codebase which could be prone to accept other map providers.
|
4
9
|
|
5
10
|
Use it with any Ruby app (I guess you could simply take the js anywhere if you like).
|
6
11
|
|
@@ -34,7 +39,7 @@ If you have the asset pipeline, add this:
|
|
34
39
|
//= require underscore
|
35
40
|
//= require gmaps/google
|
36
41
|
|
37
|
-
If you don't have aset pipeline, you'll need to import the js
|
42
|
+
If you don't have aset pipeline, you'll need to import the js OR coffee files:
|
38
43
|
|
39
44
|
rails g gmaps4rails:copy_js
|
40
45
|
|
@@ -51,7 +56,7 @@ Create your map:
|
|
51
56
|
"lat": 0,
|
52
57
|
"lng": 0,
|
53
58
|
"picture": {
|
54
|
-
"url":
|
59
|
+
"url": "https://addons.cdn.mozilla.net/img/uploads/addon_icons/13/13028-64.png",
|
55
60
|
"width": 36,
|
56
61
|
"height": 36
|
57
62
|
},
|
data/gmaps4rails.gemspec
CHANGED
@@ -10,8 +10,8 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = [%q{Benjamin Roth}, %q{David Ruyer}]
|
11
11
|
s.email = [%q{apnea.diving.deep@gmail.com}, %q{david.ruyer@gmail.com}]
|
12
12
|
s.homepage = %q{http://github.com/apneadiving/Google-Maps-for-Rails}
|
13
|
-
s.summary = %q{Maps made easy for
|
14
|
-
s.description = %q{Enables easy
|
13
|
+
s.summary = %q{Maps made easy for Ruby apps}
|
14
|
+
s.description = %q{Enables easy Google map + overlays creation.}
|
15
15
|
s.files = `git ls-files`.split("\n")
|
16
16
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
17
17
|
|
data/lib/gmaps4rails/version.rb
CHANGED
@@ -22,6 +22,6 @@ class @Gmaps.Google.Builders.Map extends Gmaps.Objects.BaseBuilder
|
|
22
22
|
default_options: ->
|
23
23
|
{
|
24
24
|
mapTypeId: @primitives().mapTypes('ROADMAP') # HYBRID, ROADMAP, SATELLITE, TERRAIN
|
25
|
-
center: @primitives().latLng(0, 0)
|
25
|
+
center: new(@primitives().latLng)(0, 0)
|
26
26
|
zoom: 8
|
27
27
|
}
|
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.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-10-
|
13
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -92,8 +92,7 @@ dependencies:
|
|
92
92
|
- - ! '>='
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
|
-
description: Enables easy
|
96
|
-
Maps (JS API V3), OpenLayers, Mapquest, Bing and Yandex (API V2).
|
95
|
+
description: Enables easy Google map + overlays creation.
|
97
96
|
email:
|
98
97
|
- apnea.diving.deep@gmail.com
|
99
98
|
- david.ruyer@gmail.com
|
@@ -118,7 +117,6 @@ files:
|
|
118
117
|
- lib/gmaps4rails/rails/railtie.rb
|
119
118
|
- lib/gmaps4rails/version.rb
|
120
119
|
- script/compile_coffee_files.rb
|
121
|
-
- script/gmaps4rails.rake
|
122
120
|
- spec/javascripts/google/builders/marker_spec.js
|
123
121
|
- spec/javascripts/helpers/SpecHelper.js
|
124
122
|
- spec/javascripts/helpers/matchers.js
|
@@ -177,7 +175,7 @@ rubyforge_project:
|
|
177
175
|
rubygems_version: 1.8.24
|
178
176
|
signing_key:
|
179
177
|
specification_version: 3
|
180
|
-
summary: Maps made easy for
|
178
|
+
summary: Maps made easy for Ruby apps
|
181
179
|
test_files:
|
182
180
|
- spec/javascripts/google/builders/marker_spec.js
|
183
181
|
- spec/javascripts/helpers/SpecHelper.js
|