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 +4 -4
- data/README.md +7 -10
- data/lib/xmpush/ios_builder.rb +1 -3
- data/lib/xmpush/version.rb +1 -1
- data/xmpush.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e944c88f1fa1a5a523c4f2b07ff3c5e39396c5a6
|
4
|
+
data.tar.gz: 02291680f962ee4509394f172aad14254e3af449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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 =
|
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 =
|
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
|
-
-
|
46
|
+
- Multi push
|
47
|
+
- Feedback/ Stats/ Tracer/ Targeted_message
|
data/lib/xmpush/ios_builder.rb
CHANGED
data/lib/xmpush/version.rb
CHANGED
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.
|
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: {}
|