state_machine 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/.gitignore +11 -0
  2. data/.travis.yml +16 -0
  3. data/.yardopts +5 -0
  4. data/Appraisals +260 -0
  5. data/CHANGELOG.rdoc +15 -0
  6. data/Gemfile +3 -0
  7. data/README.rdoc +156 -29
  8. data/Rakefile +31 -57
  9. data/gemfiles/active_model-3.0.0.gemfile +7 -0
  10. data/gemfiles/active_model-3.0.0.gemfile.lock +32 -0
  11. data/gemfiles/active_model-3.0.5.gemfile +7 -0
  12. data/gemfiles/active_model-3.0.5.gemfile.lock +32 -0
  13. data/gemfiles/active_record-2.0.0.gemfile +8 -0
  14. data/gemfiles/active_record-2.0.0.gemfile.lock +30 -0
  15. data/gemfiles/active_record-2.0.5.gemfile +8 -0
  16. data/gemfiles/active_record-2.0.5.gemfile.lock +30 -0
  17. data/gemfiles/active_record-2.1.0.gemfile +8 -0
  18. data/gemfiles/active_record-2.1.0.gemfile.lock +30 -0
  19. data/gemfiles/active_record-2.1.2.gemfile +8 -0
  20. data/gemfiles/active_record-2.1.2.gemfile.lock +30 -0
  21. data/gemfiles/active_record-2.2.3.gemfile +8 -0
  22. data/gemfiles/active_record-2.2.3.gemfile.lock +30 -0
  23. data/gemfiles/active_record-2.3.12.gemfile +8 -0
  24. data/gemfiles/active_record-2.3.12.gemfile.lock +30 -0
  25. data/gemfiles/active_record-3.0.0.gemfile +8 -0
  26. data/gemfiles/active_record-3.0.0.gemfile.lock +44 -0
  27. data/gemfiles/active_record-3.0.5.gemfile +8 -0
  28. data/gemfiles/active_record-3.0.5.gemfile.lock +43 -0
  29. data/gemfiles/data_mapper-0.10.2.gemfile +12 -0
  30. data/gemfiles/data_mapper-0.10.2.gemfile.lock +45 -0
  31. data/gemfiles/data_mapper-0.9.11.gemfile +12 -0
  32. data/gemfiles/data_mapper-0.9.11.gemfile.lock +47 -0
  33. data/gemfiles/data_mapper-0.9.4.gemfile +12 -0
  34. data/gemfiles/data_mapper-0.9.4.gemfile.lock +61 -0
  35. data/gemfiles/data_mapper-0.9.7.gemfile +12 -0
  36. data/gemfiles/data_mapper-0.9.7.gemfile.lock +57 -0
  37. data/gemfiles/data_mapper-1.0.0.gemfile +12 -0
  38. data/gemfiles/data_mapper-1.0.0.gemfile.lock +53 -0
  39. data/gemfiles/data_mapper-1.0.1.gemfile +12 -0
  40. data/gemfiles/data_mapper-1.0.1.gemfile.lock +53 -0
  41. data/gemfiles/data_mapper-1.0.2.gemfile +12 -0
  42. data/gemfiles/data_mapper-1.0.2.gemfile.lock +53 -0
  43. data/gemfiles/data_mapper-1.1.0.gemfile +12 -0
  44. data/gemfiles/data_mapper-1.1.0.gemfile.lock +51 -0
  45. data/gemfiles/default.gemfile +7 -0
  46. data/gemfiles/default.gemfile.lock +24 -0
  47. data/gemfiles/mongo_mapper-0.5.5.gemfile +8 -0
  48. data/gemfiles/mongo_mapper-0.5.5.gemfile.lock +33 -0
  49. data/gemfiles/mongo_mapper-0.5.8.gemfile +8 -0
  50. data/gemfiles/mongo_mapper-0.5.8.gemfile.lock +33 -0
  51. data/gemfiles/mongo_mapper-0.6.0.gemfile +8 -0
  52. data/gemfiles/mongo_mapper-0.6.0.gemfile.lock +33 -0
  53. data/gemfiles/mongo_mapper-0.6.10.gemfile +8 -0
  54. data/gemfiles/mongo_mapper-0.6.10.gemfile.lock +33 -0
  55. data/gemfiles/mongo_mapper-0.7.0.gemfile +8 -0
  56. data/gemfiles/mongo_mapper-0.7.0.gemfile.lock +33 -0
  57. data/gemfiles/mongo_mapper-0.7.5.gemfile +8 -0
  58. data/gemfiles/mongo_mapper-0.7.5.gemfile.lock +36 -0
  59. data/gemfiles/mongo_mapper-0.8.0.gemfile +10 -0
  60. data/gemfiles/mongo_mapper-0.8.0.gemfile.lock +40 -0
  61. data/gemfiles/mongo_mapper-0.8.3.gemfile +10 -0
  62. data/gemfiles/mongo_mapper-0.8.3.gemfile.lock +40 -0
  63. data/gemfiles/mongo_mapper-0.8.4.gemfile +8 -0
  64. data/gemfiles/mongo_mapper-0.8.4.gemfile.lock +38 -0
  65. data/gemfiles/mongo_mapper-0.8.6.gemfile +8 -0
  66. data/gemfiles/mongo_mapper-0.8.6.gemfile.lock +38 -0
  67. data/gemfiles/mongo_mapper-0.9.0.gemfile +7 -0
  68. data/gemfiles/mongo_mapper-0.9.0.gemfile.lock +41 -0
  69. data/gemfiles/mongoid-2.0.0.gemfile +7 -0
  70. data/gemfiles/mongoid-2.0.0.gemfile.lock +42 -0
  71. data/gemfiles/mongoid-2.1.4.gemfile +7 -0
  72. data/gemfiles/mongoid-2.1.4.gemfile.lock +40 -0
  73. data/gemfiles/sequel-2.11.0.gemfile +8 -0
  74. data/gemfiles/sequel-2.11.0.gemfile.lock +28 -0
  75. data/gemfiles/sequel-2.12.0.gemfile +8 -0
  76. data/gemfiles/sequel-2.12.0.gemfile.lock +28 -0
  77. data/gemfiles/sequel-2.8.0.gemfile +8 -0
  78. data/gemfiles/sequel-2.8.0.gemfile.lock +28 -0
  79. data/gemfiles/sequel-3.0.0.gemfile +8 -0
  80. data/gemfiles/sequel-3.0.0.gemfile.lock +28 -0
  81. data/gemfiles/sequel-3.13.0.gemfile +8 -0
  82. data/gemfiles/sequel-3.13.0.gemfile.lock +28 -0
  83. data/gemfiles/sequel-3.14.0.gemfile +8 -0
  84. data/gemfiles/sequel-3.14.0.gemfile.lock +28 -0
  85. data/gemfiles/sequel-3.23.0.gemfile +8 -0
  86. data/gemfiles/sequel-3.23.0.gemfile.lock +28 -0
  87. data/gemfiles/sequel-3.24.0.gemfile +8 -0
  88. data/gemfiles/sequel-3.24.0.gemfile.lock +28 -0
  89. data/lib/state_machine/event.rb +13 -90
  90. data/lib/state_machine/helper_module.rb +17 -0
  91. data/lib/state_machine/integrations/active_model.rb +35 -0
  92. data/lib/state_machine/integrations/active_record.rb +41 -2
  93. data/lib/state_machine/integrations/data_mapper.rb +17 -2
  94. data/lib/state_machine/integrations/mongo_mapper.rb +34 -7
  95. data/lib/state_machine/integrations/mongoid.rb +34 -26
  96. data/lib/state_machine/integrations/mongoid/versions.rb +29 -3
  97. data/lib/state_machine/integrations/sequel.rb +22 -72
  98. data/lib/state_machine/integrations/sequel/versions.rb +87 -6
  99. data/lib/state_machine/machine.rb +279 -19
  100. data/lib/state_machine/state.rb +2 -2
  101. data/lib/state_machine/state_context.rb +133 -0
  102. data/lib/state_machine/version.rb +3 -0
  103. data/state_machine.gemspec +22 -0
  104. data/test/test_helper.rb +1 -3
  105. data/test/unit/branch_test.rb +1 -3
  106. data/test/unit/event_collection_test.rb +3 -3
  107. data/test/unit/event_test.rb +1 -3
  108. data/test/unit/helper_module_test.rb +17 -0
  109. data/test/unit/integrations/active_model_test.rb +0 -4
  110. data/test/unit/integrations/active_record_test.rb +50 -9
  111. data/test/unit/integrations/data_mapper_test.rb +267 -253
  112. data/test/unit/integrations/mongo_mapper_test.rb +47 -15
  113. data/test/unit/integrations/mongoid_test.rb +50 -8
  114. data/test/unit/integrations/sequel_test.rb +10 -6
  115. data/test/unit/machine_test.rb +206 -25
  116. data/test/unit/state_context_test.rb +421 -0
  117. data/test/unit/state_test.rb +20 -3
  118. metadata +303 -128
  119. data/lib/state_machine/condition_proxy.rb +0 -94
  120. data/test/unit/condition_proxy_test.rb +0 -328
metadata CHANGED
@@ -1,185 +1,360 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: state_machine
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 19
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 2
10
+ version: 1.0.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Aaron Pfeifer
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-05-30 00:00:00.000000000 -04:00
13
- default_executable:
14
- dependencies: []
17
+
18
+ date: 2011-08-10 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rake
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :development
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: rcov
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ type: :development
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: appraisal
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ - 3
60
+ - 8
61
+ version: 0.3.8
62
+ type: :development
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ name: ruby-graphviz
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ hash: 15
73
+ segments:
74
+ - 1
75
+ - 0
76
+ version: "1.0"
77
+ type: :development
78
+ version_requirements: *id004
15
79
  description: Adds support for creating state machines for attributes on any Ruby class
16
80
  email: aaron@pluginaweek.org
17
81
  executables: []
82
+
18
83
  extensions: []
19
- extra_rdoc_files: []
20
- files:
21
- - examples/car.rb
84
+
85
+ extra_rdoc_files:
86
+ - README.rdoc
87
+ - CHANGELOG.rdoc
88
+ - LICENSE
89
+ files:
90
+ - .gitignore
91
+ - .travis.yml
92
+ - .yardopts
93
+ - Appraisals
94
+ - CHANGELOG.rdoc
95
+ - Gemfile
96
+ - LICENSE
97
+ - README.rdoc
98
+ - Rakefile
99
+ - examples/AutoShop_state.png
100
+ - examples/Car_state.png
22
101
  - examples/TrafficLight_state.png
23
- - examples/vehicle.rb
24
102
  - examples/Vehicle_state.png
25
- - examples/rails-rest/model.rb
26
- - examples/rails-rest/view_show.html.erb
103
+ - examples/auto_shop.rb
104
+ - examples/car.rb
105
+ - examples/merb-rest/controller.rb
106
+ - examples/merb-rest/model.rb
107
+ - examples/merb-rest/view_edit.html.erb
108
+ - examples/merb-rest/view_index.html.erb
109
+ - examples/merb-rest/view_new.html.erb
110
+ - examples/merb-rest/view_show.html.erb
111
+ - examples/rails-rest/controller.rb
27
112
  - examples/rails-rest/migration.rb
28
- - examples/rails-rest/view_index.html.erb
113
+ - examples/rails-rest/model.rb
29
114
  - examples/rails-rest/view_edit.html.erb
30
- - examples/rails-rest/controller.rb
115
+ - examples/rails-rest/view_index.html.erb
31
116
  - examples/rails-rest/view_new.html.erb
117
+ - examples/rails-rest/view_show.html.erb
32
118
  - examples/traffic_light.rb
33
- - examples/merb-rest/model.rb
34
- - examples/merb-rest/view_show.html.erb
35
- - examples/merb-rest/view_index.html.erb
36
- - examples/merb-rest/view_edit.html.erb
37
- - examples/merb-rest/controller.rb
38
- - examples/merb-rest/view_new.html.erb
39
- - examples/auto_shop.rb
40
- - examples/Car_state.png
41
- - examples/AutoShop_state.png
42
- - lib/state_machine/machine.rb
119
+ - examples/vehicle.rb
120
+ - gemfiles/active_model-3.0.0.gemfile
121
+ - gemfiles/active_model-3.0.0.gemfile.lock
122
+ - gemfiles/active_model-3.0.5.gemfile
123
+ - gemfiles/active_model-3.0.5.gemfile.lock
124
+ - gemfiles/active_record-2.0.0.gemfile
125
+ - gemfiles/active_record-2.0.0.gemfile.lock
126
+ - gemfiles/active_record-2.0.5.gemfile
127
+ - gemfiles/active_record-2.0.5.gemfile.lock
128
+ - gemfiles/active_record-2.1.0.gemfile
129
+ - gemfiles/active_record-2.1.0.gemfile.lock
130
+ - gemfiles/active_record-2.1.2.gemfile
131
+ - gemfiles/active_record-2.1.2.gemfile.lock
132
+ - gemfiles/active_record-2.2.3.gemfile
133
+ - gemfiles/active_record-2.2.3.gemfile.lock
134
+ - gemfiles/active_record-2.3.12.gemfile
135
+ - gemfiles/active_record-2.3.12.gemfile.lock
136
+ - gemfiles/active_record-3.0.0.gemfile
137
+ - gemfiles/active_record-3.0.0.gemfile.lock
138
+ - gemfiles/active_record-3.0.5.gemfile
139
+ - gemfiles/active_record-3.0.5.gemfile.lock
140
+ - gemfiles/data_mapper-0.10.2.gemfile
141
+ - gemfiles/data_mapper-0.10.2.gemfile.lock
142
+ - gemfiles/data_mapper-0.9.11.gemfile
143
+ - gemfiles/data_mapper-0.9.11.gemfile.lock
144
+ - gemfiles/data_mapper-0.9.4.gemfile
145
+ - gemfiles/data_mapper-0.9.4.gemfile.lock
146
+ - gemfiles/data_mapper-0.9.7.gemfile
147
+ - gemfiles/data_mapper-0.9.7.gemfile.lock
148
+ - gemfiles/data_mapper-1.0.0.gemfile
149
+ - gemfiles/data_mapper-1.0.0.gemfile.lock
150
+ - gemfiles/data_mapper-1.0.1.gemfile
151
+ - gemfiles/data_mapper-1.0.1.gemfile.lock
152
+ - gemfiles/data_mapper-1.0.2.gemfile
153
+ - gemfiles/data_mapper-1.0.2.gemfile.lock
154
+ - gemfiles/data_mapper-1.1.0.gemfile
155
+ - gemfiles/data_mapper-1.1.0.gemfile.lock
156
+ - gemfiles/default.gemfile
157
+ - gemfiles/default.gemfile.lock
158
+ - gemfiles/mongo_mapper-0.5.5.gemfile
159
+ - gemfiles/mongo_mapper-0.5.5.gemfile.lock
160
+ - gemfiles/mongo_mapper-0.5.8.gemfile
161
+ - gemfiles/mongo_mapper-0.5.8.gemfile.lock
162
+ - gemfiles/mongo_mapper-0.6.0.gemfile
163
+ - gemfiles/mongo_mapper-0.6.0.gemfile.lock
164
+ - gemfiles/mongo_mapper-0.6.10.gemfile
165
+ - gemfiles/mongo_mapper-0.6.10.gemfile.lock
166
+ - gemfiles/mongo_mapper-0.7.0.gemfile
167
+ - gemfiles/mongo_mapper-0.7.0.gemfile.lock
168
+ - gemfiles/mongo_mapper-0.7.5.gemfile
169
+ - gemfiles/mongo_mapper-0.7.5.gemfile.lock
170
+ - gemfiles/mongo_mapper-0.8.0.gemfile
171
+ - gemfiles/mongo_mapper-0.8.0.gemfile.lock
172
+ - gemfiles/mongo_mapper-0.8.3.gemfile
173
+ - gemfiles/mongo_mapper-0.8.3.gemfile.lock
174
+ - gemfiles/mongo_mapper-0.8.4.gemfile
175
+ - gemfiles/mongo_mapper-0.8.4.gemfile.lock
176
+ - gemfiles/mongo_mapper-0.8.6.gemfile
177
+ - gemfiles/mongo_mapper-0.8.6.gemfile.lock
178
+ - gemfiles/mongo_mapper-0.9.0.gemfile
179
+ - gemfiles/mongo_mapper-0.9.0.gemfile.lock
180
+ - gemfiles/mongoid-2.0.0.gemfile
181
+ - gemfiles/mongoid-2.0.0.gemfile.lock
182
+ - gemfiles/mongoid-2.1.4.gemfile
183
+ - gemfiles/mongoid-2.1.4.gemfile.lock
184
+ - gemfiles/sequel-2.11.0.gemfile
185
+ - gemfiles/sequel-2.11.0.gemfile.lock
186
+ - gemfiles/sequel-2.12.0.gemfile
187
+ - gemfiles/sequel-2.12.0.gemfile.lock
188
+ - gemfiles/sequel-2.8.0.gemfile
189
+ - gemfiles/sequel-2.8.0.gemfile.lock
190
+ - gemfiles/sequel-3.0.0.gemfile
191
+ - gemfiles/sequel-3.0.0.gemfile.lock
192
+ - gemfiles/sequel-3.13.0.gemfile
193
+ - gemfiles/sequel-3.13.0.gemfile.lock
194
+ - gemfiles/sequel-3.14.0.gemfile
195
+ - gemfiles/sequel-3.14.0.gemfile.lock
196
+ - gemfiles/sequel-3.23.0.gemfile
197
+ - gemfiles/sequel-3.23.0.gemfile.lock
198
+ - gemfiles/sequel-3.24.0.gemfile
199
+ - gemfiles/sequel-3.24.0.gemfile.lock
200
+ - init.rb
201
+ - lib/state_machine.rb
202
+ - lib/state_machine/assertions.rb
203
+ - lib/state_machine/branch.rb
204
+ - lib/state_machine/callback.rb
43
205
  - lib/state_machine/error.rb
44
- - lib/state_machine/matcher.rb
206
+ - lib/state_machine/eval_helpers.rb
207
+ - lib/state_machine/event.rb
45
208
  - lib/state_machine/event_collection.rb
46
- - lib/state_machine/transition.rb
47
- - lib/state_machine/matcher_helpers.rb
48
- - lib/state_machine/callback.rb
49
- - lib/state_machine/initializers.rb
50
- - lib/state_machine/transition_collection.rb
51
- - lib/state_machine/state_collection.rb
52
- - lib/state_machine/condition_proxy.rb
53
209
  - lib/state_machine/extensions.rb
210
+ - lib/state_machine/helper_module.rb
211
+ - lib/state_machine/initializers.rb
54
212
  - lib/state_machine/initializers/merb.rb
55
213
  - lib/state_machine/initializers/rails.rb
56
- - lib/state_machine/branch.rb
57
- - lib/state_machine/path.rb
58
- - lib/state_machine/node_collection.rb
59
- - lib/state_machine/path_collection.rb
60
- - lib/state_machine/event.rb
61
- - lib/state_machine/machine_collection.rb
214
+ - lib/state_machine/integrations.rb
215
+ - lib/state_machine/integrations/active_model.rb
216
+ - lib/state_machine/integrations/active_model/locale.rb
217
+ - lib/state_machine/integrations/active_model/observer.rb
218
+ - lib/state_machine/integrations/active_model/versions.rb
219
+ - lib/state_machine/integrations/active_record.rb
220
+ - lib/state_machine/integrations/active_record/locale.rb
221
+ - lib/state_machine/integrations/active_record/versions.rb
222
+ - lib/state_machine/integrations/base.rb
62
223
  - lib/state_machine/integrations/data_mapper.rb
63
- - lib/state_machine/integrations/data_mapper/versions.rb
64
224
  - lib/state_machine/integrations/data_mapper/observer.rb
65
- - lib/state_machine/integrations/sequel.rb
66
- - lib/state_machine/integrations/base.rb
67
- - lib/state_machine/integrations/mongo_mapper/versions.rb
225
+ - lib/state_machine/integrations/data_mapper/versions.rb
226
+ - lib/state_machine/integrations/mongo_mapper.rb
68
227
  - lib/state_machine/integrations/mongo_mapper/locale.rb
228
+ - lib/state_machine/integrations/mongo_mapper/versions.rb
69
229
  - lib/state_machine/integrations/mongoid.rb
70
- - lib/state_machine/integrations/active_record.rb
71
- - lib/state_machine/integrations/active_model.rb
72
- - lib/state_machine/integrations/mongoid/versions.rb
73
230
  - lib/state_machine/integrations/mongoid/locale.rb
231
+ - lib/state_machine/integrations/mongoid/versions.rb
232
+ - lib/state_machine/integrations/sequel.rb
74
233
  - lib/state_machine/integrations/sequel/versions.rb
75
- - lib/state_machine/integrations/active_model/versions.rb
76
- - lib/state_machine/integrations/active_model/observer.rb
77
- - lib/state_machine/integrations/active_model/locale.rb
78
- - lib/state_machine/integrations/mongo_mapper.rb
79
- - lib/state_machine/integrations/active_record/versions.rb
80
- - lib/state_machine/integrations/active_record/locale.rb
81
- - lib/state_machine/eval_helpers.rb
82
- - lib/state_machine/integrations.rb
234
+ - lib/state_machine/machine.rb
235
+ - lib/state_machine/machine_collection.rb
236
+ - lib/state_machine/matcher.rb
237
+ - lib/state_machine/matcher_helpers.rb
238
+ - lib/state_machine/node_collection.rb
239
+ - lib/state_machine/path.rb
240
+ - lib/state_machine/path_collection.rb
83
241
  - lib/state_machine/state.rb
84
- - lib/state_machine/assertions.rb
85
- - lib/state_machine.rb
86
- - lib/tasks/state_machine.rb
242
+ - lib/state_machine/state_collection.rb
243
+ - lib/state_machine/state_context.rb
244
+ - lib/state_machine/transition.rb
245
+ - lib/state_machine/transition_collection.rb
246
+ - lib/state_machine/version.rb
87
247
  - lib/tasks/state_machine.rake
88
- - test/unit/path_test.rb
89
- - test/unit/condition_proxy_test.rb
90
- - test/unit/state_machine_test.rb
91
- - test/unit/error_test.rb
92
- - test/unit/event_test.rb
93
- - test/unit/event_collection_test.rb
94
- - test/unit/transition_collection_test.rb
95
- - test/unit/integrations_test.rb
96
- - test/unit/transition_test.rb
97
- - test/unit/machine_test.rb
98
- - test/unit/matcher_helpers_test.rb
248
+ - lib/tasks/state_machine.rb
249
+ - state_machine.gemspec
250
+ - test/files/en.yml
251
+ - test/files/switch.rb
252
+ - test/functional/state_machine_test.rb
253
+ - test/test_helper.rb
254
+ - test/unit/assertions_test.rb
99
255
  - test/unit/branch_test.rb
100
256
  - test/unit/callback_test.rb
257
+ - test/unit/error_test.rb
101
258
  - test/unit/eval_helpers_test.rb
102
- - test/unit/state_test.rb
103
- - test/unit/node_collection_test.rb
104
- - test/unit/state_collection_test.rb
105
- - test/unit/assertions_test.rb
106
- - test/unit/path_collection_test.rb
107
- - test/unit/invalid_event_test.rb
108
- - test/unit/invalid_parallel_transition_test.rb
109
- - test/unit/integrations/sequel_test.rb
259
+ - test/unit/event_collection_test.rb
260
+ - test/unit/event_test.rb
261
+ - test/unit/helper_module_test.rb
110
262
  - test/unit/integrations/active_model_test.rb
111
- - test/unit/integrations/base_test.rb
112
263
  - test/unit/integrations/active_record_test.rb
264
+ - test/unit/integrations/base_test.rb
113
265
  - test/unit/integrations/data_mapper_test.rb
114
- - test/unit/integrations/mongoid_test.rb
115
266
  - test/unit/integrations/mongo_mapper_test.rb
267
+ - test/unit/integrations/mongoid_test.rb
268
+ - test/unit/integrations/sequel_test.rb
269
+ - test/unit/integrations_test.rb
270
+ - test/unit/invalid_event_test.rb
271
+ - test/unit/invalid_parallel_transition_test.rb
116
272
  - test/unit/invalid_transition_test.rb
117
- - test/unit/matcher_test.rb
118
273
  - test/unit/machine_collection_test.rb
119
- - test/files/en.yml
120
- - test/files/switch.rb
121
- - test/test_helper.rb
122
- - test/functional/state_machine_test.rb
123
- - CHANGELOG.rdoc
124
- - init.rb
125
- - LICENSE
126
- - Rakefile
127
- - README.rdoc
128
- has_rdoc: true
274
+ - test/unit/machine_test.rb
275
+ - test/unit/matcher_helpers_test.rb
276
+ - test/unit/matcher_test.rb
277
+ - test/unit/node_collection_test.rb
278
+ - test/unit/path_collection_test.rb
279
+ - test/unit/path_test.rb
280
+ - test/unit/state_collection_test.rb
281
+ - test/unit/state_context_test.rb
282
+ - test/unit/state_machine_test.rb
283
+ - test/unit/state_test.rb
284
+ - test/unit/transition_collection_test.rb
285
+ - test/unit/transition_test.rb
129
286
  homepage: http://www.pluginaweek.org
130
287
  licenses: []
288
+
131
289
  post_install_message:
132
- rdoc_options: []
133
- require_paths:
290
+ rdoc_options:
291
+ - --line-numbers
292
+ - --inline-source
293
+ - --title
294
+ - state_machine
295
+ - --main
296
+ - README.rdoc
297
+ require_paths:
134
298
  - lib
135
- required_ruby_version: !ruby/object:Gem::Requirement
299
+ required_ruby_version: !ruby/object:Gem::Requirement
136
300
  none: false
137
- requirements:
138
- - - ! '>='
139
- - !ruby/object:Gem::Version
140
- version: '0'
141
- required_rubygems_version: !ruby/object:Gem::Requirement
301
+ requirements:
302
+ - - ">="
303
+ - !ruby/object:Gem::Version
304
+ hash: 3
305
+ segments:
306
+ - 0
307
+ version: "0"
308
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
309
  none: false
143
- requirements:
144
- - - ! '>='
145
- - !ruby/object:Gem::Version
146
- version: '0'
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ hash: 3
314
+ segments:
315
+ - 0
316
+ version: "0"
147
317
  requirements: []
148
- rubyforge_project: pluginaweek
149
- rubygems_version: 1.6.2
318
+
319
+ rubyforge_project:
320
+ rubygems_version: 1.8.6
150
321
  signing_key:
151
322
  specification_version: 3
152
- summary: Adds support for creating state machines for attributes on any Ruby class
153
- test_files:
154
- - test/unit/path_test.rb
155
- - test/unit/condition_proxy_test.rb
156
- - test/unit/state_machine_test.rb
157
- - test/unit/error_test.rb
158
- - test/unit/event_test.rb
159
- - test/unit/event_collection_test.rb
160
- - test/unit/transition_collection_test.rb
161
- - test/unit/integrations_test.rb
162
- - test/unit/transition_test.rb
163
- - test/unit/machine_test.rb
164
- - test/unit/matcher_helpers_test.rb
323
+ summary: State machines for attributes
324
+ test_files:
325
+ - test/files/en.yml
326
+ - test/files/switch.rb
327
+ - test/functional/state_machine_test.rb
328
+ - test/test_helper.rb
329
+ - test/unit/assertions_test.rb
165
330
  - test/unit/branch_test.rb
166
331
  - test/unit/callback_test.rb
332
+ - test/unit/error_test.rb
167
333
  - test/unit/eval_helpers_test.rb
168
- - test/unit/state_test.rb
169
- - test/unit/node_collection_test.rb
170
- - test/unit/state_collection_test.rb
171
- - test/unit/assertions_test.rb
172
- - test/unit/path_collection_test.rb
173
- - test/unit/invalid_event_test.rb
174
- - test/unit/invalid_parallel_transition_test.rb
175
- - test/unit/integrations/sequel_test.rb
334
+ - test/unit/event_collection_test.rb
335
+ - test/unit/event_test.rb
336
+ - test/unit/helper_module_test.rb
176
337
  - test/unit/integrations/active_model_test.rb
177
- - test/unit/integrations/base_test.rb
178
338
  - test/unit/integrations/active_record_test.rb
339
+ - test/unit/integrations/base_test.rb
179
340
  - test/unit/integrations/data_mapper_test.rb
180
- - test/unit/integrations/mongoid_test.rb
181
341
  - test/unit/integrations/mongo_mapper_test.rb
342
+ - test/unit/integrations/mongoid_test.rb
343
+ - test/unit/integrations/sequel_test.rb
344
+ - test/unit/integrations_test.rb
345
+ - test/unit/invalid_event_test.rb
346
+ - test/unit/invalid_parallel_transition_test.rb
182
347
  - test/unit/invalid_transition_test.rb
183
- - test/unit/matcher_test.rb
184
348
  - test/unit/machine_collection_test.rb
185
- - test/functional/state_machine_test.rb
349
+ - test/unit/machine_test.rb
350
+ - test/unit/matcher_helpers_test.rb
351
+ - test/unit/matcher_test.rb
352
+ - test/unit/node_collection_test.rb
353
+ - test/unit/path_collection_test.rb
354
+ - test/unit/path_test.rb
355
+ - test/unit/state_collection_test.rb
356
+ - test/unit/state_context_test.rb
357
+ - test/unit/state_machine_test.rb
358
+ - test/unit/state_test.rb
359
+ - test/unit/transition_collection_test.rb
360
+ - test/unit/transition_test.rb