kuaidi100_rails 0.1.3 → 0.1.4

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: f15f0948eed71f6b753b5e89416605fa56802078
4
- data.tar.gz: 7c7dca4e0d5e7ed8c2aacac5aa3138d031a64065
3
+ metadata.gz: 0721c8450a8aff6ba1353ed0659ddaa6584d08b6
4
+ data.tar.gz: 5dac334a516973e0221efeb7569c8519faa1cc8e
5
5
  SHA512:
6
- metadata.gz: ef6fc5589a22fe16db776751b12b8de2f8aba22abc5393c057758fa35c503e9bf975aa5d4c08f400416ee8968a5a688fa7a9155f020711cc5ee03cbd60bce6a9
7
- data.tar.gz: 03eff8f3fe74ac8ee7c26444caa4728113671e57d4b4aa0dab45e63dbbd4f1ca1221a5295062a4324f8a7023bd34b46acdfd584924d78bd5f07e2af03e0f81b3
6
+ metadata.gz: 9ab3da56a6ee76bd86d754fa19509337e411994f24af3bfdbaa475a5065d27d60cca6b75d1309cde6b6521baf2540a39f5dfdafd0d8a050401a6b900c53f4b8a
7
+ data.tar.gz: 3f4d609f272214d873e73dff0577b5f2aeb0d7cdb4307fcdff9cd512cb37018ff2c3730c05762e412577ce64e548087b48109c775380d5b6458ea88e17d9f388
@@ -1,3 +1,3 @@
1
1
  module Kuaidi100Rails
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -56,6 +56,11 @@ module Kuaidi100Rails
56
56
  EXPRESS_KEYWORDS.select { |k, v| cn_name.to_s.downcase.include?(v.to_s.downcase) }.keys[0].to_s
57
57
  end
58
58
 
59
+ #en_code to cn_name
60
+ def company_name(code_str)
61
+ EXPRESS_KEYWORDS[code_str.to_s.to_sym]
62
+ end
63
+
59
64
  #subscribe express
60
65
  #===Parameters==
61
66
  #+com+ company code
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuaidi100_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer