lib/simpleworker/event_server.rb in simpleworker-0.1.0 vs lib/simpleworker/event_server.rb in simpleworker-0.1.1
- old
+ new
@@ -35,10 +35,11 @@
end
private
def parse_active_task_key(str)
- str.split(':').slice(3, 4)
+ hostname, *task = str.split(':')[3..-1]
+ [hostname, task.join(':')]
end
def fire(*args)
changed
notify_observers *args