baidu_push 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +3 -0
- data/Gemfile +5 -0
- data/Guardfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/baidu_push.gemspec +27 -0
- data/lib/baidu_push/client.rb +144 -0
- data/lib/baidu_push/request.rb +43 -0
- data/lib/baidu_push/version.rb +3 -0
- data/lib/baidu_push.rb +6 -0
- data/spec/baidu_push/client_spec.rb +76 -0
- data/spec/baidu_push/request_spec.rb +48 -0
- data/spec/spec_helper.rb +9 -0
- metadata +133 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 60c36320963361e615d6c7bb0bc4b5cad99c2310
|
4
|
+
data.tar.gz: 4242dbd5a7feb00b49a6ae90ec4d2e4dd86200d2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b84c2309f640a298875afde37d66ec2be2f22cc2f143974b10a4044d4883c2b3554cf61e895079acd8704aa362e05c43b02aec3bc53b657d351f0e28614a3e7a
|
7
|
+
data.tar.gz: be819505fc34d8ad8965383923d74429d1f7f0212907d610bc6c9fb0db1e77ddb0c8b916438b8ebcf9a17f14d64c5b29ffb9c0c462febbc068d8abd190ebeac5
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 fahchen
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# BaiduPush
|
2
|
+
|
3
|
+
The ruby wrapper of baidu push.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'baidu_push'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install baidu_push
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/baidu_push.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'baidu_push/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'baidu_push'
|
8
|
+
spec.version = BaiduPush::VERSION
|
9
|
+
spec.authors = ['fahchen']
|
10
|
+
spec.email = ['dev.fah@gmail.com']
|
11
|
+
spec.description = %q{The ruby wrapper of baidu push.}
|
12
|
+
spec.summary = %q{The ruby wrapper of baidu push.}
|
13
|
+
spec.homepage = ''
|
14
|
+
spec.license = 'MIb'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
|
+
spec.add_development_dependency 'rspec'
|
24
|
+
spec.add_development_dependency 'webmock'
|
25
|
+
|
26
|
+
spec.add_dependency 'httparty', ['>= 0.12.0']
|
27
|
+
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
module BaiduPush
|
2
|
+
class Client
|
3
|
+
|
4
|
+
API_HOST = 'channel.api.duapp.com'
|
5
|
+
DEFAULT_RESOURCE = 'channel'
|
6
|
+
|
7
|
+
DEFAULT_OPTIONS = {
|
8
|
+
use_ssl: false,
|
9
|
+
api_version: '2.0'
|
10
|
+
}
|
11
|
+
|
12
|
+
attr_reader :api_key, :secret_key, :api_url, :request, :options
|
13
|
+
attr_accessor :resource
|
14
|
+
|
15
|
+
def initialize(api_key, secret_key, options = {})
|
16
|
+
@api_key, @secret_key = (api_key || '').strip, (secret_key || '').strip
|
17
|
+
@options = DEFAULT_OPTIONS.merge options
|
18
|
+
|
19
|
+
set_api_url
|
20
|
+
@resource ||= DEFAULT_RESOURCE
|
21
|
+
@request = Request.new(self)
|
22
|
+
end
|
23
|
+
|
24
|
+
###################################################
|
25
|
+
# Basic API
|
26
|
+
#
|
27
|
+
def query_bindlist(params = {})
|
28
|
+
@request.fetch(:query_bindlist, params)
|
29
|
+
end
|
30
|
+
|
31
|
+
def push_msg(push_type, messages, msg_keys, params = {})
|
32
|
+
set_to_default_resource
|
33
|
+
params.merge!({
|
34
|
+
push_type: push_type,
|
35
|
+
messages: messages.to_json,
|
36
|
+
msg_keys: msg_keys
|
37
|
+
})
|
38
|
+
@request.fetch(:push_msg, params)
|
39
|
+
end
|
40
|
+
|
41
|
+
def init_app_ioscert(name, description, release_cert, dev_cert, params = {})
|
42
|
+
params.merge!({
|
43
|
+
name: name,
|
44
|
+
description: description,
|
45
|
+
release_cert: release_cert,
|
46
|
+
dev_cert: dev_cert
|
47
|
+
})
|
48
|
+
@request.fetch(:init_app_ioscert, params)
|
49
|
+
end
|
50
|
+
|
51
|
+
def update_app_ioscert(params = {})
|
52
|
+
@request.fetch(:update_app_ioscert, params)
|
53
|
+
end
|
54
|
+
|
55
|
+
def delete_app_ioscert(params = {})
|
56
|
+
@request.fetch(:delete_app_ioscert, params)
|
57
|
+
end
|
58
|
+
|
59
|
+
def query_app_ioscert(params = {})
|
60
|
+
@request.fetch(:query_app_ioscert, params)
|
61
|
+
end
|
62
|
+
#
|
63
|
+
# Basic API
|
64
|
+
###################################################
|
65
|
+
|
66
|
+
###################################################
|
67
|
+
# Advanced API
|
68
|
+
#
|
69
|
+
def verify_bind(user_id, params = {})
|
70
|
+
params.merge!({
|
71
|
+
user_id: user_id
|
72
|
+
})
|
73
|
+
@request.fetch(:verify_bind, params)
|
74
|
+
end
|
75
|
+
|
76
|
+
def fetch_msg(user_id, params = {})
|
77
|
+
params.merge!({
|
78
|
+
user_id: user_id
|
79
|
+
})
|
80
|
+
@request.fetch(:fetch_msg, params)
|
81
|
+
end
|
82
|
+
|
83
|
+
def fetch_msgcount(user_id, params = {})
|
84
|
+
params.merge!({
|
85
|
+
user_id: user_id
|
86
|
+
})
|
87
|
+
@request.fetch(:fetch_msgcount, params)
|
88
|
+
end
|
89
|
+
|
90
|
+
def delete_msg(user_id, msg_ids, params = {})
|
91
|
+
params.merge!({
|
92
|
+
user_id: user_id,
|
93
|
+
msg_ids: msg_ids.to_json
|
94
|
+
})
|
95
|
+
@request.fetch(:delete_msg, params)
|
96
|
+
end
|
97
|
+
|
98
|
+
def set_tag(tag, params = {})
|
99
|
+
set_to_default_resource
|
100
|
+
params.merge!({
|
101
|
+
tag: tag
|
102
|
+
})
|
103
|
+
@request.fetch(:set_tag, params)
|
104
|
+
end
|
105
|
+
|
106
|
+
def fetch_tag(params = {})
|
107
|
+
set_to_default_resource
|
108
|
+
@request.fetch(:fetch_tag, params)
|
109
|
+
end
|
110
|
+
|
111
|
+
def delete_tag(tag, params = {})
|
112
|
+
set_to_default_resource
|
113
|
+
params.merge!({
|
114
|
+
tag: tag
|
115
|
+
})
|
116
|
+
@request.fetch(:delete_tag, params)
|
117
|
+
end
|
118
|
+
|
119
|
+
def query_user_tags(user_id, params = {})
|
120
|
+
set_to_default_resource
|
121
|
+
params.merge!({
|
122
|
+
user_id: user_id
|
123
|
+
})
|
124
|
+
@request.fetch(:query_user_tags, params)
|
125
|
+
end
|
126
|
+
|
127
|
+
def query_device_type(params = {})
|
128
|
+
@request.fetch(:query_device_type, params)
|
129
|
+
end
|
130
|
+
#
|
131
|
+
# Advanced API
|
132
|
+
###################################################
|
133
|
+
|
134
|
+
private
|
135
|
+
def set_api_url
|
136
|
+
scheme = @options[:use_ssl] ? 'https' : 'http'
|
137
|
+
@api_url = "#{scheme}://#{API_HOST}/rest/#{@options[:api_version]}/channel"
|
138
|
+
end
|
139
|
+
|
140
|
+
def set_to_default_resource
|
141
|
+
@resource = DEFAULT_RESOURCE
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'open-uri'
|
3
|
+
require 'digest'
|
4
|
+
|
5
|
+
module BaiduPush
|
6
|
+
class Request
|
7
|
+
include HTTParty
|
8
|
+
|
9
|
+
HTTP_METHOD = :post
|
10
|
+
|
11
|
+
attr_reader :client
|
12
|
+
|
13
|
+
def initialize(client)
|
14
|
+
@client = client
|
15
|
+
|
16
|
+
set_base_uri
|
17
|
+
end
|
18
|
+
|
19
|
+
def fetch(method, params = {})
|
20
|
+
params.merge!({method: method,
|
21
|
+
apikey: @client.api_key,
|
22
|
+
timestamp: Time.now.to_i})
|
23
|
+
sign = generate_sign(params)
|
24
|
+
params.merge!({ sign: sign })
|
25
|
+
|
26
|
+
options = { body: params }
|
27
|
+
self.class.send(HTTP_METHOD, "/#{@client.resource}", options)
|
28
|
+
end
|
29
|
+
|
30
|
+
def generate_sign(sign_params)
|
31
|
+
params_string = sign_params.sort.map{ |h| h.join('=') }.join
|
32
|
+
gather = "#{HTTP_METHOD.to_s.upcase}#{self.class.base_uri}/#{@client.resource}#{params_string}#{@client.secret_key}"
|
33
|
+
|
34
|
+
Digest::MD5.hexdigest(URI::encode_www_form_component(gather))
|
35
|
+
end
|
36
|
+
|
37
|
+
private
|
38
|
+
def set_base_uri
|
39
|
+
self.class.base_uri "#{@client.api_url}"
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
data/lib/baidu_push.rb
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BaiduPush::Client do
|
4
|
+
let(:api_key) { 'api_key' }
|
5
|
+
let(:secret_key) { 'secret_key' }
|
6
|
+
let(:resource) { 'channel_id' }
|
7
|
+
let(:client) do
|
8
|
+
BaiduPush::Client.new(api_key,
|
9
|
+
secret_key)
|
10
|
+
end
|
11
|
+
let(:client_use_ssl) do
|
12
|
+
BaiduPush::Client.new(api_key,
|
13
|
+
secret_key,
|
14
|
+
{ use_ssl: true })
|
15
|
+
end
|
16
|
+
|
17
|
+
before(:each) do
|
18
|
+
stub_request(:any, /.*channel\.api\.duapp\.com.*/)
|
19
|
+
.to_return(status: 200, body: 'body', headers: { 'Content-Type' => 'application/json;charset=utf-8' })
|
20
|
+
end
|
21
|
+
|
22
|
+
context '#set_api_url' do
|
23
|
+
it 'should use https uri' do
|
24
|
+
client_use_ssl.api_url.should == 'https://channel.api.duapp.com/rest/2.0/channel'
|
25
|
+
end
|
26
|
+
it 'should use http uri' do
|
27
|
+
client.api_url.should == 'http://channel.api.duapp.com/rest/2.0/channel'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
context '#query_bindlist' do
|
32
|
+
it 'shuold respond to' do
|
33
|
+
client.should respond_to(:query_bindlist)
|
34
|
+
end
|
35
|
+
it 'should not raise error' do
|
36
|
+
client.query_bindlist(limit: 1)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
context '#request' do
|
41
|
+
it 'should respond_to' do
|
42
|
+
client.should respond_to(:request)
|
43
|
+
end
|
44
|
+
it 'should not raise error' do
|
45
|
+
client.request
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
context '#resource' do
|
50
|
+
it 'should return default resource' do
|
51
|
+
client.resource.should == 'channel'
|
52
|
+
end
|
53
|
+
it 'should update resource' do
|
54
|
+
client.resource = resource
|
55
|
+
client.resource.should == resource
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context '#push_msg' do
|
60
|
+
before(:each) do
|
61
|
+
@push_type = 1
|
62
|
+
@messages = {
|
63
|
+
title: 'title',
|
64
|
+
description: 'description'
|
65
|
+
}
|
66
|
+
@msg_keys = 'key'
|
67
|
+
end
|
68
|
+
it 'should respond_to' do
|
69
|
+
client.should respond_to(:push_msg)
|
70
|
+
end
|
71
|
+
it 'should not raise error' do
|
72
|
+
client.push_msg @push_msg, @messages, @msg_keys
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BaiduPush::Request do
|
4
|
+
before(:each) do
|
5
|
+
@api_key = 'api_key'
|
6
|
+
@secret_key = 'secret_key'
|
7
|
+
@client_enable_ssl = BaiduPush::Client.new(@api_key,
|
8
|
+
@secret_key,
|
9
|
+
{ use_ssl: true })
|
10
|
+
@client = BaiduPush::Client.new(@api_key,
|
11
|
+
@secret_key)
|
12
|
+
@method = :test
|
13
|
+
@resource = 'channel'
|
14
|
+
end
|
15
|
+
|
16
|
+
context '#set_base_uri' do
|
17
|
+
it 'should set https base_uri' do
|
18
|
+
request = BaiduPush::Request.new(@client_enable_ssl)
|
19
|
+
request.class.base_uri.should == 'https://channel.api.duapp.com/rest/2.0/channel'
|
20
|
+
end
|
21
|
+
it 'should set http base_uri' do
|
22
|
+
request = BaiduPush::Request.new(@client)
|
23
|
+
request.class.base_uri.should == 'http://channel.api.duapp.com/rest/2.0/channel'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context '#generate_sign' do
|
28
|
+
before(:each) do
|
29
|
+
@request = BaiduPush::Request.new(@client)
|
30
|
+
end
|
31
|
+
it 'should not raise error when generate sign' do
|
32
|
+
@request.generate_sign(k1: 'v1', k2: 'v2', k3: 'v3')
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
context '#fetch' do
|
37
|
+
before(:each) do
|
38
|
+
stub_request(:any, /.*channel\.api\.duapp\.com.*/)
|
39
|
+
.to_return(status: 200, body: 'aa', headers: { 'Content-Type' => 'application/json;charset=utf-8' })
|
40
|
+
@request = BaiduPush::Request.new(@client)
|
41
|
+
end
|
42
|
+
it 'should not raise error when fetch' do
|
43
|
+
@request.fetch(@method)
|
44
|
+
@request.fetch(@method)
|
45
|
+
@request.fetch(@method, k: 'v')
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: baidu_push
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- fahchen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: httparty
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.12.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.12.0
|
83
|
+
description: The ruby wrapper of baidu push.
|
84
|
+
email:
|
85
|
+
- dev.fah@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- .gitignore
|
91
|
+
- .rspec
|
92
|
+
- Gemfile
|
93
|
+
- Guardfile
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- baidu_push.gemspec
|
98
|
+
- lib/baidu_push.rb
|
99
|
+
- lib/baidu_push/client.rb
|
100
|
+
- lib/baidu_push/request.rb
|
101
|
+
- lib/baidu_push/version.rb
|
102
|
+
- spec/baidu_push/client_spec.rb
|
103
|
+
- spec/baidu_push/request_spec.rb
|
104
|
+
- spec/spec_helper.rb
|
105
|
+
homepage: ''
|
106
|
+
licenses:
|
107
|
+
- MIb
|
108
|
+
metadata: {}
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.0.7
|
126
|
+
signing_key:
|
127
|
+
specification_version: 4
|
128
|
+
summary: The ruby wrapper of baidu push.
|
129
|
+
test_files:
|
130
|
+
- spec/baidu_push/client_spec.rb
|
131
|
+
- spec/baidu_push/request_spec.rb
|
132
|
+
- spec/spec_helper.rb
|
133
|
+
has_rdoc:
|