This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
forked from reidmorrison/rubywmq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rubywmq.gemspec
44 lines (39 loc) · 1.53 KB
/
rubywmq.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$:.push File.expand_path('../lib', __FILE__)
# Maintain your gem's version:
require 'wmq/version'
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
# Exclude locally compiled files since they are platform specific
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/
]
s.name = 'ferocia-rubywmq'
s.version = WMQ::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Reid Morrison']
s.email = ['[email protected]']
s.homepage = 'https://github.com/reidmorrison/rubywmq'
s.summary = 'Native Ruby interface into WebSphere MQ'
s.description = 'RubyWMQ is a high performance native Ruby interface into WebSphere MQ.'
s.files = Dir.glob("./**/*").reject {|p| excludes.any? {|e| p[e] } }.map {|f| f.sub(/^\.\//, '')} + ['.document']
s.test_files = Dir['test/**/*']
s.license = 'Apache-2.0'
s.extensions << 'ext/extconf.rb'
s.requirements << 'WebSphere MQ v5.3, v6 or v7 Client or Server with Development Kit'
s.required_ruby_version = '>= 1.9'
s.post_install_message = <<-MESSAGE
* ferocia-rubywmq builds against the WMQ libs, which aren't available for OS X.
* The gem will still install, but the build will be skipped, producing a
* non-functional gem, so you'll need stubs. (You can skip the build elsewhere by
* setting the DISABLE_RUBYWMQ environment variable.)
MESSAGE
end