Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove Echoe dependency

  • Loading branch information...
commit ed05b900dade4a6498fc482c1bc64b138a7b52cb 1 parent bde8388
@sprsquish sprsquish authored
Showing with 34 additions and 36 deletions.
  1. +0 −25 Manifest
  2. +11 −11 Rakefile
  3. +23 −0 thrift_client.gemspec
View
25 Manifest
@@ -1,25 +0,0 @@
-CHANGELOG
-LICENSE
-Manifest
-README.rdoc
-Rakefile
-lib/thrift_client.rb
-lib/thrift_client/abstract_thrift_client.rb
-lib/thrift_client/connection.rb
-lib/thrift_client/connection/base.rb
-lib/thrift_client/connection/factory.rb
-lib/thrift_client/connection/http.rb
-lib/thrift_client/connection/socket.rb
-lib/thrift_client/event_machine.rb
-lib/thrift_client/server.rb
-lib/thrift_client/simple.rb
-lib/thrift_client/thrift.rb
-test/greeter/greeter.rb
-test/greeter/greeter.thrift
-test/greeter/server.rb
-test/multiple_working_servers_test.rb
-test/simple_test.rb
-test/test_helper.rb
-test/thrift_client_http_test.rb
-test/thrift_client_test.rb
-thrift_client.gemspec
View
22 Rakefile
@@ -1,14 +1,14 @@
-
require 'rubygems'
-require 'echoe'
+require 'rake/testtask'
+
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
+end
-Echoe.new("thrift_client") do |p|
- p.author = ["Evan Weaver", "Ryan King", "Jeff Hodges"]
- p.project = "fauna"
- p.summary = "A Thrift client wrapper that encapsulates some common failover behavior."
- p.rubygems_version = ">= 0.8"
- p.dependencies = ['thrift ~>0.8.0']
- p.ignore_pattern = /^(vendor\/thrift)/
- p.rdoc_pattern = /^(lib|bin|tasks|ext)|^README|^CHANGELOG|^TODO|^LICENSE|^COPYING$/
- p.spec_pattern = "spec/*_spec.rb"
+task :build do
+ `gem build thrift_client.gemspec`
end
+
+task :default => :test
View
23 thrift_client.gemspec
@@ -0,0 +1,23 @@
+# -*- encoding: utf-8 -*-
+
+VERSION = File.read("CHANGELOG")[/^\s*v([\d\w\.]+)(\.|\s|$)/, 1]
+
+Gem::Specification.new do |s|
+ s.name = "thrift_client"
+ s.version = VERSION
+
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Evan Weaver", "Ryan King", "Jeff Hodges"]
+ s.homepage = "https://github.com/twitter/thrift_client"
+ s.summary = "A Thrift client wrapper that encapsulates some common failover behavior."
+
+ s.files = Dir["lib/**/*.rb"].to_a
+ s.test_files = Dir["test/**/*.rb"].to_a
+
+ s.require_paths = ["lib"]
+
+ s.add_dependency("thrift", ["~> 0.8.0"])
+
+ s.add_development_dependency 'rake'
+ s.add_development_dependency 'mongrel', '1.2.0.pre2'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.