thin_async 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/thin/async.rb +4 -4
  2. data/thin_async.gemspec +1 -1
  3. metadata +2 -2
data/lib/thin/async.rb CHANGED
@@ -54,9 +54,9 @@ module Thin
54
54
  end
55
55
  end
56
56
 
57
- def send_headers
57
+ def send_headers(response=nil)
58
58
  return if @headers_sent
59
- @callback.call [@status, @headers, @body]
59
+ @callback.call response || [@status, @headers, @body]
60
60
  @headers_sent = true
61
61
  end
62
62
 
@@ -67,8 +67,8 @@ module Thin
67
67
  alias :<< :write
68
68
 
69
69
  # Tell Thin the response is complete and the connection can be closed.
70
- def done
71
- send_headers
70
+ def done(response=nil)
71
+ send_headers(response)
72
72
  EM.next_tick { @body.succeed }
73
73
  end
74
74
 
data/thin_async.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "thin_async"
3
- s.version = "0.1.0"
3
+ s.version = "0.1.1"
4
4
  s.summary = "A nice wrapper to send response body asynchronously with Thin"
5
5
 
6
6
  s.author = "Marc-Andre Cournoyer"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin_async
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-Andre Cournoyer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-08 00:00:00 -05:00
12
+ date: 2010-03-09 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency