volt-google-maps 0.0.4 → 0.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: 22cec582c4c44f73c683f8b002523f260732c4c9
4
- data.tar.gz: 13751da50c63ec824684c6261dc06c4cdc66264d
3
+ metadata.gz: 7c820bd4a6ffce1a029e189c88ca2ea072622fd2
4
+ data.tar.gz: 6a6aa20a6db7f1d35346c7602b7a8024e9527333
5
5
  SHA512:
6
- metadata.gz: f5fe0f499c531f76802f487acd40194291162674f596743e4de00650d7ad37f636a72cc6efe90ee6c3b9019dc877fb2b2d7d3687ab83d311d76efe059b91d927
7
- data.tar.gz: 8236db0ebb984abb897e549afe4ceddb4300e8bd573bae9de13c1d564ddefff05bbd662eaa5b925e7e0b7904def9199f1a3fb4d6c0960a16dc4506e2dd147f0b
6
+ metadata.gz: 69863431886859067d0516c636aaad199485921f9206ff0920ed68fc05b301c7de5fc8d8c7be60d092dc166091cd395fa1ed14ee79cff83dc58b35b0aaec83fa
7
+ data.tar.gz: 395362bd5710784147dcb98d1ee586fedd13237a1bb3bf5124810f5f245f4991573cfc6d853fb46ca7205661e6464ce9a76090181a65016988d891df18505307
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -92,26 +92,19 @@ module GoogleMaps
92
92
  end
93
93
 
94
94
  def set_zoom
95
- @first_zoom = true
96
95
  -> do
97
- if @first_zoom
98
- @first_zoom = false
99
-
100
- # Track
101
- attrs.zoom
96
+ level = attrs.zoom
97
+ if level.blank?
98
+ level = 8
102
99
  else
103
- level = attrs.zoom
104
- if level.blank?
105
- level = 8
106
- else
107
- level = (level || 8).to_i
108
- end
109
-
110
- level_n = level.to_n
111
- `if (self.map.getZoom() != level_n) {`
112
- `self.map.setZoom(level_n);`
113
- `}`
100
+ level = (level || 8).to_i
114
101
  end
102
+
103
+ puts "SET LEVEL: #{level.inspect}"
104
+ level_n = level.to_n
105
+ `if (self.map.getZoom() != level_n) {`
106
+ `self.map.setZoom(level_n);`
107
+ `}`
115
108
  end.watch!
116
109
  end
117
110
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-google-maps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout