Module PrivatePub
In: lib/private_pub.rb
lib/generators/private_pub/install_generator.rb
lib/private_pub/engine.rb
lib/private_pub/faye_extension.rb
lib/private_pub/view_helpers.rb

Methods

Classes and Modules

Module PrivatePub::Generators
Module PrivatePub::ViewHelpers
Class PrivatePub::Engine
Class PrivatePub::Error
Class PrivatePub::FayeExtension

Attributes

config  [R] 

Public Class methods

Returns the Faye Rack application. Any options given are passed to the Faye::RackAdapter.

Loads the configuration from a given YAML file and environment (such as production)

Returns a message hash for sending to Faye

Sends the given message hash to the Faye server using Net::HTTP.

Publish the given data to a specific channel. This ends up sending a Net::HTTP POST request to the Faye server.

Resets the configuration to the default (empty hash)

Determine if the signature has expired given a timestamp.

Returns a subscription hash to pass to the PrivatePub.sign call in JavaScript. Any options passed are merged to the hash.

[Validate]