Sha256: b4196e0d29b6bc7ea7d70e7ca4eed17b2243640d384aedd29170c8e0b80c9dc5
Contents?: true
Size: 859 Bytes
Versions: 1
Compression:
Stored size: 859 Bytes
Contents
# -*- coding: utf-8 -*- require 'open-uri' require 'hpricot' require 'iconv' require 'rack' require 'active_model' module Magpie VERSION = [0, 8, 6] class << self attr_accessor :yml_db def version VERSION.join(".") end end autoload :Utils, "magpie/utils" autoload :Mothlog, "middles/mothlog" autoload :Alipay, "middles/alipay" autoload :Chinabank, "middles/chinabank" autoload :Server, "magpie/server" APP = Rack::Builder.new { use Mothlog map "/alipay" do use Alipay run lambda{ |env| [200, {"Content-Type" => "text/xml"}, [""]]} end map "/chinabank" do use Chinabank run lambda { |env| [200, { "Content-Type" => "text/xml"}, [""]]} end map "/" do run lambda{ |env| [200, {"Content-Type" => "text/html"}, ["magpie"]]} end }.to_app end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magpie-0.8.6.1 | lib/magpie.rb |