state_machine 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -11
- data/.travis.yml +49 -7
- data/Appraisals +255 -87
- data/CHANGELOG.md +30 -0
- data/README.md +142 -21
- data/Rakefile +1 -11
- data/examples/Gemfile +5 -0
- data/examples/Gemfile.lock +14 -0
- data/examples/auto_shop.rb +2 -0
- data/examples/car.rb +2 -0
- data/examples/doc/AutoShop.html +2856 -0
- data/examples/doc/AutoShop_state.png +0 -0
- data/examples/doc/Car.html +919 -0
- data/examples/doc/Car_state.png +0 -0
- data/examples/doc/TrafficLight.html +2230 -0
- data/examples/doc/TrafficLight_state.png +0 -0
- data/examples/doc/Vehicle.html +7921 -0
- data/examples/doc/Vehicle_state.png +0 -0
- data/examples/doc/_index.html +136 -0
- data/examples/doc/class_list.html +47 -0
- data/examples/doc/css/common.css +1 -0
- data/examples/doc/css/full_list.css +55 -0
- data/examples/doc/css/style.css +322 -0
- data/examples/doc/file_list.html +46 -0
- data/examples/doc/frames.html +13 -0
- data/examples/doc/index.html +136 -0
- data/examples/doc/js/app.js +205 -0
- data/examples/doc/js/full_list.js +173 -0
- data/examples/doc/js/jquery.js +16 -0
- data/examples/doc/method_list.html +734 -0
- data/examples/doc/top-level-namespace.html +105 -0
- data/examples/rails-rest/migration.rb +1 -5
- data/examples/rails-rest/view__form.html.erb +34 -0
- data/examples/rails-rest/view_edit.html.erb +2 -21
- data/examples/rails-rest/view_index.html.erb +6 -4
- data/examples/rails-rest/view_new.html.erb +2 -11
- data/examples/rails-rest/view_show.html.erb +5 -3
- data/examples/traffic_light.rb +2 -0
- data/examples/vehicle.rb +2 -0
- data/gemfiles/active_model-3.0.0.gemfile.lock +9 -6
- data/gemfiles/active_model-3.0.5.gemfile.lock +10 -7
- data/gemfiles/active_model-3.1.1.gemfile.lock +12 -10
- data/gemfiles/{active_model-3.2.0.gemfile → active_model-3.2.1.gemfile} +1 -1
- data/gemfiles/{graphviz-0.9.0.gemfile → active_model-3.2.12.gemfile} +1 -1
- data/gemfiles/active_model-3.2.12.gemfile.lock +36 -0
- data/gemfiles/{active_record-3.2.0.gemfile → active_model-3.2.13.rc1.gemfile} +1 -2
- data/gemfiles/active_model-3.2.13.rc1.gemfile.lock +36 -0
- data/gemfiles/active_model-4.0.0.gemfile +9 -0
- data/gemfiles/active_model-4.0.0.gemfile.lock +78 -0
- data/gemfiles/active_record-2.0.0.gemfile +2 -1
- data/gemfiles/active_record-2.0.0.gemfile.lock +15 -6
- data/gemfiles/active_record-2.0.5.gemfile +2 -1
- data/gemfiles/active_record-2.0.5.gemfile.lock +15 -6
- data/gemfiles/active_record-2.1.0.gemfile +2 -1
- data/gemfiles/active_record-2.1.0.gemfile.lock +15 -6
- data/gemfiles/active_record-2.1.2.gemfile +2 -1
- data/gemfiles/active_record-2.1.2.gemfile.lock +15 -6
- data/gemfiles/active_record-2.2.3.gemfile +2 -1
- data/gemfiles/active_record-2.2.3.gemfile.lock +15 -6
- data/gemfiles/active_record-2.3.12.gemfile +2 -1
- data/gemfiles/active_record-2.3.12.gemfile.lock +15 -6
- data/gemfiles/active_record-2.3.5.gemfile +9 -0
- data/gemfiles/active_record-2.3.5.gemfile.lock +39 -0
- data/gemfiles/active_record-3.0.0.gemfile +2 -1
- data/gemfiles/active_record-3.0.0.gemfile.lock +18 -11
- data/gemfiles/active_record-3.0.5.gemfile +2 -1
- data/gemfiles/active_record-3.0.5.gemfile.lock +19 -12
- data/gemfiles/active_record-3.1.1.gemfile +2 -1
- data/gemfiles/active_record-3.1.1.gemfile.lock +22 -16
- data/gemfiles/active_record-3.2.12.gemfile +9 -0
- data/gemfiles/active_record-3.2.12.gemfile.lock +51 -0
- data/gemfiles/active_record-3.2.13.rc1.gemfile +9 -0
- data/gemfiles/active_record-3.2.13.rc1.gemfile.lock +51 -0
- data/gemfiles/active_record-4.0.0.gemfile +11 -0
- data/gemfiles/active_record-4.0.0.gemfile.lock +83 -0
- data/gemfiles/data_mapper-0.10.2.gemfile +1 -0
- data/gemfiles/data_mapper-0.10.2.gemfile.lock +13 -9
- data/gemfiles/data_mapper-0.9.11.gemfile +1 -0
- data/gemfiles/data_mapper-0.9.11.gemfile.lock +31 -7
- data/gemfiles/data_mapper-0.9.4.gemfile.lock +25 -14
- data/gemfiles/data_mapper-0.9.7.gemfile +1 -0
- data/gemfiles/data_mapper-0.9.7.gemfile.lock +27 -15
- data/gemfiles/data_mapper-1.0.0.gemfile.lock +20 -17
- data/gemfiles/data_mapper-1.0.1.gemfile.lock +20 -17
- data/gemfiles/data_mapper-1.0.2.gemfile.lock +20 -17
- data/gemfiles/data_mapper-1.1.0.gemfile.lock +19 -16
- data/gemfiles/data_mapper-1.2.0.gemfile.lock +19 -16
- data/gemfiles/default.gemfile.lock +8 -5
- data/gemfiles/graphviz-0.9.17.gemfile +7 -0
- data/gemfiles/graphviz-0.9.17.gemfile.lock +29 -0
- data/gemfiles/graphviz-0.9.21.gemfile.lock +7 -4
- data/gemfiles/graphviz-1.0.0.gemfile.lock +7 -4
- data/gemfiles/graphviz-1.0.3.gemfile +7 -0
- data/gemfiles/graphviz-1.0.3.gemfile.lock +29 -0
- data/gemfiles/graphviz-1.0.8.gemfile +7 -0
- data/gemfiles/graphviz-1.0.8.gemfile.lock +29 -0
- data/gemfiles/mongo_mapper-0.10.0.gemfile +1 -0
- data/gemfiles/mongo_mapper-0.10.0.gemfile.lock +14 -11
- data/gemfiles/mongo_mapper-0.11.1.gemfile +7 -0
- data/gemfiles/mongo_mapper-0.11.1.gemfile.lock +44 -0
- data/gemfiles/mongo_mapper-0.11.2.gemfile +9 -0
- data/gemfiles/mongo_mapper-0.11.2.gemfile.lock +48 -0
- data/gemfiles/mongo_mapper-0.12.0.gemfile +9 -0
- data/gemfiles/mongo_mapper-0.12.0.gemfile.lock +48 -0
- data/gemfiles/mongo_mapper-0.5.5.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.5.8.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.6.0.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.6.10.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.7.0.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.7.5.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.8.0.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.8.3.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.8.4.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.8.6.gemfile.lock +7 -4
- data/gemfiles/mongo_mapper-0.9.0.gemfile.lock +7 -4
- data/gemfiles/mongoid-2.0.0.gemfile +2 -0
- data/gemfiles/mongoid-2.0.0.gemfile.lock +22 -18
- data/gemfiles/mongoid-2.1.4.gemfile +2 -0
- data/gemfiles/mongoid-2.1.4.gemfile.lock +21 -17
- data/gemfiles/mongoid-2.2.4.gemfile +2 -0
- data/gemfiles/mongoid-2.2.4.gemfile.lock +21 -17
- data/gemfiles/mongoid-2.3.3.gemfile +2 -0
- data/gemfiles/mongoid-2.3.3.gemfile.lock +21 -17
- data/gemfiles/mongoid-2.4.0.gemfile +9 -0
- data/gemfiles/mongoid-2.4.0.gemfile.lock +47 -0
- data/gemfiles/mongoid-2.4.10.gemfile +9 -0
- data/gemfiles/mongoid-2.4.10.gemfile.lock +47 -0
- data/gemfiles/mongoid-2.5.2.gemfile +9 -0
- data/gemfiles/mongoid-2.5.2.gemfile.lock +47 -0
- data/gemfiles/mongoid-2.6.0.gemfile +9 -0
- data/gemfiles/mongoid-2.6.0.gemfile.lock +47 -0
- data/gemfiles/mongoid-3.0.0.gemfile +8 -0
- data/gemfiles/mongoid-3.0.0.gemfile.lock +45 -0
- data/gemfiles/mongoid-3.0.22.gemfile +8 -0
- data/gemfiles/mongoid-3.0.22.gemfile.lock +45 -0
- data/gemfiles/mongoid-3.1.0.gemfile +8 -0
- data/gemfiles/mongoid-3.1.0.gemfile.lock +45 -0
- data/gemfiles/sequel-2.11.0.gemfile +2 -1
- data/gemfiles/sequel-2.11.0.gemfile.lock +11 -6
- data/gemfiles/sequel-2.12.0.gemfile +2 -1
- data/gemfiles/sequel-2.12.0.gemfile.lock +11 -6
- data/gemfiles/sequel-2.8.0.gemfile +2 -1
- data/gemfiles/sequel-2.8.0.gemfile.lock +11 -6
- data/gemfiles/sequel-3.0.0.gemfile +2 -1
- data/gemfiles/sequel-3.0.0.gemfile.lock +11 -6
- data/gemfiles/sequel-3.10.0.gemfile +9 -0
- data/gemfiles/sequel-3.10.0.gemfile.lock +33 -0
- data/gemfiles/sequel-3.13.0.gemfile +2 -1
- data/gemfiles/sequel-3.13.0.gemfile.lock +11 -6
- data/gemfiles/sequel-3.14.0.gemfile +2 -1
- data/gemfiles/sequel-3.14.0.gemfile.lock +11 -6
- data/gemfiles/sequel-3.23.0.gemfile +2 -1
- data/gemfiles/sequel-3.23.0.gemfile.lock +11 -6
- data/gemfiles/sequel-3.24.0.gemfile +2 -1
- data/gemfiles/sequel-3.24.0.gemfile.lock +11 -6
- data/gemfiles/sequel-3.29.0.gemfile +2 -1
- data/gemfiles/sequel-3.29.0.gemfile.lock +11 -6
- data/gemfiles/sequel-3.34.0.gemfile +9 -0
- data/gemfiles/sequel-3.34.0.gemfile.lock +33 -0
- data/gemfiles/sequel-3.35.0.gemfile +9 -0
- data/gemfiles/sequel-3.35.0.gemfile.lock +33 -0
- data/gemfiles/sequel-3.4.0.gemfile +9 -0
- data/gemfiles/sequel-3.4.0.gemfile.lock +33 -0
- data/gemfiles/sequel-3.44.0.gemfile +9 -0
- data/gemfiles/sequel-3.44.0.gemfile.lock +33 -0
- data/lib/state_machine.rb +6 -0
- data/lib/state_machine/branch.rb +9 -8
- data/lib/state_machine/callback.rb +2 -2
- data/lib/state_machine/core.rb +10 -0
- data/lib/state_machine/core_ext.rb +1 -0
- data/lib/state_machine/eval_helpers.rb +5 -3
- data/lib/state_machine/event.rb +17 -6
- data/lib/state_machine/graph.rb +92 -0
- data/lib/state_machine/integrations.rb +13 -1
- data/lib/state_machine/integrations/active_model.rb +14 -20
- data/lib/state_machine/integrations/active_model/observer.rb +3 -3
- data/lib/state_machine/integrations/active_model/observer_update.rb +42 -0
- data/lib/state_machine/integrations/active_record.rb +52 -25
- data/lib/state_machine/integrations/active_record/locale.rb +1 -1
- data/lib/state_machine/integrations/active_record/versions.rb +1 -17
- data/lib/state_machine/integrations/base.rb +15 -6
- data/lib/state_machine/integrations/data_mapper.rb +98 -35
- data/lib/state_machine/integrations/data_mapper/versions.rb +46 -8
- data/lib/state_machine/integrations/mongo_mapper.rb +39 -12
- data/lib/state_machine/integrations/mongo_mapper/locale.rb +1 -1
- data/lib/state_machine/integrations/mongo_mapper/versions.rb +3 -20
- data/lib/state_machine/integrations/mongoid.rb +52 -14
- data/lib/state_machine/integrations/mongoid/locale.rb +1 -1
- data/lib/state_machine/integrations/mongoid/versions.rb +52 -26
- data/lib/state_machine/integrations/sequel.rb +82 -33
- data/lib/state_machine/integrations/sequel/versions.rb +19 -44
- data/lib/state_machine/machine.rb +99 -59
- data/lib/state_machine/machine_collection.rb +1 -2
- data/lib/state_machine/macro_methods.rb +29 -0
- data/lib/state_machine/node_collection.rb +1 -1
- data/lib/state_machine/state.rb +18 -10
- data/lib/state_machine/state_context.rb +2 -2
- data/lib/state_machine/transition.rb +8 -1
- data/lib/state_machine/transition_collection.rb +2 -1
- data/lib/state_machine/version.rb +1 -1
- data/lib/state_machine/yard.rb +8 -0
- data/lib/state_machine/yard/handlers.rb +12 -0
- data/lib/state_machine/yard/handlers/base.rb +32 -0
- data/lib/state_machine/yard/handlers/event.rb +25 -0
- data/lib/state_machine/yard/handlers/machine.rb +344 -0
- data/lib/state_machine/yard/handlers/state.rb +25 -0
- data/lib/state_machine/yard/handlers/transition.rb +47 -0
- data/lib/state_machine/yard/templates.rb +3 -0
- data/lib/state_machine/yard/templates/default/class/html/setup.rb +30 -0
- data/lib/state_machine/yard/templates/default/class/html/state_machines.erb +12 -0
- data/lib/tasks/state_machine.rb +2 -1
- data/lib/yard-state_machine.rb +2 -0
- data/state_machine.gemspec +4 -3
- data/test/files/switch.rb +4 -0
- data/test/test_helper.rb +5 -0
- data/test/unit/branch_test.rb +117 -36
- data/test/unit/callback_test.rb +5 -2
- data/test/unit/eval_helpers_test.rb +49 -1
- data/test/unit/event_collection_test.rb +3 -1
- data/test/unit/event_test.rb +182 -12
- data/test/unit/graph_test.rb +98 -0
- data/test/unit/integrations/active_model_test.rb +82 -12
- data/test/unit/integrations/active_record_test.rb +393 -37
- data/test/unit/integrations/base_test.rb +7 -2
- data/test/unit/integrations/data_mapper_test.rb +326 -72
- data/test/unit/integrations/mongo_mapper_test.rb +338 -44
- data/test/unit/integrations/mongoid_test.rb +606 -98
- data/test/unit/integrations/sequel_test.rb +429 -102
- data/test/unit/integrations_test.rb +28 -6
- data/test/unit/machine_collection_test.rb +6 -2
- data/test/unit/machine_test.rb +134 -82
- data/test/unit/node_collection_test.rb +2 -2
- data/test/unit/path_test.rb +1 -1
- data/test/unit/state_test.rb +65 -21
- data/test/unit/transition_collection_test.rb +43 -23
- data/test/unit/transition_test.rb +8 -2
- metadata +303 -221
- data/gemfiles/active_model-3.2.0.gemfile.lock +0 -32
- data/gemfiles/active_record-3.2.0.gemfile.lock +0 -43
- data/gemfiles/graphviz-0.9.0.gemfile.lock +0 -26
@@ -503,7 +503,7 @@ class TransitionWithBeforeCallbacksTest < Test::Unit::TestCase
|
|
503
503
|
assert @run
|
504
504
|
end
|
505
505
|
|
506
|
-
def
|
506
|
+
def test_should_succeed_if_block_success_is_true
|
507
507
|
@machine.before_transition {@run = true}
|
508
508
|
assert_equal true, @transition.run_callbacks {{:success => true}}
|
509
509
|
assert @run
|
@@ -584,6 +584,7 @@ class TransitionWithAfterCallbacksTest < Test::Unit::TestCase
|
|
584
584
|
end
|
585
585
|
|
586
586
|
def test_should_not_run_if_not_successful
|
587
|
+
@run = false
|
587
588
|
@machine.after_transition {|object| @run = true}
|
588
589
|
@transition.run_callbacks {{:success => false}}
|
589
590
|
assert !@run
|
@@ -808,6 +809,7 @@ class TransitionWithAroundCallbacksTest < Test::Unit::TestCase
|
|
808
809
|
end
|
809
810
|
|
810
811
|
def test_should_only_run_before_if_block_success_is_false
|
812
|
+
@after_run = false
|
811
813
|
@machine.around_transition {|block| @before_run = true; block.call; @after_run = true}
|
812
814
|
assert_equal true, @transition.run_callbacks {{:success => false}}
|
813
815
|
assert @before_run
|
@@ -967,6 +969,7 @@ class TransitionWithFailureCallbacksTest < Test::Unit::TestCase
|
|
967
969
|
end
|
968
970
|
|
969
971
|
def test_should_not_run_if_successful
|
972
|
+
@run = false
|
970
973
|
@machine.after_failure {|object| @run = true}
|
971
974
|
@transition.run_callbacks {{:success => true}}
|
972
975
|
assert !@run
|
@@ -1175,6 +1178,7 @@ class TransitionWithBeforeCallbacksSkippedTest < Test::Unit::TestCase
|
|
1175
1178
|
end
|
1176
1179
|
|
1177
1180
|
def test_should_not_run_before_callbacks
|
1181
|
+
@run = false
|
1178
1182
|
@machine.before_transition {@run = true}
|
1179
1183
|
|
1180
1184
|
assert_equal false, @transition.run_callbacks(:before => false)
|
@@ -1210,13 +1214,14 @@ class TransitionWithAfterCallbacksSkippedTest < Test::Unit::TestCase
|
|
1210
1214
|
end
|
1211
1215
|
|
1212
1216
|
def test_should_not_run_after_callbacks
|
1217
|
+
@run = false
|
1213
1218
|
@machine.after_transition {@run = true}
|
1214
1219
|
|
1215
1220
|
assert_equal true, @transition.run_callbacks(:after => false)
|
1216
1221
|
assert !@run
|
1217
1222
|
end
|
1218
1223
|
|
1219
|
-
if
|
1224
|
+
if StateMachine::Transition.pause_supported?
|
1220
1225
|
def test_should_run_around_callbacks_before_yield
|
1221
1226
|
@machine.around_transition {|block| @run = true; block.call}
|
1222
1227
|
|
@@ -1225,6 +1230,7 @@ class TransitionWithAfterCallbacksSkippedTest < Test::Unit::TestCase
|
|
1225
1230
|
end
|
1226
1231
|
|
1227
1232
|
def test_should_not_run_around_callbacks_after_yield
|
1233
|
+
@run = false
|
1228
1234
|
@machine.around_transition {|block| block.call; @run = true}
|
1229
1235
|
|
1230
1236
|
assert_equal true, @transition.run_callbacks(:after => false)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 1
|
9
8
|
- 2
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Pfeifer
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2013-03-30 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rake
|
@@ -33,7 +32,7 @@ dependencies:
|
|
33
32
|
type: :development
|
34
33
|
version_requirements: *id001
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
35
|
+
name: simplecov
|
37
36
|
prerelease: false
|
38
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
38
|
none: false
|
@@ -73,231 +72,313 @@ extra_rdoc_files:
|
|
73
72
|
- CHANGELOG.md
|
74
73
|
- LICENSE
|
75
74
|
files:
|
76
|
-
- .gitignore
|
77
75
|
- .travis.yml
|
76
|
+
- .gitignore
|
78
77
|
- .yardopts
|
79
|
-
-
|
80
|
-
- CHANGELOG.md
|
78
|
+
- state_machine.gemspec
|
81
79
|
- Gemfile
|
82
|
-
-
|
80
|
+
- init.rb
|
81
|
+
- lib/state_machine.rb
|
82
|
+
- lib/state_machine/integrations.rb
|
83
|
+
- lib/state_machine/state_context.rb
|
84
|
+
- lib/state_machine/path.rb
|
85
|
+
- lib/state_machine/error.rb
|
86
|
+
- lib/state_machine/core.rb
|
87
|
+
- lib/state_machine/yard.rb
|
88
|
+
- lib/state_machine/integrations/base.rb
|
89
|
+
- lib/state_machine/integrations/data_mapper/observer.rb
|
90
|
+
- lib/state_machine/integrations/data_mapper/versions.rb
|
91
|
+
- lib/state_machine/integrations/mongo_mapper.rb
|
92
|
+
- lib/state_machine/integrations/mongoid.rb
|
93
|
+
- lib/state_machine/integrations/data_mapper.rb
|
94
|
+
- lib/state_machine/integrations/active_model.rb
|
95
|
+
- lib/state_machine/integrations/active_record.rb
|
96
|
+
- lib/state_machine/integrations/active_record/locale.rb
|
97
|
+
- lib/state_machine/integrations/active_record/versions.rb
|
98
|
+
- lib/state_machine/integrations/mongo_mapper/locale.rb
|
99
|
+
- lib/state_machine/integrations/mongo_mapper/versions.rb
|
100
|
+
- lib/state_machine/integrations/sequel/versions.rb
|
101
|
+
- lib/state_machine/integrations/sequel.rb
|
102
|
+
- lib/state_machine/integrations/mongoid/locale.rb
|
103
|
+
- lib/state_machine/integrations/mongoid/versions.rb
|
104
|
+
- lib/state_machine/integrations/active_model/observer_update.rb
|
105
|
+
- lib/state_machine/integrations/active_model/locale.rb
|
106
|
+
- lib/state_machine/integrations/active_model/observer.rb
|
107
|
+
- lib/state_machine/integrations/active_model/versions.rb
|
108
|
+
- lib/state_machine/state_collection.rb
|
109
|
+
- lib/state_machine/helper_module.rb
|
110
|
+
- lib/state_machine/node_collection.rb
|
111
|
+
- lib/state_machine/extensions.rb
|
112
|
+
- lib/state_machine/initializers.rb
|
113
|
+
- lib/state_machine/macro_methods.rb
|
114
|
+
- lib/state_machine/machine.rb
|
115
|
+
- lib/state_machine/matcher.rb
|
116
|
+
- lib/state_machine/assertions.rb
|
117
|
+
- lib/state_machine/event.rb
|
118
|
+
- lib/state_machine/branch.rb
|
119
|
+
- lib/state_machine/core_ext.rb
|
120
|
+
- lib/state_machine/callback.rb
|
121
|
+
- lib/state_machine/transition_collection.rb
|
122
|
+
- lib/state_machine/graph.rb
|
123
|
+
- lib/state_machine/yard/templates/default/class/html/state_machines.erb
|
124
|
+
- lib/state_machine/yard/templates/default/class/html/setup.rb
|
125
|
+
- lib/state_machine/yard/handlers/base.rb
|
126
|
+
- lib/state_machine/yard/handlers/machine.rb
|
127
|
+
- lib/state_machine/yard/handlers/event.rb
|
128
|
+
- lib/state_machine/yard/handlers/state.rb
|
129
|
+
- lib/state_machine/yard/handlers/transition.rb
|
130
|
+
- lib/state_machine/yard/handlers.rb
|
131
|
+
- lib/state_machine/yard/templates.rb
|
132
|
+
- lib/state_machine/path_collection.rb
|
133
|
+
- lib/state_machine/state.rb
|
134
|
+
- lib/state_machine/transition.rb
|
135
|
+
- lib/state_machine/core_ext/class/state_machine.rb
|
136
|
+
- lib/state_machine/initializers/merb.rb
|
137
|
+
- lib/state_machine/initializers/rails.rb
|
138
|
+
- lib/state_machine/event_collection.rb
|
139
|
+
- lib/state_machine/eval_helpers.rb
|
140
|
+
- lib/state_machine/machine_collection.rb
|
141
|
+
- lib/state_machine/matcher_helpers.rb
|
142
|
+
- lib/state_machine/version.rb
|
143
|
+
- lib/yard-state_machine.rb
|
144
|
+
- lib/tasks/state_machine.rake
|
145
|
+
- lib/tasks/state_machine.rb
|
83
146
|
- README.md
|
84
|
-
-
|
85
|
-
- examples/
|
86
|
-
- examples/Car_state.png
|
87
|
-
- examples/TrafficLight_state.png
|
88
|
-
- examples/Vehicle_state.png
|
89
|
-
- examples/auto_shop.rb
|
90
|
-
- examples/car.rb
|
91
|
-
- examples/merb-rest/controller.rb
|
92
|
-
- examples/merb-rest/model.rb
|
93
|
-
- examples/merb-rest/view_edit.html.erb
|
94
|
-
- examples/merb-rest/view_index.html.erb
|
95
|
-
- examples/merb-rest/view_new.html.erb
|
96
|
-
- examples/merb-rest/view_show.html.erb
|
147
|
+
- examples/Gemfile
|
148
|
+
- examples/rails-rest/view_show.html.erb
|
97
149
|
- examples/rails-rest/controller.rb
|
150
|
+
- examples/rails-rest/view_new.html.erb
|
98
151
|
- examples/rails-rest/migration.rb
|
99
152
|
- examples/rails-rest/model.rb
|
100
153
|
- examples/rails-rest/view_edit.html.erb
|
154
|
+
- examples/rails-rest/view__form.html.erb
|
101
155
|
- examples/rails-rest/view_index.html.erb
|
102
|
-
- examples/
|
103
|
-
- examples/rails-rest/view_show.html.erb
|
104
|
-
- examples/traffic_light.rb
|
156
|
+
- examples/TrafficLight_state.png
|
105
157
|
- examples/vehicle.rb
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
158
|
+
- examples/merb-rest/view_show.html.erb
|
159
|
+
- examples/merb-rest/controller.rb
|
160
|
+
- examples/merb-rest/view_new.html.erb
|
161
|
+
- examples/merb-rest/model.rb
|
162
|
+
- examples/merb-rest/view_edit.html.erb
|
163
|
+
- examples/merb-rest/view_index.html.erb
|
164
|
+
- examples/Gemfile.lock
|
165
|
+
- examples/AutoShop_state.png
|
166
|
+
- examples/auto_shop.rb
|
167
|
+
- examples/Car_state.png
|
168
|
+
- examples/doc/AutoShop.html
|
169
|
+
- examples/doc/method_list.html
|
170
|
+
- examples/doc/TrafficLight_state.png
|
171
|
+
- examples/doc/class_list.html
|
172
|
+
- examples/doc/css/style.css
|
173
|
+
- examples/doc/css/common.css
|
174
|
+
- examples/doc/css/full_list.css
|
175
|
+
- examples/doc/index.html
|
176
|
+
- examples/doc/Vehicle.html
|
177
|
+
- examples/doc/top-level-namespace.html
|
178
|
+
- examples/doc/AutoShop_state.png
|
179
|
+
- examples/doc/js/full_list.js
|
180
|
+
- examples/doc/js/app.js
|
181
|
+
- examples/doc/js/jquery.js
|
182
|
+
- examples/doc/Car_state.png
|
183
|
+
- examples/doc/TrafficLight.html
|
184
|
+
- examples/doc/_index.html
|
185
|
+
- examples/doc/file_list.html
|
186
|
+
- examples/doc/Car.html
|
187
|
+
- examples/doc/Vehicle_state.png
|
188
|
+
- examples/doc/frames.html
|
189
|
+
- examples/Vehicle_state.png
|
190
|
+
- examples/traffic_light.rb
|
191
|
+
- examples/car.rb
|
192
|
+
- LICENSE
|
193
|
+
- CHANGELOG.md
|
194
|
+
- gemfiles/mongoid-3.1.0.gemfile.lock
|
195
|
+
- gemfiles/mongo_mapper-0.7.0.gemfile
|
196
|
+
- gemfiles/sequel-3.4.0.gemfile
|
197
|
+
- gemfiles/mongoid-2.4.10.gemfile
|
198
|
+
- gemfiles/mongo_mapper-0.5.8.gemfile.lock
|
199
|
+
- gemfiles/mongoid-2.3.3.gemfile.lock
|
200
|
+
- gemfiles/active_record-2.1.0.gemfile.lock
|
201
|
+
- gemfiles/mongoid-3.0.0.gemfile.lock
|
202
|
+
- gemfiles/sequel-2.11.0.gemfile.lock
|
203
|
+
- gemfiles/graphviz-1.0.0.gemfile
|
204
|
+
- gemfiles/data_mapper-0.9.11.gemfile.lock
|
205
|
+
- gemfiles/mongo_mapper-0.12.0.gemfile
|
206
|
+
- gemfiles/graphviz-1.0.8.gemfile.lock
|
207
|
+
- gemfiles/mongoid-2.0.0.gemfile.lock
|
208
|
+
- gemfiles/graphviz-1.0.0.gemfile.lock
|
110
209
|
- gemfiles/active_model-3.1.1.gemfile
|
111
|
-
- gemfiles/active_model-3.1.1.gemfile.lock
|
112
|
-
- gemfiles/active_model-3.2.0.gemfile
|
113
|
-
- gemfiles/active_model-3.2.0.gemfile.lock
|
114
|
-
- gemfiles/active_record-2.0.0.gemfile
|
115
210
|
- gemfiles/active_record-2.0.0.gemfile.lock
|
211
|
+
- gemfiles/mongo_mapper-0.9.0.gemfile.lock
|
212
|
+
- gemfiles/data_mapper-0.9.4.gemfile
|
213
|
+
- gemfiles/graphviz-0.9.21.gemfile.lock
|
214
|
+
- gemfiles/active_record-3.0.0.gemfile.lock
|
215
|
+
- gemfiles/mongo_mapper-0.6.10.gemfile.lock
|
216
|
+
- gemfiles/sequel-3.10.0.gemfile
|
217
|
+
- gemfiles/active_record-3.2.12.gemfile
|
218
|
+
- gemfiles/active_model-4.0.0.gemfile
|
219
|
+
- gemfiles/data_mapper-1.1.0.gemfile
|
220
|
+
- gemfiles/sequel-2.11.0.gemfile
|
221
|
+
- gemfiles/mongo_mapper-0.10.0.gemfile.lock
|
222
|
+
- gemfiles/default.gemfile
|
223
|
+
- gemfiles/active_model-3.2.13.rc1.gemfile
|
224
|
+
- gemfiles/sequel-3.44.0.gemfile.lock
|
225
|
+
- gemfiles/data_mapper-0.9.11.gemfile
|
226
|
+
- gemfiles/graphviz-1.0.3.gemfile.lock
|
227
|
+
- gemfiles/active_record-4.0.0.gemfile
|
228
|
+
- gemfiles/sequel-3.24.0.gemfile
|
229
|
+
- gemfiles/active_record-3.2.13.rc1.gemfile.lock
|
230
|
+
- gemfiles/active_record-4.0.0.gemfile.lock
|
231
|
+
- gemfiles/active_record-3.2.12.gemfile.lock
|
232
|
+
- gemfiles/mongo_mapper-0.11.2.gemfile.lock
|
233
|
+
- gemfiles/mongoid-2.2.4.gemfile.lock
|
234
|
+
- gemfiles/mongo_mapper-0.6.0.gemfile
|
235
|
+
- gemfiles/mongo_mapper-0.8.0.gemfile.lock
|
236
|
+
- gemfiles/sequel-3.35.0.gemfile
|
237
|
+
- gemfiles/sequel-2.8.0.gemfile
|
238
|
+
- gemfiles/active_model-3.0.0.gemfile.lock
|
116
239
|
- gemfiles/active_record-2.0.5.gemfile
|
117
|
-
- gemfiles/
|
118
|
-
- gemfiles/active_record-2.1.0.gemfile
|
119
|
-
- gemfiles/active_record-2.1.0.gemfile.lock
|
240
|
+
- gemfiles/sequel-3.29.0.gemfile
|
120
241
|
- gemfiles/active_record-2.1.2.gemfile
|
121
|
-
- gemfiles/
|
122
|
-
- gemfiles/active_record-2.2.3.gemfile
|
242
|
+
- gemfiles/data_mapper-0.9.4.gemfile.lock
|
123
243
|
- gemfiles/active_record-2.2.3.gemfile.lock
|
124
|
-
- gemfiles/
|
125
|
-
- gemfiles/
|
126
|
-
- gemfiles/
|
127
|
-
- gemfiles/
|
128
|
-
- gemfiles/
|
244
|
+
- gemfiles/data_mapper-1.0.0.gemfile
|
245
|
+
- gemfiles/mongo_mapper-0.8.4.gemfile.lock
|
246
|
+
- gemfiles/sequel-3.0.0.gemfile.lock
|
247
|
+
- gemfiles/mongo_mapper-0.8.6.gemfile
|
248
|
+
- gemfiles/data_mapper-1.0.2.gemfile.lock
|
129
249
|
- gemfiles/active_record-3.0.5.gemfile.lock
|
130
|
-
- gemfiles/
|
131
|
-
- gemfiles/
|
132
|
-
- gemfiles/
|
133
|
-
- gemfiles/
|
134
|
-
- gemfiles/
|
250
|
+
- gemfiles/mongoid-2.4.0.gemfile.lock
|
251
|
+
- gemfiles/mongoid-2.4.10.gemfile.lock
|
252
|
+
- gemfiles/active_model-4.0.0.gemfile.lock
|
253
|
+
- gemfiles/mongo_mapper-0.8.3.gemfile
|
254
|
+
- gemfiles/sequel-3.14.0.gemfile.lock
|
255
|
+
- gemfiles/mongoid-2.5.2.gemfile
|
135
256
|
- gemfiles/data_mapper-0.10.2.gemfile.lock
|
136
|
-
- gemfiles/data_mapper-0.
|
137
|
-
- gemfiles/
|
138
|
-
- gemfiles/
|
139
|
-
- gemfiles/
|
140
|
-
- gemfiles/
|
141
|
-
- gemfiles/
|
142
|
-
- gemfiles/
|
143
|
-
- gemfiles/
|
144
|
-
- gemfiles/
|
145
|
-
- gemfiles/
|
257
|
+
- gemfiles/data_mapper-0.10.2.gemfile
|
258
|
+
- gemfiles/mongoid-2.3.3.gemfile
|
259
|
+
- gemfiles/mongo_mapper-0.5.5.gemfile
|
260
|
+
- gemfiles/mongo_mapper-0.11.1.gemfile.lock
|
261
|
+
- gemfiles/active_record-2.3.5.gemfile
|
262
|
+
- gemfiles/sequel-3.13.0.gemfile.lock
|
263
|
+
- gemfiles/active_record-2.3.5.gemfile.lock
|
264
|
+
- gemfiles/active_record-2.3.12.gemfile
|
265
|
+
- gemfiles/active_model-3.0.5.gemfile
|
266
|
+
- gemfiles/graphviz-0.9.21.gemfile
|
267
|
+
- gemfiles/data_mapper-1.2.0.gemfile.lock
|
268
|
+
- gemfiles/active_record-2.2.3.gemfile
|
269
|
+
- gemfiles/sequel-3.34.0.gemfile
|
270
|
+
- gemfiles/sequel-3.23.0.gemfile.lock
|
271
|
+
- gemfiles/graphviz-1.0.8.gemfile
|
272
|
+
- gemfiles/active_model-3.2.12.gemfile
|
273
|
+
- gemfiles/sequel-3.13.0.gemfile
|
274
|
+
- gemfiles/mongoid-2.4.0.gemfile
|
275
|
+
- gemfiles/mongoid-3.1.0.gemfile
|
146
276
|
- gemfiles/data_mapper-1.0.2.gemfile
|
147
|
-
- gemfiles/
|
148
|
-
- gemfiles/
|
277
|
+
- gemfiles/active_record-3.1.1.gemfile
|
278
|
+
- gemfiles/mongo_mapper-0.11.2.gemfile
|
279
|
+
- gemfiles/active_record-3.0.5.gemfile
|
280
|
+
- gemfiles/mongoid-3.0.22.gemfile
|
281
|
+
- gemfiles/sequel-3.10.0.gemfile.lock
|
149
282
|
- gemfiles/data_mapper-1.1.0.gemfile.lock
|
150
|
-
- gemfiles/
|
151
|
-
- gemfiles/data_mapper-1.
|
152
|
-
- gemfiles/
|
283
|
+
- gemfiles/mongoid-3.0.0.gemfile
|
284
|
+
- gemfiles/data_mapper-1.0.1.gemfile.lock
|
285
|
+
- gemfiles/mongo_mapper-0.7.5.gemfile
|
286
|
+
- gemfiles/sequel-3.0.0.gemfile
|
287
|
+
- gemfiles/sequel-3.34.0.gemfile.lock
|
153
288
|
- gemfiles/default.gemfile.lock
|
154
|
-
- gemfiles/
|
155
|
-
- gemfiles/
|
156
|
-
- gemfiles/graphviz-0.9.21.gemfile
|
157
|
-
- gemfiles/graphviz-0.9.21.gemfile.lock
|
158
|
-
- gemfiles/graphviz-1.0.0.gemfile
|
159
|
-
- gemfiles/graphviz-1.0.0.gemfile.lock
|
160
|
-
- gemfiles/mongo_mapper-0.10.0.gemfile
|
161
|
-
- gemfiles/mongo_mapper-0.10.0.gemfile.lock
|
162
|
-
- gemfiles/mongo_mapper-0.5.5.gemfile
|
289
|
+
- gemfiles/mongo_mapper-0.11.1.gemfile
|
290
|
+
- gemfiles/sequel-3.35.0.gemfile.lock
|
163
291
|
- gemfiles/mongo_mapper-0.5.5.gemfile.lock
|
164
|
-
- gemfiles/
|
165
|
-
- gemfiles/mongo_mapper-0.
|
166
|
-
- gemfiles/mongo_mapper-0.
|
167
|
-
- gemfiles/
|
168
|
-
- gemfiles/
|
169
|
-
- gemfiles/mongo_mapper-0.6.10.gemfile.lock
|
170
|
-
- gemfiles/mongo_mapper-0.7.0.gemfile
|
292
|
+
- gemfiles/graphviz-1.0.3.gemfile
|
293
|
+
- gemfiles/mongo_mapper-0.8.6.gemfile.lock
|
294
|
+
- gemfiles/mongo_mapper-0.8.0.gemfile
|
295
|
+
- gemfiles/active_record-2.1.0.gemfile
|
296
|
+
- gemfiles/graphviz-0.9.17.gemfile.lock
|
171
297
|
- gemfiles/mongo_mapper-0.7.0.gemfile.lock
|
172
|
-
- gemfiles/mongo_mapper-0.
|
298
|
+
- gemfiles/mongo_mapper-0.10.0.gemfile
|
299
|
+
- gemfiles/sequel-3.24.0.gemfile.lock
|
300
|
+
- gemfiles/active_model-3.0.0.gemfile
|
301
|
+
- gemfiles/sequel-3.14.0.gemfile
|
173
302
|
- gemfiles/mongo_mapper-0.7.5.gemfile.lock
|
174
|
-
- gemfiles/
|
175
|
-
- gemfiles/
|
176
|
-
- gemfiles/
|
177
|
-
- gemfiles/
|
178
|
-
- gemfiles/mongo_mapper-0.
|
179
|
-
- gemfiles/
|
180
|
-
- gemfiles/
|
181
|
-
- gemfiles/
|
182
|
-
- gemfiles/
|
183
|
-
- gemfiles/
|
303
|
+
- gemfiles/active_record-3.2.13.rc1.gemfile
|
304
|
+
- gemfiles/mongoid-2.2.4.gemfile
|
305
|
+
- gemfiles/active_model-3.2.13.rc1.gemfile.lock
|
306
|
+
- gemfiles/mongoid-2.6.0.gemfile.lock
|
307
|
+
- gemfiles/mongo_mapper-0.6.0.gemfile.lock
|
308
|
+
- gemfiles/sequel-3.29.0.gemfile.lock
|
309
|
+
- gemfiles/sequel-2.8.0.gemfile.lock
|
310
|
+
- gemfiles/sequel-3.4.0.gemfile.lock
|
311
|
+
- gemfiles/sequel-3.44.0.gemfile
|
312
|
+
- gemfiles/data_mapper-0.9.7.gemfile.lock
|
184
313
|
- gemfiles/mongoid-2.0.0.gemfile
|
185
|
-
- gemfiles/
|
186
|
-
- gemfiles/mongoid-2.
|
314
|
+
- gemfiles/sequel-2.12.0.gemfile.lock
|
315
|
+
- gemfiles/mongoid-2.6.0.gemfile
|
316
|
+
- gemfiles/mongo_mapper-0.9.0.gemfile
|
317
|
+
- gemfiles/data_mapper-1.0.1.gemfile
|
318
|
+
- gemfiles/active_record-2.3.12.gemfile.lock
|
319
|
+
- gemfiles/graphviz-0.9.17.gemfile
|
320
|
+
- gemfiles/mongoid-3.0.22.gemfile.lock
|
321
|
+
- gemfiles/active_model-3.2.1.gemfile
|
322
|
+
- gemfiles/data_mapper-1.2.0.gemfile
|
323
|
+
- gemfiles/active_record-2.1.2.gemfile.lock
|
324
|
+
- gemfiles/mongo_mapper-0.12.0.gemfile.lock
|
187
325
|
- gemfiles/mongoid-2.1.4.gemfile.lock
|
188
|
-
- gemfiles/mongoid-2.2.
|
189
|
-
- gemfiles/
|
190
|
-
- gemfiles/mongoid-2.3.3.gemfile
|
191
|
-
- gemfiles/mongoid-2.3.3.gemfile.lock
|
192
|
-
- gemfiles/sequel-2.11.0.gemfile
|
193
|
-
- gemfiles/sequel-2.11.0.gemfile.lock
|
326
|
+
- gemfiles/mongoid-2.5.2.gemfile.lock
|
327
|
+
- gemfiles/active_record-2.0.5.gemfile.lock
|
194
328
|
- gemfiles/sequel-2.12.0.gemfile
|
195
|
-
- gemfiles/
|
196
|
-
- gemfiles/
|
197
|
-
- gemfiles/
|
198
|
-
- gemfiles/
|
199
|
-
- gemfiles/
|
200
|
-
- gemfiles/
|
201
|
-
- gemfiles/
|
202
|
-
- gemfiles/
|
203
|
-
- gemfiles/sequel-3.14.0.gemfile.lock
|
329
|
+
- gemfiles/mongoid-2.1.4.gemfile
|
330
|
+
- gemfiles/mongo_mapper-0.8.3.gemfile.lock
|
331
|
+
- gemfiles/data_mapper-1.0.0.gemfile.lock
|
332
|
+
- gemfiles/mongo_mapper-0.5.8.gemfile
|
333
|
+
- gemfiles/active_model-3.0.5.gemfile.lock
|
334
|
+
- gemfiles/active_model-3.1.1.gemfile.lock
|
335
|
+
- gemfiles/mongo_mapper-0.6.10.gemfile
|
336
|
+
- gemfiles/mongo_mapper-0.8.4.gemfile
|
204
337
|
- gemfiles/sequel-3.23.0.gemfile
|
205
|
-
- gemfiles/
|
206
|
-
- gemfiles/
|
207
|
-
- gemfiles/
|
208
|
-
- gemfiles/
|
209
|
-
- gemfiles/
|
210
|
-
-
|
211
|
-
-
|
212
|
-
- lib/state_machine/assertions.rb
|
213
|
-
- lib/state_machine/branch.rb
|
214
|
-
- lib/state_machine/callback.rb
|
215
|
-
- lib/state_machine/core.rb
|
216
|
-
- lib/state_machine/core_ext.rb
|
217
|
-
- lib/state_machine/core_ext/class/state_machine.rb
|
218
|
-
- lib/state_machine/error.rb
|
219
|
-
- lib/state_machine/eval_helpers.rb
|
220
|
-
- lib/state_machine/event.rb
|
221
|
-
- lib/state_machine/event_collection.rb
|
222
|
-
- lib/state_machine/extensions.rb
|
223
|
-
- lib/state_machine/helper_module.rb
|
224
|
-
- lib/state_machine/initializers.rb
|
225
|
-
- lib/state_machine/initializers/merb.rb
|
226
|
-
- lib/state_machine/initializers/rails.rb
|
227
|
-
- lib/state_machine/integrations.rb
|
228
|
-
- lib/state_machine/integrations/active_model.rb
|
229
|
-
- lib/state_machine/integrations/active_model/locale.rb
|
230
|
-
- lib/state_machine/integrations/active_model/observer.rb
|
231
|
-
- lib/state_machine/integrations/active_model/versions.rb
|
232
|
-
- lib/state_machine/integrations/active_record.rb
|
233
|
-
- lib/state_machine/integrations/active_record/locale.rb
|
234
|
-
- lib/state_machine/integrations/active_record/versions.rb
|
235
|
-
- lib/state_machine/integrations/base.rb
|
236
|
-
- lib/state_machine/integrations/data_mapper.rb
|
237
|
-
- lib/state_machine/integrations/data_mapper/observer.rb
|
238
|
-
- lib/state_machine/integrations/data_mapper/versions.rb
|
239
|
-
- lib/state_machine/integrations/mongo_mapper.rb
|
240
|
-
- lib/state_machine/integrations/mongo_mapper/locale.rb
|
241
|
-
- lib/state_machine/integrations/mongo_mapper/versions.rb
|
242
|
-
- lib/state_machine/integrations/mongoid.rb
|
243
|
-
- lib/state_machine/integrations/mongoid/locale.rb
|
244
|
-
- lib/state_machine/integrations/mongoid/versions.rb
|
245
|
-
- lib/state_machine/integrations/sequel.rb
|
246
|
-
- lib/state_machine/integrations/sequel/versions.rb
|
247
|
-
- lib/state_machine/machine.rb
|
248
|
-
- lib/state_machine/machine_collection.rb
|
249
|
-
- lib/state_machine/macro_methods.rb
|
250
|
-
- lib/state_machine/matcher.rb
|
251
|
-
- lib/state_machine/matcher_helpers.rb
|
252
|
-
- lib/state_machine/node_collection.rb
|
253
|
-
- lib/state_machine/path.rb
|
254
|
-
- lib/state_machine/path_collection.rb
|
255
|
-
- lib/state_machine/state.rb
|
256
|
-
- lib/state_machine/state_collection.rb
|
257
|
-
- lib/state_machine/state_context.rb
|
258
|
-
- lib/state_machine/transition.rb
|
259
|
-
- lib/state_machine/transition_collection.rb
|
260
|
-
- lib/state_machine/version.rb
|
261
|
-
- lib/tasks/state_machine.rake
|
262
|
-
- lib/tasks/state_machine.rb
|
263
|
-
- state_machine.gemspec
|
264
|
-
- test/files/en.yml
|
338
|
+
- gemfiles/active_record-2.0.0.gemfile
|
339
|
+
- gemfiles/active_record-3.1.1.gemfile.lock
|
340
|
+
- gemfiles/active_model-3.2.12.gemfile.lock
|
341
|
+
- gemfiles/data_mapper-0.9.7.gemfile
|
342
|
+
- gemfiles/active_record-3.0.0.gemfile
|
343
|
+
- Appraisals
|
344
|
+
- Rakefile
|
265
345
|
- test/files/switch.rb
|
266
|
-
- test/
|
346
|
+
- test/files/en.yml
|
267
347
|
- test/test_helper.rb
|
268
|
-
- test/unit/
|
269
|
-
- test/unit/
|
270
|
-
- test/unit/
|
271
|
-
- test/unit/error_test.rb
|
272
|
-
- test/unit/eval_helpers_test.rb
|
273
|
-
- test/unit/event_collection_test.rb
|
274
|
-
- test/unit/event_test.rb
|
348
|
+
- test/unit/matcher_helpers_test.rb
|
349
|
+
- test/unit/machine_collection_test.rb
|
350
|
+
- test/unit/machine_test.rb
|
275
351
|
- test/unit/helper_module_test.rb
|
352
|
+
- test/unit/state_collection_test.rb
|
353
|
+
- test/unit/transition_collection_test.rb
|
354
|
+
- test/unit/state_test.rb
|
355
|
+
- test/unit/branch_test.rb
|
356
|
+
- test/unit/state_context_test.rb
|
357
|
+
- test/unit/integrations/mongoid_test.rb
|
276
358
|
- test/unit/integrations/active_model_test.rb
|
277
|
-
- test/unit/integrations/active_record_test.rb
|
278
|
-
- test/unit/integrations/base_test.rb
|
279
|
-
- test/unit/integrations/data_mapper_test.rb
|
280
359
|
- test/unit/integrations/mongo_mapper_test.rb
|
281
|
-
- test/unit/integrations/mongoid_test.rb
|
282
360
|
- test/unit/integrations/sequel_test.rb
|
283
|
-
- test/unit/
|
284
|
-
- test/unit/
|
285
|
-
- test/unit/
|
361
|
+
- test/unit/integrations/active_record_test.rb
|
362
|
+
- test/unit/integrations/data_mapper_test.rb
|
363
|
+
- test/unit/integrations/base_test.rb
|
364
|
+
- test/unit/transition_test.rb
|
365
|
+
- test/unit/graph_test.rb
|
286
366
|
- test/unit/invalid_transition_test.rb
|
287
|
-
- test/unit/
|
288
|
-
- test/unit/
|
289
|
-
- test/unit/
|
367
|
+
- test/unit/event_collection_test.rb
|
368
|
+
- test/unit/path_test.rb
|
369
|
+
- test/unit/callback_test.rb
|
370
|
+
- test/unit/state_machine_test.rb
|
290
371
|
- test/unit/matcher_test.rb
|
291
372
|
- test/unit/node_collection_test.rb
|
373
|
+
- test/unit/invalid_event_test.rb
|
374
|
+
- test/unit/event_test.rb
|
375
|
+
- test/unit/invalid_parallel_transition_test.rb
|
376
|
+
- test/unit/eval_helpers_test.rb
|
377
|
+
- test/unit/integrations_test.rb
|
378
|
+
- test/unit/assertions_test.rb
|
379
|
+
- test/unit/error_test.rb
|
292
380
|
- test/unit/path_collection_test.rb
|
293
|
-
- test/
|
294
|
-
- test/unit/state_collection_test.rb
|
295
|
-
- test/unit/state_context_test.rb
|
296
|
-
- test/unit/state_machine_test.rb
|
297
|
-
- test/unit/state_test.rb
|
298
|
-
- test/unit/transition_collection_test.rb
|
299
|
-
- test/unit/transition_test.rb
|
300
|
-
has_rdoc: true
|
381
|
+
- test/functional/state_machine_test.rb
|
301
382
|
homepage: http://www.pluginaweek.org
|
302
383
|
licenses: []
|
303
384
|
|
@@ -332,44 +413,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
413
|
requirements: []
|
333
414
|
|
334
415
|
rubyforge_project:
|
335
|
-
rubygems_version: 1.
|
416
|
+
rubygems_version: 1.8.24
|
336
417
|
signing_key:
|
337
418
|
specification_version: 3
|
338
419
|
summary: State machines for attributes
|
339
420
|
test_files:
|
340
|
-
- test/files/en.yml
|
341
421
|
- test/files/switch.rb
|
342
|
-
- test/
|
422
|
+
- test/files/en.yml
|
343
423
|
- test/test_helper.rb
|
344
|
-
- test/unit/
|
345
|
-
- test/unit/
|
346
|
-
- test/unit/
|
347
|
-
- test/unit/error_test.rb
|
348
|
-
- test/unit/eval_helpers_test.rb
|
349
|
-
- test/unit/event_collection_test.rb
|
350
|
-
- test/unit/event_test.rb
|
424
|
+
- test/unit/matcher_helpers_test.rb
|
425
|
+
- test/unit/machine_collection_test.rb
|
426
|
+
- test/unit/machine_test.rb
|
351
427
|
- test/unit/helper_module_test.rb
|
428
|
+
- test/unit/state_collection_test.rb
|
429
|
+
- test/unit/transition_collection_test.rb
|
430
|
+
- test/unit/state_test.rb
|
431
|
+
- test/unit/branch_test.rb
|
432
|
+
- test/unit/state_context_test.rb
|
433
|
+
- test/unit/integrations/mongoid_test.rb
|
352
434
|
- test/unit/integrations/active_model_test.rb
|
353
|
-
- test/unit/integrations/active_record_test.rb
|
354
|
-
- test/unit/integrations/base_test.rb
|
355
|
-
- test/unit/integrations/data_mapper_test.rb
|
356
435
|
- test/unit/integrations/mongo_mapper_test.rb
|
357
|
-
- test/unit/integrations/mongoid_test.rb
|
358
436
|
- test/unit/integrations/sequel_test.rb
|
359
|
-
- test/unit/
|
360
|
-
- test/unit/
|
361
|
-
- test/unit/
|
437
|
+
- test/unit/integrations/active_record_test.rb
|
438
|
+
- test/unit/integrations/data_mapper_test.rb
|
439
|
+
- test/unit/integrations/base_test.rb
|
440
|
+
- test/unit/transition_test.rb
|
441
|
+
- test/unit/graph_test.rb
|
362
442
|
- test/unit/invalid_transition_test.rb
|
363
|
-
- test/unit/
|
364
|
-
- test/unit/
|
365
|
-
- test/unit/
|
443
|
+
- test/unit/event_collection_test.rb
|
444
|
+
- test/unit/path_test.rb
|
445
|
+
- test/unit/callback_test.rb
|
446
|
+
- test/unit/state_machine_test.rb
|
366
447
|
- test/unit/matcher_test.rb
|
367
448
|
- test/unit/node_collection_test.rb
|
449
|
+
- test/unit/invalid_event_test.rb
|
450
|
+
- test/unit/event_test.rb
|
451
|
+
- test/unit/invalid_parallel_transition_test.rb
|
452
|
+
- test/unit/eval_helpers_test.rb
|
453
|
+
- test/unit/integrations_test.rb
|
454
|
+
- test/unit/assertions_test.rb
|
455
|
+
- test/unit/error_test.rb
|
368
456
|
- test/unit/path_collection_test.rb
|
369
|
-
- test/
|
370
|
-
- test/unit/state_collection_test.rb
|
371
|
-
- test/unit/state_context_test.rb
|
372
|
-
- test/unit/state_machine_test.rb
|
373
|
-
- test/unit/state_test.rb
|
374
|
-
- test/unit/transition_collection_test.rb
|
375
|
-
- test/unit/transition_test.rb
|
457
|
+
- test/functional/state_machine_test.rb
|