thin-fun_embed 0.0.2 → 0.0.3

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.
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in thin-fun_embed.gemspec
4
+ gem 'eventmachine', '1.0.0.rc.4'
4
5
  gemspec
@@ -0,0 +1,9 @@
1
+ listen 8080
2
+
3
+ worker_processes 1
4
+
5
+ Rainbows! do
6
+ use :ThreadPool
7
+ worker_connections 10
8
+ end
9
+
@@ -1,6 +1,6 @@
1
1
  require 'eventmachine'
2
2
  module Thin # :nodoc:
3
3
  class FunEmbed < EM::Connection
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
@@ -165,7 +165,7 @@ module Thin # :nodoc:
165
165
 
166
166
  # call this when you fully send response
167
167
  def consider_keep_alive(try_keep_alive = true)
168
- @request.close rescue nil
168
+ @parser.close rescue nil
169
169
  if @keep_alive && try_keep_alive
170
170
  post_init
171
171
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin-fun_embed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-24 00:00:00.000000000 Z
12
+ date: 2012-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thin
@@ -37,6 +37,7 @@ files:
37
37
  - examples/simple_200_ok.rb
38
38
  - examples/rack_like.rb
39
39
  - examples/status_body.rb
40
+ - examples/rains.conf
40
41
  - examples/config.ru
41
42
  - lib/thin/fun_embed/constants.rb
42
43
  - lib/thin/fun_embed/version.rb
@@ -72,3 +73,4 @@ specification_version: 3
72
73
  summary: Subclass of EM::Connection which uses thin internals to do http request handling.
73
74
  It is intentionally not Rack server, but could be used to build some.
74
75
  test_files: []
76
+ has_rdoc: