ferocia-rubywmq 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/extconf.rb +31 -23
- data/rubywmq.gemspec +1 -1
- metadata +1 -1
data/ext/extconf.rb
CHANGED
@@ -14,31 +14,39 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
################################################################################
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
if RUBY_PLATFORM =~ /mswin32/
|
24
|
-
include_path = 'C:\Program Files\IBM\WebSphere MQ\Tools\c\include'
|
25
|
-
dir_config('mqm', include_path, '.')
|
17
|
+
if RUBY_PLATFORM =~ /darwin/
|
18
|
+
# do nothing on a mac, this is so people developing applications using this
|
19
|
+
# gem on a mac (using stubs for development) can still keep the gem in their
|
20
|
+
# Gemfile
|
21
|
+
# create a blank Makefile to satisfy extension install requirements
|
22
|
+
File.open("Makefile", "w") { |f| f << 'install:' }
|
26
23
|
else
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
require 'mkmf'
|
25
|
+
require_relative 'generate/generate_reason'
|
26
|
+
require_relative 'generate/generate_const'
|
27
|
+
require_relative 'generate/generate_structs'
|
30
28
|
|
31
|
-
|
29
|
+
include_path = ''
|
30
|
+
if RUBY_PLATFORM =~ /mswin32/
|
31
|
+
include_path = 'C:\Program Files\IBM\WebSphere MQ\Tools\c\include'
|
32
|
+
dir_config('mqm', include_path, '.')
|
33
|
+
else
|
34
|
+
include_path = '/opt/mqm/inc'
|
35
|
+
#dir_config('mqm', include_path, '/opt/mqm/lib')
|
36
|
+
end
|
32
37
|
|
33
|
-
|
34
|
-
unless (RUBY_PLATFORM =~ /win/i) || (RUBY_PLATFORM =~ /solaris/i) || (RUBY_PLATFORM =~ /linux/i)
|
35
|
-
have_library('mqm')
|
36
|
-
end
|
38
|
+
have_header('cmqc.h')
|
37
39
|
|
38
|
-
#
|
39
|
-
|
40
|
-
|
41
|
-
|
40
|
+
# Check for WebSphere MQ Server library
|
41
|
+
unless (RUBY_PLATFORM =~ /win/i) || (RUBY_PLATFORM =~ /solaris/i) || (RUBY_PLATFORM =~ /linux/i)
|
42
|
+
have_library('mqm')
|
43
|
+
end
|
42
44
|
|
43
|
-
# Generate
|
44
|
-
|
45
|
+
# Generate Source Files
|
46
|
+
GenerateReason.generate(include_path+'/')
|
47
|
+
GenerateConst.generate(include_path+'/', 'lib')
|
48
|
+
GenerateStructs.new(include_path+'/', 'generate').generate
|
49
|
+
|
50
|
+
# Generate Makefile
|
51
|
+
create_makefile('wmq/wmq')
|
52
|
+
end
|
data/rubywmq.gemspec
CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |spec|
|
|
5
5
|
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/]
|
6
6
|
|
7
7
|
spec.name = 'ferocia-rubywmq'
|
8
|
-
spec.version = "1.1.
|
8
|
+
spec.version = "1.1.1"
|
9
9
|
spec.platform = Gem::Platform::RUBY
|
10
10
|
spec.authors = ['Reid Morrison', 'Edwin Fine']
|
11
11
|
spec.email = ['reidmo@gmail.com']
|