workflow-orchestrator 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -2
- data/lib/workflow/state.rb +7 -8
- data/lib/workflow/version.rb +1 -1
- data/workflow-orchestrator.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 692a4e22c1b4120cc649c233ea8e98cca14d7aef
|
4
|
+
data.tar.gz: 466ee82e78d390180a9bbb23fcaba846713f8ca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21b5415359b1044ef25ad8a6f1649194550333f3ade50879bf475c45b045e30f6cbdcd9cee0159641486078651764c27865f0120b9d4134917d235d09b4e8650
|
7
|
+
data.tar.gz: bb37cdfe644908416d56a556b15085c25c4c2b64047e42d38b7b6bee26935ecaecab0e9e9851b78ca15198c8a970b0a3035cc10e38884ce458a269f1f1f240db
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
### Release 1.3.
|
3
|
+
### Release 1.3.1
|
4
4
|
|
5
5
|
* Removed support for Ruby < 2.0.0.
|
6
6
|
If you still need this older versions despite security issues and missing updates, you can continue using
|
7
7
|
geekq/workflow 1.2.0 or older. In your Gemfile put
|
8
8
|
|
9
9
|
gem 'workflow', '~> 1.2.0'
|
10
|
-
|
10
|
+
|
11
|
+
### Release 1.3.0
|
12
|
+
|
11
13
|
* Incorporated following pull requests from geekq/workflow :
|
12
14
|
* [#172](https://github.com/geekq/workflow/pull/172) Add documentation for without_name_state scopes
|
13
15
|
* [#112](https://github.com/geekq/workflow/pull/112) Negative class level and instance level scopes
|
@@ -16,6 +18,7 @@
|
|
16
18
|
* [#157](https://github.com/geekq/workflow/pull/157) Small Correction in README
|
17
19
|
* [#158](https://github.com/geekq/workflow/pull/158) Support for enumerated state values
|
18
20
|
* [#160](https://github.com/geekq/workflow/pull/160) Do not attempt to draw metadata
|
21
|
+
* Improved callback method handling: #113 and #125
|
19
22
|
|
20
23
|
## Previous Releases (geekq/workflow)
|
21
24
|
|
data/lib/workflow/state.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
module Workflow
|
2
2
|
class State
|
3
|
+
|
4
|
+
include Comparable
|
5
|
+
|
3
6
|
attr_accessor :name, :value, :events, :meta, :on_entry, :on_exit
|
4
7
|
attr_reader :spec
|
5
8
|
|
@@ -23,14 +26,10 @@ module Workflow
|
|
23
26
|
node
|
24
27
|
end
|
25
28
|
|
26
|
-
|
27
|
-
|
28
|
-
include
|
29
|
-
|
30
|
-
states = spec.states.keys
|
31
|
-
raise ArgumentError, "state `#{other_state}' does not exist" unless states.include?(other_state.to_sym)
|
32
|
-
states.index(self.to_sym) <=> states.index(other_state.to_sym)
|
33
|
-
end
|
29
|
+
def <=>(other_state)
|
30
|
+
states = spec.states.keys
|
31
|
+
raise ArgumentError, "state `#{other_state}' does not exist" unless states.include?(other_state.to_sym)
|
32
|
+
states.index(self.to_sym) <=> states.index(other_state.to_sym)
|
34
33
|
end
|
35
34
|
|
36
35
|
def to_s
|
data/lib/workflow/version.rb
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.authors = ["Lorefnon"]
|
10
10
|
gem.email = ["lorefnon@gmail.com"]
|
11
11
|
gem.description = <<DOC
|
12
|
-
A ruby DSL for modeling business logic as
|
12
|
+
A ruby DSL for modeling business logic as Finite State Machines.
|
13
13
|
|
14
14
|
The aim of this library is to make the expression of these concepts as clear as possible, utilizing the expressiveness of ruby language, and using similar terminology as found in state machine theory.
|
15
15
|
DOC
|
@@ -37,6 +37,6 @@ DOC
|
|
37
37
|
gem.add_development_dependency 'pry-byebug'
|
38
38
|
gem.add_development_dependency 'ruby-graphviz', ['~> 1.0.0']
|
39
39
|
|
40
|
-
gem.required_ruby_version = '>=
|
40
|
+
gem.required_ruby_version = '>= 2.0.0'
|
41
41
|
end
|
42
42
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workflow-orchestrator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorefnon
|
@@ -165,7 +165,7 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 1.0.0
|
167
167
|
description: |
|
168
|
-
A ruby DSL for modeling business logic as
|
168
|
+
A ruby DSL for modeling business logic as Finite State Machines.
|
169
169
|
|
170
170
|
The aim of this library is to make the expression of these concepts as clear as possible, utilizing the expressiveness of ruby language, and using similar terminology as found in state machine theory.
|
171
171
|
email:
|
@@ -231,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
231
|
requirements:
|
232
232
|
- - ">="
|
233
233
|
- !ruby/object:Gem::Version
|
234
|
-
version:
|
234
|
+
version: 2.0.0
|
235
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
236
|
requirements:
|
237
237
|
- - ">="
|