push_notification 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d844398c544b824d694aad4f5b36f5a919ef98f9
4
- data.tar.gz: e3eebb8155ccf8b63425d65f93ed15d277665283
3
+ metadata.gz: a83422630df101578c211cac4507690867cc4dda
4
+ data.tar.gz: 4b351bee85cc67209b3e87b8ed7a0cc37be0c58e
5
5
  SHA512:
6
- metadata.gz: d9097b2cf2d3f4efa6e4ddf04bfe206532e193dc54b38f439e68a8b38bf9d97e6f834448f751b2ebdb14c88595ba01eeb34df31d8ba1881294d3f8cae55c0a30
7
- data.tar.gz: 77a0d13a32f105b6bf1701cdcf3fe03b18c41dfdfbc0b5a1810166ee30b0d3968cfa8caee82b57d9729ca393a7b1533051eea56720a088fe0894b51d465bc34c
6
+ metadata.gz: 4357217667a38783d5c7238776814bd3faff37b1984e6d70a1ae76f91d81a79d5ef8d082d327ea03feba76be8f177cc29c6d3f863ebd39300151347b281f0e25
7
+ data.tar.gz: d0a9e52ceaf91157ae408e4ce66c40f5281948c82e7951371a90df20a2c5d871b5fea5fd64fe56e1964a2130ad16b3e353de4ab061551a2ec6a9d8c316c9c46b
data/README.md CHANGED
@@ -23,7 +23,13 @@ Or install it yourself as:
23
23
 
24
24
  ## Usage
25
25
 
26
- TODO: Write usage instructions here
26
+ ```
27
+ push_notification = PushNotification::GcmSender.new(endpoint, local_public_key, auth, server_key_pair)
28
+ push_notification.send(msg)
29
+ ```
30
+
31
+ ## Sample
32
+ - https://github.com/sasurai-usagi3/push-notification-sample
27
33
 
28
34
  ## Development
29
35
 
@@ -1,5 +1,8 @@
1
1
  require 'push_notification/version'
2
2
  require 'push_notification/gcm_sender'
3
+ require 'net/http'
4
+ require 'uri'
5
+ require 'openssl'
3
6
  require 'jwt'
4
7
 
5
8
  module PushNotification
@@ -1,3 +1,3 @@
1
1
  module PushNotification
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: push_notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takumu Uyama