resque-fanout 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/resque-fanout.rb CHANGED
@@ -5,4 +5,4 @@ require 'resque/server'
5
5
 
6
6
  require 'resque-fanout/resque_extension'
7
7
  require 'resque-fanout/job_extension'
8
- require 'resque-fanout/pubsub_server'
8
+ require 'resque-fanout/fanout_server'
@@ -4,7 +4,7 @@ class Resque::Job
4
4
  Resque.validate(klass, queue)
5
5
 
6
6
  if Resque.inline?
7
- constantize(klass).perform(*decode(encode(args)))
7
+ new(:inline, {'class' => klass, 'args' => decode(encode(args))}).perform
8
8
  elsif queues = Resque.queues_for(queue)
9
9
  queues.each do |_queue|
10
10
  Resque.push(_queue[:queue], :class => (_queue[:class] || klass.to_s), :args => args)
@@ -84,7 +84,7 @@
84
84
  <label>Queue Name</label>
85
85
  <select name="queue">
86
86
  <% for queue in @queues %>
87
- <option><%= queue[:name] %></option>
87
+ <option><%= queue %></option>
88
88
  <% end %>
89
89
  </select>
90
90
  </p>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-fanout
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
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: 2013-04-04 00:00:00.000000000 Z
12
+ date: 2013-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 2.3.0
21
+ version: 2.14.0
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 2.3.0
29
+ version: 2.14.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bundler
32
32
  requirement: !ruby/object:Gem::Requirement