зеркало из https://github.com/github/htttee.git
rename all files from ey-tea to htttee
This commit is contained in:
Родитель
c5009cc011
Коммит
f18a9d50a9
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
require 'trollop'
|
||||
require 'ey_tea/client'
|
||||
require 'htttee/client'
|
||||
|
||||
class MultiplexedIO < IO
|
||||
instance_methods.each { |m| undef_method m unless (m =~ /^__/ || m =~ /^object_id$/ ) }
|
||||
|
@ -24,7 +24,7 @@ end
|
|||
opts = Trollop::options do
|
||||
opt :uuid, "The UUID of the stream.", :short => '-u', :type => String
|
||||
opt :'content-type', "The content-type of the stream.", :short => '-c', :type => String, :default => 'text/plain'
|
||||
opt :endpoint, "The endpoint of the ey_tea service.", :short => '-e', :type => String, :default => 'http://tea-meta.engineyard.com/'
|
||||
opt :endpoint, "The endpoint of the htttee service.", :short => '-e', :type => String, :default => 'http://tea-meta.engineyard.com/'
|
||||
end
|
||||
|
||||
Trollop::die :uuid, "is required" if opts[:uuid].nil?
|
|
@ -1,6 +1,6 @@
|
|||
$:.unshift File.join(File.dirname(__FILE__), 'lib')
|
||||
|
||||
require 'ey_tea/server'
|
||||
require 'htttee/server'
|
||||
|
||||
use Rack::CommonLogger
|
||||
run EY::Tea::Server.app
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
require 'ey_tea/server/ext/thin/connection'
|
||||
require 'ey_tea/server/ext/thin/deferrable_body'
|
||||
require 'ey_tea/server/ext/thin/deferred_request'
|
||||
require 'ey_tea/server/ext/thin/deferred_response'
|
|
@ -12,5 +12,5 @@ module EY
|
|||
end
|
||||
end
|
||||
|
||||
require 'ey_tea/client/ext/net/http'
|
||||
require 'ey_tea/client/consumer'
|
||||
require 'htttee/client/ext/net/http'
|
||||
require 'htttee/client/consumer'
|
|
@ -34,7 +34,7 @@ module EY
|
|||
end
|
||||
|
||||
def self.mock!
|
||||
require 'ey_tea/server/mock'
|
||||
require 'htttee/server/mock'
|
||||
@mocking = true
|
||||
|
||||
@mock_uri = Mock.boot_forking_server
|
||||
|
@ -62,13 +62,13 @@ module EY
|
|||
end
|
||||
end
|
||||
|
||||
require 'ey_tea/server/ext/em-redis'
|
||||
require 'ey_tea/server/ext/thin'
|
||||
require 'htttee/server/ext/em-redis'
|
||||
require 'htttee/server/ext/thin'
|
||||
|
||||
require 'ey_tea/server/pubsub_redis'
|
||||
require 'htttee/server/pubsub_redis'
|
||||
|
||||
require 'ey_tea/server/api'
|
||||
require 'ey_tea/server/chunked_body'
|
||||
require 'htttee/server/api'
|
||||
require 'htttee/server/chunked_body'
|
||||
|
||||
require 'ey_tea/server/middleware/async_fixer'
|
||||
require 'ey_tea/server/middleware/dechunker'
|
||||
require 'htttee/server/middleware/async_fixer'
|
||||
require 'htttee/server/middleware/dechunker'
|
|
@ -0,0 +1,4 @@
|
|||
require 'htttee/server/ext/thin/connection'
|
||||
require 'htttee/server/ext/thin/deferrable_body'
|
||||
require 'htttee/server/ext/thin/deferred_request'
|
||||
require 'htttee/server/ext/thin/deferred_response'
|
|
@ -1,8 +1,8 @@
|
|||
$:.unshift File.join(File.dirname(__FILE__), 'lib')
|
||||
require 'bundler/setup'
|
||||
|
||||
require 'ey_tea/server'
|
||||
require 'ey_tea/client'
|
||||
require 'htttee/server'
|
||||
require 'htttee/client'
|
||||
|
||||
require 'digest/sha2'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче