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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 596215b9db023ba5ed57ecdb279b08227b7c181d
4
- data.tar.gz: d404409f70e5b628360cb926ba0229cff4a2a10e
3
+ metadata.gz: 6fb5c2e6c1ee0eafc8af99743a10c7eca42a55ea
4
+ data.tar.gz: 6adb342258ca17d51b1cc394499092aedb2adc4d
5
5
  SHA512:
6
- metadata.gz: 2c5ca54678cff7b74bbc93d8c9d8a90c9de3d7c1c61999caca6425f0dc299023766456a39e5de5af2da691e6e2c8cd5178c73f2e748a2dc0787fcff86dafea72
7
- data.tar.gz: 99cf5f458eb925cea7b54e09fe411d648dfcee67ce5f041579383bc6c65be04b789ea0b7622251962b0be9fbdb2003efb5aac780b9662c4f39f64d7949cc8c11
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
- ap r
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
- ap r
48
+ puts r
49
49
  end
50
50
  end
51
51
 
@@ -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'
@@ -1,7 +1,2 @@
1
1
  require 'xiaomi/push/commands/message'
2
2
  require 'xiaomi/push/commands/feedback'
3
-
4
- unless defined?(Dotenv)
5
- require 'dotenv'
6
- Dotenv.load
7
- end
@@ -1,5 +1,5 @@
1
1
  module Xiaomi
2
2
  module Push
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'.freeze
4
4
  end
5
5
  end
@@ -25,5 +25,4 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency 'rake', '~> 10.0'
26
26
  spec.add_development_dependency 'dotenv', '~> 2.0.1'
27
27
  spec.add_development_dependency 'rspec'
28
- spec.add_development_dependency 'awesome_print'
29
28
  end
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.3
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-03 00:00:00.000000000 Z
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