pushpad 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/lib/pushpad.rb +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: eacf67b455e6c7f2fc9a23523811381178bcba19
|
4
|
+
data.tar.gz: 02e738b3b27f51972f856acc984ffb753cdf6998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9205b965cef3e6d66aeb5a1d18f0a38ef009d6d58f0639a0b4f80657a0759ce090d11dafaa03299366bbb611b3d131b7913d29516b29162be4ff68fa2a22cf18
|
7
|
+
data.tar.gz: fda326dceba48f7672b20a2c48dc2e750bda53c4e29d6f9567e4747c7e114201c8f640179ffc30af064b8d3068e76c2fd481a4f6dd9c818a76605252ad6b463e
|
data/README.md
CHANGED
@@ -46,11 +46,11 @@ Pushpad.project_id = 123 # set it here or pass it as a param to methods later
|
|
46
46
|
|
47
47
|
## Collecting user subscriptions to push notifications
|
48
48
|
|
49
|
-
Pushpad offers two different
|
49
|
+
Pushpad offers two different products. [Learn more](https://pushpad.xyz/docs)
|
50
50
|
|
51
|
-
###
|
51
|
+
### Pushpad Pro
|
52
52
|
|
53
|
-
Choose
|
53
|
+
Choose Pushpad Pro if you want to use Javascript for a seamless integration. [Read the docs](https://pushpad.xyz/docs/pushpad_pro_getting_started)
|
54
54
|
|
55
55
|
If you need to generate the HMAC signature for the `uid` you can use this helper:
|
56
56
|
|
@@ -58,7 +58,7 @@ If you need to generate the HMAC signature for the `uid` you can use this helper
|
|
58
58
|
Pushpad.signature_for current_user.id
|
59
59
|
```
|
60
60
|
|
61
|
-
###
|
61
|
+
### Pushpad Express
|
62
62
|
|
63
63
|
Add a link to let users subscribe to push notifications:
|
64
64
|
|
@@ -96,12 +96,14 @@ notification.broadcast tags: ['segment1', 'segment2']
|
|
96
96
|
|
97
97
|
# deliver to everyone
|
98
98
|
notification.broadcast
|
99
|
-
# => {"scheduled": 12}
|
100
99
|
```
|
101
100
|
|
102
101
|
If no user with that id has subscribed to push notifications, that id is simply ignored.
|
103
102
|
|
104
|
-
The methods above return an hash:
|
103
|
+
The methods above return an hash:
|
104
|
+
|
105
|
+
- `"scheduled"` is the number of devices to which the notification will be sent
|
106
|
+
- `"uids"` (`deliver_to` only) are the user IDs that will be actually reached by the notification (unless they have unsubscribed since the last notification)
|
105
107
|
|
106
108
|
## License
|
107
109
|
|
data/lib/pushpad.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushpad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pushpad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|