ezmq 0.3.4 → 0.3.5

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: db0f5acc1f2dd405864b1d505be6d2d8544768f3
4
- data.tar.gz: fba1f5ef6e57576f6cda48194a79b97bf114002f
3
+ metadata.gz: 84d37d09781072d12731c75c17ef3bbdc203ae10
4
+ data.tar.gz: 76147c83421a34a26c80869b60460a345d390693
5
5
  SHA512:
6
- metadata.gz: 460d90b6081db2b9f67c2a388ecac4ceb625a20343795648b871d8dc87804476d0441c04b288fdbeb5f98b6431ad518260fb4a4c76da51a4d237b08f24ba0506
7
- data.tar.gz: af48dc68db0c409106fbbe6a32f6d8780ffd97bd7cbef67cc865fb5230b2cf3e9d750b305600e3a3dfea1a9cd0120ee81dcc04c1731ffb1014fe5c08c75eab1b
6
+ metadata.gz: 89d4d72849550714498d1bb659cd3b20f886b5e5d8ead751066107783f5d168ce0adc0a140b1f47875a86010fbc50428c4a7d3b86fa5d2930b66c95792bcbda0
7
+ data.tar.gz: 6ac46a7342a97f99bee176157c8752d557a10ae7e3f76d3e33eca89220c86b9aac2a8bd8454979c5b897dba3a9e74292e84a22480a9dd50aa885684765cb86f8
@@ -0,0 +1,226 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: EZMQ::Context
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!EZMQ/Context.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (C)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../EZMQ.html" title="EZMQ (module)">EZMQ</a></span></span>
36
+ &raquo;
37
+ <span class="title">Context</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: EZMQ::Context
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">ZMQ::Context</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">ZMQ::Context</li>
82
+
83
+ <li class="next">EZMQ::Context</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/ezmq/context.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Wrapper class to simplify 0MQ sockets.</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+ <h2>
124
+ Instance Method Summary
125
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
126
+ </h2>
127
+
128
+ <ul class="summary">
129
+
130
+ <li class="public ">
131
+ <span class="summary_signature">
132
+
133
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Context) <strong>initialize</strong> </a>
134
+
135
+
136
+
137
+ </span>
138
+
139
+
140
+ <span class="note title constructor">constructor</span>
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <span class="summary_desc"><div class='inline'>
150
+ <p>Creates a 0MQ context.</p>
151
+ </div></span>
152
+
153
+ </li>
154
+
155
+
156
+ </ul>
157
+
158
+
159
+
160
+ <div id="constructor_details" class="method_details_list">
161
+ <h2>Constructor Details</h2>
162
+
163
+ <div class="method_details first">
164
+ <h3 class="signature first" id="initialize-instance_method">
165
+
166
+ - (<tt><span class='object_link'><a href="" title="EZMQ::Context (class)">Context</a></span></tt>) <strong>initialize</strong>
167
+
168
+
169
+
170
+
171
+
172
+ </h3><div class="docstring">
173
+ <div class="discussion">
174
+
175
+ <p>Creates a 0MQ context.</p>
176
+
177
+ <p>Contexts are essentially resource containers or sandboxes for 0MQ. They</p>
178
+
179
+ <pre class="code ruby"><code class="ruby">allow multiple sockets to share access to system resources, and an
180
+ entire context can be terminated, closing all sockets within it.</code></pre>
181
+
182
+ <p>Contexts are useful when dealing with the &#39;inproc&#39; transport /
183
+ protocol.</p>
184
+
185
+ <pre class="code ruby"><code class="ruby">Any sockets that need to communicate in-process must share a context.</code></pre>
186
+
187
+
188
+ </div>
189
+ </div>
190
+ <div class="tags">
191
+
192
+
193
+ </div><table class="source_code">
194
+ <tr>
195
+ <td>
196
+ <pre class="lines">
197
+
198
+
199
+ 16
200
+ 17
201
+ 18</pre>
202
+ </td>
203
+ <td>
204
+ <pre class="code"><span class="info file"># File 'lib/ezmq/context.rb', line 16</span>
205
+
206
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
207
+ <span class='kw'>super</span>
208
+ <span class='kw'>end</span></pre>
209
+ </td>
210
+ </tr>
211
+ </table>
212
+ </div>
213
+
214
+ </div>
215
+
216
+
217
+ </div>
218
+
219
+ <div id="footer">
220
+ Generated on Wed Jan 28 09:40:16 2015 by
221
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
222
+ 0.8.7.6 (ruby-2.0.0).
223
+ </div>
224
+
225
+ </body>
226
+ </html>
data/ezmq.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'ezmq'
3
- gem.version = '0.3.4'
3
+ gem.version = '0.3.5'
4
4
  gem.licenses = 'MIT'
5
5
  gem.authors = ['Chris Olstrom']
6
6
  gem.email = 'chris@olstrom.com'
@@ -0,0 +1,22 @@
1
+ require 'ffi-rzmq'
2
+
3
+ # Syntactic sugar for 0MQ, because Ruby shouldn't feel like C.
4
+ module EZMQ
5
+ # Wrapper class to simplify 0MQ sockets.
6
+ class Context < ZMQ::Context
7
+ # Creates a 0MQ context.
8
+ #
9
+ # Contexts are essentially resource containers or sandboxes for 0MQ. They
10
+ # allow multiple sockets to share access to system resources, and an
11
+ # entire context can be terminated, closing all sockets within it.
12
+ #
13
+ # Contexts are useful when dealing with the 'inproc' transport / protocol.
14
+ # Any sockets that need to communicate in-process must share a context.
15
+ #
16
+ # @return [Context] a new instance of Context.
17
+ #
18
+ def initialize
19
+ super
20
+ end
21
+ end
22
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi-rzmq
@@ -165,6 +165,7 @@ files:
165
165
  - UPGRADING.md
166
166
  - doc/EZMQ.html
167
167
  - doc/EZMQ/Client.html
168
+ - doc/EZMQ/Context.html
168
169
  - doc/EZMQ/Publisher.html
169
170
  - doc/EZMQ/Puller.html
170
171
  - doc/EZMQ/Pusher.html
@@ -187,6 +188,7 @@ files:
187
188
  - doc/top-level-namespace.html
188
189
  - ezmq.gemspec
189
190
  - lib/ezmq.rb
191
+ - lib/ezmq/context.rb
190
192
  - lib/ezmq/publish.rb
191
193
  - lib/ezmq/pull.rb
192
194
  - lib/ezmq/push.rb