Skip to content

Commit

Permalink
Update to latest falcon.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 17, 2018
1 parent d956022 commit 51cc1b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion guard-falcon.gemspec
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency("falcon", "~> 0.9")
spec.add_dependency("falcon", "~> 0.13.0")

spec.add_dependency("guard")
spec.add_dependency("guard-compat", "~> 1.2")
Expand Down
4 changes: 3 additions & 1 deletion lib/guard/falcon/controller.rb
Expand Up @@ -24,7 +24,9 @@
require 'rack/server'

require 'async/container/forked'

require 'falcon/server'
require 'falcon/adapters/rack'

module Guard
module Falcon
Expand Down Expand Up @@ -60,7 +62,7 @@ def run_server
logger.info("Starting Falcon HTTP server on #{server_address}.")

Async::Container::Forked.new(concurrency: 2) do
server = ::Falcon::Server.new(app, server_address)
server = ::Falcon::Server.new(::Falcon::Adapters::Rack.new(app), server_address)

Process.setproctitle "Guard::Falcon HTTP Server #{@options[:bind]}"

Expand Down
2 changes: 1 addition & 1 deletion lib/guard/falcon/version.rb
Expand Up @@ -20,6 +20,6 @@

module Guard
module Falcon
VERSION = "0.5.0"
VERSION = "0.6.0"
end
end

0 comments on commit 51cc1b4

Please sign in to comment.