Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.1
-
None
-
Ruby 1.9.3-p484, Rails 3.0.20
Description
The thrift library requires the thin (HTTP webserver) uncoditionally, see thrift-0.9.1/lib/thrift.rb (ll. 59 - 65):
- server
require 'thrift/server/base_server'
require 'thrift/server/nonblocking_server'
require 'thrift/server/simple_server'
require 'thrift/server/threaded_server'
require 'thrift/server/thread_pool_server'
require 'thrift/server/thin_http_server'
As there is no gemspec to require the thin gem (in development group or other), bundler will not find this gem dependency.
Additionally, this dependency should only be required in development mode (as listed on rubygems: https://rubygems.org/gems/thrift/versions/0.9.1), so applications running in a production mode / environment should not need to depend on Thin at all, even if they use thrift.
Attachments
Issue Links
- duplicates
-
THRIFT-2145 Rack and Thin are not just development dependencies
- Closed