Sha256: 3290f2cce4a03fc2e902f6afc04614ea3f520e15c62b55b8882f7038d980b147

Contents?: true

Size: 372 Bytes

Versions: 20

Compression:

Stored size: 372 Bytes

Contents

# encoding: utf-8

require "rack"

# class App
#   extend Rango::Utils
#   def load_rackup
#     super(File.join(File.join(self.root, "config.ru")), "config.ru")
#   end
# end
module Rango
  module Utils
    extend self
    def load_rackup(path = "config.ru")
      eval("Rack::Builder.new {( #{File.read(path)}\n )}.to_app", nil, File.expand_path(path))
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rango-0.2.3 lib/rango/utils.rb
rango-0.2.1 lib/rango/utils.rb
rango-0.2.1.pre lib/rango/utils.rb
rango-0.2 lib/rango/utils.rb
rango-0.1.1.3 lib/rango/utils.rb
rango-0.1.1.2.11 lib/rango/utils.rb
rango-0.1.1.2.10 lib/rango/utils.rb
rango-0.1.1.2.9 lib/rango/utils.rb
rango-0.1.1.2.8 lib/rango/utils.rb
rango-0.1.1.2.7 lib/rango/utils.rb
rango-0.1.1.2.6 lib/rango/utils.rb
rango-0.1.1.2.5 lib/rango/utils.rb
rango-0.1.1.2.4 lib/rango/utils.rb
rango-0.1.1.2.3 lib/rango/utils.rb
rango-0.1.1.2.2 lib/rango/utils.rb
rango-0.1.1.2.1 lib/rango/utils.rb
rango-0.2.pre lib/rango/utils.rb
rango-0.1.1.2 lib/rango/utils.rb
rango-0.1.1.1 lib/rango/utils.rb
rango-0.1.1 lib/rango/utils.rb