pushio 0.1.0 → 0.1.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 (3) hide show
  1. data/README.md +5 -5
  2. data/lib/push_io/version.rb +1 -1
  3. metadata +7 -7
data/README.md CHANGED
@@ -39,27 +39,27 @@ end
39
39
 
40
40
  Send a broadcast push to everyone registered for your app:
41
41
  ```ruby
42
- notification_id = PushIo::Client.deliver_broadcast :payload => {:message => "Broadcast Test"}
42
+ notification_id = PushIo::Client.new.deliver_broadcast :payload => {:message => "Broadcast Test"}
43
43
  ```
44
44
 
45
45
  Send a push to an audience:
46
46
  ```ruby
47
- notification_id = PushIo::Client.deliver_to_audience "friends", :payload => {:message => "Howdy Friends", :payload_apns => {:badge => 8}}
47
+ notification_id = PushIo::Client.new.deliver_to_audience "friends", :payload => {:message => "Howdy Friends", :payload_apns => {:badge => 8}}
48
48
  ```
49
49
 
50
50
  Send a push to a targeted query:
51
51
  ```ruby
52
- notification_id = PushIo::Client.deliver_to_query "Alpha or Bravo", :payload => {:message => "Query Test"}
52
+ notification_id = PushIo::Client.new.deliver_to_query "Alpha or Bravo", :payload => {:message => "Query Test"}
53
53
  ```
54
54
 
55
55
  Send a push to a known device ID:
56
56
  ```ruby
57
- notification_id = PushIo::Client.deliver_to_ids "APIKEY1234_a123", ['B3606524-AE35-458A-9FE9-7B6FE8D99CE4'], :payload => {:message => "Hello Push IO"}
57
+ notification_id = PushIo::Client.new.deliver_to_ids "APIKEY1234_a123", ['B3606524-AE35-458A-9FE9-7B6FE8D99CE4'], :payload => {:message => "Hello Push IO"}
58
58
  ```
59
59
 
60
60
  Send a push to a known device Token:
61
61
  ```ruby
62
- notification_id = PushIo::Client.deliver_to_tokens "APIKEY1234_a123", ['abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd'], :payload => {:message => "Hello Push IO"}
62
+ notification_id = PushIo::Client.new.deliver_to_tokens "APIKEY1234_a123", ['abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd'], :payload => {:message => "Hello Push IO"}
63
63
  ```
64
64
 
65
65
 
@@ -1,3 +1,3 @@
1
1
  module PushIo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2013-07-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httpclient
17
- requirement: &70111734375140 !ruby/object:Gem::Requirement
17
+ requirement: &70314151266820 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.2.7
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70111734375140
25
+ version_requirements: *70314151266820
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: multi_json
28
- requirement: &70111734374220 !ruby/object:Gem::Requirement
28
+ requirement: &70314151265160 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70111734374220
36
+ version_requirements: *70314151265160
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec
39
- requirement: &70111734373300 !ruby/object:Gem::Requirement
39
+ requirement: &70314151263340 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 2.11.0
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70111734373300
47
+ version_requirements: *70314151263340
48
48
  description: ! 'Ruby client library to send push notifications via the Push IO API.
49
49
  See: http://push.io for more information and to set up your account.'
50
50
  email: