Sha256: 373954d394e1f7e10c2ef9bde408ccf583e05046f02c91ca68ca6bd9592c66ad

Contents?: true

Size: 1.46 KB

Versions: 5

Compression:

Stored size: 1.46 KB

Contents

require 'social_stream-base'

# Ruby implementation of OStatus
require 'proudhon'

module SocialStream
  module Ostatus
    # PuSH hub
    mattr_accessor :hub
    # Default to the PubSubHubbub reference Hub server
    @@hub = 'http://pubsubhubbub.appspot.com'
    
    # The host where the hub should take the activity feed from
    mattr_accessor :activity_feed_host
    @@activity_feed_host = 'localhost:3000'

    # The host where the PuSH should send the callbacks to
    mattr_accessor :pshb_host
    @@pshb_host = 'localhost:3000'

    # Debug OStatus request with logger.info
    mattr_accessor :debug_requests
    @@debug_requests = false
  
    class << self
      def setup 
        yield self
      end
    end

    autoload :ActivityStreams, 'social_stream/ostatus/activity_streams'

    module Models
      autoload :Activity, 'social_stream/ostatus/models/activity'
      autoload :Actor, 'social_stream/ostatus/models/actor'
      autoload :Audience, 'social_stream/ostatus/models/audience'
      autoload :Contact, 'social_stream/ostatus/models/contact'
      autoload :Tie, 'social_stream/ostatus/models/tie'

      module Object
        autoload :ClassMethods, 'social_stream/ostatus/models/object'
      end
    end
    
    module Controllers
      autoload :DebugRequests, 'social_stream/ostatus/controllers/debug_requests'
    end

    # Include route_subject in routes
    SocialStream.routed_subjects << :remote_subject
  end
end

require 'social_stream/ostatus/engine'

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
social_stream-2.2.2 ostatus/lib/social_stream-ostatus.rb
social_stream-ostatus-2.2.1 lib/social_stream-ostatus.rb
social_stream-2.2.1 ostatus/lib/social_stream-ostatus.rb
social_stream-2.2.0 ostatus/lib/social_stream-ostatus.rb
social_stream-ostatus-2.2.0 lib/social_stream-ostatus.rb