Sha256: 5500659b729734df607f9657f1a59ac1ec81658ad52a95c14f2233cc7a9b27cf

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

module Picky
  
  # Set default encoding.
  # (Note: Rails does this already as well)
  #
  # TODO Set default encoding.
  #
  # Encoding.default_external = Encoding::UTF_8
  # Encoding.default_internal = Encoding::UTF_8

  # External libraries.
  #
  require 'active_support/core_ext/module/delegation'
  require 'active_support/core_ext/logger'
  require 'active_support/core_ext/object/blank'
  require 'active_support/core_ext/enumerable'
  require 'active_support/multibyte'
  require 'yajl'
  require 'procrastinate'
  require 'rack_fast_escape' if defined? Rack
  require 'fileutils'
  
  # Check if platform specific modifiers need to be installed.
  #
  
  # Note: We don't use require_relative because MacRuby doesn't
  # have it.
  #
  require File.expand_path '../picky/platforms/macruby', __FILE__
  
  # Require the constants.
  #
  require_relative 'picky/constants'

  # Loader which handles framework and app loading.
  #
  require_relative 'picky/loader'

  # Load the framework
  #
  Loader.load_framework

  # Check if delegators need to be installed.
  #
  require_relative 'picky/sinatra'

  # This is only used in the classic project style.
  #
  class << self
    attr_accessor :logger
  end
  
  self.logger = Loggers::Default

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
picky-4.4.2 lib/picky.rb
picky-4.4.1 lib/picky.rb
picky-4.4.0 lib/picky.rb