scrivito_google_maps_widget 0.1.6 → 0.1.7

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: df16f2d97b5824af6a5da28457b5eb6650a16772
4
- data.tar.gz: 75b8e919b1943d64eacd143f76b04fbd7d0e25f4
3
+ metadata.gz: a75973cd95aa70573896ff2d174a5b8cc26dc768
4
+ data.tar.gz: f8e60e59a0e96e4b8cb6df30af64c41fadff874f
5
5
  SHA512:
6
- metadata.gz: 1c98f1e1255c609bf2ad084eb4aada6895b01574f58b80d33791b2acc74acaa390beb80f114d42f288a1bdf7ba716c25bf91ee7de5f3bc4f4ca9c228b1a5c118
7
- data.tar.gz: ca8645728bb315c3e93b417459c21b01e04849d1d5c97493877d964970dd56541776be1d537fa0bbb578619966355c72426776833e5472ff0fac248d050367eb
6
+ metadata.gz: 5cd6b27c037da2b0e73f77579ca3db5bb2b5e1578067d42f167f2114739be54ae0d28924735bfa9e72649aa6dafac95a128d4fc8e9ee3727d2c89280bdad8367
7
+ data.tar.gz: 725b124b0d25fabe4b53bb6db7437bb43181fd5e2cda6928e93ea305215ecf62a9615c4e34bb3f003d1e06fecf3181023be2589ad0a0ef79807c960575e5f806
data/README.md CHANGED
@@ -12,11 +12,11 @@ Add this line to your application's `Gemfile`:
12
12
 
13
13
  Include the Google Maps Places JavaScript library in your application.html.erb:
14
14
 
15
- javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places')
15
+ javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places')
16
16
 
17
17
  Include the Google Maps Places JavaScript library in your scrivito_dialog.html.erb:
18
18
 
19
- javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places')
19
+ javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places')
20
20
 
21
21
  Also, add this line to your application stylesheet manifest:
22
22
 
@@ -2,4 +2,8 @@ class GoogleMapsWidget < Widget
2
2
  attribute :address, :string
3
3
  attribute :height, :string, default: '50vh'
4
4
  attribute :zoom, :enum, values: (0..21).to_a.map {|e| e.to_s}, default: '13'
5
+
6
+ def zoom_level
7
+ zoom || 13
8
+ end
5
9
  end
@@ -12,6 +12,6 @@
12
12
  <%= scrivito_tag(:input, widget, :address, type: 'text') %>
13
13
  <% end %>
14
14
 
15
- <div class="map" data-location="<%= widget.address %>"></div>
15
+ <div class="map" data-zoom="<%= widget.zoom_level %>" data-location="<%= widget.address %>"></div>
16
16
  </div>
17
17
  <% end %>
@@ -3,5 +3,5 @@
3
3
  <%= scrivito_tag(:input, widget, :address, type: 'text') %>
4
4
  <% end %>
5
5
 
6
- <div class="map" data-zoom="<%= widget.zoom %>" data-location="<%= widget.address %>"></div>
6
+ <div class="map" data-zoom="<%= widget.zoom_level %>" data-location="<%= widget.address %>"></div>
7
7
  </div>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoGoogleMapsWidget
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_google_maps_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-24 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler