Sha256: f310c0d821c14f2152759f85e80a2f046d68f1c7ffb329116a0db8787ec5592c

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

module Picky
  
  # Set default encoding.
  # (Note: Rails does this already as well)
  #
  # THINK 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 'multi_json'
  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 yet because MacRuby
  # doesn't have it.
  #
  require File.expand_path '../picky/platforms/macruby', __FILE__
  
  # Modify/configure the external libraries.
  #
  
  # By default, MultiJson uses Yajl.
  #
  MultiJson.use :yajl if defined? ::Yajl
  
  # 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

1 entries across 1 versions & 1 rubygems

Version Path
picky-4.7.0 lib/picky.rb