Sha256: 1dffaa2c4f764613701bf831c243194c5191f88641aa85bafb75fffed63d1e39
Contents?: true
Size: 1.1 KB
Versions: 5
Compression:
Stored size: 1.1 KB
Contents
require 'grocer/error_response' require 'grocer/feedback' require 'grocer/feedback_connection' require 'grocer/mobile_device_management_notification' require 'grocer/newsstand_notification' require 'grocer/notification' require 'grocer/passbook_notification' require 'grocer/safari_notification' require 'grocer/push_connection' require 'grocer/pusher' require 'grocer/server' require 'grocer/version' module Grocer Error = Class.new(::StandardError) InvalidFormatError = Class.new(Error) NoGatewayError = Class.new(Error) NoPayloadError = Class.new(Error) NoPortError = Class.new(Error) PayloadTooLargeError = Class.new(Error) CertificateExpiredError = Module.new InvalidCommandError = Class.new(Error) def self.env ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development' end def self.feedback(options) connection = FeedbackConnection.new(options) Feedback.new(connection) end def self.pusher(options) connection = PushConnection.new(options) Pusher.new(connection) end def self.server(options = { }) ssl_server = SSLServer.new(options) Server.new(ssl_server) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
grocer-0.7.1 | lib/grocer.rb |
grocer-0.7.0 | lib/grocer.rb |
grocer-0.6.1 | lib/grocer.rb |
grocer-0.6.0 | lib/grocer.rb |
grocer-0.5.0 | lib/grocer.rb |