thin-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (C) 2011 by Samuel Kadolph
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ # thin-rails
2
+
3
+ `thin-rails` is a simple gem that sets the default server for rack (and rails) to thin.
4
+
5
+ ## Installing
6
+
7
+ ### Recommended
8
+
9
+ ```
10
+ gem install thin-rails
11
+ ```
12
+
13
+ ### Edge
14
+
15
+ ```
16
+ git clone https://github.com/samuelkadolph/thin-rails
17
+ cd thin-rails && rake install
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Add `gem "thin-rails"` to your Gemfile and then run `rails s` and it will use thin by default.
@@ -0,0 +1,15 @@
1
+ module ThinRails
2
+ require "thin-rails/version"
3
+ end
4
+
5
+ require "thin"
6
+ require "rack"
7
+ require "rack/handler"
8
+
9
+ module Rack
10
+ module Handler
11
+ def self.default(options = {})
12
+ Rack::Handler::Thin
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module ThinRails
2
+ VERSION = "1.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: thin-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Samuel Kadolph
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-09-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thin
16
+ requirement: &70254416006460 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70254416006460
25
+ - !ruby/object:Gem::Dependency
26
+ name: rack
27
+ requirement: &70254416005840 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70254416005840
36
+ description: ! 'thin-rails overrides the Rack::Handler.default method to return Rack::Handler::Thin
37
+ which will cause rack (and rails) to use thin
38
+
39
+ by default.
40
+
41
+ '
42
+ email:
43
+ - samuel@kadolph.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/thin-rails/version.rb
49
+ - lib/thin-rails.rb
50
+ - LICENSE
51
+ - README.md
52
+ homepage: https://github.com/samuelkadolph/thin-rails
53
+ licenses: []
54
+ post_install_message:
55
+ rdoc_options: []
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubyforge_project:
72
+ rubygems_version: 1.8.6
73
+ signing_key:
74
+ specification_version: 3
75
+ summary: thin-rails is a simple gem that sets the default server for rack (and rails)
76
+ to thin.
77
+ test_files: []