gush 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +4 -0
- data/.rubocop.yml +232 -0
- data/CHANGELOG.md +1 -77
- data/README.md +107 -6
- data/gush.gemspec +4 -2
- data/lib/gush/cli/overview.rb +2 -0
- data/lib/gush/cli.rb +27 -4
- data/lib/gush/client.rb +116 -24
- data/lib/gush/graph.rb +2 -2
- data/lib/gush/job.rb +13 -4
- data/lib/gush/migrate/1_create_gush_workflows_created.rb +21 -0
- data/lib/gush/migration.rb +37 -0
- data/lib/gush/version.rb +1 -1
- data/lib/gush/worker.rb +1 -1
- data/lib/gush/workflow.rb +27 -15
- data/lib/gush.rb +1 -0
- data/spec/features/integration_spec.rb +3 -3
- data/spec/gush/client_spec.rb +303 -6
- data/spec/gush/job_spec.rb +48 -2
- data/spec/gush/migrate/1_create_gush_workflows_created_spec.rb +42 -0
- data/spec/gush/migration_spec.rb +23 -0
- data/spec/gush/workflow_spec.rb +114 -13
- data/spec/spec_helper.rb +7 -7
- metadata +51 -2
data/spec/spec_helper.rb
CHANGED
@@ -31,8 +31,8 @@ class TestWorkflow < Gush::Workflow
|
|
31
31
|
end
|
32
32
|
|
33
33
|
class ParameterTestWorkflow < Gush::Workflow
|
34
|
-
def configure(param)
|
35
|
-
run Prepare if param
|
34
|
+
def configure(param, kwarg: false)
|
35
|
+
run Prepare if param || kwarg
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -120,11 +120,11 @@ RSpec.configure do |config|
|
|
120
120
|
clear_enqueued_jobs
|
121
121
|
clear_performed_jobs
|
122
122
|
|
123
|
-
Gush.configure do |
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
123
|
+
Gush.configure do |c|
|
124
|
+
c.redis_url = REDIS_URL
|
125
|
+
c.gushfile = GUSHFILE
|
126
|
+
c.locking_duration = defined?(locking_duration) ? locking_duration : 2
|
127
|
+
c.polling_interval = defined?(polling_interval) ? polling_interval : 0.3
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotrek Okoński
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activejob
|
@@ -217,6 +217,48 @@ dependencies:
|
|
217
217
|
- - "~>"
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '12'
|
220
|
+
- !ruby/object:Gem::Dependency
|
221
|
+
name: rubocop
|
222
|
+
requirement: !ruby/object:Gem::Requirement
|
223
|
+
requirements:
|
224
|
+
- - "~>"
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: 1.65.0
|
227
|
+
type: :development
|
228
|
+
prerelease: false
|
229
|
+
version_requirements: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - "~>"
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: 1.65.0
|
234
|
+
- !ruby/object:Gem::Dependency
|
235
|
+
name: rubocop-rake
|
236
|
+
requirement: !ruby/object:Gem::Requirement
|
237
|
+
requirements:
|
238
|
+
- - "~>"
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
version: 0.6.0
|
241
|
+
type: :development
|
242
|
+
prerelease: false
|
243
|
+
version_requirements: !ruby/object:Gem::Requirement
|
244
|
+
requirements:
|
245
|
+
- - "~>"
|
246
|
+
- !ruby/object:Gem::Version
|
247
|
+
version: 0.6.0
|
248
|
+
- !ruby/object:Gem::Dependency
|
249
|
+
name: rubocop-rspec
|
250
|
+
requirement: !ruby/object:Gem::Requirement
|
251
|
+
requirements:
|
252
|
+
- - "~>"
|
253
|
+
- !ruby/object:Gem::Version
|
254
|
+
version: 3.0.3
|
255
|
+
type: :development
|
256
|
+
prerelease: false
|
257
|
+
version_requirements: !ruby/object:Gem::Requirement
|
258
|
+
requirements:
|
259
|
+
- - "~>"
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: 3.0.3
|
220
262
|
- !ruby/object:Gem::Dependency
|
221
263
|
name: rspec
|
222
264
|
requirement: !ruby/object:Gem::Requirement
|
@@ -258,6 +300,7 @@ files:
|
|
258
300
|
- ".github/workflows/ruby.yml"
|
259
301
|
- ".gitignore"
|
260
302
|
- ".rspec"
|
303
|
+
- ".rubocop.yml"
|
261
304
|
- CHANGELOG.md
|
262
305
|
- Gemfile
|
263
306
|
- LICENSE.txt
|
@@ -274,6 +317,8 @@ files:
|
|
274
317
|
- lib/gush/graph.rb
|
275
318
|
- lib/gush/job.rb
|
276
319
|
- lib/gush/json.rb
|
320
|
+
- lib/gush/migrate/1_create_gush_workflows_created.rb
|
321
|
+
- lib/gush/migration.rb
|
277
322
|
- lib/gush/version.rb
|
278
323
|
- lib/gush/worker.rb
|
279
324
|
- lib/gush/workflow.rb
|
@@ -285,6 +330,8 @@ files:
|
|
285
330
|
- spec/gush/graph_spec.rb
|
286
331
|
- spec/gush/job_spec.rb
|
287
332
|
- spec/gush/json_spec.rb
|
333
|
+
- spec/gush/migrate/1_create_gush_workflows_created_spec.rb
|
334
|
+
- spec/gush/migration_spec.rb
|
288
335
|
- spec/gush/worker_spec.rb
|
289
336
|
- spec/gush/workflow_spec.rb
|
290
337
|
- spec/gush_spec.rb
|
@@ -321,6 +368,8 @@ test_files:
|
|
321
368
|
- spec/gush/graph_spec.rb
|
322
369
|
- spec/gush/job_spec.rb
|
323
370
|
- spec/gush/json_spec.rb
|
371
|
+
- spec/gush/migrate/1_create_gush_workflows_created_spec.rb
|
372
|
+
- spec/gush/migration_spec.rb
|
324
373
|
- spec/gush/worker_spec.rb
|
325
374
|
- spec/gush/workflow_spec.rb
|
326
375
|
- spec/gush_spec.rb
|