juggernaut 0.5.6 → 0.5.7
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/lib/juggernaut.rb +1 -1
- data/lib/juggernaut/server.rb +3 -3
- metadata +2 -2
data/lib/juggernaut.rb
CHANGED
data/lib/juggernaut/server.rb
CHANGED
|
@@ -262,17 +262,17 @@ module Juggernaut
|
|
|
262
262
|
client = Juggernaut::Client.find_by_id(client_id)
|
|
263
263
|
client.remove_channels!(@request[:channels]) if client
|
|
264
264
|
end
|
|
265
|
-
when :
|
|
265
|
+
when :show_clients
|
|
266
266
|
if @request[:client_ids] and @request[:client_ids].any?
|
|
267
267
|
clients = @request[:client_ids].collect{ |client_id| Client.find_by_id(client_id) }.compact.uniq
|
|
268
268
|
else
|
|
269
269
|
clients = Juggernaut::Client.find_all
|
|
270
270
|
end
|
|
271
271
|
publish clients.to_json
|
|
272
|
-
when :
|
|
272
|
+
when :show_client
|
|
273
273
|
query_needs :client_id
|
|
274
274
|
publish Juggernaut::Client.find_by_id(@request[:client_id]).to_json
|
|
275
|
-
when :
|
|
275
|
+
when :show_clients_for_channels
|
|
276
276
|
query_needs :channels
|
|
277
277
|
publish Juggernaut::Client.find_by_channels(@request[:channels]).to_json
|
|
278
278
|
else
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: juggernaut
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex MacCaw
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-08-
|
|
12
|
+
date: 2008-08-29 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|