public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Add dependencies to gemspec


git-svn-id: http://code.macournoyer.com/svn/thin/trunk@403 
ab7993de-5426-0410-a80b-baa00616f331
macournoyer (author)
Sun Dec 16 18:36:57 -0800 2007
commit  b83875a903696cd470807f0875a94e2db14579cb
tree    53744146ffa5c21d3b9a2bd085a2bc4032d38d32
parent  35ec139c54df153c1dd2627a650f4baeb7dd952d
0
...
21
22
23
24
 
25
26
27
28
 
 
 
29
30
31
...
21
22
23
 
24
25
 
 
 
26
27
28
29
30
31
0
@@ -21,11 +21,11 @@ Or from source:
0
  rake install
0
 
0
 === Usage
0
-In your app directory:
0
+Thin is usable through Rack +rackup+ command. You need to setup a config.ru file and require thin in it:
0
   
0
- thin start
0
-
0
-See http://code.macournoyer.com/thin/doc/files/bin/thin.html
0
+ rackup -s thin example/config.ru
0
+
0
+See example/config.ru for details and rackup -h
0
 
0
 === License
0
 Ruby License, http://www.ruby-lang.org/en/LICENSE.txt.
...
24
25
26
27
 
28
29
30
...
38
39
40
41
42
 
 
43
44
45
46
47
 
 
 
 
48
49
50
...
24
25
26
 
27
28
29
30
...
38
39
40
 
 
41
42
43
44
45
46
 
47
48
49
50
51
52
53
0
@@ -24,7 +24,7 @@ Rake::RDocTask.new do |rdoc|
0
   rdoc.template = "site/rdoc.rb"
0
   rdoc.main = "README"
0
   rdoc.title = Thin::NAME
0
- rdoc.rdoc_files.add ['README', 'lib/thin/*.rb', 'bin/*']
0
+ rdoc.rdoc_files.add ['README', 'lib/thin/*.rb']
0
 end
0
 
0
 namespace :rdoc do
0
@@ -38,13 +38,16 @@ spec = Gem::Specification.new do |s|
0
   s.name = Thin::NAME
0
   s.version = Thin::VERSION::STRING
0
   s.platform = Gem::Platform::RUBY
0
- s.summary = "Thin and fast web server"
0
- s.description = s.summary
0
+ s.summary =
0
+ s.description = "A thin and fast web server"
0
   s.author = "Marc-Andre Cournoyer"
0
   s.email = 'macournoyer@gmail.com'
0
   s.homepage = 'http://code.macournoyer.com/thin/'
0
 
0
- s.required_ruby_version = '>= 1.8.6' # To be sure the multipart eof fix is in there
0
+ s.required_ruby_version = '>= 1.8.6'
0
+
0
+ s.add_dependency 'eventmachine', '>= 0.9.0'
0
+ s.add_dependency 'rack', '>= 0.2.0'
0
 
0
   s.files = %w(README COPYING Rakefile) + Dir.glob("{doc,lib,test,example}/**/*")
0
   
...
1
 
 
 
 
 
2
3
4
5
...
1
2
3
4
5
6
7
 
8
9
0
@@ -1,5 +1,9 @@
0
 # Run with: rackup -s thin
0
+# Then browse to http://localhost:9292
0
+# Check Rack::Builder doc for more details on this file format:
0
+# http://rack.rubyforge.org/doc/classes/Rack/Builder.html
0
+
0
+require File.dirname(__FILE__) + '/../lib/thin'
0
 require 'rack/lobster'
0
-require '../lib/thin'
0
 
0
 run Rack::Lobster.new

Comments

    No one has commented yet.