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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d08856d38dcf972b2753aa468ee0e70928c2f3a
4
- data.tar.gz: 2ae08f12f24dfdd5f00ee08fc4318b446f1d7b05
3
+ metadata.gz: 692a4e22c1b4120cc649c233ea8e98cca14d7aef
4
+ data.tar.gz: 466ee82e78d390180a9bbb23fcaba846713f8ca4
5
5
  SHA512:
6
- metadata.gz: 077c796aa3b6287901be12b9d4cd1739d8183640954ae424b34c9d14e1ef310423ec6b21d8ba613f3d9c00c5e36ba07652252c5bf19ce0aa150d34995fc6ebb4
7
- data.tar.gz: db018e57902cc8d96fd85663bc15653f9de57b1d02d636f4a61598f142bfdea7fa39af6b077fa0024491f252ab99860559440622c1b820bc1d726913afe35ed5
6
+ metadata.gz: 21b5415359b1044ef25ad8a6f1649194550333f3ade50879bf475c45b045e30f6cbdcd9cee0159641486078651764c27865f0120b9d4134917d235d09b4e8650
7
+ data.tar.gz: bb37cdfe644908416d56a556b15085c25c4c2b64047e42d38b7b6bee26935ecaecab0e9e9851b78ca15198c8a970b0a3035cc10e38884ce458a269f1f1f240db
@@ -1,13 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ### Release 1.3.0
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
- * Improved callback method handling: #113 and #125
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
 
@@ -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
- if RUBY_VERSION >= '1.9'
28
- include Comparable
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)
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
@@ -1,3 +1,3 @@
1
1
  module Workflow
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -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 [Finite State Machines](https://en.wikipedia.org/wiki/Finite-state_machine).
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 = '>= 1.9.2'
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.0
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 [Finite State Machines](https://en.wikipedia.org/wiki/Finite-state_machine).
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: 1.9.2
234
+ version: 2.0.0
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  requirements:
237
237
  - - ">="