Sha256: 2da873a0edad750eb7b706aba1bc2ad1fb00a6108538939b9e053e790beca3f4
Contents?: true
Size: 931 Bytes
Versions: 1
Compression:
Stored size: 931 Bytes
Contents
# -*- coding: utf-8 -*- require 'rack' require 'logger' Object.class_eval{def blank?; self.to_s.gsub(/\s/, '').length == 0; end;} module Magpie VERSION = [0, 8, 8] FORMAT_ERRORS = %{%s : "%s" \n} FORMAT_NOTIFY = %{Notify to [%s] %s at[%s]\n Parameters:%s\n\nBusiness result:%s\n\n} class << self attr_accessor :yml_db attr_accessor :logger def version VERSION.join(".") end end Magpie.logger = Logger.new("test/test.log") if ENV["magpie"] == 'test' autoload :Utils, "magpie/utils" autoload :Rubber, "magpie/rubber" autoload :Mothlog, "middles/mothlog" autoload :Snake, "middles/snake" autoload :Alipay, "middles/alipay" autoload :Chinabank, "middles/chinabank" autoload :Tenpay, "middles/tenpay" autoload :Server, "magpie/server" autoload :Goose, "magpie/goose" autoload :Mouse, "magpie/mouse" autoload :Dung, "models/dung" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magpie-0.8.8 | lib/magpie.rb |