gmaps4rails 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -4,4 +4,7 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
  - 2.0
7
+ before_install:
8
+ - "export DISPLAY=:99.0"
9
+ - "sh -e /etc/init.d/xvfb start"
7
10
  script: 'bundle exec rspec spec && bundle exec rake jasmine_travis'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gmaps4rails (2.0.0.pre2)
4
+ gmaps4rails (2.0.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.rdoc CHANGED
@@ -1,6 +1,11 @@
1
- == Google Maps for Rails (gmaps4rails) {<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] {<img src="https://codeclimate.com/badge.png" />}[https://codeclimate.com/github/apneadiving/Google-Maps-for-Rails] {<img src="http://api.coderwall.com/apneadiving/endorsecount.png" alt="Endorse" />}[http://coderwall.com/apneadiving]
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/coffee files:
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": "https://addons.cdn.mozilla.net/img/uploads/addon_icons/13/13028-64.png",
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 Rails 3}
14
- s.description = %q{Enables easy display of items (taken from a Rails 3 model) on a Google Maps (JS API V3), OpenLayers, Mapquest, Bing and Yandex (API V2).}
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
 
@@ -1,3 +1,3 @@
1
1
  module Gmaps4rails
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -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.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-22 00:00:00.000000000 Z
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 display of items (taken from a Rails 3 model) on a Google
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 Rails 3
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
@@ -1,7 +0,0 @@
1
- task :travis do
2
- ["rspec spec", "rake jasmine:ci"].each do |cmd|
3
- puts "Starting to run #{cmd}..."
4
- system("export DISPLAY=:99.0 && bundle exec #{cmd}")
5
- raise "#{cmd} failed!" unless $?.exitstatus == 0
6
- end
7
- end