kuaidi100_rails 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bc2fe0e0bdbde3cf91ff10baf0b16907a40a23f
4
- data.tar.gz: dde3a8bfd27906027e66e5b1bb442e60cd261c64
3
+ metadata.gz: 0a03431f07b75f79c9d641968d0cbe32d32ec88c
4
+ data.tar.gz: 4e26e8e3362f83f93d208fa4f8288573bbb6d485
5
5
  SHA512:
6
- metadata.gz: 6b1cf7674ce685019e3aa2b0dc792b784bcf1c4c465e1b4ddc2a0da21eb8e149287df640cf92d3e06100566c854209ff77977d0229d64c1338d979cfb338d4c2
7
- data.tar.gz: 998c7947eddaee8330f79ae54653d43002bdf72ddc3dc154e931efb8f865b629a11b9d0637b3e2f8bc312ee6a9cb8711fcbacca32a9cd28d0b2d9fd23c1ff58c
6
+ metadata.gz: 8eb95d086e5d99b95e8007c77665ddc3dfbf3a9f14990843c5ee8adbef0d1a41849eb6fadfaa72448113fa5b4023e3df928731098e69e639f6f9c5663f9a1c94
7
+ data.tar.gz: fd0fa4ac3fb25d9d655520fa695ba33a2ad73835417ca4a6d6a98633aadb76d1f22b2fc812579b0c9577075094ff17d699df24d6d07f2584d2ea837b3eb1d87b
@@ -1,3 +1,3 @@
1
1
  module Kuaidi100Rails
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -61,10 +61,11 @@ module Kuaidi100Rails
61
61
 
62
62
  hash = SHash.new(JSON.parse(response.body))
63
63
  p hash
64
-
64
+ return hash[:returnCode].to_i
65
65
  rescue Exception => e
66
66
  puts "error #{e}"
67
67
  end
68
+ 0
68
69
  end
69
70
 
70
71
  class SHash < Hash
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer