bin/stackprof-webnav in stackprof-webnav-0.0.4 vs bin/stackprof-webnav in stackprof-webnav-0.1.0

- old
+ new

@@ -1,9 +1,8 @@ #!/usr/bin/env ruby require 'optparse' require 'stackprof-webnav' -require 'sprockets' require 'rack' options = { :port => 9292 } @@ -20,20 +19,6 @@ parser.abort(parser.help) unless [:filepath, :uri, :bucket].any? {|key| options.key?(key)} server = StackProf::Webnav::Server server.cmd_options = options -builder = Rack::Builder.new do - map '/' do - run server.new - end - - map '/assets' do - environment = Sprockets::Environment.new - environment.append_path File.expand_path("../../lib/stackprof-webnav/css", __FILE__) - run environment - end -end - -puts File.expand_path("../lib/stackprof-webnav/css", __FILE__) - -Rack::Handler.get('webrick').run builder, :Port => options[:port] +Rack::Handler.get('webrick').run server.new, :Port => options[:port]