passbook 0.4.2 → 0.4.3

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: 9cbc86e695bdad78634e5ef6ca96bd2dd541e6b2
4
- data.tar.gz: 9c8c6fd550bb913acd37630085854759550e2943
3
+ metadata.gz: b4862a0315abbd584b5404c44f33c60dd30f5f61
4
+ data.tar.gz: 8e0a49bd76d487a566d0b4f6f11a154a08f4b614
5
5
  SHA512:
6
- metadata.gz: ac675f8951033f88c41d1cd35d1fd222688beb2cfe5556b1b4e3297cff8d5d39d6b06028dcfbdf26f20168f501c63d0722ed4feb98af4932d5863f21eb8260d3
7
- data.tar.gz: 0e366333bdb8907eea0afabe38d5052a0613bd4db2364e762213d63f038f85e46f9cac458d70276b812995104a5ed858cb0379aa7fdab7e9ab40f858666a91fe
6
+ metadata.gz: 61d085a7b2fa4005be062ef03529786fe7bb676e96080564b77a22b81f8e606f263a8f7581e8315f886ccf7246d8b87820abfa2767a4b24bfca685c51dd59323
7
+ data.tar.gz: c2084818073a26e43a7f8a43ac51eef614c9e84abe3ee0a6af2cc013b4f6dca5f9be9104eb2a0e05b6034425d2dc4c986c2a967a5ae521e48950c833cf869364
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -1,10 +1,19 @@
1
1
  module Passbook
2
2
  class PushNotification
3
- def self.send_notification(device_token)
4
- pusher = Grocer.pusher({:certificate => Passbook.notification_cert, :passphrase => Passbook.notification_passphrase || "", :gateway => Passbook.notification_gateway})
5
- notification = Grocer::PassbookNotification.new(:device_token => device_token)
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
- pusher.push notification
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.2
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-02-04 00:00:00.000000000 Z
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.8
239
+ rubygems_version: 2.4.6
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: A IOS Passbook generator.