Sha256: 86e51332c8567d302de3b5854505de0b4aa5134ed04446d7ec692c40e8334548

Contents?: true

Size: 969 Bytes

Versions: 3

Compression:

Stored size: 969 Bytes

Contents

require 'fidius-common/ip-helper'

# FIDIUS Intrusion Detection with Intelligent User Support.
# @see http://fidius.me
module FIDIUS
  # Common used methods and libraries. You might use these also in a
  # non-FIDIUS context, since there are no other FIDIUS-related
  # dependencies.
  module Common

    autoload :VERSION, 'fidius-common/version'
    autoload :Db,      'fidius-common/yamldb'

    # Since this addon changes behaviour of +to_json+, you have to
    # require it explicitly either with this helper method or manually
    # with
    #
    #  require 'fidius-common/json_symbol_addon'
    #
    # Important note: Both variants will also load and require
    # +active_support+.
    #
    # @return [Boolean]  true if the addon was loaded successfully or
    #                    false if the addon is already loaded.
    def self.install_json_symbol_addon
      require 'fidius-common/json_symbol_addon'
    end

  end # module Common
end # module FIDIUS

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fidius-common-0.0.6 lib/fidius-common.rb
fidius-common-0.0.5 lib/fidius-common.rb
fidius-common-0.0.4beta0 lib/fidius-common.rb