state_machines 0.1.0 → 0.1.1
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 +4 -4
- data/README.md +3 -2
- data/Rakefile +0 -1
- data/lib/state_machines/core_ext/class/state_machine.rb +0 -2
- data/lib/state_machines/integrations.rb +2 -1
- data/lib/state_machines/matcher.rb +1 -1
- data/lib/state_machines/state.rb +0 -1
- data/lib/state_machines/transition.rb +2 -2
- data/lib/state_machines/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c8f59bcc8fc3bd9bc6c1cabb0872b9c408b6bfd
|
4
|
+
data.tar.gz: 07144b06a3bb7e8f20e6c23bfc04369c4dec5e4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34091a04ce15920471155299080ec48c4a6494a0cf95512c669b312f2ba907e888ee8c0c61fd36c05948c45cfaf1283ec21b408a747338c8afbad1911f1b6873
|
7
|
+
data.tar.gz: 325b5a778bc84a6cbb0553c51229f90be54952c10c8362c493763fd23ac1df2b54ce60de8a6bb66563ab8a00462f2df0ddcabb74998fb74e607a9062c4af26ec
|
data/README.md
CHANGED
@@ -26,8 +26,8 @@ Or install it yourself as:
|
|
26
26
|
|
27
27
|
Ruby versions officially supported and tested:
|
28
28
|
|
29
|
-
* Ruby (MRI)
|
30
|
-
* JRuby
|
29
|
+
* Ruby (MRI) 2.0.0+
|
30
|
+
* JRuby
|
31
31
|
* Rubinius
|
32
32
|
|
33
33
|
For graphing state machine:
|
@@ -42,6 +42,7 @@ For documenting state machines:
|
|
42
42
|
## TODO
|
43
43
|
|
44
44
|
Add matchers/assertions for rspec and minitest
|
45
|
+
Fix integration dependency
|
45
46
|
|
46
47
|
## Contributing
|
47
48
|
|
data/Rakefile
CHANGED
@@ -114,7 +114,8 @@ module StateMachines
|
|
114
114
|
private
|
115
115
|
|
116
116
|
def name_spaced_integrations
|
117
|
-
|
117
|
+
# FIXME, Integrations should be add before their dependencies.
|
118
|
+
self.constants.reverse.each do |const|
|
118
119
|
integration = self.const_get(const)
|
119
120
|
add(integration)
|
120
121
|
end
|
@@ -8,7 +8,7 @@ module StateMachines
|
|
8
8
|
|
9
9
|
# Creates a new matcher for querying against the given set of values
|
10
10
|
def initialize(values = [])
|
11
|
-
@values = values.is_a?(Array) ? values : [values]
|
11
|
+
@values = values.is_a?(Array) ? values : [values]
|
12
12
|
end
|
13
13
|
|
14
14
|
# Generates a subset of values that exists in both the set of values being
|
data/lib/state_machines/state.rb
CHANGED
@@ -28,10 +28,10 @@ module StateMachines
|
|
28
28
|
# Whether the transition is only existing temporarily for the object
|
29
29
|
attr_writer :transient
|
30
30
|
|
31
|
-
# Determines whether the
|
31
|
+
# Determines whether the current ruby implementation supports pausing and
|
32
32
|
# resuming transitions
|
33
33
|
def self.pause_supported?
|
34
|
-
|
34
|
+
%w(ruby maglev).include?(RUBY_ENGINE)
|
35
35
|
end
|
36
36
|
|
37
37
|
# Creates a new, specific transition
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_machines
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-01-
|
12
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|