delayed_job 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ require File.dirname(__FILE__) + '/database'
2
+
3
+ describe "A story" do
4
+
5
+ before(:all) do
6
+ @story = Story.create :text => "Once upon a time..."
7
+ end
8
+
9
+ it "should be shared" do
10
+ @story.tell.should == 'Once upon a time...'
11
+ end
12
+
13
+ it "should not return its result if it storytelling is delayed" do
14
+ @story.send_later(:tell).should_not == 'Once upon a time...'
15
+ end
16
+
17
+ end
@@ -0,0 +1 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'delayed', 'tasks'))
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: delayed_job
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.8.1
5
+ platform: ruby
6
+ authors:
7
+ - "Tobias L\xC3\xBCtke"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-06 00:00:00 -04:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.
17
+ email: tobi@leetsoft.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.textile
24
+ files:
25
+ - .gitignore
26
+ - MIT-LICENSE
27
+ - README.textile
28
+ - Rakefile
29
+ - VERSION
30
+ - delayed_job.gemspec
31
+ - generators/delayed_job/delayed_job_generator.rb
32
+ - generators/delayed_job/templates/migration.rb
33
+ - generators/delayed_job/templates/script
34
+ - init.rb
35
+ - lib/delayed/command.rb
36
+ - lib/delayed/job.rb
37
+ - lib/delayed/message_sending.rb
38
+ - lib/delayed/performable_method.rb
39
+ - lib/delayed/tasks.rb
40
+ - lib/delayed/worker.rb
41
+ - lib/delayed_job.rb
42
+ - recipes/delayed_job.rb
43
+ - spec/database.rb
44
+ - spec/delayed_method_spec.rb
45
+ - spec/job_spec.rb
46
+ - spec/story_spec.rb
47
+ - tasks/jobs.rake
48
+ has_rdoc: true
49
+ homepage: http://github.com/tobi/delayed_job/tree/master
50
+ licenses: []
51
+
52
+ post_install_message:
53
+ rdoc_options:
54
+ - --main
55
+ - README.textile
56
+ - --inline-source
57
+ - --line-numbers
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: "0"
65
+ version:
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ version:
72
+ requirements: []
73
+
74
+ rubyforge_project:
75
+ rubygems_version: 1.3.3
76
+ signing_key:
77
+ specification_version: 3
78
+ summary: Database-backed asynchronous priority queue system -- Extracted from Shopify
79
+ test_files:
80
+ - spec/database.rb
81
+ - spec/delayed_method_spec.rb
82
+ - spec/job_spec.rb
83
+ - spec/story_spec.rb