ferocia-rubywmq 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ext/extconf.rb +34 -26
- data/ext/wmq_queue_manager.c +7 -1
- data/lib/wmq/version.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -77,7 +77,7 @@ task :binary do |t|
|
|
77
77
|
spec.add_development_dependency 'shoulda'
|
78
78
|
spec.requirements << 'WebSphere MQ v5.3, v6 or v7 Client or Server with Development Kit'
|
79
79
|
end
|
80
|
-
Gem::
|
80
|
+
Gem::Package.build gemspec
|
81
81
|
end
|
82
82
|
|
83
83
|
desc "Run Test Suite"
|
data/ext/extconf.rb
CHANGED
@@ -1,32 +1,40 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require 'generate_reason'
|
5
|
-
require 'generate_const'
|
6
|
-
require 'generate_structs'
|
1
|
+
if RUBY_PLATFORM =~ /darwin/
|
2
|
+
puts "[rubywmq] cannot be installed on a mac"
|
3
|
+
puts "[rubywmq] installation will complete (so you can keep this gem in your bundles), but the gem will not function"
|
7
4
|
|
8
|
-
|
9
|
-
|
10
|
-
include_path = 'C:\Program Files\IBM\WebSphere MQ\tools\c\include'
|
11
|
-
dir_config('mqm', include_path, '.')
|
5
|
+
# create a blank Makefile to satisfy extension install requirements
|
6
|
+
File.open("Makefile", "w") { |f| f << 'install:' }
|
12
7
|
else
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
require 'mkmf'
|
9
|
+
generate_sources_path = File.join(File.dirname(__FILE__), 'generate')
|
10
|
+
$LOAD_PATH.unshift generate_sources_path
|
11
|
+
require 'generate_reason'
|
12
|
+
require 'generate_const'
|
13
|
+
require 'generate_structs'
|
18
14
|
|
19
|
-
|
15
|
+
include_path = ''
|
16
|
+
if RUBY_PLATFORM =~ /win|mingw/i
|
17
|
+
include_path = 'C:\Program Files\IBM\WebSphere MQ\tools\c\include'
|
18
|
+
dir_config('mqm', include_path, '.')
|
19
|
+
else
|
20
|
+
include_path = '/opt/mqm/inc'
|
21
|
+
lib64_path = '/opt/mqm/lib64'
|
22
|
+
lib_path = File.directory?(lib64_path) ? lib64_path : '/opt/mqm/lib'
|
23
|
+
dir_config('mqm', include_path, lib_path)
|
24
|
+
end
|
20
25
|
|
21
|
-
|
22
|
-
unless (RUBY_PLATFORM =~ /win/i) || (RUBY_PLATFORM =~ /solaris/i) || (RUBY_PLATFORM =~ /linux/i)
|
23
|
-
have_library('mqm')
|
24
|
-
end
|
26
|
+
have_header('cmqc.h')
|
25
27
|
|
26
|
-
#
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
# Check for WebSphere MQ Server library
|
29
|
+
unless (RUBY_PLATFORM =~ /win/i) || (RUBY_PLATFORM =~ /solaris/i) || (RUBY_PLATFORM =~ /linux/i)
|
30
|
+
have_library('mqm')
|
31
|
+
end
|
30
32
|
|
31
|
-
# Generate
|
32
|
-
|
33
|
+
# Generate Source Files
|
34
|
+
GenerateReason.generate(include_path+'/')
|
35
|
+
GenerateConst.generate(include_path+'/', File.dirname(__FILE__) + '/../lib/wmq')
|
36
|
+
GenerateStructs.new(include_path+'/', generate_sources_path).generate
|
37
|
+
|
38
|
+
# Generate Makefile
|
39
|
+
create_makefile('wmq/wmq')
|
40
|
+
end
|
data/ext/wmq_queue_manager.c
CHANGED
@@ -256,7 +256,7 @@ VALUE QueueManager_initialize(VALUE self, VALUE hash)
|
|
256
256
|
{
|
257
257
|
/*
|
258
258
|
* Use system defined connection data rather than explicitly providing a
|
259
|
-
* connection name. This is used with CCDT, the MQSERVER
|
259
|
+
* connection name. This is used with CCDT, the MQSERVER ENV var or the
|
260
260
|
* mqclient.ini file
|
261
261
|
*/
|
262
262
|
pqm->connect_options.ClientConnPtr = NULL;
|
@@ -1188,6 +1188,12 @@ static VALUE QueueManager_singleton_connect_ensure(VALUE self)
|
|
1188
1188
|
* * Default Value:
|
1189
1189
|
* WMQ::MQXPT_TCP
|
1190
1190
|
*
|
1191
|
+
* * :use_system_connection_data => Boolean
|
1192
|
+
* * Used when you want to initialise a client connection, but you want
|
1193
|
+
* * to obtain the connection_name and channel_name from one of the system
|
1194
|
+
* * configuration methods. These being: mqclient.ini file, MQSERVER ENV
|
1195
|
+
* * variable or CCDT.
|
1196
|
+
*
|
1191
1197
|
* For the Advanced Client Connection parameters, please see the WebSphere MQ documentation
|
1192
1198
|
*
|
1193
1199
|
* Note:
|
data/lib/wmq/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ferocia-rubywmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-06-
|
13
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: shoulda
|