Sha256: 16047112a59f07b193b9e33d512fb47cb2d8df801355ad0885e37d9922cc6ce6

Contents?: true

Size: 730 Bytes

Versions: 8

Compression:

Stored size: 730 Bytes

Contents

require "lookup_by/version"
require "lookup_by/railtie" if defined? Rails

module LookupBy
  class Error < StandardError; end

  UUID_REGEX    = /\A\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\Z/
  UUID_REGEX_V4 = /\A\h{8}-\h{4}-4\h{3}-[89aAbB]\h{3}-\h{12}\Z/

  autoload :Association, "lookup_by/association"
  autoload :Cache,       "lookup_by/cache"
  autoload :Lookup,      "lookup_by/lookup"
  autoload :IPAddr,      "ipaddr"

  module Caching
    autoload :LRU,       "lookup_by/caching/lru"
    autoload :SafeLRU,   "lookup_by/caching/safe_lru"
  end
end

begin
  require "simple_form"
  require "lookup_by/hooks/simple_form"
rescue LoadError
end

begin
  require "formtastic"
  require "lookup_by/hooks/formtastic"
rescue LoadError
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lookup_by-0.9.1 lib/lookup_by.rb
lookup_by-0.9.0 lib/lookup_by.rb
lookup_by-0.8.0 lib/lookup_by.rb
lookup_by-0.7.0 lib/lookup_by.rb
lookup_by-0.5.0 lib/lookup_by.rb
lookup_by-0.4.1 lib/lookup_by.rb
lookup_by-0.4.0 lib/lookup_by.rb
lookup_by-0.6.0 lib/lookup_by.rb