matchbox20 0.3.5 → 0.3.6

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.
@@ -1,3 +1,3 @@
1
1
  module Matchbox20
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
data/lib/matchbox20.rb CHANGED
@@ -59,6 +59,16 @@ module Matchbox20
59
59
 
60
60
  raise "Missing apple push notification certificate in #{path}" unless @@apn_cert
61
61
  end
62
+
63
+ def self.cert
64
+ cert = self.apn_production? ? "apn_production.pem" : "apn_development.pem"
65
+
66
+ if respond_to?(:cert_file_name)
67
+ cert = cert_file_name
68
+ end
69
+
70
+ return cert
71
+ end
62
72
 
63
73
  self.apn_enviroment = :development
64
74
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 5
9
- version: 0.3.5
8
+ - 6
9
+ version: 0.3.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jake Marsh