ffi-rzmq 1.0.2 → 1.0.3

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.
@@ -27,3 +27,5 @@ Nilson Santos F. Jr., github: nilsonfsj
27
27
  Simon Chiang , github: thinkerbot
28
28
 
29
29
  Harlow Ward, github: harlow
30
+
31
+ Paul Chechetin, github: paulche
@@ -1,11 +1,15 @@
1
+ == 1.0.3 / 20131003
2
+ * Fixes for issues #96 and #97. Thanks to Paul Chechetin (paulche) for
3
+ the issues and patches.
4
+
1
5
  == 1.0.2 / 20130929
2
6
  * Fix for issue #94. Now includes local_path when searching for a libzmq
3
7
  to load.
4
8
 
5
9
  * Fix for issue #92. Context and Socket finalizers now track the process'
6
- PID to handle a special case when forking a process. Thanks to
7
- thinkerbot for the issue and a fix. (Spec is disabled on JRuby since
8
- it does not support fork().)
10
+ PID to handle a special case when forking a process. Thanks to
11
+ thinkerbot for the issue and a fix. (Spec is disabled on JRuby since
12
+ it does not support fork().)
9
13
 
10
14
  * Fix a few RSpec deprecation warnings related to expectations on specific
11
15
  Exception types.
@@ -13,13 +13,12 @@ module ZMQ
13
13
  local_path = FFI::Platform::IS_WINDOWS ? ENV['PATH'].split(';') : ENV['PATH'].split(':')
14
14
 
15
15
  # Search for libzmq in the following order...
16
- ZMQ_LIB_PATHS = [inside_gem] + local_path + [
16
+ ZMQ_LIB_PATHS =([inside_gem] + local_path + [
17
17
  '/usr/local/lib', '/opt/local/lib', '/usr/local/homebrew/lib', '/usr/lib64'
18
- ].map{|path| "#{path}/libzmq.#{FFI::Platform::LIBSUFFIX}"}
18
+ ]).map{|path| "#{path}/libzmq.#{FFI::Platform::LIBSUFFIX}"}
19
19
  ffi_lib(ZMQ_LIB_PATHS + %w{libzmq})
20
- rescue LoadError
21
- if ZMQ_LIB_PATHS.any? {|path|
22
- File.file? File.join(path, "libzmq.#{FFI::Platform::LIBSUFFIX}")}
20
+ rescue LoadError => e
21
+ if ZMQ_LIB_PATHS.any? {|path| File.file?(path) }
23
22
  warn "Unable to load this gem. The libzmq library exists, but cannot be loaded."
24
23
  warn "If this is Windows:"
25
24
  warn "- Check that you have MSVC runtime installed or statically linked"
@@ -32,7 +31,7 @@ module ZMQ
32
31
  warn "For non-Windows platforms, make sure libzmq is located in this search path:"
33
32
  warn ZMQ_LIB_PATHS.inspect
34
33
  end
35
- raise LoadError, "The libzmq library (or DLL) could not be loaded"
34
+ raise LoadError, e.message
36
35
  end
37
36
  # Size_t not working properly on Windows
38
37
  find_type(:size_t) rescue typedef(:ulong, :size_t)
@@ -1,3 +1,3 @@
1
1
  module ZMQ
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,75 +1,73 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ffi-rzmq
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 3
9
+ version: 1.0.3
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Chuck Remes
9
- autorequire:
13
+ autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2013-09-29 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- requirement: !ruby/object:Gem::Requirement
16
- none: false
17
- requirements:
18
- - - '>='
19
- - !ruby/object:Gem::Version
20
- version: '0'
16
+
17
+ date: 2013-10-03 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
21
  name: ffi
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
22
30
  type: :runtime
23
- version_requirements: !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - '>='
27
- - !ruby/object:Gem::Version
28
- version: '0'
31
+ version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: rspec
29
34
  prerelease: false
30
- - !ruby/object:Gem::Dependency
31
- requirement: !ruby/object:Gem::Requirement
32
- none: false
33
- requirements:
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
34
37
  - - ~>
35
- - !ruby/object:Gem::Version
36
- version: '2.6'
37
- name: rspec
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 2
41
+ - 6
42
+ version: "2.6"
38
43
  type: :development
39
- version_requirements: !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ~>
43
- - !ruby/object:Gem::Version
44
- version: '2.6'
45
- prerelease: false
46
- - !ruby/object:Gem::Dependency
47
- requirement: !ruby/object:Gem::Requirement
48
- none: false
49
- requirements:
50
- - - '>='
51
- - !ruby/object:Gem::Version
52
- version: '0'
44
+ version_requirements: *id002
45
+ - !ruby/object:Gem::Dependency
53
46
  name: rake
54
- type: :development
55
- version_requirements: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - '>='
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
47
  prerelease: false
48
+ requirement: &id003 !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ segments:
53
+ - 0
54
+ version: "0"
55
+ type: :development
56
+ version_requirements: *id003
62
57
  description: |-
63
58
  This gem wraps the ZeroMQ networking library using the ruby FFI (foreign
64
59
  function interface). It's a pure ruby wrapper so this gem can be loaded
65
60
  and run by any ruby runtime that supports FFI. That's all of the major ones -
66
61
  MRI, Rubinius and JRuby.
67
- email:
62
+ email:
68
63
  - git@chuckremes.com
69
64
  executables: []
65
+
70
66
  extensions: []
67
+
71
68
  extra_rdoc_files: []
72
- files:
69
+
70
+ files:
73
71
  - .bnsignore
74
72
  - .gitignore
75
73
  - .travis.yml
@@ -134,31 +132,37 @@ files:
134
132
  - spec/spec_helper.rb
135
133
  - spec/support/test.crt
136
134
  - spec/support/test.key
135
+ has_rdoc: true
137
136
  homepage: http://github.com/chuckremes/ffi-rzmq
138
137
  licenses: []
139
- post_install_message:
138
+
139
+ post_install_message:
140
140
  rdoc_options: []
141
- require_paths:
141
+
142
+ require_paths:
142
143
  - lib
143
- required_ruby_version: !ruby/object:Gem::Requirement
144
- none: false
145
- requirements:
146
- - - '>='
147
- - !ruby/object:Gem::Version
148
- version: '0'
149
- required_rubygems_version: !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
152
- - - '>='
153
- - !ruby/object:Gem::Version
154
- version: '0'
144
+ required_ruby_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ segments:
149
+ - 0
150
+ version: "0"
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ segments:
156
+ - 0
157
+ version: "0"
155
158
  requirements: []
159
+
156
160
  rubyforge_project: ffi-rzmq
157
- rubygems_version: 1.8.24
158
- signing_key:
161
+ rubygems_version: 1.3.6
162
+ signing_key:
159
163
  specification_version: 3
160
164
  summary: This gem wraps the ZeroMQ (0mq) networking library using Ruby FFI (foreign function interface).
161
- test_files:
165
+ test_files:
162
166
  - spec/context_spec.rb
163
167
  - spec/device_spec.rb
164
168
  - spec/message_spec.rb