pushpad 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -6
  3. data/lib/pushpad.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d941c8e87de24cb7ba4198735ca46708021d3617
4
- data.tar.gz: e524dc59cbeda5cc9206a19fa8337f74d0ba5b86
3
+ metadata.gz: eacf67b455e6c7f2fc9a23523811381178bcba19
4
+ data.tar.gz: 02e738b3b27f51972f856acc984ffb753cdf6998
5
5
  SHA512:
6
- metadata.gz: 1eae7e84da75f77a2da39f00e9a3fea1c7ec7232c25083290aa3c3dc92fc70cad72388667007af012aea5cb5357eb011bea6cc6a9dbdde29b5e4c2434fa9f828
7
- data.tar.gz: fbd1ad0c2488840b723dbc47efe20d0bf8aaa7e66cc6f2eec188b553f0a76ab20950269d7911a338edbdd8349be02ccec95e881a5070372dbbd804eac566e816
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 ways to collect subscriptions. [Learn more](https://pushpad.xyz/docs#simple_vs_custom_api_docs)
49
+ Pushpad offers two different products. [Learn more](https://pushpad.xyz/docs)
50
50
 
51
- ### Custom API
51
+ ### Pushpad Pro
52
52
 
53
- Choose the Custom API if you want to use Javascript for a seamless integration. [Read the docs](https://pushpad.xyz/docs#custom_api_docs)
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
- ### Simple API
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: `"scheduled"` is the number of devices to which the notification will be sent.
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
 
@@ -1,5 +1,5 @@
1
1
  require 'net/http'
2
- require 'OpenSSL'
2
+ require 'openssl'
3
3
  require 'json'
4
4
 
5
5
  module Pushpad
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.0
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-04-23 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: