backgrounded 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :minor: 6
4
4
  :build:
5
- :patch: 0
5
+ :patch: 1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{backgrounded}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Sonnek"]
12
- s.date = %q{2010-10-01}
12
+ s.date = %q{2010-10-03}
13
13
  s.email = %q{ryan.sonnek@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -1,4 +1,4 @@
1
- class Backgrounded::Handler::WorklingHandler < Workling::Base
1
+ class Backgrounded::Handler::WorklingHandler
2
2
  def request(object, method, *args)
3
3
  options = {
4
4
  :class => object.class.name,
@@ -6,9 +6,12 @@ class Backgrounded::Handler::WorklingHandler < Workling::Base
6
6
  :method => method,
7
7
  :params => args
8
8
  }
9
- Backgrounded::Handler::WorklingHandler.async_perform options
9
+ BackgroundedWorker.async_perform options
10
10
  end
11
- def perform(options = {})
12
- options[:class].constantize.find(options[:id]).send(options[:method], *options[:params])
11
+
12
+ class BackgroundedWorker < Workling::Base
13
+ def perform(options = {})
14
+ options[:class].constantize.find(options[:id]).send(options[:method], *options[:params])
15
+ end
13
16
  end
14
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backgrounded
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-01 00:00:00 -05:00
18
+ date: 2010-10-03 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency