china-express 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/.rspec +1 -0
- data/.travis.yml +6 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +41 -0
- data/LICENSE.txt +20 -0
- data/README.md +20 -0
- data/Rakefile +42 -0
- data/VERSION +1 -0
- data/china-express.gemspec +70 -0
- data/lib/china-express.rb +25 -0
- data/lib/express/company.rb +36 -0
- data/lib/express/result.rb +19 -0
- data/spec/china-express_spec.rb +44 -0
- data/spec/express/company_spec.rb +38 -0
- data/spec/spec_helper.rb +13 -0
- metadata +162 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
gem "httparty"
|
6
|
+
|
7
|
+
# Add dependencies to develop your gem here.
|
8
|
+
# Include everything needed to run rake, tests, features, etc.
|
9
|
+
group :development do
|
10
|
+
gem "rspec", "~> 2.8.0"
|
11
|
+
gem "yard", "~> 0.7"
|
12
|
+
gem "bundler", "~> 1.1.5"
|
13
|
+
gem "jeweler", "~> 1.8.4"
|
14
|
+
gem "webmock", "~> 1.8.7"
|
15
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.2)
|
5
|
+
crack (0.1.8)
|
6
|
+
diff-lcs (1.1.3)
|
7
|
+
git (1.2.5)
|
8
|
+
httparty (0.7.8)
|
9
|
+
crack (= 0.1.8)
|
10
|
+
jeweler (1.8.4)
|
11
|
+
bundler (~> 1.0)
|
12
|
+
git (>= 1.2.5)
|
13
|
+
rake
|
14
|
+
rdoc
|
15
|
+
json (1.7.5)
|
16
|
+
rake (0.9.2.2)
|
17
|
+
rdoc (3.12)
|
18
|
+
json (~> 1.4)
|
19
|
+
rspec (2.8.0)
|
20
|
+
rspec-core (~> 2.8.0)
|
21
|
+
rspec-expectations (~> 2.8.0)
|
22
|
+
rspec-mocks (~> 2.8.0)
|
23
|
+
rspec-core (2.8.0)
|
24
|
+
rspec-expectations (2.8.0)
|
25
|
+
diff-lcs (~> 1.1.2)
|
26
|
+
rspec-mocks (2.8.0)
|
27
|
+
webmock (1.8.7)
|
28
|
+
addressable (>= 2.2.7)
|
29
|
+
crack (>= 0.1.7)
|
30
|
+
yard (0.8.2.1)
|
31
|
+
|
32
|
+
PLATFORMS
|
33
|
+
ruby
|
34
|
+
|
35
|
+
DEPENDENCIES
|
36
|
+
bundler (~> 1.1.5)
|
37
|
+
httparty
|
38
|
+
jeweler (~> 1.8.4)
|
39
|
+
rspec (~> 2.8.0)
|
40
|
+
webmock (~> 1.8.7)
|
41
|
+
yard (~> 0.7)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 saberma
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
## 中国快递查询
|
2
|
+
|
3
|
+
支持顺丰、EMS、申通、圆通、中通、宅急送、韵达、天天快递、联邦快递、汇通等,无须验证码
|
4
|
+
|
5
|
+
### 安装
|
6
|
+
|
7
|
+
gem install china-express --no-ri --no-rdoc
|
8
|
+
|
9
|
+
### 使用
|
10
|
+
|
11
|
+
请前往 [爱查快递API申请](http://www.ickd.cn/api/reg.html),申请成功,爱查会给你发 `key` 到你的邮箱
|
12
|
+
|
13
|
+
Express.key = 'your_key_here'
|
14
|
+
Express.search (单号', '快递公司')
|
15
|
+
|
16
|
+
### 示例
|
17
|
+
|
18
|
+
result = Express.search('123456', '顺丰')
|
19
|
+
result.success? # true
|
20
|
+
result.data # [{'time' => "2012-10-08 09:20", 'content' => "签收人是:马"}]
|
data/Rakefile
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "china-express"
|
18
|
+
gem.homepage = "http://github.com/saberma/china-express"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{中国快递查询}
|
21
|
+
gem.description = gem.summary
|
22
|
+
gem.email = "mahb45@gmail.com"
|
23
|
+
gem.authors = ["saberma"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'yard'
|
42
|
+
YARD::Rake::YardocTask.new
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "china-express"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["saberma"]
|
12
|
+
s.date = "2012-10-14"
|
13
|
+
s.description = "\u{4e2d}\u{56fd}\u{5feb}\u{9012}\u{67e5}\u{8be2}"
|
14
|
+
s.email = "mahb45@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
".travis.yml",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.md",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"china-express.gemspec",
|
30
|
+
"lib/china-express.rb",
|
31
|
+
"lib/express/company.rb",
|
32
|
+
"lib/express/result.rb",
|
33
|
+
"spec/china-express_spec.rb",
|
34
|
+
"spec/express/company_spec.rb",
|
35
|
+
"spec/spec_helper.rb"
|
36
|
+
]
|
37
|
+
s.homepage = "http://github.com/saberma/china-express"
|
38
|
+
s.licenses = ["MIT"]
|
39
|
+
s.require_paths = ["lib"]
|
40
|
+
s.rubygems_version = "1.8.24"
|
41
|
+
s.summary = "\u{4e2d}\u{56fd}\u{5feb}\u{9012}\u{67e5}\u{8be2}"
|
42
|
+
|
43
|
+
if s.respond_to? :specification_version then
|
44
|
+
s.specification_version = 3
|
45
|
+
|
46
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
|
+
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
48
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
49
|
+
s.add_development_dependency(%q<yard>, ["~> 0.7"])
|
50
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.1.5"])
|
51
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
52
|
+
s.add_development_dependency(%q<webmock>, ["~> 1.8.7"])
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<httparty>, [">= 0"])
|
55
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
56
|
+
s.add_dependency(%q<yard>, ["~> 0.7"])
|
57
|
+
s.add_dependency(%q<bundler>, ["~> 1.1.5"])
|
58
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
59
|
+
s.add_dependency(%q<webmock>, ["~> 1.8.7"])
|
60
|
+
end
|
61
|
+
else
|
62
|
+
s.add_dependency(%q<httparty>, [">= 0"])
|
63
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
64
|
+
s.add_dependency(%q<yard>, ["~> 0.7"])
|
65
|
+
s.add_dependency(%q<bundler>, ["~> 1.1.5"])
|
66
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
67
|
+
s.add_dependency(%q<webmock>, ["~> 1.8.7"])
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'httparty'
|
3
|
+
require 'json'
|
4
|
+
require 'express/company'
|
5
|
+
require 'express/result'
|
6
|
+
|
7
|
+
module Express # 快递查询
|
8
|
+
include HTTParty
|
9
|
+
include Company
|
10
|
+
base_uri 'http://api.ickd.cn'
|
11
|
+
format :json
|
12
|
+
default_params type: :json, encode: :utf8, ord: :asc
|
13
|
+
#debug_output
|
14
|
+
class << self
|
15
|
+
attr_accessor :key
|
16
|
+
end
|
17
|
+
|
18
|
+
# @number 运单号
|
19
|
+
# @company 快递公司拼音
|
20
|
+
def self.search(number, company, key = nil)
|
21
|
+
options= { com: company_code(company), nu: number, id: (key || self.key )}
|
22
|
+
body = get("/", query: options).body
|
23
|
+
Result.new JSON(body)
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Express
|
3
|
+
module Company
|
4
|
+
MATCHES = {
|
5
|
+
/顺丰/ => 'shunfeng',
|
6
|
+
/ems/i => 'ems',
|
7
|
+
/申通/ => 'shentong',
|
8
|
+
/圆通/ => 'yuantong',
|
9
|
+
/中通/ => 'zhongtong',
|
10
|
+
/宅急送/ => 'zhaijisong',
|
11
|
+
/韵达/ => 'yunda',
|
12
|
+
/天天/ => 'tiantian',
|
13
|
+
/联邦|Fedex/i => 'fedexcn',
|
14
|
+
/汇通/ => 'huitong'
|
15
|
+
}
|
16
|
+
|
17
|
+
def self.included(base)
|
18
|
+
base.extend(ClassMethods)
|
19
|
+
end
|
20
|
+
|
21
|
+
module ClassMethods
|
22
|
+
|
23
|
+
def company_code(name)
|
24
|
+
result = ''
|
25
|
+
MATCHES.each do |pattern, code|
|
26
|
+
if name =~ pattern
|
27
|
+
result = code
|
28
|
+
break
|
29
|
+
end
|
30
|
+
end
|
31
|
+
result
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
module Express
|
3
|
+
class Result
|
4
|
+
attr_accessor :status, :data
|
5
|
+
|
6
|
+
def initialize(json)
|
7
|
+
self.status = json['status']
|
8
|
+
self.data = json['data']
|
9
|
+
end
|
10
|
+
|
11
|
+
def success?
|
12
|
+
status == '3'
|
13
|
+
end
|
14
|
+
|
15
|
+
def to_s
|
16
|
+
{success: self.success?, data: self.data}.to_s
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
3
|
+
|
4
|
+
describe "ChinaExpress" do
|
5
|
+
|
6
|
+
let(:key) { '774F751593116B5A761C63736004A9B2' }
|
7
|
+
|
8
|
+
let(:number) { '109999669998' }
|
9
|
+
|
10
|
+
let(:company) { '顺丰快递' } # 顺丰
|
11
|
+
|
12
|
+
let(:company_code) { 'shunfeng' }
|
13
|
+
|
14
|
+
let(:body) do
|
15
|
+
{
|
16
|
+
'status' => "3",
|
17
|
+
'message' => "",
|
18
|
+
'errCode' => "0",
|
19
|
+
'data' => [
|
20
|
+
{'time' => "2012-09-28 19:19", 'content' => "已收件"},
|
21
|
+
{'time' => "2012-09-28 19:58", 'content' => "快件在 深圳 ,准备送往下一站深圳集散中心"},
|
22
|
+
{'time' => "2012-09-28 21:24", 'content' => "快件在 深圳集散中心 ,准备送往下一站上海集散中心"},
|
23
|
+
{'time' => "2012-09-29 10:16", 'content' => "快件在 上海集散中心 ,准备送往下一站上海集散中心"},
|
24
|
+
{'time' => "2012-09-29 15:58", 'content' => "快件在 上海集散中心 ,准备送往下一站上海"},
|
25
|
+
{'time' => "2012-10-08 08:21", 'content' => "正在派件.."},
|
26
|
+
{'time' => "2012-10-08 09:20", 'content' => "派件已签收"},
|
27
|
+
{'time' => "2012-10-08 09:20", 'content' => "签收人是:马"}
|
28
|
+
]
|
29
|
+
}.to_json.to_s
|
30
|
+
end
|
31
|
+
|
32
|
+
before do
|
33
|
+
stub_request(:get, "http://api.ickd.cn/?com=#{company_code}&encode=utf8&id=#{key}&nu=#{number}&ord=asc&type=json").to_return(body: body)
|
34
|
+
#WebMock.allow_net_connect!
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should be search" do
|
38
|
+
Express.key = key
|
39
|
+
result = Express.search(number, company)
|
40
|
+
result.success?.should be_true
|
41
|
+
result.data.should_not be_empty
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
3
|
+
|
4
|
+
describe "Company" do
|
5
|
+
|
6
|
+
let(:list) do
|
7
|
+
{
|
8
|
+
'顺丰快递' => 'shunfeng',
|
9
|
+
'顺丰' => 'shunfeng',
|
10
|
+
'EMS' => 'ems',
|
11
|
+
'ems' => 'ems',
|
12
|
+
'申通E物流' => 'shentong',
|
13
|
+
'申通快递' => 'shentong',
|
14
|
+
'申通' => 'shentong',
|
15
|
+
'圆通快递' => 'yuantong',
|
16
|
+
'圆通速递' => 'yuantong',
|
17
|
+
'圆通' => 'yuantong',
|
18
|
+
'中通速递' => 'zhongtong',
|
19
|
+
'中通' => 'zhongtong',
|
20
|
+
'宅急送快递' => 'zhaijisong',
|
21
|
+
'宅急送' => 'zhaijisong',
|
22
|
+
'韵达快运' => 'yunda',
|
23
|
+
'韵达快递' => 'yunda',
|
24
|
+
'天天快递' => 'tiantian',
|
25
|
+
'联邦快递' => 'fedexcn',
|
26
|
+
'Fedex国内' => 'fedexcn',
|
27
|
+
'汇通快运' => 'huitong',
|
28
|
+
'汇通快递' => 'huitong'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should be search" do
|
33
|
+
list.each do |name, code|
|
34
|
+
Express.company_code(name).should eql code
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'webmock/rspec'
|
5
|
+
require 'china-express'
|
6
|
+
|
7
|
+
# Requires supporting files with custom matchers and macros, etc,
|
8
|
+
# in ./support/ and its subdirectories.
|
9
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
10
|
+
|
11
|
+
RSpec.configure do |config|
|
12
|
+
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: china-express
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- saberma
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: httparty
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 2.8.0
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.8.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: yard
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.7'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.7'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: bundler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.1.5
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.1.5
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: jeweler
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.8.4
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.8.4
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: webmock
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.8.7
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.8.7
|
110
|
+
description: 中国快递查询
|
111
|
+
email: mahb45@gmail.com
|
112
|
+
executables: []
|
113
|
+
extensions: []
|
114
|
+
extra_rdoc_files:
|
115
|
+
- LICENSE.txt
|
116
|
+
- README.md
|
117
|
+
files:
|
118
|
+
- .document
|
119
|
+
- .rspec
|
120
|
+
- .travis.yml
|
121
|
+
- Gemfile
|
122
|
+
- Gemfile.lock
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- VERSION
|
127
|
+
- china-express.gemspec
|
128
|
+
- lib/china-express.rb
|
129
|
+
- lib/express/company.rb
|
130
|
+
- lib/express/result.rb
|
131
|
+
- spec/china-express_spec.rb
|
132
|
+
- spec/express/company_spec.rb
|
133
|
+
- spec/spec_helper.rb
|
134
|
+
homepage: http://github.com/saberma/china-express
|
135
|
+
licenses:
|
136
|
+
- MIT
|
137
|
+
post_install_message:
|
138
|
+
rdoc_options: []
|
139
|
+
require_paths:
|
140
|
+
- lib
|
141
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - ! '>='
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
segments:
|
148
|
+
- 0
|
149
|
+
hash: 562288499
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ! '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 1.8.24
|
159
|
+
signing_key:
|
160
|
+
specification_version: 3
|
161
|
+
summary: 中国快递查询
|
162
|
+
test_files: []
|