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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43b92e73bf0f5cfb17e00e1a4f75de6128c5ea8f
4
- data.tar.gz: bda6054004784ca677129256971b7b12dd94ec05
3
+ metadata.gz: fb64c9bec93cd29e788747800763eef8fd345f97
4
+ data.tar.gz: 1a15863cca6e3ea4ff629f0b5c5d6e42a5188533
5
5
  SHA512:
6
- metadata.gz: 24f50672c48cbcce31ebc739592884ac51fff5a8bbcfc2f7c557a4cf01c997e5d5c674f6239930150b04b9de157ea7ff481a09c8543fa76fc23f7b63d3349a33
7
- data.tar.gz: 02c04cc0e9769475c7c9e4ef8b00ac42878856bc236babfbcbd30f35626e47beb0d700f4b94b7d8c494281e37dc9678825ced0744416f175af25092e3eec2e58
6
+ metadata.gz: 461f8dfdd75427f307550da6f413ed2d7a4ca6e54e1cf042b1159818bea44daa35979c94be7c9292073d1fc7b03d05eb24568983308351b65b9d45fee253cbeb
7
+ data.tar.gz: 6e631815c246755d311771795a17b9e9a7721b286d2bf1fa0e14ba5536f998dbb3a98be0a1b68dfaae8838a771bf7b170522738b3dccf6f41629ece0f7e7e317
@@ -1,13 +1,13 @@
1
1
  /**
2
- * jQuery Geocoding and Places Autocomplete Plugin - V 1.5.0
2
+ * jQuery Geocoding and Places Autocomplete Plugin - V 1.6.1
3
3
  *
4
- * @author Martin Kleppe <kleppe@ubilabs.net>, 2012
5
- * @author Ubilabs http://ubilabs.net, 2012
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 - V 1.5.0
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")['0']) {
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
- data[name] = object.long_name;
379
- data[name + "_short"] = object.short_name;
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
  });
@@ -1,3 +1,3 @@
1
1
  module GeocompleteRails
2
- VERSION = "1.5.0.1"
2
+ VERSION = "1.6.3"
3
3
  end
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.5.0.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-04-23 00:00:00.000000000 Z
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.1
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: