jrzmq 1.0.1 → 1.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/README.md CHANGED
@@ -5,7 +5,8 @@ Provides JRuby Bindings to a Pure Java implementation of libzmq (ZeroMQ).
5
5
  Installation
6
6
  ============
7
7
 
8
- jruby -S gem install jrzmq
8
+ jruby -S gem install jrzmq
9
+ gem "jrzmq", "~> 1.0.1"
9
10
 
10
11
  example
11
12
  =======
@@ -2,12 +2,28 @@
2
2
  module ZMQ
3
3
  require_jars(%w(jeromq))
4
4
 
5
- java_import 'org.jeromq.ZMQ'
5
+ java_import 'zmq.ZMQ'
6
+
7
+ class Socket < org.jeromq.ZMQ::Socket
8
+ def setsockopt(opt, val)
9
+ self.set_linger val
10
+ end
11
+ end
6
12
 
7
13
  class Context < org.jeromq.ZMQ::Context
8
14
  def initialize(ioThreads=java.lang.Runtime.getRuntime.availableProcessors)
9
15
  super(ioThreads)
10
16
  end
17
+
18
+ def socket(type)
19
+ Socket.new(self, type)
20
+ end
21
+ end
22
+
23
+ class Poller < org.jeromq.ZMQ::Poller
24
+ end
25
+
26
+ class Message < org.jeromq.ZMsg
11
27
  end
12
28
 
13
29
  SNDMORE = org.jeromq.ZMQ::SNDMORE
@@ -82,4 +98,7 @@ module ZMQ
82
98
 
83
99
  EVENT_ALL = org.jeromq.ZMQ::EVENT_ALL
84
100
  =end
101
+ IDENTITY = ZMQ::ZMQ_IDENTITY
102
+
103
+ LINGER = ZMQ::ZMQ_LINGER
85
104
  end
@@ -1,3 +1,3 @@
1
1
  module ZeroMQ
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jrzmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
12
+ date: 2013-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: edn