passbook 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/passbook/push_notification.rb +13 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4862a0315abbd584b5404c44f33c60dd30f5f61
|
4
|
+
data.tar.gz: 8e0a49bd76d487a566d0b4f6f11a154a08f4b614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61d085a7b2fa4005be062ef03529786fe7bb676e96080564b77a22b81f8e606f263a8f7581e8315f886ccf7246d8b87820abfa2767a4b24bfca685c51dd59323
|
7
|
+
data.tar.gz: c2084818073a26e43a7f8a43ac51eef614c9e84abe3ee0a6af2cc013b4f6dca5f9be9104eb2a0e05b6034425d2dc4c986c2a967a5ae521e48950c833cf869364
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
@@ -1,10 +1,19 @@
|
|
1
1
|
module Passbook
|
2
2
|
class PushNotification
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
class << self
|
4
|
+
def pusher
|
5
|
+
@pusher ||= Grocer.pusher(
|
6
|
+
:certificate => Passbook.notification_cert,
|
7
|
+
:passphrase => Passbook.notification_passphrase || "",
|
8
|
+
:gateway => Passbook.notification_gateway
|
9
|
+
)
|
10
|
+
end
|
6
11
|
|
7
|
-
|
12
|
+
def send_notification(device_token)
|
13
|
+
notification = Grocer::PassbookNotification.new(:device_token => device_token)
|
14
|
+
|
15
|
+
pusher.push notification
|
16
|
+
end
|
8
17
|
end
|
9
18
|
end
|
10
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passbook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Lauro
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
238
|
rubyforge_project:
|
239
|
-
rubygems_version: 2.4.
|
239
|
+
rubygems_version: 2.4.6
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: A IOS Passbook generator.
|