Rakefile in ekaranto-rubywmq-2.0.0 vs Rakefile in ekaranto-rubywmq-2.0.2

- old
+ new

@@ -1,26 +1,28 @@ lib = File.expand_path('../lib/', __FILE__) $:.unshift lib unless $:.include?(lib) require 'rubygems' +require 'rubygems/package' require 'rake/clean' require 'rake/testtask' require 'date' require 'wmq/version' desc "Build Ruby Source gem" task :gem do |t| excludes = [ - 'lib/wmq/constants.rb', - 'lib/wmq/constants_admin.rb', - 'ext/wmq_structs.c', - 'ext/wmq_reason.c', - 'ext/Makefile', - 'ext/*.o', - 'ext/wmq.so', - '*.gem', - 'nbproject' + /lib.wmq.constants\.rb/, + /lib.wmq.constants_admin\.rb/, + /ext.wmq_structs\.c/, + /ext.wmq_reason\.c/, + /ext.Makefile/, + /ext.*\.o/, + /ext.wmq\.so/, + /\.gem$/, + /\.log$/, + /nbproject/ ] gemspec = Gem::Specification.new do |spec| spec.name = 'ekaranto-rubywmq' spec.version = WMQ::VERSION @@ -29,20 +31,21 @@ spec.email = ['reidmo@gmail.com'] spec.homepage = 'https://github.com/reidmorrison/rubywmq' spec.date = Date.today.to_s spec.summary = "Native Ruby interface into WebSphere MQ" spec.description = "RubyWMQ is a high performance native Ruby interface into WebSphere MQ." - spec.files = FileList["./**/*"].exclude(*excludes).map{|f| f.sub(/^\.\//, '')} + - ['.document'] + spec.files = FileList["./**/*"].exclude(*excludes).map{|f| f.sub(/^\.\//, '')} + ['.document'] + spec.license = "Apache License V2.0" spec.extensions << 'ext/extconf.rb' spec.rubyforge_project = 'rubywmq' spec.test_file = 'tests/test.rb' spec.has_rdoc = true spec.required_ruby_version = '>= 1.8.4' spec.add_development_dependency 'shoulda' spec.requirements << 'WebSphere MQ v5.3, v6 or v7 Client or Server with Development Kit' end + p gemspec.files Gem::Builder.new(gemspec).build end desc "Build a binary gem including pre-compiled binary files for re-distribution" task :binary do |t| @@ -64,9 +67,10 @@ spec.files = Dir['examples/**/*.rb'] + Dir['examples/**/*.cfg'] + Dir['doc/**/*.*'] + Dir['lib/**/*.rb'] + ['lib/wmq/wmq.so', 'tests/test.rb', 'README', 'LICENSE'] + spec.license = "Apache License V2.0" spec.rubyforge_project = 'rubywmq' spec.test_file = 'tests/test.rb' spec.has_rdoc = false spec.required_ruby_version = '>= 1.8.4' spec.add_development_dependency 'shoulda'