simple_state_machine 0.4.3 → 0.5.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +3 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +34 -0
- data/Rakefile +17 -34
- data/autotest/discover.rb +1 -0
- data/lib/simple_state_machine/active_record.rb +11 -6
- data/lib/simple_state_machine/simple_state_machine.rb +77 -27
- data/lib/simple_state_machine/version.rb +3 -0
- data/lib/simple_state_machine.rb +1 -1
- data/simple_state_machine.gemspec +13 -54
- data/spec/active_record_spec.rb +53 -24
- data/spec/decorator_spec.rb +179 -28
- data/spec/examples_spec.rb +1 -0
- data/spec/mountable_spec.rb +24 -0
- data/spec/simple_state_machine_spec.rb +73 -93
- data/spec/spec_helper.rb +0 -6
- data/spec/state_machine_definition_spec.rb +89 -0
- data/spec/state_machine_spec.rb +26 -0
- metadata +87 -24
- data/VERSION +0 -1
- data/spec/spec.opts +0 -3
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_state_machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 31098217
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
- beta
|
11
|
+
version: 0.5.0.beta
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Marek de Heus
|
@@ -16,25 +17,81 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date:
|
20
|
+
date: 2011-02-08 00:00:00 +01:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
23
|
-
name:
|
24
|
+
name: rake
|
24
25
|
prerelease: false
|
25
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
27
|
none: false
|
27
28
|
requirements:
|
28
29
|
- - ">="
|
29
30
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
31
|
+
hash: 3
|
31
32
|
segments:
|
32
|
-
-
|
33
|
-
|
34
|
-
- 9
|
35
|
-
version: 1.2.9
|
33
|
+
- 0
|
34
|
+
version: "0"
|
36
35
|
type: :development
|
37
36
|
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: ZenTest
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: rspec
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: activerecord
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 9
|
74
|
+
segments:
|
75
|
+
- 2
|
76
|
+
- 3
|
77
|
+
- 5
|
78
|
+
version: 2.3.5
|
79
|
+
type: :development
|
80
|
+
version_requirements: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: sqlite3-ruby
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: 3
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
version: "0"
|
93
|
+
type: :development
|
94
|
+
version_requirements: *id005
|
38
95
|
description: A simple DSL to decorate existing methods with logic that guards state transitions.
|
39
96
|
email:
|
40
97
|
- FIX@example.com
|
@@ -47,10 +104,13 @@ extra_rdoc_files:
|
|
47
104
|
- README.rdoc
|
48
105
|
files:
|
49
106
|
- .gitignore
|
107
|
+
- .rspec
|
108
|
+
- Gemfile
|
109
|
+
- Gemfile.lock
|
50
110
|
- LICENSE
|
51
111
|
- README.rdoc
|
52
112
|
- Rakefile
|
53
|
-
-
|
113
|
+
- autotest/discover.rb
|
54
114
|
- examples/conversation.rb
|
55
115
|
- examples/lamp.rb
|
56
116
|
- examples/relationship.rb
|
@@ -59,13 +119,16 @@ files:
|
|
59
119
|
- lib/simple_state_machine.rb
|
60
120
|
- lib/simple_state_machine/active_record.rb
|
61
121
|
- lib/simple_state_machine/simple_state_machine.rb
|
122
|
+
- lib/simple_state_machine/version.rb
|
62
123
|
- simple_state_machine.gemspec
|
63
124
|
- spec/active_record_spec.rb
|
64
125
|
- spec/decorator_spec.rb
|
65
126
|
- spec/examples_spec.rb
|
127
|
+
- spec/mountable_spec.rb
|
66
128
|
- spec/simple_state_machine_spec.rb
|
67
|
-
- spec/spec.opts
|
68
129
|
- spec/spec_helper.rb
|
130
|
+
- spec/state_machine_definition_spec.rb
|
131
|
+
- spec/state_machine_spec.rb
|
69
132
|
has_rdoc: true
|
70
133
|
homepage: http://github.com/mdh/ssm
|
71
134
|
licenses: []
|
@@ -87,16 +150,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
151
|
none: false
|
89
152
|
requirements:
|
90
|
-
- - "
|
153
|
+
- - ">"
|
91
154
|
- !ruby/object:Gem::Version
|
92
|
-
hash:
|
155
|
+
hash: 25
|
93
156
|
segments:
|
94
|
-
-
|
95
|
-
|
157
|
+
- 1
|
158
|
+
- 3
|
159
|
+
- 1
|
160
|
+
version: 1.3.1
|
96
161
|
requirements: []
|
97
162
|
|
98
163
|
rubyforge_project:
|
99
|
-
rubygems_version: 1.
|
164
|
+
rubygems_version: 1.5.0
|
100
165
|
signing_key:
|
101
166
|
specification_version: 3
|
102
167
|
summary: A statemachine that focuses on events instead of states
|
@@ -104,10 +169,8 @@ test_files:
|
|
104
169
|
- spec/active_record_spec.rb
|
105
170
|
- spec/decorator_spec.rb
|
106
171
|
- spec/examples_spec.rb
|
172
|
+
- spec/mountable_spec.rb
|
107
173
|
- spec/simple_state_machine_spec.rb
|
108
174
|
- spec/spec_helper.rb
|
109
|
-
-
|
110
|
-
-
|
111
|
-
- examples/relationship.rb
|
112
|
-
- examples/traffic_light.rb
|
113
|
-
- examples/user.rb
|
175
|
+
- spec/state_machine_definition_spec.rb
|
176
|
+
- spec/state_machine_spec.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.4.3
|
data/spec/spec.opts
DELETED