Commit 5e968b3d authored by John E. Vincent's avatar John E. Vincent

some cleanup and jruby work

parent 5ee99ec6
......@@ -5,3 +5,6 @@ coverage.data
.gem
pkg/*
logs/*
*.class
tmp/*
*.war
require 'rubygems'
require 'sinatra'
require File.join(File.dirname(__FILE__), 'lib','noah')
ENV['REDIS_URL'] = "redis://localhost:6379/0"
run Noah::App
noah = Noah::App.new do
set :run, false
set :environment, :production
set :server, %w[thin mongrel webrick Jetty Kirk]
end
run noah
# Disable automatic framework detection by uncommenting/setting to false
# Warbler.framework_detection = false
# Warbler web application assembly configuration file
Warbler::Config.new do |config|
#config.features = %w(gemjar)
config.dirs = %w(bin config lib views)
config.includes = FileList["config.ru"]
#config.bundler = false
config.gems += ["ohm", "ohm-contrib", "sinatra", "sinatra-namespace", "haml", "vegas"]
config.gem_excludes = [/^(test|spec)\//]
config.public_html = FileList["views/**/*"]
config.webxml.booter = :rack
config.webxml.rackup.path = 'WEB-INF/config.ru'
#config.webxml.rackup = %{require './lib/noah'; run Noah::App}
# config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
end
......@@ -19,17 +19,20 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.add_dependency("redis", ["= 2.2.1"])
s.add_dependency("nest", ["= 1.1.0"])
s.add_dependency("rack", ["= 1.2.1"])
s.add_dependency("rake", ["= 0.8.7"])
s.add_dependency("tilt", ["= 1.2.1"])
s.add_dependency("sinatra", ["= 1.1.2"])
s.add_dependency("sinatra-namespace", ["0.6.1"])
s.add_dependency("ohm", ["= 0.1.3"])
s.add_dependency("ohm-contrib", ["= 0.1.0"])
s.add_dependency("ohm-contrib", ["= 0.1.1"])
s.add_dependency("haml", ["= 3.0.25"])
s.add_dependency("vegas", ["= 0.1.8"])
s.add_dependency("yajl-ruby", ["= 0.7.9"]) if s.platform.to_s == 'ruby'
s.add_dependency("jruby-json", ["= 1.5.0"]) if s.platform.to_s == 'jruby'
s.add_dependency("json", ["= 1.5.1"]) if s.platform.to_s == 'jruby'
s.add_dependency("thin", ["= 1.2.7"]) if s.platform.to_s == 'ruby'
s.add_dependency("json-jruby", ["= 1.4.6"]) if s.platform.to_s == 'jruby'
s.add_dependency("jruby-openssl", ["= 0.7.3"]) if s.platform.to_s == 'jruby'
s.add_development_dependency("sinatra-reloader", ["= 0.5.0"])
......
require 'bundler/setup'
require 'ohm'
begin
require 'yajl'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment