cztop 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38df565064ee6d04ad3eeaaf668e68574cb8e0cc
4
- data.tar.gz: 62eb8513064a9546d4c04c57411314ffb8bdc162
3
+ metadata.gz: beb64c08f14c0da1a3876bd7f95f0b25ae1d8ecd
4
+ data.tar.gz: e6d4db01ac3823152f12a8a13ee5a2b5a08b190c
5
5
  SHA512:
6
- metadata.gz: 028dbf962ccf069d64048d12107fcc322e66a5553c34e2c8081e15319e602eac13c88ca903a0290bb9fbd6dda22c398ea8e4e16d99fa01f0fab6cf049110df13
7
- data.tar.gz: 7f6f6cdf10066b9a8ae4c26f5b3d0025da04a1a6aeb0caec8bc6ab550a16955057162543ac83e0ec0fd2535923637c5beafb6acf1a6247228492f97531862dc4
6
+ metadata.gz: 72cb0f766f67e77aadb269d1c1f789e9cbd44e52d2beaecfab1794c5ead455517e624bc95fcd3f28f8d98893290bca45bc7a375f537f04bd2d0d7d86f45c0959
7
+ data.tar.gz: e58951ec39fe151f5bc3ada5a9bfea55eb7ed2598f40386f9f7de6d82a80efb60567262ea57960dd7ea0087f0b32e7c06fccd0e4ff751d9fc7a03c5b502ed039
data/CHANGES.md CHANGED
@@ -1,4 +1,9 @@
1
- 0.2.0 (xx/01/2016)
1
+ 0.2.1 (31/01/2016)
2
+ -----
3
+ * improve documentation
4
+ * improve test suite
5
+
6
+ 0.2.0 (27/01/2016)
2
7
  -----
3
8
  * simplify CZTop::Z85::Padded
4
9
  * no length encoding
data/README.md CHANGED
@@ -1,27 +1,18 @@
1
- [![Build Status on Travis CI](https://travis-ci.org/paddor/cztop.svg?branch=master)](https://travis-ci.org/paddor/cztop?branch=master)
2
- [![Code Climate](https://codeclimate.com/repos/56677a7849f50a141c001784/badges/48f3cca3c62df9e4b17b/gpa.svg)](https://codeclimate.com/repos/56677a7849f50a141c001784/feed)
3
- [![Inline docs](http://inch-ci.org/github/paddor/cztop.svg?branch=master&style=shields)](http://inch-ci.org/github/paddor/cztop)
4
- [![Dependency Status](https://gemnasium.com/paddor/cztop.svg)](https://gemnasium.com/paddor/cztop)
5
- [![Coverage Status](https://coveralls.io/repos/paddor/cztop/badge.svg?branch=master&service=github)](https://coveralls.io/github/paddor/cztop?branch=master)
6
- [![ISC License](https://img.shields.io/badge/license-ISC_License-blue.svg)](LICENSE)
7
-
8
1
  # CZTop
9
2
 
10
- ```
11
- _________ _____________________
12
- \_ ___ \ \____ /\__ ___/____ ______
13
- / \ \/ / / | | / _ \ \____ \
14
- \ \____ / /_ | | ( <_> )| |_> >
15
- \______ //_______ \ |____| \____/ | __/
16
- \/ \/ |__|
17
- ```
18
-
19
3
  CZTop is a CZMQ binding for Ruby. It is based on
20
4
  [czmq-ffi-gen](https://github.com/paddor/czmq-ffi-gen), the generated low-level
21
5
  FFI binding of [CZMQ](https://github.com/zeromq/czmq) and has a focus on being
22
6
  easy to use for Rubyists (POLS) and providing first class support for security
23
7
  mechanisms (like CURVE).
24
8
 
9
+ [![Build Status on Travis CI](https://travis-ci.org/paddor/cztop.svg?branch=master)](https://travis-ci.org/paddor/cztop?branch=master)
10
+ [![Code Climate](https://codeclimate.com/repos/56677a7849f50a141c001784/badges/48f3cca3c62df9e4b17b/gpa.svg)](https://codeclimate.com/repos/56677a7849f50a141c001784/feed)
11
+ [![Inline docs](http://inch-ci.org/github/paddor/cztop.svg?branch=master&style=shields)](http://inch-ci.org/github/paddor/cztop)
12
+ [![Dependency Status](https://gemnasium.com/paddor/cztop.svg)](https://gemnasium.com/paddor/cztop)
13
+ [![Coverage Status](https://coveralls.io/repos/paddor/cztop/badge.svg?branch=master&service=github)](https://coveralls.io/github/paddor/cztop?branch=master)
14
+ [![ISC License](https://img.shields.io/badge/license-ISC_License-blue.svg)](LICENSE)
15
+
25
16
  ## Reasons
26
17
 
27
18
  Why another CZMQ Ruby binding? Here is a list of existing projects I found and
@@ -39,6 +30,7 @@ the issues with them, from my point of view:
39
30
  * outdated
40
31
  * doesn't feel like Ruby
41
32
  * [chuckremes/ffi-rzmq](https://github.com/chuckremes/ffi-rzmq)
33
+ * support discontinued
42
34
  * low level ZMQ gem, not CZMQ
43
35
 
44
36
  Furthermore, I knew about the generated low-level Ruby FFI binding in the
@@ -102,6 +94,7 @@ Here's an overview of the core classes:
102
94
  * [SERVER](http://www.rubydoc.info/gems/cztop/CZTop/Socket/SERVER) < Socket
103
95
  * [Z85](http://www.rubydoc.info/gems/cztop/CZTop/Z85)
104
96
  * [Padded](http://www.rubydoc.info/gems/cztop/CZTop/Z85/Padded) < Z85
97
+ * [Pipe](http://www.rubydoc.info/gems/cztop/CZTop/Z85/Pipe)
105
98
 
106
99
  More information in the [API documentation](http://www.rubydoc.info/github/paddor/cztop).
107
100
 
@@ -282,7 +275,7 @@ puts ">>> #{msg.to_a.inspect}"
282
275
  ##
283
276
  # This will send 20 additional messages:
284
277
  #
285
- # ./req.rb 20
278
+ # $ ./req.rb 20
286
279
  #
287
280
  if ARGV.first
288
281
  ARGV.first.to_i.times do
@@ -168,10 +168,9 @@ module CZTop
168
168
  # @return [Boolean] whether it died just now (+false+ if it was dead
169
169
  # already)
170
170
  def terminate
171
- term_msg = Message.new(TERM)
172
171
  @mtx.synchronize do
173
172
  return false if not @running
174
- term_msg.send_to(self)
173
+ Message.new(TERM).send_to(self)
175
174
  await_handler_death
176
175
  true
177
176
  end
@@ -1,3 +1,3 @@
1
1
  module CZTop
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -103,7 +103,7 @@ class CZTop::Z85::Pipe
103
103
  #
104
104
  # 1. reads from source
105
105
  # 2. encodes/decodes
106
- # 3. thread that writes to sink
106
+ # 3. writes to sink
107
107
  #
108
108
  # This might give a performance increase on truly parallel
109
109
  # platforms such as Rubinius and JRuby (and multiple CPU cores).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cztop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: czmq-ffi-gen