Rakefile in ferocia-rubywmq-2.0.4 vs Rakefile in ferocia-rubywmq-2.0.6
- old
+ new
@@ -6,59 +6,9 @@
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$/,
- /\.log$/,
- /nbproject/
- ]
-
- gemspec = Gem::Specification.new do |spec|
- spec.name = 'ferocia-rubywmq'
- spec.version = WMQ::VERSION
- spec.platform = Gem::Platform::RUBY
- spec.authors = ['Reid Morrison', 'Edwin Fine']
- 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.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'
-
- if RUBY_PLATFORM =~ /darwin/
- spec.post_install_message = <<-MESSAGE
-
-###########################################
-* [rubywmq] The rubywmq gem cannot be installed on a mac as you need WMQ client libraries on the system.
-* [rubywmq] Installation will complete successfully (so you can keep this gem in your bundles) but the gem will not function, you'll need stubs on a mac.
-###########################################
-
- MESSAGE
- end
- 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|
# Move compiled files into locations for repackaging as a binary gem
FileUtils.mkdir_p('lib/wmq')
Dir['ext/lib/*.rb'].each{|file| FileUtils.copy(file, File.join('lib/wmq', File.basename(file)))}