Sha256: faed0dd7fdfe00b9b1db13d0a6f7d85621f578a8a3f5a73a3f911ec6fcde6af9

Contents?: true

Size: 620 Bytes

Versions: 2

Compression:

Stored size: 620 Bytes

Contents

require "human_power/version"
require "human_power/generator"
require "human_power/rule"
require "human_power/user_agents"
require "human_power/rails" if defined?(Rails)

module HumanPower
  class << self
    # Yields a configuration block.
    # 
    #   HumanPower.configure do |config|
    #     config.base_controller = MyOtherController
    #   end
    def configure(&block)
      yield self
    end

    # Registers a user agent.
    def register_user_agent(key, user_agent_string)
      user_agents[key] = user_agent_string
    end

    def user_agents
      @user_agents ||= DEFAULT_USER_AGENTS
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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