status_workflow 3.0.3 → 3.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b10d46febb56013a2b4b8a45c9c07594f9eb8a44
4
- data.tar.gz: 5483c2e808502d016e2e61bbb3d7d8e6931e1364
3
+ metadata.gz: 77a10c66fc98d941c2ac4a0d52500d3e9a045a4f
4
+ data.tar.gz: 3147c248d293ff5a3d2582af15343450b8c81ba4
5
5
  SHA512:
6
- metadata.gz: 8a6ffc8157ba6c080fe72abefcf31b4891d3d4b72e3e7d43a8beccdf3f8d8c83de8aba3b0fde7fe7ae44007a115c20271b6482bc66d04f6e23333fe9c16cd314
7
- data.tar.gz: 96fc8efc18e542bf22564aad5c430aa603b3956e090a2ce22baf227cc72688a401a1cae6656c8d6b8f5897018efdcfdc44c80939abece843b139fd6a198002f2
6
+ metadata.gz: e9633d6bb4472b3d0bd7d4fcb72944316387f3d43ab556c5e96db19aad5cd65b55ee0c1da3c3d4f8c6861ed4879ff9d7e484e9a9d6b806b4086f5f32c2a9dfe9
7
+ data.tar.gz: 236c64ba48a44a8463b6c98b69804665fec3b545b71f4225f64982f817c2ac9834407118667b68a27548a3337e304991b3ae0bdf25c7ba55a05e9e8547eb89da
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 3.0.4 / 2018-11-09
2
+
3
+ Enhancements
4
+
5
+ * Allow starting from nil status
6
+
1
7
  3.0.3 / 2018-11-05
2
8
 
3
9
  Enhancements
@@ -106,7 +106,7 @@ module StatusWorkflow
106
106
  to_statuses.each do |to_status|
107
107
  to_status = to_status.to_sym
108
108
  memo[to_status] ||= Set.new
109
- memo[to_status] << from_status.to_sym
109
+ memo[to_status] << from_status&.to_sym # support nil or strings/symbols
110
110
  end
111
111
  memo
112
112
  end.tap do |to_from|
@@ -1,3 +1,3 @@
1
1
  module StatusWorkflow
2
- VERSION = '3.0.3'
2
+ VERSION = '3.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: status_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seamus Abshere
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-05 00:00:00.000000000 Z
11
+ date: 2018-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis