Sha256: f66c573a32e75ed60623baff037e19a44502a507824a24805327f1bf1c25e22e

Contents?: true

Size: 979 Bytes

Versions: 2

Compression:

Stored size: 979 Bytes

Contents

require "irus_analytics/version"
require "irus_analytics/controller/analytics_behaviour"
require "irus_analytics/irus_analytics_service"
require "irus_analytics/tracker_context_object_builder"
require "irus_analytics/user_agent_filter"
require "irus_analytics/irus_client"
require "irus_analytics/rail_tie" if defined?(Rails)
require "resque/server"


module IrusAnalytics
  class << self
    attr_writer :configuration 
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yeild(configuration)
  end

  def self.root
    @root ||= File.expand_path(File.dirname(File.dirname(__FILE__)))
  end

  def self.config
    File.join root, "config" 
  end

  class Configuration
    attr_accessor :source_repository, :irus_server_address

    def initialize
      @source_repository = "locahost:3000"
      @irus_server_address = "localhost:3000/irus"
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
irus_analytics-0.0.2 lib/irus_analytics.rb
irus_analytics-0.0.1 lib/irus_analytics.rb