queue_dispatcher 1.1.9 → 1.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
1
1
  <% @new_tasks.each do |task| %>
2
- jQuery('#events_table').prepend('<%=j render(partial: 'queue_dispatcher_views/task_event', locals: {task: task}) %>');
2
+ jQuery('#events_table').prepend('<%=j render(partial: 'queue_dispatcher_views/task_event', locals: {task: task, show_ids: defined?(show_ids) ? show_ids : false, id_prefix: defined?(id_prefix) ? id_prefix : '' }) %>');
3
3
  jQuery('#task_<%= task.id %>').effect('highlight');
4
4
  <% end %>
5
5
 
6
6
  <% @updated_tasks.each do |task| %>
7
- jQuery('#task_<%= task.id %>').replaceWith('<%=j render(partial: 'queue_dispatcher_views/task_event', locals: {task: task}) %>');
7
+ jQuery('#task_<%= task.id %>').replaceWith('<%=j render(partial: 'queue_dispatcher_views/task_event', locals: {task: task, show_ids: defined?(show_ids) ? show_ids : false, id_prefix: defined?(id_prefix) ? id_prefix : '' }) %>');
8
8
  jQuery('#task_<%= task.id %>').effect('highlight');
9
9
  <% end %>
10
10
 
@@ -25,7 +25,7 @@ module QueueDispatcher
25
25
 
26
26
 
27
27
  # Fake a good RC
28
- def good_rc(output, args = {})
28
+ def good_rc(output = '', args = {})
29
29
  @rc = 0
30
30
  @output = output
31
31
  @error_msg = args[:error_msg]
@@ -34,7 +34,7 @@ module QueueDispatcher
34
34
 
35
35
 
36
36
  # Fake a bad RC
37
- def bad_rc(error_msg, args = {})
37
+ def bad_rc(error_msg = '', args = {})
38
38
  @rc = 999
39
39
  @output = args[:output]
40
40
  @error_msg = error_msg
@@ -1,3 +1,3 @@
1
1
  module QueueDispatcher
2
- VERSION = "1.1.9"
2
+ VERSION = "1.1.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue_dispatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
12
+ date: 2012-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sys-proctable