ruby_nsq 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/History.md +5 -0
- data/README.md +2 -2
- data/lib/nsq/publisher.rb +2 -1
- data/test/{sync_connection_test.rb → sync_connection_test.rb.tbd} +0 -0
- metadata +35 -41
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9579c1a3a9b590d345635b1ad0118dc33e5fbd97
|
4
|
+
data.tar.gz: c2a3fe655159c07d68e8e9a05212f71050ec7457
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d28cb948f57d9606e1301f460ee3dd6f7ac948e6c3c7f537fa63568097f6009ec7cb8101e33286f1c6ab4336321e1112f7fe9a498c8e03e94e0d7e143503ede3
|
7
|
+
data.tar.gz: 9f2ea7faedaecd1d4ea0f4568dfe38173c0e6f53b008874605cb3269362bda7a4ca33e0d225cff17302a16ae372c6dd2f86f933fb164dc866a35b9d481735d40
|
data/History.md
CHANGED
data/README.md
CHANGED
@@ -68,13 +68,13 @@ baz_threads.each(&:join)
|
|
68
68
|
|
69
69
|
* Tests!
|
70
70
|
|
71
|
-
*
|
71
|
+
* Support IPv6
|
72
72
|
|
73
73
|
## Meta
|
74
74
|
|
75
75
|
* Code: `git clone git://github.com/ClarityServices/ruby_nsq.git`
|
76
76
|
* Home: <https://github.com/ClarityServices/ruby_nsq>
|
77
|
-
* Bugs: <http://github.com/
|
77
|
+
* Bugs: <http://github.com/ClarityServices/ruby_nsq/issues>
|
78
78
|
* Gems: <http://rubygems.org/gems/ruby_nsq>
|
79
79
|
|
80
80
|
This project uses [Semantic Versioning](http://semver.org/).
|
data/lib/nsq/publisher.rb
CHANGED
@@ -20,7 +20,8 @@ module NSQ
|
|
20
20
|
size, frame, msg = response.unpack('NNa*')
|
21
21
|
if response.length == size+4
|
22
22
|
case msg
|
23
|
-
when 'OK'
|
23
|
+
when 'OK' then return
|
24
|
+
when '_heartbeat_' then response = ""
|
24
25
|
when 'E_INVALID' then raise 'Invalid message'
|
25
26
|
when 'E_BAD_TOPIC' then raise 'Bad topic'
|
26
27
|
when 'E_BAD_MESSAGE' then raise 'Bad message'
|
File without changes
|
metadata
CHANGED
@@ -1,110 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_nsq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Brad Pardee
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-07-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: nio4r
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rdoc
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
44
53
|
- !ruby/object:Gem::Version
|
45
54
|
version: '0'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: minitest
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- -
|
59
|
+
- - '>='
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: '0'
|
54
62
|
type: :development
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - '>='
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: '0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: turn
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- -
|
73
|
+
- - '>='
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: '0'
|
70
76
|
type: :development
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- -
|
80
|
+
- - '>='
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: '0'
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: wirble
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
|
-
- -
|
87
|
+
- - '>='
|
84
88
|
- !ruby/object:Gem::Version
|
85
89
|
version: '0'
|
86
90
|
type: :development
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
|
-
- -
|
94
|
+
- - '>='
|
92
95
|
- !ruby/object:Gem::Version
|
93
96
|
version: '0'
|
94
97
|
- !ruby/object:Gem::Dependency
|
95
98
|
name: hirb
|
96
99
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
100
|
requirements:
|
99
|
-
- -
|
101
|
+
- - '>='
|
100
102
|
- !ruby/object:Gem::Version
|
101
103
|
version: '0'
|
102
104
|
type: :development
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
|
-
- -
|
108
|
+
- - '>='
|
108
109
|
- !ruby/object:Gem::Version
|
109
110
|
version: '0'
|
110
111
|
description: Ruby client for the NSQ realtime message processing system
|
@@ -137,37 +138,30 @@ files:
|
|
137
138
|
- History.md
|
138
139
|
- README.md
|
139
140
|
- test/backoff_timer_test.rb
|
140
|
-
- test/sync_connection_test.rb
|
141
|
+
- test/sync_connection_test.rb.tbd
|
141
142
|
homepage: http://github.com/ClarityServices/ruby_nsq
|
142
143
|
licenses: []
|
144
|
+
metadata: {}
|
143
145
|
post_install_message:
|
144
146
|
rdoc_options: []
|
145
147
|
require_paths:
|
146
148
|
- lib
|
147
149
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
150
|
requirements:
|
150
|
-
- -
|
151
|
+
- - '>='
|
151
152
|
- !ruby/object:Gem::Version
|
152
153
|
version: '0'
|
153
|
-
segments:
|
154
|
-
- 0
|
155
|
-
hash: 1267684542890965568
|
156
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
-
none: false
|
158
155
|
requirements:
|
159
|
-
- -
|
156
|
+
- - '>='
|
160
157
|
- !ruby/object:Gem::Version
|
161
158
|
version: '0'
|
162
|
-
segments:
|
163
|
-
- 0
|
164
|
-
hash: 1267684542890965568
|
165
159
|
requirements: []
|
166
160
|
rubyforge_project:
|
167
|
-
rubygems_version:
|
161
|
+
rubygems_version: 2.0.2
|
168
162
|
signing_key:
|
169
|
-
specification_version:
|
163
|
+
specification_version: 4
|
170
164
|
summary: Ruby client for NSQ
|
171
165
|
test_files:
|
172
166
|
- test/backoff_timer_test.rb
|
173
|
-
- test/sync_connection_test.rb
|
167
|
+
- test/sync_connection_test.rb.tbd
|