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.
@@ -5,7 +5,7 @@ require 'json'
5
5
  $:.unshift(File.dirname(__FILE__))
6
6
 
7
7
  module Juggernaut
8
- VERSION = '0.5.6'
8
+ VERSION = '0.5.7'
9
9
 
10
10
  class JuggernautError < StandardError #:nodoc:
11
11
  end
@@ -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 :show_users
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 :show_user
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 :show_users_for_channel
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.6
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-07 00:00:00 +01:00
12
+ date: 2008-08-29 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency