geocomplete_rails 1.5.0.1 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/geocomplete.js +13 -10
- data/lib/geocomplete_rails/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb64c9bec93cd29e788747800763eef8fd345f97
|
4
|
+
data.tar.gz: 1a15863cca6e3ea4ff629f0b5c5d6e42a5188533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 461f8dfdd75427f307550da6f413ed2d7a4ca6e54e1cf042b1159818bea44daa35979c94be7c9292073d1fc7b03d05eb24568983308351b65b9d45fee253cbeb
|
7
|
+
data.tar.gz: 6e631815c246755d311771795a17b9e9a7721b286d2bf1fa0e14ba5536f998dbb3a98be0a1b68dfaae8838a771bf7b170522738b3dccf6f41629ece0f7e7e317
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* jQuery Geocoding and Places Autocomplete Plugin - V 1.
|
2
|
+
* jQuery Geocoding and Places Autocomplete Plugin - V 1.6.1
|
3
3
|
*
|
4
|
-
* @author Martin Kleppe <kleppe@ubilabs.net>,
|
5
|
-
* @author Ubilabs http://ubilabs.net,
|
4
|
+
* @author Martin Kleppe <kleppe@ubilabs.net>, 2014
|
5
|
+
* @author Ubilabs http://ubilabs.net, 2014
|
6
6
|
* @license MIT License <http://www.opensource.org/licenses/mit-license.php>
|
7
7
|
*/
|
8
8
|
|
9
9
|
// # $.geocomplete()
|
10
|
-
// ## jQuery Geocoding and Places Autocomplete Plugin
|
10
|
+
// ## jQuery Geocoding and Places Autocomplete Plugin
|
11
11
|
//
|
12
12
|
// * https://github.com/ubilabs/geocomplete/
|
13
13
|
// * by Martin Kleppe <kleppe@ubilabs.net>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
|
70
70
|
// See: [Places Details Responses](https://developers.google.com/maps/documentation/javascript/places#place_details_responses)
|
71
71
|
// on Google Developers.
|
72
|
-
var placesDetails = ("id url website vicinity reference name rating " +
|
72
|
+
var placesDetails = ("id place_id url website vicinity reference name rating " +
|
73
73
|
"international_phone_number icon formatted_phone_number").split(" ");
|
74
74
|
|
75
75
|
// The actual plugin constructor.
|
@@ -155,7 +155,7 @@
|
|
155
155
|
};
|
156
156
|
|
157
157
|
if (this.options.country){
|
158
|
-
options.componentRestrictions = {country: this.options.country}
|
158
|
+
options.componentRestrictions = {country: this.options.country};
|
159
159
|
}
|
160
160
|
|
161
161
|
this.autocomplete = new google.maps.places.Autocomplete(
|
@@ -284,7 +284,7 @@
|
|
284
284
|
|
285
285
|
var selected = '';
|
286
286
|
// Check if any result is selected.
|
287
|
-
if ($(".pac-item-selected")[
|
287
|
+
if ($(".pac-item-selected")[0]) {
|
288
288
|
selected = '-selected';
|
289
289
|
}
|
290
290
|
|
@@ -375,8 +375,11 @@
|
|
375
375
|
// Create a simplified version of the address components.
|
376
376
|
$.each(result.address_components, function(index, object){
|
377
377
|
var name = object.types[0];
|
378
|
-
|
379
|
-
|
378
|
+
|
379
|
+
$.each(object.types, function(index, name){
|
380
|
+
data[name] = object.long_name;
|
381
|
+
data[name + "_short"] = object.short_name;
|
382
|
+
});
|
380
383
|
});
|
381
384
|
|
382
385
|
// Add properties of the places details.
|
@@ -490,7 +493,7 @@
|
|
490
493
|
// Prevent against multiple instantiations.
|
491
494
|
var instance = $.data(this, attribute);
|
492
495
|
if (!instance) {
|
493
|
-
instance = new GeoComplete( this, options )
|
496
|
+
instance = new GeoComplete( this, options );
|
494
497
|
$.data(this, attribute, instance);
|
495
498
|
}
|
496
499
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geocomplete_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guy Israeli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -88,8 +88,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.2.
|
91
|
+
rubygems_version: 2.2.2
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: jQuery Geocoding and Places Autocomplete Plugin
|
95
95
|
test_files: []
|
96
|
+
has_rdoc:
|