Thrift-1286: Modernize the Thrift Ruby Library Dev Environment
Client: Ruby
Patch: jfarrell
Updates to ruby build process with the following changes:
- Removes dependency on echoe for spec generation
- Adds gemfile for bulider and uses thrift.gemspec for dependency management.
- Adds checks in configure for builder and only calls if available (make check-local on ci servers)
- Adds checks in configure for Ruby and rake (bundler as well but this is optional for check-local and auto dependency management)
- Still allows for rake to do its thing if all dependencies are in place
- Removed Manifest and setup.rb
- Adds a install task which will generate a gem and then install that gem to locally configured ruby path (no more prefix or destdir with this client)
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1163341 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/thrift.gemspec b/lib/rb/thrift.gemspec
new file mode 100644
index 0000000..81d99c7
--- /dev/null
+++ b/lib/rb/thrift.gemspec
@@ -0,0 +1,34 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+
+Gem::Specification.new do |s|
+ s.name = 'thrift'
+ s.version = '0.8.0dev'
+ s.authors = ['Thrift Developers']
+ s.email = ['dev@thrift.apache.org']
+ s.homepage = 'http://thrift.apache.org'
+ s.summary = %q{Ruby bindings for Apache Thrift}
+ s.description = %q{Ruby bindings for the Apache Thrift RPC system}
+ s.license = 'Apache 2.0'
+ s.extensions = ['ext/extconf.rb']
+
+ s.has_rdoc = true
+ s.rdoc_options = %w[--line-numbers --inline-source --title Thrift --main README]
+
+ s.rubyforge_project = 'thrift'
+
+ dir = File.expand_path(File.dirname(__FILE__))
+
+ s.files = Dir.glob("{lib,spec}/**/*")
+ s.test_files = Dir.glob("{test,spec,benchmark}/**/*")
+ s.executables = Dir.glob("{bin}/**/*")
+
+ s.extra_rdoc_files = %w[CHANGELOG README] + Dir.glob("{ext,lib}/**/*.{c,h,rb}")
+
+ s.require_paths = %w[lib ext]
+
+ s.add_development_dependency "rake"
+ s.add_development_dependency "rspec", "1.3.2"
+ s.add_development_dependency "mongrel"
+end
+