/
picky.rb
59 lines (47 loc) · 1.32 KB
/
picky.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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.
#
# require_relative 'multi_json'
# 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