baidu_push_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 55cbc0da684eefd33144ce1ac0b2bdceac97e4d6
4
+ data.tar.gz: 0e3cd2b3bbbc33884cbc7ac78726be73d498fc53
5
+ SHA512:
6
+ metadata.gz: 3a01506fad6a3b06c303fa2cf8eaf40d378c2abeec405cb9de6c0058045624830209989e12f50df5a63d4676d148d4e845fd27cfe0b6ded627d9d5df315f4983
7
+ data.tar.gz: d75459fa16184bddcb53a15a8fea031435c9f267e697751d80553ecbb5a15d3a0758da81285920020f9b7b8763ad85a5f1ae873366bbef15b0dd4fd0f5df667d
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ *.un~
15
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in baidu_push_client.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 David Ruan
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,32 @@
1
+ # BaiduPushClient
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'baidu_push_client'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install baidu_push_client
20
+
21
+ ## Usage
22
+
23
+ Read spec for usage and fixtures for request/response examples
24
+
25
+
26
+ ## Contributing
27
+
28
+ 1. Fork it ( https://github.com/[my-github-username]/baidu_push_client/fork )
29
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
30
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
31
+ 4. Push to the branch (`git push origin my-new-feature`)
32
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,30 @@
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_client/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "baidu_push_client"
8
+ spec.version = BaiduPushClient::VERSION
9
+ spec.authors = ["David Ruan"]
10
+ spec.email = ["ruanwz@gmail.com"]
11
+ spec.summary = %q{Baidu Push SDK}
12
+ spec.description = %q{Baidu Push SDK}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
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_dependency "virtus", "~> 1.0"
22
+ spec.add_dependency "faraday", "~> 0.9"
23
+ spec.add_development_dependency "bundler", "~> 1.7"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.0"
26
+ spec.add_development_dependency "pry", "~> 0.10"
27
+ spec.add_development_dependency "vcr", "~> 2.9"
28
+ spec.add_development_dependency "webmock", "~> 1.20"
29
+ spec.add_development_dependency "timecop", "~> 0.7"
30
+ end
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://channel.api.duapp.com/rest/2.0/channel/channel?apikey=9k14jrtoe3HjUnOBcapGIlN8&deploy_status=1&expires=1423035600&message_type=1&messages=%7B%22aps%22:%7B%22alert%22:%22Message%20From%20Baidu%20Push%22%7D%7D&method=push_msg&msg_keys=1423032000&push_type=3&sign=8528e5b11e184af4715d13888c6a2bdf&timestamp=1423032000
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Length:
11
+ - '0'
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=UTF-8
25
+ Pragma:
26
+ - no-cache
27
+ Cache-Control:
28
+ - no-store
29
+ Vary:
30
+ - Accept-Encoding
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Date:
34
+ - Wed, 04 Feb 2015 06:42:38 GMT
35
+ Server:
36
+ - BWS/1.0
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: '{"request_id":642056901,"response_params":{"success_amount":1,"resource_ids":["msgid#9197319785671391763"]}}'
40
+ http_version:
41
+ recorded_at: Wed, 04 Feb 2015 06:40:00 GMT
42
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://channel.api.duapp.com/rest/2.0/channel/channel?apikey=9k14jrtoe3HjUnOBcapGIlN8&channel_id=5329701810242571197&deploy_status=1&device_type=4&expires=1423035600&message_type=1&messages=%7B%22aps%22:%7B%22alert%22:%22Message%20From%20Baidu%20Push%22%7D%7D&method=push_msg&msg_keys=1423032000&push_type=1&sign=30ead8777c75e8bd7ec02ab0a8dd2704&timestamp=1423032000&user_id=1139768951174354557
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Length:
11
+ - '0'
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=UTF-8
25
+ Pragma:
26
+ - no-cache
27
+ Cache-Control:
28
+ - no-store
29
+ Vary:
30
+ - Accept-Encoding
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Date:
34
+ - Wed, 04 Feb 2015 06:42:33 GMT
35
+ Server:
36
+ - BWS/1.0
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: '{"request_id":642052544,"response_params":{"success_amount":1,"msgids":[]}}'
40
+ http_version:
41
+ recorded_at: Wed, 04 Feb 2015 06:40:00 GMT
42
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://channel.api.duapp.com/rest/2.0/channel/channel?apikey=9k14jrtoe3HjUnOBcapGIlN8&channel_id=5329701810242571197&deploy_status=1&device_type=4&expires=1423035600&messages=%7B%22aps%22:%7B%22alert%22:%22Message%20From%20Baidu%20Push%22%7D%7D&method=query_bindlist&msg_keys=1423032000&push_type=&sign=eb53dc842b8850fe654e0c95cd4b8997&timestamp=1423032000&user_id=1139768951174354557
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Length:
11
+ - '0'
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=UTF-8
25
+ Pragma:
26
+ - no-cache
27
+ Cache-Control:
28
+ - no-store
29
+ Vary:
30
+ - Accept-Encoding
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Date:
34
+ - Wed, 04 Feb 2015 06:42:35 GMT
35
+ Server:
36
+ - BWS/1.0
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: '{"request_id":642032147,"response_params":{"total_num":"1","amount":1,"binds":[{"online_status":"off","bind_status":0,"channel_id":"5329701810242571197","user_id":1139768951174354557,"device_id":"e33e9f49ad616f2d1d782256478f8b574d2f4bea","device_type":4,"device_name":"Belinkr\u2019s
40
+ iPad","bind_name":"4751932","bind_time":1422974450,"info":""}]}}'
41
+ http_version:
42
+ recorded_at: Wed, 04 Feb 2015 06:40:00 GMT
43
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,8 @@
1
+ require "baidu_push_client/version"
2
+ require 'baidu_push_client/sign'
3
+ require "baidu_push_client/client"
4
+ require 'baidu_push_client/error'
5
+
6
+ module BaiduPushClient
7
+ # Your code goes here...
8
+ end
@@ -0,0 +1,166 @@
1
+ require 'virtus'
2
+ require 'faraday'
3
+ require 'json'
4
+ module BaiduPushClient
5
+ DEVICE_TYPE = {
6
+ browser: 1,
7
+ pc: 2,
8
+ android: 3,
9
+ ios: 4,
10
+ window_phone: 5
11
+ }
12
+ PUSH_TYPE = {
13
+ user: 1,
14
+ group: 2,
15
+ all: 3
16
+ }
17
+ MESSAGE_TYPE ={
18
+ message: 0,
19
+ notification: 1
20
+
21
+ }
22
+
23
+ DEFAULT_IOS_MSG = {
24
+ description: "hello world",
25
+ notification_basic_style: 7,
26
+ open_type: 0,
27
+ net_support: 1,
28
+ user_confirm: 0,
29
+ url: "http://developer.baidu.com",
30
+ pkg_content: "",
31
+ pkg_name: "com.baidu.bccsclient",
32
+ pkg_version: "0.1",
33
+ aps: {
34
+ alert:"Message From Baidu Push",
35
+ # 'content-available': true,
36
+ sound:"",
37
+ badge:0
38
+ },
39
+ key1: "value1",
40
+ key2: "value2"
41
+ }.to_json
42
+
43
+ DEFAULT_IOS_MSG = {
44
+ aps: {
45
+ alert:"Message From Baidu Push"
46
+ }
47
+ }.to_json
48
+ DEPLOY_STATUS = {
49
+ development: 1,
50
+ production: 2
51
+ }
52
+ class Client
53
+ include Virtus.model
54
+ attribute :server_host, String
55
+ attribute :common_path, String
56
+ attribute :channel_id, String
57
+ attribute :user_id, String
58
+ attribute :ak, String
59
+ attribute :sk, String
60
+ attribute :device_type, Integer, default: DEVICE_TYPE[:ios]
61
+ attribute :push_type, Integer, default: PUSH_TYPE[:user]
62
+ attribute :messages, String, default: DEFAULT_IOS_MSG
63
+ attribute :message_type, Integer, default: MESSAGE_TYPE[:notification]
64
+ attribute :api_method, String, default: 'push_msg'
65
+ attribute :deploy_status, Integer, default: DEPLOY_STATUS[:development]
66
+
67
+ def initialize(options)
68
+ super
69
+ end
70
+
71
+ def query_bindlist(target_hash)
72
+ self.api_method = 'query_bindlist'
73
+ self.attributes = self.attributes.merge target_hash
74
+
75
+ self.push_type = nil
76
+ self.message_type = nil
77
+ resp = rest_client.post url_path_with_query_string do |req|
78
+ req.headers = headers
79
+ end
80
+ resp
81
+ end
82
+
83
+ def push_all(options={})
84
+ self.attributes = self.attributes.merge options
85
+ self.api_method = 'push_msg'
86
+ self.push_type = PUSH_TYPE[:all]
87
+ self.message_type = MESSAGE_TYPE[:notification]
88
+ self.device_type = nil
89
+
90
+ resp = rest_client.post url_path_with_query_string do |req|
91
+ req.headers = headers
92
+ end
93
+ resp
94
+ end
95
+
96
+ def push(target_hash)
97
+ self.attributes = self.attributes.merge target_hash
98
+ self.api_method = 'push_msg'
99
+ resp = rest_client.post url_path_with_query_string do |req|
100
+ req.headers = headers
101
+ end
102
+ resp
103
+ end
104
+
105
+ def sign_request(query_hash)
106
+ # bodyArgs.sign = getSign('POST', PROTOCOL_SCHEMA + host + path, bodyArgs, sk);
107
+
108
+ method = 'POST'
109
+
110
+ url = 'https://' + server_host + url_path
111
+ str = query_hash.sort { |a, b| a[0]<=>b[0] }.map { |x| "#{x[0]}=#{x[1]}" }.join
112
+ urlencoded_str = CGI.escape(method.to_s.upcase + url + str + sk)
113
+ Digest::MD5.hexdigest(urlencoded_str)
114
+ end
115
+
116
+
117
+ def payload
118
+ optional_payload = {
119
+ 'channel_id'=> channel_id,
120
+ 'user_id' => user_id,
121
+ 'device_type' => device_type,
122
+ 'message_type' => message_type,
123
+ 'msg_keys' => Time.now.to_i
124
+ }
125
+ optional_payload.delete_if {|k,v|v.nil?}
126
+
127
+ must_payload = {
128
+ 'deploy_status' => deploy_status,
129
+ 'method' => api_method,
130
+ 'apikey' => ak,
131
+ 'push_type' => push_type,
132
+ 'timestamp' => Time.now.to_i,
133
+ 'expires' => Time.now.to_i+3600
134
+ }
135
+ must_payload.merge(optional_payload).merge({'messages' => messages})
136
+ end
137
+
138
+ private
139
+
140
+ def headers
141
+
142
+ {
143
+ #'Content-Length': bodyStr.length,
144
+ #'Content-Type':'application/x-www-form-urlencoded'
145
+ }
146
+ end
147
+
148
+ def url_path
149
+ common_path + "/channel"
150
+ end
151
+
152
+ def url_path_with_query_string
153
+ hash = payload.merge({sign: sign_request(payload)})
154
+ query_string = (hash.map{|k,v| "#{k}=#{v}"}.join("&"))
155
+ url_path + '?' + query_string
156
+ end
157
+
158
+ def rest_client
159
+ Faraday.new(url: "https://"+server_host) do |faraday|
160
+ #faraday.request :url_encoded
161
+ faraday.response :logger
162
+ faraday.adapter Faraday.default_adapter
163
+ end
164
+ end
165
+ end
166
+ end
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ module BaiduPushClient
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+ require 'vcr_helper'
3
+ require 'timecop'
4
+ describe BaiduPushClient::Client do
5
+ before do
6
+
7
+ Timecop.freeze(Time.local(2015,2,4,14,40))
8
+ end
9
+ after do
10
+ Timecop.return
11
+ end
12
+ options = {
13
+ server_host: 'channel.api.duapp.com',
14
+ common_path: '/rest/2.0/channel',
15
+ ak: '9k14jrtoe3HjUnOBcapGIlN8',
16
+ sk: 'F3iDv4MMm2ZZsXVDvlMVxdueiBikjU3p'
17
+ }
18
+ subject {BaiduPushClient::Client.new(options)}
19
+ it "accept parameters" do
20
+ expect {subject}.to_not raise_error
21
+ end
22
+ it "can access the initialized parameters" do
23
+ expect(subject.server_host).to eq options[:server_host]
24
+ end
25
+ it "push msg to device by userid and channelid" do
26
+
27
+ VCR.use_cassette('push_to_device') do
28
+ expect(subject.push(user_id: 1139768951174354557, channel_id: 5329701810242571197).status).to be 200
29
+ end
30
+ end
31
+ it "query bindlist by userid and channelid" do
32
+ VCR.use_cassette('query_bindlist') do
33
+ expect(subject.query_bindlist(user_id: 1139768951174354557, channel_id: 5329701810242571197).status).to be 200
34
+ end
35
+ end
36
+ it 'push msg to all devices' do
37
+ VCR.use_cassette('push_all') do
38
+ expect(subject.push_all.status).to be 200
39
+ end
40
+ end
41
+ end
File without changes
@@ -0,0 +1,5 @@
1
+ describe BaiduPushClient do
2
+ it 'works' do
3
+ expect(1).to eq 1
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require 'baidu_push_client'
@@ -0,0 +1,7 @@
1
+ require 'vcr'
2
+ require 'webmock'
3
+ VCR.configure do |c|
4
+ c.cassette_library_dir = 'fixtures/vcr_cassettes'
5
+ c.hook_into :webmock # or :fakeweb
6
+ c.allow_http_connections_when_no_cassette = true
7
+ end
metadata ADDED
@@ -0,0 +1,204 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: baidu_push_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - David Ruan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: virtus
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.9'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.9'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.7'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.7'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.10'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.10'
97
+ - !ruby/object:Gem::Dependency
98
+ name: vcr
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.9'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.9'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.20'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.20'
125
+ - !ruby/object:Gem::Dependency
126
+ name: timecop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.7'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.7'
139
+ description: Baidu Push SDK
140
+ email:
141
+ - ruanwz@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - Gemfile
148
+ - LICENSE.txt
149
+ - README.md
150
+ - Rakefile
151
+ - baidu_push_client.gemspec
152
+ - fixtures/vcr_cassettes/push_all.yml
153
+ - fixtures/vcr_cassettes/push_to_device.yml
154
+ - fixtures/vcr_cassettes/query_bindlist.yml
155
+ - lib/.baidu_push.rb.un~
156
+ - lib/baidu_push_client.rb
157
+ - lib/baidu_push_client/.client.rb.un~
158
+ - lib/baidu_push_client/client.rb
159
+ - lib/baidu_push_client/error.rb
160
+ - lib/baidu_push_client/sign.rb
161
+ - lib/baidu_push_client/version.rb
162
+ - spec/.baidu_push_spec.rb.un~
163
+ - spec/.spec_helper.rb.un~
164
+ - spec/.vcr_helper.rb.un~
165
+ - spec/baidu_push_client/.client_spec.rb.un~
166
+ - spec/baidu_push_client/client_spec.rb
167
+ - spec/baidu_push_client/sign_spec.rb
168
+ - spec/baidu_push_client_spec.rb
169
+ - spec/spec_helper.rb
170
+ - spec/vcr_helper.rb
171
+ homepage: ''
172
+ licenses:
173
+ - MIT
174
+ metadata: {}
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ requirements: []
190
+ rubyforge_project:
191
+ rubygems_version: 2.4.5
192
+ signing_key:
193
+ specification_version: 4
194
+ summary: Baidu Push SDK
195
+ test_files:
196
+ - spec/.baidu_push_spec.rb.un~
197
+ - spec/.spec_helper.rb.un~
198
+ - spec/.vcr_helper.rb.un~
199
+ - spec/baidu_push_client/.client_spec.rb.un~
200
+ - spec/baidu_push_client/client_spec.rb
201
+ - spec/baidu_push_client/sign_spec.rb
202
+ - spec/baidu_push_client_spec.rb
203
+ - spec/spec_helper.rb
204
+ - spec/vcr_helper.rb