bulky 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,5 +3,9 @@ require 'resque'
3
3
 
4
4
  module Bulky
5
5
  class Engine < ::Rails::Engine
6
+ initializer "bulky.engine.queue_name" do |app|
7
+ Bulky::Updater::QUEUE = :"#{app.class.parent_name.underscore}_bulky_updates"
8
+ Bulky::Updater.instance_variable_set(:@queue, Bulky::Updater::QUEUE)
9
+ end
6
10
  end
7
11
  end
@@ -1,8 +1,6 @@
1
1
  module Bulky
2
2
  class Updater
3
3
 
4
- QUEUE = @queue = :bulky_updates
5
-
6
4
  def self.perform(model_name, update_id, bulk_update_id)
7
5
  model = model_name.constantize.find(update_id)
8
6
  new(model, bulk_update_id).update!
@@ -1,3 +1,3 @@
1
1
  module Bulky
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
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-09-26 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -178,7 +178,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  segments:
180
180
  - 0
181
- hash: 3963931930750602093
181
+ hash: -1071113927412834877
182
182
  required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  segments:
189
189
  - 0
190
- hash: 3963931930750602093
190
+ hash: -1071113927412834877
191
191
  requirements: []
192
192
  rubyforge_project:
193
193
  rubygems_version: 1.8.24