push_notifier 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d3bdeb9a9a259e3a2df038ff6426e2dff737376
4
- data.tar.gz: 9070bda9b11422e516833e0d8b50ea717c9c4530
3
+ metadata.gz: e37b1b6d75715c70c38e4e22707b518f83590177
4
+ data.tar.gz: deefd573f688824aa32f57df5504d9569cc10dfd
5
5
  SHA512:
6
- metadata.gz: 0a29aa0f004c560ca484b3ab060910294f896e6b6f995f73f142a9a990b5385ae97a082e6ea59fab2d9349d684454e48b4db71f9afbd590c8020f38f39a51995
7
- data.tar.gz: e37810287597d17316cce45e0701fb0c3b2e13696ba9174190d88c4d1863ffa9791ea867465d7a83cbe8d40599afbb5176a9e261361c671485e7f9fadad3320a
6
+ metadata.gz: 74ba455b412e857d85af02aa8e036ddbed00956d223303343da19cccc485f99f6b822759b8a79afd920369c743d98836c2988f6a83ee55a121fb853782e26ac2
7
+ data.tar.gz: ddbf54a2ffea5652c392b36f95411654916cc9a559e8d5627d74569105a7e57197f596cd97dadecb45d750d0bc69c3b68170f03684890e8d5d4a7853dab38c6b
data/README.md CHANGED
@@ -18,8 +18,17 @@ Or install it yourself as:
18
18
  $ gem install push_notifier
19
19
 
20
20
  ## Usage
21
+ ```
22
+ APNS = PushNotifier::APNS.set_mode :production
23
+
24
+ APNS.certificate = 'certificate.pem'
25
+ APNS.passphrase = 'passphrase' #If you have pasword protected the certiicate
26
+
27
+ notification = PushNotifier::APNS::Notification.new '<device_token>', 'message'
21
28
 
22
- TODO: Write usage instructions here
29
+ APNS.send_message notification
30
+
31
+ ```
23
32
 
24
33
  ## Contributing
25
34
 
@@ -1,3 +1,3 @@
1
1
  module PushNotifier
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['surajshirvankar@gmail.com']
11
11
  spec.summary = ""
12
12
  spec.description = ""
13
- spec.homepage = ''
13
+ spec.homepage = 'http://github.com/h0lyalg0rithm/PushNotifier'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: push_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suraj Shirvankar
@@ -161,7 +161,7 @@ files:
161
161
  - spec/notification_spec.rb
162
162
  - spec/push_notifier_spec.rb
163
163
  - spec/spec_helper.rb
164
- homepage: ''
164
+ homepage: http://github.com/h0lyalg0rithm/PushNotifier
165
165
  licenses:
166
166
  - MIT
167
167
  metadata: {}