baidu_api-geocoding 1.1.0 → 1.1.1

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: 08ae480fdaec595e85d8b3b537f648d84266b754
4
- data.tar.gz: 791ad1f0ded3d8bb64bcd6417baeb582d6333a3b
3
+ metadata.gz: f9b7016cb2d5a38ddbecfcd39bc77a85e3f713af
4
+ data.tar.gz: 23d2e08cad3efd92868a24d067339a818e56b01b
5
5
  SHA512:
6
- metadata.gz: 919e3beaa89cca51685333699a8da3f2837b83cba53f5797087bca20491c671c944bc8970a0653e82b750b8e532b347e4a24f9aef67c831152d96fcf53da5066
7
- data.tar.gz: 964d438cf85000bc187b82d2422a69a395e41cdf46970ca07e0148bd180d33dc25bb1f0c69ed632ce3d1d1b8aedf28aa0bbeffbbbbfdbb56f830507167b5987f
6
+ metadata.gz: 633c9e2e31875905d5349da8867d86fc294bc07a691c0019f6093a8c6d2b42ea61d838536eb32b648852a33edcf958328d0e44ed91a2963ac6a1227a7fa60ded
7
+ data.tar.gz: d48ffc21ac1c15dd7bf0b65c43420bd2d1a6c10bc244ab70225bda9c653803e9af3972351f3e93b51d4f6b473e8e7a4e5149f83fa30707e004d2ae2ab418784e
@@ -30,7 +30,7 @@ module BaiduApi
30
30
 
31
31
  def geocode!(data = {})
32
32
  ret = geocode(data)
33
- raise BaiduApi::Geocoding::Exceptions::Failed, ret if ret['status'] != 0
33
+ raise BaiduApi::Geocoding::Exceptions::Failed.new(ret) if ret['status'] != 0
34
34
  ret
35
35
  end
36
36
 
@@ -3,7 +3,7 @@ module BaiduApi::Geocoding::Exceptions
3
3
  attr_reader :raw
4
4
  def initialize(raw)
5
5
  @raw = raw
6
- super(raw['msg'])
6
+ super(raw['message'])
7
7
  end
8
8
  end
9
9
  end
@@ -1,5 +1,5 @@
1
1
  module BaiduApi
2
2
  module Geocoding
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baidu_api-geocoding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - xiaohui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-30 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler