zipcode_zh_cn 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/exe/ZipcodeZhCN +11 -0
- data/lib/zipcode_zh_cn/version.rb +1 -1
- data/lib/zipcode_zh_cn.rb +1 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb9415dd4e87146c69e406bf2c6c257b739ce98d
|
4
|
+
data.tar.gz: 3786053325166afb4fd63b2de5ac05eb3bebe109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e7a0c638a4aee1d0ccbb53e6f6aa9653c1894c03fe7c8888c200e9106f4fa325f283dbc80cc7728d90bb03839ffab24dd0c201a23fdc093c5192cb516c106ea
|
7
|
+
data.tar.gz: 610da2332a98acd0fb5352a33661e5aa03a876fa140ffa8e2036c2773eb17d5d49eb19a3352c9d13ae5a55d0b484e50546c8424617cc59fca704395e59bd4c8c
|
data/README.md
CHANGED
data/exe/ZipcodeZhCN
ADDED
data/lib/zipcode_zh_cn.rb
CHANGED
@@ -10,9 +10,8 @@ module ZipcodeZhCn
|
|
10
10
|
DefaultZipCode = ""
|
11
11
|
|
12
12
|
## get zipcode by address string
|
13
|
-
def self.get_zipcode(
|
13
|
+
def self.get_zipcode(addr, http = HTTP)
|
14
14
|
#special handle
|
15
|
-
addr = str
|
16
15
|
addr.gsub!('省直辖行政单位','')
|
17
16
|
addr.gsub!('省直辖县级行政单位','')
|
18
17
|
addr.gsub!('自治区直辖县级行政区划','')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zipcode_zh_cn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rubycat
|
@@ -83,7 +83,8 @@ dependencies:
|
|
83
83
|
description: 'Zipcode data is fetched from Baidu '
|
84
84
|
email:
|
85
85
|
- chenxueping1819@gmail.com
|
86
|
-
executables:
|
86
|
+
executables:
|
87
|
+
- ZipcodeZhCN
|
87
88
|
extensions: []
|
88
89
|
extra_rdoc_files: []
|
89
90
|
files:
|
@@ -96,6 +97,7 @@ files:
|
|
96
97
|
- Rakefile
|
97
98
|
- bin/console
|
98
99
|
- bin/setup
|
100
|
+
- exe/ZipcodeZhCN
|
99
101
|
- lib/zipcode_zh_cn.rb
|
100
102
|
- lib/zipcode_zh_cn/version.rb
|
101
103
|
- zipcode_zh_cn.gemspec
|