Skip to content
This repository
Browse code

Remove Thin handler, now part of Rack 0.9.1

  • Loading branch information...
commit 46421f32b5522dd8555b77bcdbc7b72f53bacb49 1 parent d6334d8
Marc-André Cournoyer authored February 23, 2009
1  CHANGELOG
... ...
@@ -1,4 +1,5 @@
1 1
 == 1.1.0 Super Disco Power release
  2
+ * Remove Thin handler, now part of Rack 0.9.1
2 3
  * Fix Rack protocol version to 0.1 in environment hash.
3 4
  * Fix error when passing no_epoll option to a cluster.
4 5
  * Omit parsing #defined strings [Jérémy Zurcher]
18  lib/rack/handler/thin.rb
... ...
@@ -1,18 +0,0 @@
1  
-module Rack
2  
-  module Handler
3  
-    # Rack Handler stricly to be able to use Thin through the rackup command.
4  
-    # To do so, simply require 'thin' in your Rack config file and run like this
5  
-    # 
6  
-    #   rackup --server thin
7  
-    # 
8  
-    class Thin
9  
-      def self.run(app, options={})
10  
-        server = ::Thin::Server.new(options[:Host] || '0.0.0.0',
11  
-                                    options[:Port] || 8080,
12  
-                                    app)
13  
-        yield server if block_given?
14  
-        server.start
15  
-      end
16  
-    end
17  
-  end
18  
-end
3  lib/thin.rb
@@ -41,9 +41,6 @@ module Controllers
41 41
 require 'rack/adapter/loader'
42 42
 
43 43
 module Rack
44  
-  module Handler
45  
-    autoload :Thin, 'rack/handler/thin'
46  
-  end
47 44
   module Adapter
48 45
     autoload :Rails, 'rack/adapter/rails'
49 46
   end
2  tasks/gem.rake
@@ -20,7 +20,7 @@ spec = Gem::Specification.new do |s|
20 20
 
21 21
   s.required_ruby_version = '>= 1.8.5'
22 22
   
23  
-  s.add_dependency        'rack',         '>= 0.3.0'
  23
+  s.add_dependency        'rack',         '>= 0.9.1'
24 24
   s.add_dependency        'eventmachine', '>= 0.12.0'
25 25
   unless WIN
26 26
     s.add_dependency      'daemons',      '>= 1.0.9'

0 notes on commit 46421f3

Please sign in to comment.
Something went wrong with that request. Please try again.