postjob 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c054855a1e88bd1bd62a307c353ae1ec9b3808c4
4
- data.tar.gz: 2be6501f60445645d4a48c4886191722fcedd73d
3
+ metadata.gz: 6ada3a8cd205df1f0b5e8dc42e90b3bef97051b4
4
+ data.tar.gz: c5cb76fb6722a68e8ff428116ab0f480be497dce
5
5
  SHA512:
6
- metadata.gz: 3b25bd089c33c0ee2cc83c8b6139baaf92061e026da3eaa263674faed56d11282cc2ebf2b70ab103d801849fd7293196c908841f7aa7246e03994e7fdae9f63d
7
- data.tar.gz: 4880622ba72b9bfd8f047b0d60196ca2e97505880f7cfb826a7aef4f54f7c0ff467e0260bd2c6c92441953b7d6eb146db4745cce2fbb1c0d5f1b256402a94b1a
6
+ metadata.gz: d44b956774c44038aa24d2be363b15f2f80da764d3e4ff0246a4b5a11c5eced09b025075a7c8ccbfbd085a728aecefdc3a611f05aaee014c613084b133fb2f2e
7
+ data.tar.gz: 4c91bb5b960f78a42dcb49c1c5d92b0e7d5aa5b20dd870ab847168269b7fe1b79fa07b0a767309ecd7b979ab24054385b9ad263f5521073dfc79d2c619bdd5c1
data/lib/postjob.rb CHANGED
@@ -1,7 +1,10 @@
1
1
  require "expectation"
2
2
  require "simple/sql"
3
+ require "timeout"
4
+
5
+ module Postjob
6
+ end
3
7
 
4
- require_relative "postjob/version"
5
8
  require_relative "postjob/workflow"
6
9
  require_relative "postjob/registry"
7
10
  require_relative "postjob/job"
data/lib/postjob/queue.rb CHANGED
@@ -5,6 +5,8 @@
5
5
  # rubocop:disable Lint/EndAlignment
6
6
  # rubocop:disable Layout/SpaceInsideArrayLiteralBrackets
7
7
 
8
+ require "securerandom"
9
+
8
10
  # The Postjob::Queue manages enqueueing and fetching jobs from a job queue.
9
11
  module Postjob::Queue
10
12
  extend self
@@ -79,7 +79,6 @@ describe "Sub Workflows" do
79
79
 
80
80
  Postjob.process_all
81
81
 
82
- print_jobs
83
82
  processed_job = load_job(id)
84
83
  expect(processed_job.status).to eq("ok")
85
84
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postjob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
@@ -15,6 +15,9 @@ dependencies:
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.5'
20
+ - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 3.5.0
20
23
  type: :development
@@ -22,6 +25,9 @@ dependencies:
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.5'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 3.5.0
27
33
  - !ruby/object:Gem::Dependency
@@ -38,20 +44,6 @@ dependencies:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
46
  version: '0.10'
41
- - !ruby/object:Gem::Dependency
42
- name: pry-byebug
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: rake
57
49
  requirement: !ruby/object:Gem::Requirement
@@ -141,6 +133,9 @@ dependencies:
141
133
  requirement: !ruby/object:Gem::Requirement
142
134
  requirements:
143
135
  - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '0.2'
138
+ - - ">="
144
139
  - !ruby/object:Gem::Version
145
140
  version: 0.2.5
146
141
  type: :runtime
@@ -148,6 +143,9 @@ dependencies:
148
143
  version_requirements: !ruby/object:Gem::Requirement
149
144
  requirements:
150
145
  - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '0.2'
148
+ - - ">="
151
149
  - !ruby/object:Gem::Version
152
150
  version: 0.2.5
153
151
  - !ruby/object:Gem::Dependency
@@ -174,21 +172,30 @@ dependencies:
174
172
  name: table_print
175
173
  requirement: !ruby/object:Gem::Requirement
176
174
  requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '1'
177
178
  - - ">="
178
179
  - !ruby/object:Gem::Version
179
- version: '0'
180
+ version: 1.5.6
180
181
  type: :runtime
181
182
  prerelease: false
182
183
  version_requirements: !ruby/object:Gem::Requirement
183
184
  requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '1'
184
188
  - - ">="
185
189
  - !ruby/object:Gem::Version
186
- version: '0'
190
+ version: 1.5.6
187
191
  - !ruby/object:Gem::Dependency
188
192
  name: expectation
189
193
  requirement: !ruby/object:Gem::Requirement
190
194
  requirements:
191
195
  - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: '1.1'
198
+ - - ">="
192
199
  - !ruby/object:Gem::Version
193
200
  version: 1.1.1
194
201
  type: :runtime
@@ -196,6 +203,9 @@ dependencies:
196
203
  version_requirements: !ruby/object:Gem::Requirement
197
204
  requirements:
198
205
  - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: '1.1'
208
+ - - ">="
199
209
  - !ruby/object:Gem::Version
200
210
  version: 1.1.1
201
211
  description: restartable, asynchronous, and distributed processes