Permalink
Browse files

Fixed gemspec

  • Loading branch information...
1 parent 6af6c87 commit 013e1b8a602ca89dc69064cf0eb332e0c1dd8573 @pyromaniac committed May 14, 2011
Showing with 9 additions and 4 deletions.
  1. +1 −2 hoof.gemspec
  2. +2 −2 lib/hoof.rb
  3. +6 −0 lib/hoof/application.rb
View
@@ -9,8 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["pyromaniac"]
- s.date = %q{2011-05-14}
- s.default_executable = %q{hoof}
+ s.date = %q{2011-05-15}
s.description = %q{Hoof is linux variant of pow. It's based on nss, eventmachine and unicorn}
s.email = %q{kinwizard@gmail.com}
s.executables = ["hoof"]
View
@@ -19,8 +19,8 @@ def self.application name
def self.start
EventMachine.epoll
EventMachine::run do
- trap("TERM") { Hoof.stop }
- trap("INT") { Hoof.stop }
+ trap("TERM") { stop }
+ trap("INT") { stop }
EventMachine::start_server "127.0.0.1", 3001, Hoof::HttpServer
end
View
@@ -7,6 +7,7 @@ def initialize name
@root = File.readlink(File.expand_path(File.join("~/.hoof/", name)))
load_rvm
+ load_bundler
start
end
@@ -29,6 +30,11 @@ def load_rvm
end
end
+ def load_bundler
+ #ENV['BUNDLE_GEMFILE'] = File.join(root, 'Gemfile')
+ #require 'bundler/setup'
+ end
+
def static? path
File.file? File.join(root, 'public', path)
end

0 comments on commit 013e1b8

Please sign in to comment.