nsq-cluster 1.1.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/nsq-cluster.rb +1 -1
- data/lib/nsq-cluster/nsqd.rb +3 -3
- data/lib/nsq-cluster/nsqlookupd.rb +2 -2
- metadata +7 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c7c5f98ff83cca318e2639e007161bd439b2316
|
4
|
+
data.tar.gz: d7af273c0b9f9e74b700fd5a3fb22c676fdbccb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11b7c8b3a6db1d70e72cd20117d5987bc2e880eac5f9783eae0bcceaa127e943f71cf771458ac9935012560674172879328a678b6398402b0fd4440a2d786488
|
7
|
+
data.tar.gz: cb329273e0e9e6fbba661aebc397270c2e1f4eb4406f7a076f643c166d1ebfbf83479fe91715a321d2d8e6d03adf89e1c35c56b4eaf18b4a7fcf6e472db3a881
|
data/README.md
CHANGED
@@ -17,6 +17,11 @@ cluster.nsqd.last.start
|
|
17
17
|
cluster.destroy
|
18
18
|
```
|
19
19
|
|
20
|
+
## Compatibility
|
21
|
+
|
22
|
+
- Version 2.x of `nsq-cluster` is compatible with NSQ >= 1.0.
|
23
|
+
- Version 1.x of `nsq-cluster` is compatible with NSQ < 1.0.
|
24
|
+
|
20
25
|
## Flags for nsqd and nsqlookupd
|
21
26
|
|
22
27
|
Optionally, you can pass in flags for nsqd and nsqlookupd like this:
|
data/lib/nsq-cluster.rb
CHANGED
data/lib/nsq-cluster/nsqd.rb
CHANGED
@@ -49,7 +49,7 @@ class Nsqd < ProcessWrapper
|
|
49
49
|
%Q(--tcp-address=#{@host}:#{@tcp_port}),
|
50
50
|
%Q(--http-address=#{@host}:#{@http_port}),
|
51
51
|
%Q(--data-path=#{data_path}),
|
52
|
-
%Q(--
|
52
|
+
%Q(--node-id=#{id}),
|
53
53
|
%Q(--broadcast-address=#{@broadcast_address})
|
54
54
|
]
|
55
55
|
|
@@ -142,9 +142,9 @@ class Nsqd < ProcessWrapper
|
|
142
142
|
|
143
143
|
def nsqd_post(action, params)
|
144
144
|
if params[:topic] && params[:channel]
|
145
|
-
post "
|
145
|
+
post "channel/#{action}", topic: params[:topic], channel: params[:channel]
|
146
146
|
elsif params[:topic]
|
147
|
-
post "
|
147
|
+
post "topic/#{action}", topic: params[:topic]
|
148
148
|
else
|
149
149
|
raise 'you must specify a topic or topic and channel'
|
150
150
|
end
|
@@ -87,9 +87,9 @@ class Nsqlookupd < ProcessWrapper
|
|
87
87
|
|
88
88
|
def nsqlookupd_post(action, params)
|
89
89
|
if params[:topic] && params[:channel]
|
90
|
-
post "
|
90
|
+
post "channel/#{action}", topic: params[:topic], channel: params[:channel]
|
91
91
|
elsif params[:topic]
|
92
|
-
post "
|
92
|
+
post "topic/#{action}", topic: params[:topic]
|
93
93
|
else
|
94
94
|
raise 'you must specify a topic or topic and channel'
|
95
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nsq-cluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wistia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sys-proctable
|
@@ -44,56 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
61
|
+
version: '3.5'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec-rainbow
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0.1'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0.1'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec-legacy_formatters
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.0'
|
68
|
+
version: '3.5'
|
97
69
|
description: Setup nsqd, nsqlookupd, and nsqadmin in a jiffy. Great for testing!
|
98
70
|
email: dev@wistia.com
|
99
71
|
executables:
|
@@ -132,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
104
|
version: '0'
|
133
105
|
requirements: []
|
134
106
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.6.8
|
136
108
|
signing_key:
|
137
109
|
specification_version: 4
|
138
110
|
summary: Easily setup and manage a local NSQ cluster
|