ferocia-rubywmq 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/extconf.rb +31 -23
  2. data/rubywmq.gemspec +1 -1
  3. metadata +1 -1
data/ext/extconf.rb CHANGED
@@ -14,31 +14,39 @@
14
14
  # limitations under the License.
15
15
  ################################################################################
16
16
 
17
- require 'mkmf'
18
- require_relative 'generate/generate_reason'
19
- require_relative 'generate/generate_const'
20
- require_relative 'generate/generate_structs'
21
-
22
- include_path = ''
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
- include_path = '/opt/mqm/inc'
28
- #dir_config('mqm', include_path, '/opt/mqm/lib')
29
- end
24
+ require 'mkmf'
25
+ require_relative 'generate/generate_reason'
26
+ require_relative 'generate/generate_const'
27
+ require_relative 'generate/generate_structs'
30
28
 
31
- have_header('cmqc.h')
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
- # Check for WebSphere MQ Server library
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
- # Generate Source Files
39
- GenerateReason.generate(include_path+'/')
40
- GenerateConst.generate(include_path+'/', 'lib')
41
- GenerateStructs.new(include_path+'/', 'generate').generate
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 Makefile
44
- create_makefile('wmq/wmq')
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.0"
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']
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: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: