ekaranto-rubywmq 2.0.0 → 2.0.2
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/Rakefile +15 -11
- data/ext/extconf.rb +3 -1
- data/ext/wmq_queue_manager.c +2 -3
- data/lib/wmq/version.rb +1 -1
- metadata +4 -5
- data/nbproject/project.properties +0 -11
- data/nbproject/project.xml +0 -17
data/Rakefile
CHANGED
@@ -2,6 +2,7 @@ lib = File.expand_path('../lib/', __FILE__)
|
|
2
2
|
$:.unshift lib unless $:.include?(lib)
|
3
3
|
|
4
4
|
require 'rubygems'
|
5
|
+
require 'rubygems/package'
|
5
6
|
require 'rake/clean'
|
6
7
|
require 'rake/testtask'
|
7
8
|
require 'date'
|
@@ -10,15 +11,16 @@ require 'wmq/version'
|
|
10
11
|
desc "Build Ruby Source gem"
|
11
12
|
task :gem do |t|
|
12
13
|
excludes = [
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
14
|
+
/lib.wmq.constants\.rb/,
|
15
|
+
/lib.wmq.constants_admin\.rb/,
|
16
|
+
/ext.wmq_structs\.c/,
|
17
|
+
/ext.wmq_reason\.c/,
|
18
|
+
/ext.Makefile/,
|
19
|
+
/ext.*\.o/,
|
20
|
+
/ext.wmq\.so/,
|
21
|
+
/\.gem$/,
|
22
|
+
/\.log$/,
|
23
|
+
/nbproject/
|
22
24
|
]
|
23
25
|
|
24
26
|
gemspec = Gem::Specification.new do |spec|
|
@@ -31,8 +33,8 @@ task :gem do |t|
|
|
31
33
|
spec.date = Date.today.to_s
|
32
34
|
spec.summary = "Native Ruby interface into WebSphere MQ"
|
33
35
|
spec.description = "RubyWMQ is a high performance native Ruby interface into WebSphere MQ."
|
34
|
-
spec.files = FileList["./**/*"].exclude(*excludes).map{|f| f.sub(/^\.\//, '')} +
|
35
|
-
|
36
|
+
spec.files = FileList["./**/*"].exclude(*excludes).map{|f| f.sub(/^\.\//, '')} + ['.document']
|
37
|
+
spec.license = "Apache License V2.0"
|
36
38
|
spec.extensions << 'ext/extconf.rb'
|
37
39
|
spec.rubyforge_project = 'rubywmq'
|
38
40
|
spec.test_file = 'tests/test.rb'
|
@@ -41,6 +43,7 @@ task :gem do |t|
|
|
41
43
|
spec.add_development_dependency 'shoulda'
|
42
44
|
spec.requirements << 'WebSphere MQ v5.3, v6 or v7 Client or Server with Development Kit'
|
43
45
|
end
|
46
|
+
p gemspec.files
|
44
47
|
Gem::Builder.new(gemspec).build
|
45
48
|
end
|
46
49
|
|
@@ -66,6 +69,7 @@ task :binary do |t|
|
|
66
69
|
Dir['doc/**/*.*'] +
|
67
70
|
Dir['lib/**/*.rb'] +
|
68
71
|
['lib/wmq/wmq.so', 'tests/test.rb', 'README', 'LICENSE']
|
72
|
+
spec.license = "Apache License V2.0"
|
69
73
|
spec.rubyforge_project = 'rubywmq'
|
70
74
|
spec.test_file = 'tests/test.rb'
|
71
75
|
spec.has_rdoc = false
|
data/ext/extconf.rb
CHANGED
@@ -11,7 +11,9 @@ if RUBY_PLATFORM =~ /win|mingw/i
|
|
11
11
|
dir_config('mqm', include_path, '.')
|
12
12
|
else
|
13
13
|
include_path = '/opt/mqm/inc'
|
14
|
-
|
14
|
+
lib64_path = '/opt/mqm/lib64'
|
15
|
+
lib_path = File.directory?(lib64_path) ? lib64_path : '/opt/mqm/lib'
|
16
|
+
dir_config('mqm', include_path, lib_path)
|
15
17
|
end
|
16
18
|
|
17
19
|
have_header('cmqc.h')
|
data/ext/wmq_queue_manager.c
CHANGED
@@ -411,9 +411,8 @@ VALUE QueueManager_connect(VALUE self)
|
|
411
411
|
pqm->MQDISC(&pqm->hcon, &pqm->comp_code, &pqm->reason_code);
|
412
412
|
}
|
413
413
|
|
414
|
-
pqm->
|
415
|
-
RSTRING_PTR(name),
|
416
|
-
&pqm->connect_options, /* Connection Options */
|
414
|
+
pqm->MQCONN(
|
415
|
+
RSTRING_PTR(name), /* queue manager */
|
417
416
|
&pqm->hcon, /* connection handle */
|
418
417
|
&pqm->comp_code, /* completion code */
|
419
418
|
&pqm->reason_code); /* connect reason code */
|
data/lib/wmq/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ekaranto-rubywmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
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-
|
13
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: shoulda
|
@@ -82,12 +82,11 @@ files:
|
|
82
82
|
- lib/wmq/message.rb
|
83
83
|
- lib/wmq/queue_manager.rb
|
84
84
|
- lib/wmq/version.rb
|
85
|
-
- nbproject/project.properties
|
86
|
-
- nbproject/project.xml
|
87
85
|
- tests/test.rb
|
88
86
|
- .document
|
89
87
|
homepage: https://github.com/reidmorrison/rubywmq
|
90
|
-
licenses:
|
88
|
+
licenses:
|
89
|
+
- Apache License V2.0
|
91
90
|
post_install_message:
|
92
91
|
rdoc_options: []
|
93
92
|
require_paths:
|
@@ -1,11 +0,0 @@
|
|
1
|
-
examples.dir=${file.reference.trunk-examples}
|
2
|
-
file.reference.trunk-examples=examples
|
3
|
-
file.reference.trunk-ext=ext
|
4
|
-
file.reference.trunk-lib=lib
|
5
|
-
file.reference.trunk-tests=tests
|
6
|
-
javac.classpath=
|
7
|
-
lib.dir=${file.reference.trunk-lib}
|
8
|
-
main.file=
|
9
|
-
source.encoding=UTF-8
|
10
|
-
src.dir=${file.reference.trunk-ext}
|
11
|
-
test.src.dir=${file.reference.trunk-tests}
|
data/nbproject/project.xml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project xmlns="http://www.netbeans.org/ns/project/1">
|
3
|
-
<type>org.netbeans.modules.ruby.rubyproject</type>
|
4
|
-
<configuration>
|
5
|
-
<data xmlns="http://www.netbeans.org/ns/ruby-project/1">
|
6
|
-
<name>rubywmq</name>
|
7
|
-
<source-roots>
|
8
|
-
<root id="src.dir" name="ext"/>
|
9
|
-
<root id="examples.dir"/>
|
10
|
-
<root id="lib.dir" name="Source Files"/>
|
11
|
-
</source-roots>
|
12
|
-
<test-roots>
|
13
|
-
<root id="test.src.dir"/>
|
14
|
-
</test-roots>
|
15
|
-
</data>
|
16
|
-
</configuration>
|
17
|
-
</project>
|