sidekiq-superworker 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +10 -1
- data/lib/sidekiq/superworker.rb +0 -1
- data/lib/sidekiq/superworker/version.rb +1 -1
- metadata +21 -34
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 014ddac6c1e85e35f8250f215693e183698440bf
|
4
|
+
data.tar.gz: 573940cf6cdc6b055f870124dbb3d4afc9cc3f0b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6b77c4f34765af555b1efb6a6b7d8c089c47a4a27a6642294c9173cd4804a742495199162ce7ca829a595fd9b3e4082496e8235f77e28c5ff1ee8062e76ea2f5
|
7
|
+
data.tar.gz: 3433ab2858b6cd155beea4ab729fae4870b985563b99b71cbd915a41e4aa504465d39937e1a4c8c0c204bde424c8d63d3fc3fe0ae55d55e247322902209fbd34
|
data/README.md
CHANGED
@@ -120,6 +120,16 @@ Superworker.create(:MySuperworker, :user_id, :comment_id) do
|
|
120
120
|
end
|
121
121
|
```
|
122
122
|
|
123
|
+
### Namespaced Workers
|
124
|
+
|
125
|
+
To refer to a namespaced worker (e.g. `MyModule::Worker1`), replace the two colons with two underscores:
|
126
|
+
|
127
|
+
```ruby
|
128
|
+
Superworker.create(:MySuperworker, :user_id, :comment_id) do
|
129
|
+
MyModule__Worker1 :user_id, :comment_id
|
130
|
+
end
|
131
|
+
```
|
132
|
+
|
123
133
|
### Options
|
124
134
|
|
125
135
|
#### Insert Method
|
@@ -129,7 +139,6 @@ When a superjob is queued, records for all of its subjobs are created. By defaul
|
|
129
139
|
```ruby
|
130
140
|
# config/initializers/superworker.rb
|
131
141
|
Sidekiq::Superworker.options[:insert_method] = :multiple
|
132
|
-
|
133
142
|
```
|
134
143
|
|
135
144
|
### Logging
|
data/lib/sidekiq/superworker.rb
CHANGED
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-superworker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tom Benner
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: sidekiq
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 2.1.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 2.1.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: activerecord-import
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rails
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,23 +55,20 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: sqlite3
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rspec-rails
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,17 +83,15 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: database_cleaner
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - '>='
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
description: Chain together Sidekiq workers in parallel and/or serial configurations
|
@@ -114,11 +101,16 @@ executables: []
|
|
114
101
|
extensions: []
|
115
102
|
extra_rdoc_files: []
|
116
103
|
files:
|
104
|
+
- MIT-LICENSE
|
105
|
+
- README.md
|
106
|
+
- Rakefile
|
117
107
|
- app/models/sidekiq/superworker/subjob.rb
|
118
108
|
- app/views/sidekiq/superworker/subjobs.slim
|
119
109
|
- lib/generators/sidekiq/superworker/install/install_generator.rb
|
120
110
|
- lib/generators/sidekiq/superworker/install/templates/create_sidekiq_superworker_subjobs.rb
|
111
|
+
- lib/sidekiq-superworker.rb
|
121
112
|
- lib/sidekiq/client_ext.rb
|
113
|
+
- lib/sidekiq/superworker.rb
|
122
114
|
- lib/sidekiq/superworker/dsl_evaluator.rb
|
123
115
|
- lib/sidekiq/superworker/dsl_hash.rb
|
124
116
|
- lib/sidekiq/superworker/dsl_parser.rb
|
@@ -130,34 +122,29 @@ files:
|
|
130
122
|
- lib/sidekiq/superworker/version.rb
|
131
123
|
- lib/sidekiq/superworker/worker.rb
|
132
124
|
- lib/sidekiq/superworker/worker_class.rb
|
133
|
-
- lib/sidekiq/superworker.rb
|
134
|
-
- lib/sidekiq-superworker.rb
|
135
|
-
- MIT-LICENSE
|
136
|
-
- Rakefile
|
137
|
-
- README.md
|
138
125
|
homepage: https://github.com/socialpandas/sidekiq-superworker
|
139
126
|
licenses:
|
140
127
|
- MIT
|
128
|
+
metadata: {}
|
141
129
|
post_install_message:
|
142
130
|
rdoc_options: []
|
143
131
|
require_paths:
|
144
132
|
- lib
|
145
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
-
none: false
|
147
134
|
requirements:
|
148
|
-
- -
|
135
|
+
- - '>='
|
149
136
|
- !ruby/object:Gem::Version
|
150
137
|
version: '0'
|
151
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
-
none: false
|
153
139
|
requirements:
|
154
|
-
- -
|
140
|
+
- - '>='
|
155
141
|
- !ruby/object:Gem::Version
|
156
142
|
version: '0'
|
157
143
|
requirements: []
|
158
144
|
rubyforge_project:
|
159
|
-
rubygems_version:
|
145
|
+
rubygems_version: 2.2.2
|
160
146
|
signing_key:
|
161
|
-
specification_version:
|
147
|
+
specification_version: 4
|
162
148
|
summary: Chain together Sidekiq workers in parallel and/or serial configurations
|
163
149
|
test_files: []
|
150
|
+
has_rdoc:
|