Sha256: df968c2bda7ba18473f89d6b28de39bf8d2582fcc126ff03b19edfcd84297c85

Contents?: true

Size: 807 Bytes

Versions: 2

Compression:

Stored size: 807 Bytes

Contents

require 'redis'
require 'pause'
require 'spanx/version'
require 'spanx/helper'
require 'spanx/logger'
require 'spanx/config'
require 'spanx/usage'

require 'spanx/ip_checker'

require 'spanx/cli'
require 'spanx/notifier/base'
require 'spanx/notifier/campfire'
require 'spanx/notifier/audit_log'
require 'spanx/notifier/email'

require 'spanx/actor/log_reader'
require 'spanx/actor/collector'
require 'spanx/actor/analyzer'
require 'spanx/actor/writer'
require 'spanx/whitelist'

require 'spanx/runner'

module Spanx
end

class String
  def constantize
    camel_cased_word = self
    unless /\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/ =~ camel_cased_word
      raise NameError, "#{camel_cased_word.inspect} is not a valid constant name!"
    end

    Object.module_eval("::#{$1}", __FILE__, __LINE__)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spanx-0.1.1 lib/spanx.rb
spanx-0.1.0 lib/spanx.rb