ferocia-rubywmq 2.0.4 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -50
- data/ext/extconf.rb +1 -1
- data/ferocia-rubywmq.gemspec +33 -0
- data/lib/wmq.rb +1 -1
- data/lib/wmq/version.rb +1 -1
- metadata +12 -15
data/Rakefile
CHANGED
@@ -8,56 +8,6 @@ require 'rake/testtask'
|
|
8
8
|
require 'date'
|
9
9
|
require 'wmq/version'
|
10
10
|
|
11
|
-
desc "Build Ruby Source gem"
|
12
|
-
task :gem do |t|
|
13
|
-
excludes = [
|
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/
|
24
|
-
]
|
25
|
-
|
26
|
-
gemspec = Gem::Specification.new do |spec|
|
27
|
-
spec.name = 'ferocia-rubywmq'
|
28
|
-
spec.version = WMQ::VERSION
|
29
|
-
spec.platform = Gem::Platform::RUBY
|
30
|
-
spec.authors = ['Reid Morrison', 'Edwin Fine']
|
31
|
-
spec.email = ['reidmo@gmail.com']
|
32
|
-
spec.homepage = 'https://github.com/reidmorrison/rubywmq'
|
33
|
-
spec.date = Date.today.to_s
|
34
|
-
spec.summary = "Native Ruby interface into WebSphere MQ"
|
35
|
-
spec.description = "RubyWMQ is a high performance native Ruby interface into WebSphere MQ."
|
36
|
-
spec.files = FileList["./**/*"].exclude(*excludes).map{|f| f.sub(/^\.\//, '')} + ['.document']
|
37
|
-
spec.license = "Apache License V2.0"
|
38
|
-
spec.extensions << 'ext/extconf.rb'
|
39
|
-
spec.rubyforge_project = 'rubywmq'
|
40
|
-
spec.test_file = 'tests/test.rb'
|
41
|
-
spec.has_rdoc = true
|
42
|
-
spec.required_ruby_version = '>= 1.8.4'
|
43
|
-
spec.add_development_dependency 'shoulda'
|
44
|
-
spec.requirements << 'WebSphere MQ v5.3, v6 or v7 Client or Server with Development Kit'
|
45
|
-
|
46
|
-
if RUBY_PLATFORM =~ /darwin/
|
47
|
-
spec.post_install_message = <<-MESSAGE
|
48
|
-
|
49
|
-
###########################################
|
50
|
-
* [rubywmq] The rubywmq gem cannot be installed on a mac as you need WMQ client libraries on the system.
|
51
|
-
* [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.
|
52
|
-
###########################################
|
53
|
-
|
54
|
-
MESSAGE
|
55
|
-
end
|
56
|
-
end
|
57
|
-
p gemspec.files
|
58
|
-
Gem::Builder.new(gemspec).build
|
59
|
-
end
|
60
|
-
|
61
11
|
desc "Build a binary gem including pre-compiled binary files for re-distribution"
|
62
12
|
task :binary do |t|
|
63
13
|
# Move compiled files into locations for repackaging as a binary gem
|
data/ext/extconf.rb
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
$:.unshift File.expand_path('../lib', __FILE__)
|
2
|
+
require 'wmq/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
|
6
|
+
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/]
|
7
|
+
|
8
|
+
spec.name = 'ferocia-rubywmq'
|
9
|
+
spec.version = WMQ::VERSION
|
10
|
+
spec.platform = Gem::Platform::RUBY
|
11
|
+
spec.authors = ['Reid Morrison', 'Edwin Fine']
|
12
|
+
spec.email = ['reidmo@gmail.com']
|
13
|
+
spec.homepage = 'https://github.com/reidmorrison/rubywmq'
|
14
|
+
spec.date = Date.today.to_s
|
15
|
+
spec.summary = "Native Ruby interface into WebSphere MQ"
|
16
|
+
spec.description = "RubyWMQ is a high performance native Ruby interface into WebSphere MQ."
|
17
|
+
spec.files = Dir.glob("./**/*").reject {|p| excludes.any? {|e| p[e] } }.map {|f| f.sub(/^\.\//, '')} + ['.document']
|
18
|
+
spec.license = "Apache License V2.0"
|
19
|
+
spec.extensions << 'ext/extconf.rb'
|
20
|
+
spec.rubyforge_project = 'rubywmq'
|
21
|
+
spec.test_file = 'tests/test.rb'
|
22
|
+
spec.has_rdoc = true
|
23
|
+
spec.required_ruby_version = '>= 1.8.4'
|
24
|
+
spec.add_development_dependency 'shoulda'
|
25
|
+
spec.requirements << 'WebSphere MQ v5.3, v6 or v7 Client or Server with Development Kit'
|
26
|
+
|
27
|
+
spec.post_install_message = <<-MESSAGE
|
28
|
+
* ferocia-rubywmq builds against the WMQ libs, which aren't available for OS X.
|
29
|
+
* The gem will still install, but the build will be skipped, producing a
|
30
|
+
* non-functional gem, so you'll need stubs. (You can skip the build elsewhere by
|
31
|
+
* setting the DISABLE_RUBYWMQ environment variable.)
|
32
|
+
MESSAGE
|
33
|
+
end
|
data/lib/wmq.rb
CHANGED
@@ -2,7 +2,7 @@ require 'wmq/version'
|
|
2
2
|
require 'wmq/queue_manager'
|
3
3
|
require 'wmq/message'
|
4
4
|
|
5
|
-
unless RUBY_PLATFORM =~ /darwin/
|
5
|
+
unless RUBY_PLATFORM =~ /darwin/ || ENV['DISABLE_RUBYWMQ']
|
6
6
|
# don't try and require any of these on a mac as they do not exist, they
|
7
7
|
# required the gem extensions to have been compiled.
|
8
8
|
|
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.6
|
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-08-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: shoulda
|
@@ -36,9 +36,6 @@ extensions:
|
|
36
36
|
- ext/extconf.rb
|
37
37
|
extra_rdoc_files: []
|
38
38
|
files:
|
39
|
-
- LICENSE.txt
|
40
|
-
- README.md
|
41
|
-
- Rakefile
|
42
39
|
- examples/each_a.rb
|
43
40
|
- examples/each_b.rb
|
44
41
|
- examples/each_header.rb
|
@@ -77,28 +74,28 @@ files:
|
|
77
74
|
- ext/wmq_mq_load.c
|
78
75
|
- ext/wmq_queue.c
|
79
76
|
- ext/wmq_queue_manager.c
|
77
|
+
- ferocia-rubywmq.gemspec
|
80
78
|
- lib/rubywmq.rb
|
81
|
-
- lib/wmq.rb
|
82
79
|
- lib/wmq/message.rb
|
83
80
|
- lib/wmq/queue_manager.rb
|
84
81
|
- lib/wmq/version.rb
|
82
|
+
- lib/wmq.rb
|
83
|
+
- LICENSE.txt
|
84
|
+
- Rakefile
|
85
|
+
- README.md
|
85
86
|
- tests/test.rb
|
86
87
|
- .document
|
87
88
|
homepage: https://github.com/reidmorrison/rubywmq
|
88
89
|
licenses:
|
89
90
|
- Apache License V2.0
|
90
|
-
post_install_message: ! '
|
91
|
-
|
92
|
-
###########################################
|
93
|
-
|
94
|
-
* [rubywmq] The rubywmq gem cannot be installed on a mac as you need WMQ client
|
95
|
-
libraries on the system.
|
91
|
+
post_install_message: ! '* ferocia-rubywmq builds against the WMQ libs, which aren''t
|
92
|
+
available for OS X.
|
96
93
|
|
97
|
-
*
|
98
|
-
your bundles) but the gem will not function, you''ll need stubs on a mac.
|
94
|
+
* The gem will still install, but the build will be skipped, producing a
|
99
95
|
|
100
|
-
|
96
|
+
* non-functional gem, so you''ll need stubs. (You can skip the build elsewhere by
|
101
97
|
|
98
|
+
* setting the DISABLE_RUBYWMQ environment variable.)
|
102
99
|
|
103
100
|
'
|
104
101
|
rdoc_options: []
|