effective_resources 2.18.2 → 2.18.3

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: 98d1ff6287b1bce3a2d5980477cf35de39ff97f68e4f17fad85632c7ad3ef0da
4
- data.tar.gz: ac6b7e100f335a0cf080bc5d8efb213d6a9a7f86e4010830d0118ccd30deaaf4
3
+ metadata.gz: ea57d3f23e61f43abd4e0ff00964090ad1bfb395c5373d8b00fe6c0eddf6cd90
4
+ data.tar.gz: 18ff0a66af3512a12ab8feb4742aea894b5be29a84347990c1d1fb8d9a31324f
5
5
  SHA512:
6
- metadata.gz: ec25d7d60c1ce17c1bd866204a20147fd7929140320f252878b0cb60d52d71e93cd234fccab6edfa7c09bfa796a782a3c4d1974fa6dcd35fa8f45b5cca022ca3
7
- data.tar.gz: c8d063820723dffca533739b67716ca194db2955e233c78b60d4518fe419371a8c6aa1e54297bcce2c24d76adad7a49ebb0419596b62b6c37009408d2acb1921
6
+ metadata.gz: 33196e45ae8c5505267223ab4d16cc90204c70360df828d4edbc26dca946bb1ff3b49e2ec4bc234118f7bed95aeecf34ef13ea4f2296e80f134b07012a51c583
7
+ data.tar.gz: cbbc3a05bbb0e78cd0c1039a80b8c55855918945c8e3d2e2fb9d697ab62e3342d45b140d33aa4f672ef8aa1445748c56a8c70d618c073853814f971ddd5428c1
@@ -35,7 +35,7 @@ module ActsAsStatused
35
35
  end
36
36
 
37
37
  if EffectiveResources.serialize_with_coder?
38
- serialize :status_steps, type: Hash, coder: YAML, default: Hash.new
38
+ serialize :status_steps, type: Hash, coder: YAML
39
39
  else
40
40
  serialize :status_steps, Hash
41
41
  end
@@ -165,6 +165,10 @@ module ActsAsStatused
165
165
  self.class.const_get(:STATUSES)
166
166
  end
167
167
 
168
+ def status_steps
169
+ Hash(self[:status_steps])
170
+ end
171
+
168
172
  def all_statuses
169
173
  status_keys
170
174
  end
@@ -56,7 +56,7 @@ module ActsAsWizard
56
56
  end
57
57
 
58
58
  if EffectiveResources.serialize_with_coder?
59
- serialize :wizard_steps, type: Hash, coder: YAML, default: Hash.new
59
+ serialize :wizard_steps, type: Hash, coder: YAML
60
60
  else
61
61
  serialize :wizard_steps, Hash
62
62
  end
@@ -74,6 +74,10 @@ module ActsAsWizard
74
74
  self.class.const_get(:WIZARD_STEPS).keys
75
75
  end
76
76
 
77
+ def wizard_steps
78
+ Hash(self[:wizard_steps])
79
+ end
80
+
77
81
  def all_steps
78
82
  wizard_step_keys
79
83
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.18.2'.freeze
2
+ VERSION = '2.18.3'.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.18.2
4
+ version: 2.18.3
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: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails