onboardable 1.3.1 → 1.3.2
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/Gemfile.lock +10 -19
- data/lib/onboardable/errors.rb +2 -2
- data/lib/onboardable/list/base.rb +9 -9
- data/lib/onboardable/list/navigation.rb +0 -2
- data/lib/onboardable/step.rb +29 -18
- data/lib/onboardable/utils/warnings.rb +1 -1
- data/lib/onboardable/version.rb +1 -1
- data/onboardable.gemspec +2 -2
- data/sig/onboardable/errors.rbs +8 -8
- data/sig/onboardable/list/base.rbs +13 -7
- data/sig/onboardable/list/builder.rbs +14 -9
- data/sig/onboardable/list/navigation.rbs +19 -12
- data/sig/onboardable/step.rbs +25 -8
- data/sig/onboardable/utils/warnings.rbs +1 -1
- data/sig/onboardable.rbs +6 -4
- metadata +17 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8937c95a5e3ca637b90d8ef871d57e1bf7f23e44c52549f66e38cfbd13120602
|
4
|
+
data.tar.gz: '08c904a659fbc0dcead1c41babfcd733b3b5f0c46fd7b1a1279c1479ee9730c1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e30650b2b899483742c4d98b09250a38428ae3e5d476c435178575bc44d767c0d397cbadb55a78300ca43b258bd72ca8c917e0175283ce49210c2d85d6aefc6c
|
7
|
+
data.tar.gz: 7625b9d924d5c477028721e87324437c337e91cfc3ef77da97545b55980f948fd7d380d48cffbd7b4577f2fac4e71f05621fc53cbb5409b5389786e402741657
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
onboardable (1.3.
|
4
|
+
onboardable (1.3.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -12,14 +12,14 @@ GEM
|
|
12
12
|
json (2.7.2)
|
13
13
|
language_server-protocol (3.17.0.3)
|
14
14
|
parallel (1.25.1)
|
15
|
-
parser (3.3.
|
15
|
+
parser (3.3.3.0)
|
16
16
|
ast (~> 2.4.1)
|
17
17
|
racc
|
18
18
|
racc (1.8.0)
|
19
19
|
rainbow (3.1.1)
|
20
20
|
rake (13.2.1)
|
21
21
|
regexp_parser (2.9.2)
|
22
|
-
rexml (3.
|
22
|
+
rexml (3.3.1)
|
23
23
|
strscan
|
24
24
|
rspec (3.13.0)
|
25
25
|
rspec-core (~> 3.13.0)
|
@@ -27,7 +27,7 @@ GEM
|
|
27
27
|
rspec-mocks (~> 3.13.0)
|
28
28
|
rspec-core (3.13.0)
|
29
29
|
rspec-support (~> 3.13.0)
|
30
|
-
rspec-expectations (3.13.
|
30
|
+
rspec-expectations (3.13.1)
|
31
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
32
32
|
rspec-support (~> 3.13.0)
|
33
33
|
rspec-mocks (3.13.1)
|
@@ -47,22 +47,13 @@ GEM
|
|
47
47
|
unicode-display_width (>= 2.4.0, < 3.0)
|
48
48
|
rubocop-ast (1.31.3)
|
49
49
|
parser (>= 3.3.1.0)
|
50
|
-
rubocop-
|
51
|
-
rubocop (~> 1.41)
|
52
|
-
rubocop-factory_bot (2.26.0)
|
53
|
-
rubocop (~> 1.41)
|
54
|
-
rubocop-performance (1.21.0)
|
50
|
+
rubocop-performance (1.21.1)
|
55
51
|
rubocop (>= 1.48.1, < 2.0)
|
56
52
|
rubocop-ast (>= 1.31.1, < 2.0)
|
57
53
|
rubocop-rake (0.6.0)
|
58
54
|
rubocop (~> 1.0)
|
59
|
-
rubocop-rspec (
|
60
|
-
rubocop (~> 1.
|
61
|
-
rubocop-capybara (~> 2.17)
|
62
|
-
rubocop-factory_bot (~> 2.22)
|
63
|
-
rubocop-rspec_rails (~> 2.28)
|
64
|
-
rubocop-rspec_rails (2.29.0)
|
65
|
-
rubocop (~> 1.40)
|
55
|
+
rubocop-rspec (3.0.2)
|
56
|
+
rubocop (~> 1.61)
|
66
57
|
ruby-progressbar (1.13.0)
|
67
58
|
simplecov (0.22.0)
|
68
59
|
docile (~> 1.1)
|
@@ -82,10 +73,10 @@ DEPENDENCIES
|
|
82
73
|
rake (~> 13.2, >= 13.2.1)
|
83
74
|
rspec (~> 3.13)
|
84
75
|
rubocop (~> 1.64, >= 1.64.1)
|
85
|
-
rubocop-performance (~> 1.21)
|
76
|
+
rubocop-performance (~> 1.21, >= 1.21.1)
|
86
77
|
rubocop-rake (~> 0.6.0)
|
87
|
-
rubocop-rspec (~> 2
|
78
|
+
rubocop-rspec (~> 3.0, >= 3.0.2)
|
88
79
|
simplecov (~> 0.22.0)
|
89
80
|
|
90
81
|
BUNDLED WITH
|
91
|
-
2.5.
|
82
|
+
2.5.15
|
data/lib/onboardable/errors.rb
CHANGED
@@ -9,7 +9,7 @@ module Onboardable
|
|
9
9
|
# Initializes a new instance of UndefinedMethodError.
|
10
10
|
#
|
11
11
|
# @param klass [Class] The class that does not have the method defined.
|
12
|
-
# @param method [Symbol
|
12
|
+
# @param method [Symbol] The method that was called on the class.
|
13
13
|
def initialize(klass, method)
|
14
14
|
super("Method `#{method}` is not defined for `#{klass}`.")
|
15
15
|
end
|
@@ -20,7 +20,7 @@ module Onboardable
|
|
20
20
|
# Initializes a new instance of StepConversionError.
|
21
21
|
#
|
22
22
|
# @param klass [Class] The class that failed to convert.
|
23
|
-
# @param step [
|
23
|
+
# @param step [unknown] The object that was attempted to be converted to a Step.
|
24
24
|
def initialize(klass, step)
|
25
25
|
super("can't convert #{klass} to Step (#{klass}#to_onboarding_step gives #{step.class}).")
|
26
26
|
end
|
@@ -49,10 +49,10 @@ module Onboardable
|
|
49
49
|
|
50
50
|
# Updates the current step and recalibrates the status of all steps in the list.
|
51
51
|
#
|
52
|
-
# @param
|
52
|
+
# @param current_step [Step] The new current step to set.
|
53
53
|
# @return [Step] The updated current step.
|
54
|
-
def current_step=(
|
55
|
-
step_index(
|
54
|
+
def current_step=(current_step)
|
55
|
+
step_index(current_step).then do |index|
|
56
56
|
update_each_step_status(index)
|
57
57
|
@current_step = steps.fetch(index)
|
58
58
|
end
|
@@ -68,10 +68,10 @@ module Onboardable
|
|
68
68
|
|
69
69
|
# Determines the index of a given step in the list, ensuring the step exists.
|
70
70
|
#
|
71
|
-
# @param
|
71
|
+
# @param step [Step] The step for which the index is requested.
|
72
72
|
# @return [Integer] The index of the step within the list.
|
73
|
-
def step_index(
|
74
|
-
steps.index { |
|
73
|
+
def step_index(step)
|
74
|
+
steps.index { |item| item == step } || step_error!(step)
|
75
75
|
end
|
76
76
|
|
77
77
|
# Updates the status of each step in the list based on the current step index.
|
@@ -86,10 +86,10 @@ module Onboardable
|
|
86
86
|
|
87
87
|
# Raises a StepError indicating an invalid step was encountered.
|
88
88
|
#
|
89
|
-
# @param
|
89
|
+
# @param step [Step] The step that triggered the error.
|
90
90
|
# @raise [StepError] Raises an error if the step does not exist in the list.
|
91
|
-
def step_error!(
|
92
|
-
raise StepError.new(
|
91
|
+
def step_error!(step)
|
92
|
+
raise StepError.new(step.to_str, steps.map(&:to_str))
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|
@@ -23,7 +23,6 @@ module Onboardable
|
|
23
23
|
# Moves the current step pointer to the next step in the onboarding process.
|
24
24
|
#
|
25
25
|
# @return [Step] The next step in the list.
|
26
|
-
# @raise [LastStepError] If the current step is the last step and there is no next step to move to.
|
27
26
|
def next_step!
|
28
27
|
self.current_step = next_step || last_step_error!
|
29
28
|
end
|
@@ -47,7 +46,6 @@ module Onboardable
|
|
47
46
|
# Moves the current step pointer to the previous step in the onboarding process.
|
48
47
|
#
|
49
48
|
# @return [Step] The previous step in the list.
|
50
|
-
# @raise [FirstStepError] If the current step is the first step and there is no previous step to move to.
|
51
49
|
def prev_step!
|
52
50
|
self.current_step = prev_step || first_step_error!
|
53
51
|
end
|
data/lib/onboardable/step.rb
CHANGED
@@ -56,14 +56,25 @@ module Onboardable
|
|
56
56
|
self.status = DEFAULT_STATUS
|
57
57
|
end
|
58
58
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
59
|
+
# Checks if the step is in the pending status.
|
60
|
+
#
|
61
|
+
# @return [Boolean] True if the step is currently in the pending status, false otherwise.
|
62
|
+
def pending?
|
63
|
+
status == PENDING_STATUS
|
64
|
+
end
|
65
|
+
|
66
|
+
# Checks if the step is in the current status.
|
67
|
+
#
|
68
|
+
# @return [Boolean] True if the step is currently in the current status, false otherwise.
|
69
|
+
def current?
|
70
|
+
status == CURRENT_STATUS
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks if the step is in the completed status.
|
74
|
+
#
|
75
|
+
# @return [Boolean] True if the step is currently in the completed status, false otherwise.
|
76
|
+
def completed?
|
77
|
+
status == COMPLETED_STATUS
|
67
78
|
end
|
68
79
|
|
69
80
|
# Compares this step to another to determine if they are equivalent, based on the step name.
|
@@ -97,25 +108,25 @@ module Onboardable
|
|
97
108
|
|
98
109
|
# Sets the name of the step, ensuring it is a valid String.
|
99
110
|
#
|
100
|
-
# @param
|
101
|
-
def name=(
|
102
|
-
@name = String.new(
|
111
|
+
# @param name [String] The raw name of the step
|
112
|
+
def name=(name)
|
113
|
+
@name = String.new(name).freeze
|
103
114
|
end
|
104
115
|
|
105
116
|
# Sets the status of the step.
|
106
117
|
#
|
107
|
-
# @param
|
108
|
-
def status=(
|
109
|
-
STATUSES.include?(
|
118
|
+
# @param status [Symbol] The new status of the step
|
119
|
+
def status=(status)
|
120
|
+
STATUSES.include?(status) || raise(StepStatusError.new(status, STATUSES))
|
110
121
|
|
111
|
-
@status =
|
122
|
+
@status = status
|
112
123
|
end
|
113
124
|
|
114
125
|
# Sets the custom data for the step, ensuring it is a valid Hash.
|
115
126
|
#
|
116
|
-
# @param
|
117
|
-
def data=(
|
118
|
-
@data = Hash(
|
127
|
+
# @param data [Hash] The raw custom data
|
128
|
+
def data=(data)
|
129
|
+
@data = Hash(data).freeze
|
119
130
|
end
|
120
131
|
|
121
132
|
# Raises an error for an invalid comparison result.
|
@@ -9,7 +9,7 @@ module Onboardable
|
|
9
9
|
# Issues a warning when a step with the same name already exists and will be overridden.
|
10
10
|
#
|
11
11
|
# @param name [String] The name of the step that will be overridden.
|
12
|
-
# @return [
|
12
|
+
# @return [nil]
|
13
13
|
def warn_about_override(name)
|
14
14
|
warn "Step `#{name}` already exists and will be overridden.", uplevel: 1
|
15
15
|
end
|
data/lib/onboardable/version.rb
CHANGED
data/onboardable.gemspec
CHANGED
@@ -42,9 +42,9 @@ Gem::Specification.new do |spec|
|
|
42
42
|
spec.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1'
|
43
43
|
spec.add_development_dependency 'rspec', '~> 3.13'
|
44
44
|
spec.add_development_dependency 'rubocop', '~> 1.64', '>= 1.64.1'
|
45
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.21'
|
45
|
+
spec.add_development_dependency 'rubocop-performance', '~> 1.21', '>= 1.21.1'
|
46
46
|
spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
|
47
|
-
spec.add_development_dependency 'rubocop-rspec', '~>
|
47
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 3.0', '>= 3.0.2'
|
48
48
|
spec.add_development_dependency 'simplecov', '~> 0.22.0'
|
49
49
|
|
50
50
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
data/sig/onboardable/errors.rbs
CHANGED
@@ -3,34 +3,34 @@ module Onboardable
|
|
3
3
|
end
|
4
4
|
|
5
5
|
class UndefinedMethodError < Error
|
6
|
-
def initialize: (Class, Symbol
|
6
|
+
def initialize: (Class klass, Symbol method) -> untyped
|
7
7
|
end
|
8
8
|
|
9
9
|
class StepConversionError < Error
|
10
|
-
def initialize: (Class, untyped) ->
|
10
|
+
def initialize: (Class klass, untyped step) -> untyped
|
11
11
|
end
|
12
12
|
|
13
13
|
class EmptyStepsError < Error
|
14
|
-
def initialize: () ->
|
14
|
+
def initialize: () -> untyped
|
15
15
|
end
|
16
16
|
|
17
17
|
class StepError < Error
|
18
|
-
def initialize: (String, Array[String]) ->
|
18
|
+
def initialize: (String step, Array[String] expected_steps) -> untyped
|
19
19
|
end
|
20
20
|
|
21
21
|
class ComparisonResultError < Error
|
22
|
-
def initialize: (Integer, Array[Integer]) ->
|
22
|
+
def initialize: (Integer comparison, Array[Integer] expected_comparisons) -> untyped
|
23
23
|
end
|
24
24
|
|
25
25
|
class LastStepError < Error
|
26
|
-
def initialize: (
|
26
|
+
def initialize: (Symbol step, Array[Symbol] expected_steps) -> untyped
|
27
27
|
end
|
28
28
|
|
29
29
|
class FirstStepError < Error
|
30
|
-
def initialize: (
|
30
|
+
def initialize: (Symbol step, Array[Symbol] expected_steps) -> untyped
|
31
31
|
end
|
32
32
|
|
33
33
|
class StepStatusError < Error
|
34
|
-
def initialize: (Symbol, Array[Symbol]) ->
|
34
|
+
def initialize: (Symbol status, Array[Symbol] expected_statuses) -> untyped
|
35
35
|
end
|
36
36
|
end
|
@@ -1,27 +1,33 @@
|
|
1
1
|
module Onboardable
|
2
2
|
module List
|
3
3
|
class Base
|
4
|
-
|
4
|
+
include Navigation
|
5
|
+
|
6
|
+
PROGRESS_CALCULATION: untyped
|
5
7
|
|
6
8
|
attr_reader steps: Array[Step]
|
9
|
+
|
7
10
|
attr_reader current_step: Step
|
8
11
|
|
9
|
-
def initialize: (Array[Step], Step) ->
|
12
|
+
def initialize: (Array[Step] steps, Step current_step, ?Hash[Symbol, untyped] options) -> untyped
|
10
13
|
|
11
|
-
def progress: (Proc?) -> Float
|
14
|
+
def progress: (?Proc? progress_calculation) -> Float
|
12
15
|
|
13
16
|
private
|
14
17
|
|
18
|
+
attr_reader options: Hash[Symbol, untyped]
|
19
|
+
|
15
20
|
attr_writer steps: Array[Step]
|
21
|
+
|
16
22
|
attr_writer current_step: Step
|
17
23
|
|
18
|
-
|
24
|
+
attr_writer options: Hash[Symbol, untyped]
|
19
25
|
|
20
|
-
def
|
26
|
+
def step_index: (Step step) -> Integer
|
21
27
|
|
22
|
-
def
|
28
|
+
def update_each_step_status: (Integer current_step_index) -> Array[Step]
|
23
29
|
|
24
|
-
def
|
30
|
+
def step_error!: (Step step) -> untyped
|
25
31
|
end
|
26
32
|
end
|
27
33
|
end
|
@@ -1,32 +1,37 @@
|
|
1
1
|
module Onboardable
|
2
2
|
module List
|
3
3
|
class Builder
|
4
|
+
include Utils::Warnings
|
5
|
+
|
4
6
|
STEP_KEY: Symbol
|
5
7
|
|
6
|
-
|
8
|
+
def steps: () -> Hash[String, untyped]
|
9
|
+
|
7
10
|
attr_accessor current_step: Step
|
8
11
|
|
9
|
-
def initialize: (Hash[Symbol, untyped]) ->
|
12
|
+
def initialize: (?Hash[Symbol, untyped] options) -> untyped
|
13
|
+
|
14
|
+
def create_step: (String name, ?Hash[Symbol, untyped] data) -> Step
|
10
15
|
|
11
|
-
def create_step: (String, Hash[Symbol, untyped]) -> Step
|
12
16
|
alias step create_step
|
13
17
|
|
14
|
-
def create_step_from: (Class) -> Step
|
18
|
+
def create_step_from: (Class klass) -> Step
|
19
|
+
|
15
20
|
alias step_from create_step_from
|
16
21
|
|
17
|
-
def build: (String?) -> Base
|
22
|
+
def build: (?String? current_step_name) -> Base
|
18
23
|
|
19
24
|
private
|
20
25
|
|
21
26
|
attr_accessor options: Hash[Symbol, untyped]
|
22
27
|
|
23
|
-
def add_step: (Step) -> Step
|
28
|
+
def add_step: (Step step) -> Step
|
24
29
|
|
25
|
-
def
|
30
|
+
def convert_to_steps!: () -> Array[Step]
|
26
31
|
|
27
|
-
def
|
32
|
+
def convert_to_step!: (String name) -> Step
|
28
33
|
|
29
|
-
def undefined_method_error!: (Class) ->
|
34
|
+
def undefined_method_error!: (Class klass) -> untyped
|
30
35
|
end
|
31
36
|
end
|
32
37
|
end
|
@@ -1,26 +1,33 @@
|
|
1
1
|
module Onboardable
|
2
2
|
module List
|
3
3
|
module Navigation
|
4
|
-
def next_step: () -> Step
|
4
|
+
def next_step: () -> (Step | nil)
|
5
|
+
|
6
|
+
def next_step?: (Step step) -> bool
|
7
|
+
|
5
8
|
def next_step!: () -> Step
|
6
|
-
def next_step?: (Step) -> bool
|
7
9
|
|
8
|
-
def prev_step: () -> Step
|
9
|
-
|
10
|
+
def prev_step: () -> (Step | nil)
|
11
|
+
|
12
|
+
def prev_step?: (Step step) -> bool
|
13
|
+
|
10
14
|
def prev_step!: () -> Step
|
11
15
|
|
12
|
-
def first_step
|
13
|
-
def first_step?: (?Step) -> bool
|
16
|
+
def first_step?: (?Step step) -> bool
|
14
17
|
|
15
|
-
def last_step
|
16
|
-
def last_step?: (?Step) -> bool
|
18
|
+
def last_step?: (?Step step) -> bool
|
17
19
|
|
18
|
-
def
|
20
|
+
def first_step: () -> Step
|
21
|
+
|
22
|
+
def current_step?: (Step step) -> bool
|
23
|
+
|
24
|
+
def last_step: () -> Step
|
19
25
|
|
20
26
|
private
|
21
27
|
|
22
|
-
def first_step_error!: ->
|
23
|
-
|
28
|
+
def first_step_error!: () -> untyped
|
29
|
+
|
30
|
+
def last_step_error!: () -> untyped
|
24
31
|
end
|
25
32
|
end
|
26
|
-
end
|
33
|
+
end
|
data/sig/onboardable/step.rbs
CHANGED
@@ -1,36 +1,53 @@
|
|
1
1
|
module Onboardable
|
2
2
|
class Step
|
3
3
|
CONVERSION_METHOD: Symbol
|
4
|
+
|
4
5
|
PENDING_STATUS: Symbol
|
6
|
+
|
5
7
|
CURRENT_STATUS: Symbol
|
8
|
+
|
6
9
|
COMPLETED_STATUS: Symbol
|
10
|
+
|
7
11
|
DEFAULT_STATUS: Symbol
|
8
|
-
STATUSES: Array[Symbol]
|
9
12
|
|
10
|
-
|
13
|
+
STATUSES: ::Array[Symbol]
|
11
14
|
|
12
|
-
def self.
|
15
|
+
def self.try_convert: (Class klass) -> (Step | nil)
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def self.conversion_error!: (Class klass, Step step) -> void
|
20
|
+
|
21
|
+
public
|
13
22
|
|
14
23
|
attr_reader name: String
|
24
|
+
|
15
25
|
attr_reader data: Hash[Symbol, untyped]
|
26
|
+
|
16
27
|
attr_reader status: Symbol
|
17
28
|
|
18
|
-
def initialize: (String, Hash[Symbol, untyped]) ->
|
29
|
+
def initialize: (String name, ?Hash[Symbol, untyped] data) -> untyped
|
19
30
|
|
20
31
|
def pending?: () -> bool
|
32
|
+
|
21
33
|
def current?: () -> bool
|
34
|
+
|
22
35
|
def completed?: () -> bool
|
23
|
-
|
36
|
+
|
37
|
+
def ==: (Step other) -> bool
|
38
|
+
|
24
39
|
def to_str: () -> String
|
25
40
|
|
26
|
-
def update_status!: (Integer) -> Symbol
|
41
|
+
def update_status!: (Integer comparison_result) -> Symbol
|
27
42
|
|
28
43
|
private
|
29
44
|
|
30
45
|
attr_writer name: String
|
31
|
-
|
46
|
+
|
32
47
|
attr_writer status: Symbol
|
33
48
|
|
34
|
-
|
49
|
+
attr_writer data: Hash[Symbol, untyped]
|
50
|
+
|
51
|
+
def comparison_result_error!: (Integer comparison_result) -> untyped
|
35
52
|
end
|
36
53
|
end
|
data/sig/onboardable.rbs
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
module Onboardable
|
2
2
|
VERSION: String
|
3
|
-
|
3
|
+
|
4
|
+
def self.included: (Class klass) -> untyped
|
4
5
|
|
5
6
|
module ClassMethods
|
6
7
|
attr_accessor list_builder: List::Builder
|
7
8
|
|
8
|
-
def onboarding=: (Hash[Symbol, untyped]) { () -> List::Builder } -> Step
|
9
|
+
def onboarding=: (?Hash[Symbol, untyped] options) { () -> List::Builder } -> Step
|
10
|
+
|
9
11
|
alias has_onboarding onboarding=
|
10
12
|
|
11
|
-
def onboarding: (String?) -> List::Base
|
13
|
+
def onboarding: (?String? current_step_name) -> List::Base
|
12
14
|
end
|
13
15
|
|
14
16
|
module InstanceMethods
|
15
|
-
def onboarding: (String?) -> List::Base
|
17
|
+
def onboarding: (?String? current_step_name) -> List::Base
|
16
18
|
end
|
17
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onboardable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Skrynnyk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -71,6 +71,9 @@ dependencies:
|
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '1.21'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.21.1
|
74
77
|
type: :development
|
75
78
|
prerelease: false
|
76
79
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -78,6 +81,9 @@ dependencies:
|
|
78
81
|
- - "~>"
|
79
82
|
- !ruby/object:Gem::Version
|
80
83
|
version: '1.21'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 1.21.1
|
81
87
|
- !ruby/object:Gem::Dependency
|
82
88
|
name: rubocop-rake
|
83
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,14 +104,20 @@ dependencies:
|
|
98
104
|
requirements:
|
99
105
|
- - "~>"
|
100
106
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
107
|
+
version: '3.0'
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.0.2
|
102
111
|
type: :development
|
103
112
|
prerelease: false
|
104
113
|
version_requirements: !ruby/object:Gem::Requirement
|
105
114
|
requirements:
|
106
115
|
- - "~>"
|
107
116
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
117
|
+
version: '3.0'
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 3.0.2
|
109
121
|
- !ruby/object:Gem::Dependency
|
110
122
|
name: simplecov
|
111
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
186
|
- !ruby/object:Gem::Version
|
175
187
|
version: '0'
|
176
188
|
requirements: []
|
177
|
-
rubygems_version: 3.5.
|
189
|
+
rubygems_version: 3.5.11
|
178
190
|
signing_key:
|
179
191
|
specification_version: 4
|
180
192
|
summary: Streamlines onboarding process integration
|