Rakefile in ferocia-rubywmq-2.0.3 vs Rakefile in ferocia-rubywmq-2.0.4
- old
+ new
@@ -40,9 +40,20 @@
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