xiaomi-push 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -3
- data/lib/xiaomi/push.rb +1 -6
- data/lib/xiaomi/push/commands.rb +0 -5
- data/lib/xiaomi/push/version.rb +1 -1
- data/xiaomi-push.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fb5c2e6c1ee0eafc8af99743a10c7eca42a55ea
|
4
|
+
data.tar.gz: 6adb342258ca17d51b1cc394499092aedb2adc4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5818f4d419effc99c8632b1f42467d91d397149cec3af5d70b3e8a65f8a39bc64317ba6b5d520b1130b44c502e082692c3691e4d0483cfbe5567ef218ef474
|
7
|
+
data.tar.gz: c225e1c92e96b3116b2a29c994646beb554929a63f862bf2121b2d7c3fa270a616853fc6d1d853ea478b7eaa3ed58ae43208bdbeae69b70a8cb016743bc6b751
|
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ task send: :dotenv do
|
|
22
22
|
p 'Send message to android device'
|
23
23
|
client.message.send(reg_id: '', message: message)
|
24
24
|
r = client.message.send(alias: '866383029998732', message: message)
|
25
|
-
r = client.message.send(topic: 'test', message: message)
|
25
|
+
# r = client.message.send(topic: 'test', message: message)
|
26
26
|
puts r
|
27
27
|
|
28
28
|
p 'Send message to ios device'
|
@@ -39,13 +39,13 @@ namespace :topic do
|
|
39
39
|
task subscribe: :dotenv do
|
40
40
|
client = Xiaomi::Push::Android.new(ENV['XIAOMI_PUSH_ANDROID_SECRET'])
|
41
41
|
r = client.topic.subscribe(alias: '866383029998732', name: 'test')
|
42
|
-
|
42
|
+
puts r
|
43
43
|
end
|
44
44
|
|
45
45
|
task unsubscribe: :dotenv do
|
46
46
|
client = Xiaomi::Push::Android.new(ENV['XIAOMI_PUSH_ANDROID_SECRET'])
|
47
47
|
r = client.topic.unsubscribe(alias: '866383029998732', name: 'test')
|
48
|
-
|
48
|
+
puts r
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
data/lib/xiaomi/push.rb
CHANGED
@@ -8,9 +8,4 @@ require 'xiaomi/push/devices/android'
|
|
8
8
|
|
9
9
|
require 'xiaomi/push/services/message'
|
10
10
|
require 'xiaomi/push/services/topic'
|
11
|
-
require 'xiaomi/push/services/feedback'
|
12
|
-
|
13
|
-
unless defined?(Dotenv)
|
14
|
-
require 'dotenv'
|
15
|
-
Dotenv.load
|
16
|
-
end
|
11
|
+
require 'xiaomi/push/services/feedback'
|
data/lib/xiaomi/push/commands.rb
CHANGED
data/lib/xiaomi/push/version.rb
CHANGED
data/xiaomi-push.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xiaomi-push
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- icyleaf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: awesome_print
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
111
|
description: MiPush Server SDK for Ruby
|
126
112
|
email:
|
127
113
|
- icyleaf.cn@gmail.com
|