push_notifier 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/lib/push_notifier/version.rb +1 -1
- data/push_notifier.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: e37b1b6d75715c70c38e4e22707b518f83590177
|
4
|
+
data.tar.gz: deefd573f688824aa32f57df5504d9569cc10dfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
29
|
+
APNS.send_message notification
|
30
|
+
|
31
|
+
```
|
23
32
|
|
24
33
|
## Contributing
|
25
34
|
|
data/push_notifier.gemspec
CHANGED
@@ -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.
|
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: {}
|