Sha256: 0524ae9f3be95ab1cafe85d24e28288c1cca4a1efabbc4efd32f6f6bd95f5b34
Contents?: true
Size: 942 Bytes
Versions: 2
Compression:
Stored size: 942 Bytes
Contents
require 'awesome_print' require 'as-duration' require 'colorize' require 'jwt' require 'hamlit' require 'hamlit/block' require 'hashie' require 'rack' require 'sequel' require_relative './overload/object' Encoding.default_internal = Encoding.default_external = 'utf-8' Sequel.extension :inflector, :string_date_time Sequel::Model.plugin :after_initialize, :def_dataset_method Sequel.database_timezone = :utc Sequel.default_timezone = +2 # load basic lux libs require_relative './lux/lux' # load all lux libs [:overload, :common, :vendor, :lux].each do |f| Lux::Config.require_all Lux.fw_root.join('./lib/%s' % f) end # load Tilt parsers Tilt.register Tilt::ERBTemplate, 'erb' Tilt.register Hamlit::Block::Template, 'haml' # ensure we are not loading lux in lux folder if Lux.root != Lux.fw_root # create folders if needed ['./log', './tmp'].each { |d| `mkdir #{d}` unless Dir.exist?(d) } end Lux::Config.set_default_vars
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lux-fw-0.2.3 | ./lib/lux-fw.rb |
lux-fw-0.2.1 | ./lib/lux-fw.rb |