effective_resources 2.25.12 → 2.25.14

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
  SHA256:
3
- metadata.gz: 7189c9b0628e5f84b362ccfc62a80e26bf349fb0477dcdaef239f1eabbd3b3f4
4
- data.tar.gz: 8a4a392131be33cd557d9d752698125b735610685bbb10c9035102d8c7cd624a
3
+ metadata.gz: bf9636790de9d9e89ffa844dcd0d88abb19d26b6c3cbd9c492aa08ba936c7cbd
4
+ data.tar.gz: 8c45b0badf8f6de31dc53baa6ab47d5fac1fd1764c512d1ad6b02d92f198627d
5
5
  SHA512:
6
- metadata.gz: 58b7e2293d65db01e5683cc9505e0bca06d97be8cf32c9d48246882a747ff35d4c3c4b920150264e5ee98ea8353e4c5710d6dc6607505b372be005d374fcd8ed
7
- data.tar.gz: 1f1ce662f557191eb973733ae430ba5a5563bc740d4bb8b8041b25bdfeceea559ee05b37d256b89f0828f9ac79d59dfd232201eb8979c08bf2d324a650513466
6
+ metadata.gz: f0bcf47e270a032a1b6405dc995805b3570a50274ce579bddd5fd943aacd9631ed29a0a5063afc418e75136dc457e85266880e188aaff77877c41f577ca6b5fb
7
+ data.tar.gz: 603ff9daf3c4be2bf696cfa1e43a178a245943c21d4004eef2b1fbaa381ba9b000c8a727ad54a4fba5fa10efd55d8f810c8813fa5195e8aec3f56d7e57abf1bd
@@ -123,6 +123,10 @@ module ActsAsWizard
123
123
  end
124
124
 
125
125
  def wizard_step_title(step)
126
+ default_wizard_step_title(step)
127
+ end
128
+
129
+ def default_wizard_step_title(step)
126
130
  self.class.const_get(:WIZARD_STEPS).fetch(step)
127
131
  end
128
132
 
@@ -157,6 +161,18 @@ module ActsAsWizard
157
161
  all_steps.first(index)
158
162
  end
159
163
 
164
+ def all_steps_after(step)
165
+ index = all_steps.index(step)
166
+ raise("unexpected step #{step}") unless index.present?
167
+
168
+ all_steps[(index + 1)..-1]
169
+ end
170
+
171
+ def reset_all_wizard_steps_after(step)
172
+ all_steps_after(step).each { |step| wizard_steps.delete(step) }
173
+ wizard_steps
174
+ end
175
+
160
176
  def previous_step(step)
161
177
  index = required_steps.index(step)
162
178
  required_steps[index-1] unless index == 0 || index.nil?
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.25.12'.freeze
2
+ VERSION = '2.25.14'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.25.12
4
+ version: 2.25.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-20 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails