Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2395

thrift Ruby gem requires development dependency 'thin' regardless of environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • Ruby - Library
    • 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):

      1. 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

          Activity

            People

              jfarrell Jake Farrell
              tim.schmelmer Tim Schmelmer
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: