./lib/houston/client.rb in houston-2.2.1 vs ./lib/houston/client.rb in houston-2.2.2
- old
+ new
@@ -25,10 +25,10 @@
end
def initialize
@gateway_uri = ENV['APN_GATEWAY_URI']
@feedback_uri = ENV['APN_FEEDBACK_URI']
- @certificate = ENV['APN_CERTIFICATE']
+ @certificate = File.read(ENV['APN_CERTIFICATE']) if ENV['APN_CERTIFICATE']
@passphrase = ENV['APN_CERTIFICATE_PASSPHRASE']
@timeout = Float(ENV['APN_TIMEOUT'] || 0.5)
end
def push(*notifications)