jt-rails-address 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e7d7fb2db68c3f3e8695fd5a95522fc86f73316
4
- data.tar.gz: 7041289c7bf68a1521b18b8469222fc49ca563cf
3
+ metadata.gz: e70b510250270acd9082dc67ac523220a86523f8
4
+ data.tar.gz: b4c27824417033118fc347819326b5bfc9508d72
5
5
  SHA512:
6
- metadata.gz: a09f08c4ff694d0f80433916db56fb832fdfcedf0e7254d1166522f6db4f6776a883879c7dc94b70df31b5b92f61e79490dd4e540e475cdca8caad3869a0c4c0
7
- data.tar.gz: e3b03d1954832b3180a25ec1036148c8f313e30924c3f8e2d0ce26d92cb8cfbe75b1f05ba61126891d46b4b403770a3067b61614f4b48fe5fc2c48b7c9102b82
6
+ metadata.gz: 7cbe29d2f25c500f4c43a44483bf1da076a626d6b2e0bfc29487c0d898030189f42e260f5176e4eb1a10c203b416ec80770f3d0f66af03bacf415ac9406aae5c
7
+ data.tar.gz: 7dfbdafd15c5d903a70be4db53626eb4f4da8c20d4dbd9c3104f5acf9cbdae83c394b327e383b07a0b54a6cc770ecdfa05e1a4af984295f83ca5233ab9917a6c
data/README.md CHANGED
@@ -111,7 +111,7 @@ Each time the data for the address change, an event `jt:address:data_changed` is
111
111
  You can catch it with:
112
112
 
113
113
  ```javascript
114
- $('.jt-address-autocomplete').on('jt:address:data_changed', function(data){
114
+ $('.jt-address-autocomplete').on('jt:address:data_changed', function(event, data){
115
115
  console.log(data);
116
116
  });
117
117
 
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.summary = "Postal addresses management in Ruby On Rails and Javascript"
4
4
  s.description = "JTRailsAddress simplify postal addresses management and geocoding with Google Maps in Ruby On Rails and Javascript."
5
5
  s.homepage = 'https://github.com/jonathantribouharet/jt-rails-address'
6
- s.version = '1.0.0'
6
+ s.version = '1.0.1'
7
7
  s.files = `git ls-files`.split("\n")
8
8
  s.require_paths = ['lib']
9
9
  s.authors = ['Jonathan TRIBOUHARET']
@@ -45,7 +45,7 @@ module JT::Rails::Address
45
45
 
46
46
  place = json['results'][0]
47
47
 
48
- data = {}
48
+ data = HashWithIndifferentAccess.new
49
49
  data['lat'] = place['geometry']['location']['lat']
50
50
  data['lng'] = place['geometry']['location']['lng']
51
51
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jt-rails-address
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan TRIBOUHARET
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-26 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graticule