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.
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 |config|
124
- config.redis_url = REDIS_URL
125
- config.gushfile = GUSHFILE
126
- config.locking_duration = defined?(locking_duration) ? locking_duration : 2
127
- config.polling_interval = defined?(polling_interval) ? polling_interval : 0.3
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: 3.0.0
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-02-29 00:00:00.000000000 Z
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