zipcode_zh_cn 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/ZipcodeZhCN +1 -1
- data/lib/zipcode_zh_cn.rb +1 -4
- data/lib/zipcode_zh_cn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8725460f66564a24abce078739ffc37ff124785a
|
4
|
+
data.tar.gz: a7d8cf2acc0513037ecfe9ab91ace587c43f50fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9366250f82e9a2c961bee5f84adbd51f706c2dceddefe497182ea33eafeab6d7dacd33f28cc7edc196c24fd4bccf00ae145b195edb0424bb6656b4c7acb257
|
7
|
+
data.tar.gz: 13cad9b9c3816ecd0ba9a02cd396177a40cf61d7235d370deaab2877483f37b26d043345a58db1fd76984f425808db7248ba8f0402eb08fa8360c4c32adb2314
|
data/exe/ZipcodeZhCN
CHANGED
data/lib/zipcode_zh_cn.rb
CHANGED
@@ -36,18 +36,15 @@ module ZipcodeZhCn
|
|
36
36
|
end
|
37
37
|
|
38
38
|
if zipcode.length != 6
|
39
|
-
puts "
|
39
|
+
puts "没有找到您要的邮编"
|
40
40
|
end
|
41
41
|
end
|
42
42
|
rescue Exception => e
|
43
43
|
if try_count < 6
|
44
44
|
http.close if http
|
45
45
|
http = HTTP.persistent ApiHost
|
46
|
-
puts "try_count = #{try_count} :sleep #{try_count} seconds : Exception ====> #{e}"
|
47
46
|
sleep(try_count)
|
48
47
|
retry
|
49
|
-
else
|
50
|
-
puts "try out=>#{addr}"
|
51
48
|
end
|
52
49
|
end
|
53
50
|
|