xmpush 0.0.3 → 0.0.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: 44f85f5a73cf1632ceeb931450724c905bc3c3dc
4
- data.tar.gz: 9f9c0248d068a678c0d4fb0f6b01734a46cef49e
3
+ metadata.gz: e944c88f1fa1a5a523c4f2b07ff3c5e39396c5a6
4
+ data.tar.gz: 02291680f962ee4509394f172aad14254e3af449
5
5
  SHA512:
6
- metadata.gz: aea95504ca6c437000b492ae4e1c8e2f33073187524a39968c4b7fa3e5e1e7bced716329b901f154e73efeea5a7471247e00c287b35cf0d6fb331f9dc0bf5240
7
- data.tar.gz: d63a39eb712b59b7a872faac1e8a84918a081e144355a6685c375cd3424badcc3b56661b0bb0ad810b38128ce54873390519f725c59ca5f36b6aa99ccc80c0a4
6
+ metadata.gz: a1ba080e1db290229119ab64dbb51c6acb07a03a1a426c35e844a2011cf1c6f762d2526d640ab5e03d60227e8f0b479efca6487cbb334c59af2a551a12bb4cef
7
+ data.tar.gz: 8320fb55ae0c7b751aa850c8b18b447972bc9b9e1327323b4938648a2a388c999bccbb2b59f6f864bd14a2418776a9abbbb0171f2ead15b1f8b0fdfccd838712
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## About
2
2
 
3
- [XiaoMi push](dev.xiaomi.com) Ruby SDK
3
+ [XiaoMi push](http://dev.xiaomi.com/) Ruby SDK
4
4
 
5
5
  ## Install
6
6
 
@@ -19,7 +19,7 @@ gem 'xmpush'
19
19
 
20
20
  ```ruby
21
21
  @xm_service = Xmpush::Service.config do |s|
22
- s.sandbox = true
22
+ s.sandbox = true # default false
23
23
  s.ios_secret = "ios secret key"
24
24
  s.bundle_id = "com.xxx.ios"
25
25
  s.android_secret = 'android secret key'
@@ -28,18 +28,14 @@ gem 'xmpush'
28
28
  end
29
29
 
30
30
  # just iOS
31
- message1 = {description: 'hello'}
32
- @message1 = @xm_service.build(:ios, message1)
31
+ @message1 = @xm_service.build(:ios, description: 'hello')
33
32
  @xm_service.push(:all, @message1)
34
33
 
35
- message2 = {description: 'hello alias', extra: {pid: 111}}
36
- @message2 = @xm_service.build(:ios, message2)
37
-
34
+ @message2 = @xm_service.build(:ios, description: 'hello alias', extra: {pid: 111})
38
35
  @xm_service.push(:alias, @message2, alias: '1043478')
39
36
 
40
37
  # iOS and Android
41
- message3 = {description: 'push to iOS and Android client'}
42
- @message2 = @xm_service.build(message3)
38
+ @message3 = @xm_service.build(description: 'push to iOS and Android client')
43
39
  @xm_service.push(:all, @message3)
44
40
 
45
41
  ```
@@ -47,4 +43,5 @@ message3 = {description: 'push to iOS and Android client'}
47
43
  ## TODO
48
44
 
49
45
  - Android push
50
- - feedback/ stats/ tracer/ targeted_message
46
+ - Multi push
47
+ - Feedback/ Stats/ Tracer/ Targeted_message
@@ -11,9 +11,7 @@ module Xmpush
11
11
  end
12
12
 
13
13
  def build
14
- if @extra
15
- extra_message = extra(@extra)
16
- end
14
+ extra_message = extra(@extra) if @extra
17
15
  message = {
18
16
  restricted_package_name: @restricted_package_name,
19
17
  description: @description
@@ -1,3 +1,3 @@
1
1
  module Xmpush
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/xmpush.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ["blackanger.z@gmail.com"]
12
12
  spec.summary = %q{XiaoMi push Ruby Server SDK.}
13
13
  spec.description = %q{XiaoMi push Ruby Server SDK}
14
- spec.homepage = ""
14
+ spec.homepage = "https://github.com/Ruby-Study/xmpush"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - blackanger
@@ -77,7 +77,7 @@ files:
77
77
  - lib/xmpush/version.rb
78
78
  - lib/xmpush/xm_resources.rb
79
79
  - xmpush.gemspec
80
- homepage: ''
80
+ homepage: https://github.com/Ruby-Study/xmpush
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}