stepper_motor 0.1.11 → 0.1.12
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/CHANGELOG.md +4 -0
- data/lib/stepper_motor/version.rb +1 -1
- data/lib/stepper_motor.rb +3 -1
- data/rbi/stepper_motor.rbi +1 -1
- data/test/dummy/config/initializers/stepper_motor.rb +1 -1
- data/test/stepper_motor/configuration_test.rb +11 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcbfb106c1b6c9c74cef277a3bedec00c970d5264856ae92671b6f2302936eaa
|
4
|
+
data.tar.gz: a351a974b2ed5af98f20c8e816e43aac19982539054c7db1e3b1290d2d6a2538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a7f3190a99a62537b17ccfdfd76f1c4879a5b5c054395ffbd1d4ccaf7da469f96e2198954adbb2db79571b046b772ea37daf3865f27c23ea7d3a2b75f505699
|
7
|
+
data.tar.gz: 8f999b8fb9e599d6cfac817a82cc4640902d9812a296f9643cd80d0632099f94140645f9ad55dcbd1a043e1c6f25df3084a0cc23ab88b24ac206dab2b991c302
|
data/CHANGELOG.md
CHANGED
data/lib/stepper_motor.rb
CHANGED
data/rbi/stepper_motor.rbi
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# StepperMotor is a module for building multi-step flows where steps are sequential and only
|
3
3
|
# ever progress forward. The building block of StepperMotor is StepperMotor::Journey
|
4
4
|
module StepperMotor
|
5
|
-
VERSION = T.let("0.1.
|
5
|
+
VERSION = T.let("0.1.12", T.untyped)
|
6
6
|
PerformStepJobV2 = T.let(StepperMotor::PerformStepJob, T.untyped)
|
7
7
|
RecoverStuckJourneysJobV1 = T.let(StepperMotor::RecoverStuckJourneysJob, T.untyped)
|
8
8
|
|
@@ -35,6 +35,6 @@ StepperMotor.delete_completed_journeys_after = 30.days
|
|
35
35
|
# job in your codebase. At the minimum, we recommend setting all StepperMotor job priorities
|
36
36
|
# to "high" - according to the priority denomination you are using.
|
37
37
|
# StepperMotor.extend_base_job do
|
38
|
-
#
|
38
|
+
# queue_with_priority :high
|
39
39
|
# discard_on ActiveRecord::NotFound
|
40
40
|
# end
|
@@ -1,8 +1,17 @@
|
|
1
1
|
require "test_helper"
|
2
2
|
|
3
3
|
class ConfigurationTest < ActiveSupport::TestCase
|
4
|
+
module TestExtension
|
5
|
+
end
|
6
|
+
|
4
7
|
test "allows extending the base job" do
|
5
|
-
|
6
|
-
|
8
|
+
ActiveSupport::Reloader.reload!
|
9
|
+
|
10
|
+
refute StepperMotor::BaseJob.ancestors.include?(TestExtension)
|
11
|
+
|
12
|
+
StepperMotor.extend_base_job { include TestExtension }
|
13
|
+
ActiveSupport::Reloader.reload!
|
14
|
+
|
15
|
+
assert StepperMotor::BaseJob.ancestors.include?(TestExtension)
|
7
16
|
end
|
8
17
|
end
|