state_machine_deuxito 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +8 -0
- data/.yardopts +5 -0
- data/Appraisals +12 -0
- data/CHANGELOG.md +502 -0
- data/Gemfile +3 -0
- data/LICENSE +20 -0
- data/README.md +8 -0
- data/Rakefile +41 -0
- data/TODO.md +2 -0
- data/examples/AutoShop_state.png +0 -0
- data/examples/Car_state.png +0 -0
- data/examples/Gemfile +5 -0
- data/examples/Gemfile.lock +14 -0
- data/examples/TrafficLight_state.png +0 -0
- data/examples/Vehicle_state.png +0 -0
- data/examples/auto_shop.rb +13 -0
- data/examples/car.rb +21 -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/merb-rest/controller.rb +51 -0
- data/examples/merb-rest/model.rb +28 -0
- data/examples/merb-rest/view_edit.html.erb +24 -0
- data/examples/merb-rest/view_index.html.erb +23 -0
- data/examples/merb-rest/view_new.html.erb +13 -0
- data/examples/merb-rest/view_show.html.erb +17 -0
- data/examples/rails-rest/controller.rb +43 -0
- data/examples/rails-rest/migration.rb +7 -0
- data/examples/rails-rest/model.rb +23 -0
- data/examples/rails-rest/view__form.html.erb +34 -0
- data/examples/rails-rest/view_edit.html.erb +6 -0
- data/examples/rails-rest/view_index.html.erb +25 -0
- data/examples/rails-rest/view_new.html.erb +5 -0
- data/examples/rails-rest/view_show.html.erb +19 -0
- data/examples/traffic_light.rb +9 -0
- data/examples/vehicle.rb +33 -0
- data/gemfiles/4.2.11.1.gemfile +9 -0
- data/gemfiles/4.2.11.1.gemfile.lock +57 -0
- data/gemfiles/active_model_3.0.0.gemfile +7 -0
- data/gemfiles/active_model_3.0.0.gemfile.lock +35 -0
- data/gemfiles/active_model_3.0.5.gemfile +7 -0
- data/gemfiles/active_model_3.0.5.gemfile.lock +35 -0
- data/gemfiles/active_model_3.1.1.gemfile +7 -0
- data/gemfiles/active_model_3.1.1.gemfile.lock +36 -0
- data/gemfiles/active_model_3.2.1.gemfile +7 -0
- data/gemfiles/active_model_3.2.12.gemfile +7 -0
- data/gemfiles/active_model_3.2.12.gemfile.lock +36 -0
- data/gemfiles/active_model_3.2.13.rc1.gemfile +7 -0
- 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 +9 -0
- data/gemfiles/active_record_2.0.0.gemfile.lock +39 -0
- data/gemfiles/active_record_2.0.5.gemfile +9 -0
- data/gemfiles/active_record_2.0.5.gemfile.lock +39 -0
- data/gemfiles/active_record_2.1.0.gemfile +9 -0
- data/gemfiles/active_record_2.1.0.gemfile.lock +39 -0
- data/gemfiles/active_record_2.1.2.gemfile +9 -0
- data/gemfiles/active_record_2.1.2.gemfile.lock +39 -0
- data/gemfiles/active_record_2.2.3.gemfile +9 -0
- data/gemfiles/active_record_2.2.3.gemfile.lock +39 -0
- data/gemfiles/active_record_2.3.12.gemfile +9 -0
- data/gemfiles/active_record_2.3.12.gemfile.lock +39 -0
- 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 +9 -0
- data/gemfiles/active_record_3.0.0.gemfile.lock +51 -0
- data/gemfiles/active_record_3.0.5.gemfile +9 -0
- data/gemfiles/active_record_3.0.5.gemfile.lock +50 -0
- data/gemfiles/active_record_3.1.1.gemfile +9 -0
- data/gemfiles/active_record_3.1.1.gemfile.lock +51 -0
- 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 +13 -0
- data/gemfiles/data_mapper_0.10.2.gemfile.lock +56 -0
- data/gemfiles/data_mapper_0.9.11.gemfile +13 -0
- data/gemfiles/data_mapper_0.9.11.gemfile.lock +71 -0
- data/gemfiles/data_mapper_0.9.4.gemfile +12 -0
- data/gemfiles/data_mapper_0.9.4.gemfile.lock +70 -0
- data/gemfiles/data_mapper_0.9.7.gemfile +13 -0
- data/gemfiles/data_mapper_0.9.7.gemfile.lock +67 -0
- data/gemfiles/data_mapper_1.0.0.gemfile +12 -0
- data/gemfiles/data_mapper_1.0.0.gemfile.lock +63 -0
- data/gemfiles/data_mapper_1.0.1.gemfile +12 -0
- data/gemfiles/data_mapper_1.0.1.gemfile.lock +63 -0
- data/gemfiles/data_mapper_1.0.2.gemfile +12 -0
- data/gemfiles/data_mapper_1.0.2.gemfile.lock +63 -0
- data/gemfiles/data_mapper_1.1.0.gemfile +12 -0
- data/gemfiles/data_mapper_1.1.0.gemfile.lock +61 -0
- data/gemfiles/data_mapper_1.2.0.gemfile +12 -0
- data/gemfiles/data_mapper_1.2.0.gemfile.lock +61 -0
- data/gemfiles/default.gemfile +5 -0
- data/gemfiles/default.gemfile.lock +30 -0
- 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 +7 -0
- data/gemfiles/graphviz_0.9.21.gemfile.lock +29 -0
- data/gemfiles/graphviz_1.0.0.gemfile +7 -0
- data/gemfiles/graphviz_1.0.0.gemfile.lock +29 -0
- 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 +8 -0
- data/gemfiles/mongo_mapper_0.10.0.gemfile.lock +47 -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 +8 -0
- data/gemfiles/mongo_mapper_0.5.5.gemfile.lock +36 -0
- data/gemfiles/mongo_mapper_0.5.8.gemfile +8 -0
- data/gemfiles/mongo_mapper_0.5.8.gemfile.lock +36 -0
- data/gemfiles/mongo_mapper_0.6.0.gemfile +8 -0
- data/gemfiles/mongo_mapper_0.6.0.gemfile.lock +36 -0
- data/gemfiles/mongo_mapper_0.6.10.gemfile +8 -0
- data/gemfiles/mongo_mapper_0.6.10.gemfile.lock +36 -0
- data/gemfiles/mongo_mapper_0.7.0.gemfile +8 -0
- data/gemfiles/mongo_mapper_0.7.0.gemfile.lock +36 -0
- data/gemfiles/mongo_mapper_0.7.5.gemfile +8 -0
- data/gemfiles/mongo_mapper_0.7.5.gemfile.lock +39 -0
- data/gemfiles/mongo_mapper_0.8.0.gemfile +10 -0
- data/gemfiles/mongo_mapper_0.8.0.gemfile.lock +43 -0
- data/gemfiles/mongo_mapper_0.8.3.gemfile +10 -0
- data/gemfiles/mongo_mapper_0.8.3.gemfile.lock +43 -0
- data/gemfiles/mongo_mapper_0.8.4.gemfile +8 -0
- data/gemfiles/mongo_mapper_0.8.4.gemfile.lock +42 -0
- data/gemfiles/mongo_mapper_0.8.6.gemfile +8 -0
- data/gemfiles/mongo_mapper_0.8.6.gemfile.lock +42 -0
- data/gemfiles/mongo_mapper_0.9.0.gemfile +7 -0
- data/gemfiles/mongo_mapper_0.9.0.gemfile.lock +45 -0
- data/gemfiles/mongoid_2.0.0.gemfile +9 -0
- data/gemfiles/mongoid_2.0.0.gemfile.lock +49 -0
- data/gemfiles/mongoid_2.1.4.gemfile +9 -0
- data/gemfiles/mongoid_2.1.4.gemfile.lock +47 -0
- data/gemfiles/mongoid_2.2.4.gemfile +9 -0
- data/gemfiles/mongoid_2.2.4.gemfile.lock +47 -0
- data/gemfiles/mongoid_2.3.3.gemfile +9 -0
- data/gemfiles/mongoid_2.3.3.gemfile.lock +47 -0
- 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 +9 -0
- data/gemfiles/sequel_2.11.0.gemfile.lock +33 -0
- data/gemfiles/sequel_2.12.0.gemfile +9 -0
- data/gemfiles/sequel_2.12.0.gemfile.lock +33 -0
- data/gemfiles/sequel_2.8.0.gemfile +9 -0
- data/gemfiles/sequel_2.8.0.gemfile.lock +33 -0
- data/gemfiles/sequel_3.0.0.gemfile +9 -0
- data/gemfiles/sequel_3.0.0.gemfile.lock +33 -0
- 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 +9 -0
- data/gemfiles/sequel_3.13.0.gemfile.lock +33 -0
- data/gemfiles/sequel_3.14.0.gemfile +9 -0
- data/gemfiles/sequel_3.14.0.gemfile.lock +33 -0
- data/gemfiles/sequel_3.23.0.gemfile +9 -0
- data/gemfiles/sequel_3.23.0.gemfile.lock +33 -0
- data/gemfiles/sequel_3.24.0.gemfile +9 -0
- data/gemfiles/sequel_3.24.0.gemfile.lock +33 -0
- data/gemfiles/sequel_3.29.0.gemfile +9 -0
- data/gemfiles/sequel_3.29.0.gemfile.lock +33 -0
- 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/init.rb +1 -0
- data/lib/state_machine.rb +8 -0
- data/lib/state_machine/assertions.rb +36 -0
- data/lib/state_machine/branch.rb +225 -0
- data/lib/state_machine/callback.rb +236 -0
- data/lib/state_machine/core.rb +12 -0
- data/lib/state_machine/core_ext.rb +2 -0
- data/lib/state_machine/core_ext/class/state_machine.rb +5 -0
- data/lib/state_machine/error.rb +13 -0
- data/lib/state_machine/eval_helpers.rb +87 -0
- data/lib/state_machine/event.rb +257 -0
- data/lib/state_machine/event_collection.rb +141 -0
- data/lib/state_machine/extensions.rb +149 -0
- data/lib/state_machine/graph.rb +92 -0
- data/lib/state_machine/helper_module.rb +17 -0
- data/lib/state_machine/initializers.rb +4 -0
- data/lib/state_machine/initializers/merb.rb +1 -0
- data/lib/state_machine/initializers/rails.rb +25 -0
- data/lib/state_machine/integrations.rb +121 -0
- data/lib/state_machine/integrations/active_model.rb +585 -0
- data/lib/state_machine/integrations/active_model/locale.rb +11 -0
- data/lib/state_machine/integrations/active_model/observer.rb +33 -0
- data/lib/state_machine/integrations/active_model/observer_update.rb +42 -0
- data/lib/state_machine/integrations/active_model/versions.rb +31 -0
- data/lib/state_machine/integrations/active_record.rb +552 -0
- data/lib/state_machine/integrations/active_record/locale.rb +20 -0
- data/lib/state_machine/integrations/active_record/versions.rb +123 -0
- data/lib/state_machine/integrations/base.rb +100 -0
- data/lib/state_machine/integrations/data_mapper.rb +511 -0
- data/lib/state_machine/integrations/data_mapper/observer.rb +210 -0
- data/lib/state_machine/integrations/data_mapper/versions.rb +85 -0
- data/lib/state_machine/integrations/mongo_mapper.rb +389 -0
- data/lib/state_machine/integrations/mongo_mapper/locale.rb +4 -0
- data/lib/state_machine/integrations/mongo_mapper/versions.rb +89 -0
- data/lib/state_machine/integrations/mongoid.rb +465 -0
- data/lib/state_machine/integrations/mongoid/locale.rb +4 -0
- data/lib/state_machine/integrations/mongoid/versions.rb +81 -0
- data/lib/state_machine/integrations/sequel.rb +486 -0
- data/lib/state_machine/integrations/sequel/versions.rb +95 -0
- data/lib/state_machine/machine.rb +2292 -0
- data/lib/state_machine/machine_collection.rb +86 -0
- data/lib/state_machine/macro_methods.rb +522 -0
- data/lib/state_machine/matcher.rb +123 -0
- data/lib/state_machine/matcher_helpers.rb +54 -0
- data/lib/state_machine/node_collection.rb +222 -0
- data/lib/state_machine/path.rb +120 -0
- data/lib/state_machine/path_collection.rb +90 -0
- data/lib/state_machine/state.rb +297 -0
- data/lib/state_machine/state_collection.rb +112 -0
- data/lib/state_machine/state_context.rb +138 -0
- data/lib/state_machine/transition.rb +470 -0
- data/lib/state_machine/transition_collection.rb +245 -0
- data/lib/state_machine/version.rb +3 -0
- 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.rake +1 -0
- data/lib/tasks/state_machine.rb +30 -0
- data/lib/yard-state_machine.rb +2 -0
- data/state_machine.gemspec +21 -0
- data/test/files/en.yml +17 -0
- data/test/files/switch.rb +15 -0
- data/test/functional/state_machine_test.rb +1067 -0
- data/test/test_helper.rb +8 -0
- data/test/unit/assertions_test.rb +40 -0
- data/test/unit/branch_test.rb +969 -0
- data/test/unit/callback_test.rb +704 -0
- data/test/unit/error_test.rb +43 -0
- data/test/unit/eval_helpers_test.rb +270 -0
- data/test/unit/event_collection_test.rb +398 -0
- data/test/unit/event_test.rb +1196 -0
- data/test/unit/graph_test.rb +98 -0
- data/test/unit/helper_module_test.rb +17 -0
- data/test/unit/integrations/active_model_test.rb +1245 -0
- data/test/unit/integrations/active_record_test.rb +2551 -0
- data/test/unit/integrations/base_test.rb +104 -0
- data/test/unit/integrations/data_mapper_test.rb +2194 -0
- data/test/unit/integrations/mongo_mapper_test.rb +2026 -0
- data/test/unit/integrations/mongoid_test.rb +2309 -0
- data/test/unit/integrations/sequel_test.rb +1896 -0
- data/test/unit/integrations_test.rb +83 -0
- data/test/unit/invalid_event_test.rb +20 -0
- data/test/unit/invalid_parallel_transition_test.rb +18 -0
- data/test/unit/invalid_transition_test.rb +115 -0
- data/test/unit/machine_collection_test.rb +603 -0
- data/test/unit/machine_test.rb +3431 -0
- data/test/unit/matcher_helpers_test.rb +37 -0
- data/test/unit/matcher_test.rb +155 -0
- data/test/unit/node_collection_test.rb +362 -0
- data/test/unit/path_collection_test.rb +266 -0
- data/test/unit/path_test.rb +485 -0
- data/test/unit/state_collection_test.rb +352 -0
- data/test/unit/state_context_test.rb +441 -0
- data/test/unit/state_machine_test.rb +31 -0
- data/test/unit/state_test.rb +1101 -0
- data/test/unit/transition_collection_test.rb +2168 -0
- data/test/unit/transition_test.rb +1558 -0
- metadata +451 -0
metadata
ADDED
@@ -0,0 +1,451 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: state_machine_deuxito
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Cwro Wren
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-04-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: simplecov
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: appraisal
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: test-unit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Fork of seuros/state_machine for use by DU
|
70
|
+
email:
|
71
|
+
executables: []
|
72
|
+
extensions: []
|
73
|
+
extra_rdoc_files:
|
74
|
+
- README.md
|
75
|
+
- CHANGELOG.md
|
76
|
+
- LICENSE
|
77
|
+
files:
|
78
|
+
- ".gitignore"
|
79
|
+
- ".travis.yml"
|
80
|
+
- ".yardopts"
|
81
|
+
- Appraisals
|
82
|
+
- CHANGELOG.md
|
83
|
+
- Gemfile
|
84
|
+
- LICENSE
|
85
|
+
- README.md
|
86
|
+
- Rakefile
|
87
|
+
- TODO.md
|
88
|
+
- examples/AutoShop_state.png
|
89
|
+
- examples/Car_state.png
|
90
|
+
- examples/Gemfile
|
91
|
+
- examples/Gemfile.lock
|
92
|
+
- examples/TrafficLight_state.png
|
93
|
+
- examples/Vehicle_state.png
|
94
|
+
- examples/auto_shop.rb
|
95
|
+
- examples/car.rb
|
96
|
+
- examples/doc/AutoShop.html
|
97
|
+
- examples/doc/AutoShop_state.png
|
98
|
+
- examples/doc/Car.html
|
99
|
+
- examples/doc/Car_state.png
|
100
|
+
- examples/doc/TrafficLight.html
|
101
|
+
- examples/doc/TrafficLight_state.png
|
102
|
+
- examples/doc/Vehicle.html
|
103
|
+
- examples/doc/Vehicle_state.png
|
104
|
+
- examples/doc/_index.html
|
105
|
+
- examples/doc/class_list.html
|
106
|
+
- examples/doc/css/common.css
|
107
|
+
- examples/doc/css/full_list.css
|
108
|
+
- examples/doc/css/style.css
|
109
|
+
- examples/doc/file_list.html
|
110
|
+
- examples/doc/frames.html
|
111
|
+
- examples/doc/index.html
|
112
|
+
- examples/doc/js/app.js
|
113
|
+
- examples/doc/js/full_list.js
|
114
|
+
- examples/doc/js/jquery.js
|
115
|
+
- examples/doc/method_list.html
|
116
|
+
- examples/doc/top-level-namespace.html
|
117
|
+
- examples/merb-rest/controller.rb
|
118
|
+
- examples/merb-rest/model.rb
|
119
|
+
- examples/merb-rest/view_edit.html.erb
|
120
|
+
- examples/merb-rest/view_index.html.erb
|
121
|
+
- examples/merb-rest/view_new.html.erb
|
122
|
+
- examples/merb-rest/view_show.html.erb
|
123
|
+
- examples/rails-rest/controller.rb
|
124
|
+
- examples/rails-rest/migration.rb
|
125
|
+
- examples/rails-rest/model.rb
|
126
|
+
- examples/rails-rest/view__form.html.erb
|
127
|
+
- examples/rails-rest/view_edit.html.erb
|
128
|
+
- examples/rails-rest/view_index.html.erb
|
129
|
+
- examples/rails-rest/view_new.html.erb
|
130
|
+
- examples/rails-rest/view_show.html.erb
|
131
|
+
- examples/traffic_light.rb
|
132
|
+
- examples/vehicle.rb
|
133
|
+
- gemfiles/4.2.11.1.gemfile
|
134
|
+
- gemfiles/4.2.11.1.gemfile.lock
|
135
|
+
- gemfiles/active_model_3.0.0.gemfile
|
136
|
+
- gemfiles/active_model_3.0.0.gemfile.lock
|
137
|
+
- gemfiles/active_model_3.0.5.gemfile
|
138
|
+
- gemfiles/active_model_3.0.5.gemfile.lock
|
139
|
+
- gemfiles/active_model_3.1.1.gemfile
|
140
|
+
- gemfiles/active_model_3.1.1.gemfile.lock
|
141
|
+
- gemfiles/active_model_3.2.1.gemfile
|
142
|
+
- gemfiles/active_model_3.2.12.gemfile
|
143
|
+
- gemfiles/active_model_3.2.12.gemfile.lock
|
144
|
+
- gemfiles/active_model_3.2.13.rc1.gemfile
|
145
|
+
- gemfiles/active_model_3.2.13.rc1.gemfile.lock
|
146
|
+
- gemfiles/active_model_4.0.0.gemfile
|
147
|
+
- gemfiles/active_model_4.0.0.gemfile.lock
|
148
|
+
- gemfiles/active_record_2.0.0.gemfile
|
149
|
+
- gemfiles/active_record_2.0.0.gemfile.lock
|
150
|
+
- gemfiles/active_record_2.0.5.gemfile
|
151
|
+
- gemfiles/active_record_2.0.5.gemfile.lock
|
152
|
+
- gemfiles/active_record_2.1.0.gemfile
|
153
|
+
- gemfiles/active_record_2.1.0.gemfile.lock
|
154
|
+
- gemfiles/active_record_2.1.2.gemfile
|
155
|
+
- gemfiles/active_record_2.1.2.gemfile.lock
|
156
|
+
- gemfiles/active_record_2.2.3.gemfile
|
157
|
+
- gemfiles/active_record_2.2.3.gemfile.lock
|
158
|
+
- gemfiles/active_record_2.3.12.gemfile
|
159
|
+
- gemfiles/active_record_2.3.12.gemfile.lock
|
160
|
+
- gemfiles/active_record_2.3.5.gemfile
|
161
|
+
- gemfiles/active_record_2.3.5.gemfile.lock
|
162
|
+
- gemfiles/active_record_3.0.0.gemfile
|
163
|
+
- gemfiles/active_record_3.0.0.gemfile.lock
|
164
|
+
- gemfiles/active_record_3.0.5.gemfile
|
165
|
+
- gemfiles/active_record_3.0.5.gemfile.lock
|
166
|
+
- gemfiles/active_record_3.1.1.gemfile
|
167
|
+
- gemfiles/active_record_3.1.1.gemfile.lock
|
168
|
+
- gemfiles/active_record_3.2.12.gemfile
|
169
|
+
- gemfiles/active_record_3.2.12.gemfile.lock
|
170
|
+
- gemfiles/active_record_3.2.13.rc1.gemfile
|
171
|
+
- gemfiles/active_record_3.2.13.rc1.gemfile.lock
|
172
|
+
- gemfiles/active_record_4.0.0.gemfile
|
173
|
+
- gemfiles/active_record_4.0.0.gemfile.lock
|
174
|
+
- gemfiles/data_mapper_0.10.2.gemfile
|
175
|
+
- gemfiles/data_mapper_0.10.2.gemfile.lock
|
176
|
+
- gemfiles/data_mapper_0.9.11.gemfile
|
177
|
+
- gemfiles/data_mapper_0.9.11.gemfile.lock
|
178
|
+
- gemfiles/data_mapper_0.9.4.gemfile
|
179
|
+
- gemfiles/data_mapper_0.9.4.gemfile.lock
|
180
|
+
- gemfiles/data_mapper_0.9.7.gemfile
|
181
|
+
- gemfiles/data_mapper_0.9.7.gemfile.lock
|
182
|
+
- gemfiles/data_mapper_1.0.0.gemfile
|
183
|
+
- gemfiles/data_mapper_1.0.0.gemfile.lock
|
184
|
+
- gemfiles/data_mapper_1.0.1.gemfile
|
185
|
+
- gemfiles/data_mapper_1.0.1.gemfile.lock
|
186
|
+
- gemfiles/data_mapper_1.0.2.gemfile
|
187
|
+
- gemfiles/data_mapper_1.0.2.gemfile.lock
|
188
|
+
- gemfiles/data_mapper_1.1.0.gemfile
|
189
|
+
- gemfiles/data_mapper_1.1.0.gemfile.lock
|
190
|
+
- gemfiles/data_mapper_1.2.0.gemfile
|
191
|
+
- gemfiles/data_mapper_1.2.0.gemfile.lock
|
192
|
+
- gemfiles/default.gemfile
|
193
|
+
- gemfiles/default.gemfile.lock
|
194
|
+
- gemfiles/graphviz_0.9.17.gemfile
|
195
|
+
- gemfiles/graphviz_0.9.17.gemfile.lock
|
196
|
+
- gemfiles/graphviz_0.9.21.gemfile
|
197
|
+
- gemfiles/graphviz_0.9.21.gemfile.lock
|
198
|
+
- gemfiles/graphviz_1.0.0.gemfile
|
199
|
+
- gemfiles/graphviz_1.0.0.gemfile.lock
|
200
|
+
- gemfiles/graphviz_1.0.3.gemfile
|
201
|
+
- gemfiles/graphviz_1.0.3.gemfile.lock
|
202
|
+
- gemfiles/graphviz_1.0.8.gemfile
|
203
|
+
- gemfiles/graphviz_1.0.8.gemfile.lock
|
204
|
+
- gemfiles/mongo_mapper_0.10.0.gemfile
|
205
|
+
- gemfiles/mongo_mapper_0.10.0.gemfile.lock
|
206
|
+
- gemfiles/mongo_mapper_0.11.2.gemfile
|
207
|
+
- gemfiles/mongo_mapper_0.11.2.gemfile.lock
|
208
|
+
- gemfiles/mongo_mapper_0.12.0.gemfile
|
209
|
+
- gemfiles/mongo_mapper_0.12.0.gemfile.lock
|
210
|
+
- gemfiles/mongo_mapper_0.5.5.gemfile
|
211
|
+
- gemfiles/mongo_mapper_0.5.5.gemfile.lock
|
212
|
+
- gemfiles/mongo_mapper_0.5.8.gemfile
|
213
|
+
- gemfiles/mongo_mapper_0.5.8.gemfile.lock
|
214
|
+
- gemfiles/mongo_mapper_0.6.0.gemfile
|
215
|
+
- gemfiles/mongo_mapper_0.6.0.gemfile.lock
|
216
|
+
- gemfiles/mongo_mapper_0.6.10.gemfile
|
217
|
+
- gemfiles/mongo_mapper_0.6.10.gemfile.lock
|
218
|
+
- gemfiles/mongo_mapper_0.7.0.gemfile
|
219
|
+
- gemfiles/mongo_mapper_0.7.0.gemfile.lock
|
220
|
+
- gemfiles/mongo_mapper_0.7.5.gemfile
|
221
|
+
- gemfiles/mongo_mapper_0.7.5.gemfile.lock
|
222
|
+
- gemfiles/mongo_mapper_0.8.0.gemfile
|
223
|
+
- gemfiles/mongo_mapper_0.8.0.gemfile.lock
|
224
|
+
- gemfiles/mongo_mapper_0.8.3.gemfile
|
225
|
+
- gemfiles/mongo_mapper_0.8.3.gemfile.lock
|
226
|
+
- gemfiles/mongo_mapper_0.8.4.gemfile
|
227
|
+
- gemfiles/mongo_mapper_0.8.4.gemfile.lock
|
228
|
+
- gemfiles/mongo_mapper_0.8.6.gemfile
|
229
|
+
- gemfiles/mongo_mapper_0.8.6.gemfile.lock
|
230
|
+
- gemfiles/mongo_mapper_0.9.0.gemfile
|
231
|
+
- gemfiles/mongo_mapper_0.9.0.gemfile.lock
|
232
|
+
- gemfiles/mongoid_2.0.0.gemfile
|
233
|
+
- gemfiles/mongoid_2.0.0.gemfile.lock
|
234
|
+
- gemfiles/mongoid_2.1.4.gemfile
|
235
|
+
- gemfiles/mongoid_2.1.4.gemfile.lock
|
236
|
+
- gemfiles/mongoid_2.2.4.gemfile
|
237
|
+
- gemfiles/mongoid_2.2.4.gemfile.lock
|
238
|
+
- gemfiles/mongoid_2.3.3.gemfile
|
239
|
+
- gemfiles/mongoid_2.3.3.gemfile.lock
|
240
|
+
- gemfiles/mongoid_2.4.0.gemfile
|
241
|
+
- gemfiles/mongoid_2.4.0.gemfile.lock
|
242
|
+
- gemfiles/mongoid_2.4.10.gemfile
|
243
|
+
- gemfiles/mongoid_2.4.10.gemfile.lock
|
244
|
+
- gemfiles/mongoid_2.5.2.gemfile
|
245
|
+
- gemfiles/mongoid_2.5.2.gemfile.lock
|
246
|
+
- gemfiles/mongoid_2.6.0.gemfile
|
247
|
+
- gemfiles/mongoid_2.6.0.gemfile.lock
|
248
|
+
- gemfiles/mongoid_3.0.0.gemfile
|
249
|
+
- gemfiles/mongoid_3.0.0.gemfile.lock
|
250
|
+
- gemfiles/mongoid_3.0.22.gemfile
|
251
|
+
- gemfiles/mongoid_3.0.22.gemfile.lock
|
252
|
+
- gemfiles/mongoid_3.1.0.gemfile
|
253
|
+
- gemfiles/mongoid_3.1.0.gemfile.lock
|
254
|
+
- gemfiles/sequel_2.11.0.gemfile
|
255
|
+
- gemfiles/sequel_2.11.0.gemfile.lock
|
256
|
+
- gemfiles/sequel_2.12.0.gemfile
|
257
|
+
- gemfiles/sequel_2.12.0.gemfile.lock
|
258
|
+
- gemfiles/sequel_2.8.0.gemfile
|
259
|
+
- gemfiles/sequel_2.8.0.gemfile.lock
|
260
|
+
- gemfiles/sequel_3.0.0.gemfile
|
261
|
+
- gemfiles/sequel_3.0.0.gemfile.lock
|
262
|
+
- gemfiles/sequel_3.10.0.gemfile
|
263
|
+
- gemfiles/sequel_3.10.0.gemfile.lock
|
264
|
+
- gemfiles/sequel_3.13.0.gemfile
|
265
|
+
- gemfiles/sequel_3.13.0.gemfile.lock
|
266
|
+
- gemfiles/sequel_3.14.0.gemfile
|
267
|
+
- gemfiles/sequel_3.14.0.gemfile.lock
|
268
|
+
- gemfiles/sequel_3.23.0.gemfile
|
269
|
+
- gemfiles/sequel_3.23.0.gemfile.lock
|
270
|
+
- gemfiles/sequel_3.24.0.gemfile
|
271
|
+
- gemfiles/sequel_3.24.0.gemfile.lock
|
272
|
+
- gemfiles/sequel_3.29.0.gemfile
|
273
|
+
- gemfiles/sequel_3.29.0.gemfile.lock
|
274
|
+
- gemfiles/sequel_3.34.0.gemfile
|
275
|
+
- gemfiles/sequel_3.34.0.gemfile.lock
|
276
|
+
- gemfiles/sequel_3.35.0.gemfile
|
277
|
+
- gemfiles/sequel_3.35.0.gemfile.lock
|
278
|
+
- gemfiles/sequel_3.4.0.gemfile
|
279
|
+
- gemfiles/sequel_3.4.0.gemfile.lock
|
280
|
+
- gemfiles/sequel_3.44.0.gemfile
|
281
|
+
- gemfiles/sequel_3.44.0.gemfile.lock
|
282
|
+
- init.rb
|
283
|
+
- lib/state_machine.rb
|
284
|
+
- lib/state_machine/assertions.rb
|
285
|
+
- lib/state_machine/branch.rb
|
286
|
+
- lib/state_machine/callback.rb
|
287
|
+
- lib/state_machine/core.rb
|
288
|
+
- lib/state_machine/core_ext.rb
|
289
|
+
- lib/state_machine/core_ext/class/state_machine.rb
|
290
|
+
- lib/state_machine/error.rb
|
291
|
+
- lib/state_machine/eval_helpers.rb
|
292
|
+
- lib/state_machine/event.rb
|
293
|
+
- lib/state_machine/event_collection.rb
|
294
|
+
- lib/state_machine/extensions.rb
|
295
|
+
- lib/state_machine/graph.rb
|
296
|
+
- lib/state_machine/helper_module.rb
|
297
|
+
- lib/state_machine/initializers.rb
|
298
|
+
- lib/state_machine/initializers/merb.rb
|
299
|
+
- lib/state_machine/initializers/rails.rb
|
300
|
+
- lib/state_machine/integrations.rb
|
301
|
+
- lib/state_machine/integrations/active_model.rb
|
302
|
+
- lib/state_machine/integrations/active_model/locale.rb
|
303
|
+
- lib/state_machine/integrations/active_model/observer.rb
|
304
|
+
- lib/state_machine/integrations/active_model/observer_update.rb
|
305
|
+
- lib/state_machine/integrations/active_model/versions.rb
|
306
|
+
- lib/state_machine/integrations/active_record.rb
|
307
|
+
- lib/state_machine/integrations/active_record/locale.rb
|
308
|
+
- lib/state_machine/integrations/active_record/versions.rb
|
309
|
+
- lib/state_machine/integrations/base.rb
|
310
|
+
- lib/state_machine/integrations/data_mapper.rb
|
311
|
+
- lib/state_machine/integrations/data_mapper/observer.rb
|
312
|
+
- lib/state_machine/integrations/data_mapper/versions.rb
|
313
|
+
- lib/state_machine/integrations/mongo_mapper.rb
|
314
|
+
- lib/state_machine/integrations/mongo_mapper/locale.rb
|
315
|
+
- lib/state_machine/integrations/mongo_mapper/versions.rb
|
316
|
+
- lib/state_machine/integrations/mongoid.rb
|
317
|
+
- lib/state_machine/integrations/mongoid/locale.rb
|
318
|
+
- lib/state_machine/integrations/mongoid/versions.rb
|
319
|
+
- lib/state_machine/integrations/sequel.rb
|
320
|
+
- lib/state_machine/integrations/sequel/versions.rb
|
321
|
+
- lib/state_machine/machine.rb
|
322
|
+
- lib/state_machine/machine_collection.rb
|
323
|
+
- lib/state_machine/macro_methods.rb
|
324
|
+
- lib/state_machine/matcher.rb
|
325
|
+
- lib/state_machine/matcher_helpers.rb
|
326
|
+
- lib/state_machine/node_collection.rb
|
327
|
+
- lib/state_machine/path.rb
|
328
|
+
- lib/state_machine/path_collection.rb
|
329
|
+
- lib/state_machine/state.rb
|
330
|
+
- lib/state_machine/state_collection.rb
|
331
|
+
- lib/state_machine/state_context.rb
|
332
|
+
- lib/state_machine/transition.rb
|
333
|
+
- lib/state_machine/transition_collection.rb
|
334
|
+
- lib/state_machine/version.rb
|
335
|
+
- lib/state_machine/yard.rb
|
336
|
+
- lib/state_machine/yard/handlers.rb
|
337
|
+
- lib/state_machine/yard/handlers/base.rb
|
338
|
+
- lib/state_machine/yard/handlers/event.rb
|
339
|
+
- lib/state_machine/yard/handlers/machine.rb
|
340
|
+
- lib/state_machine/yard/handlers/state.rb
|
341
|
+
- lib/state_machine/yard/handlers/transition.rb
|
342
|
+
- lib/state_machine/yard/templates.rb
|
343
|
+
- lib/state_machine/yard/templates/default/class/html/setup.rb
|
344
|
+
- lib/state_machine/yard/templates/default/class/html/state_machines.erb
|
345
|
+
- lib/tasks/state_machine.rake
|
346
|
+
- lib/tasks/state_machine.rb
|
347
|
+
- lib/yard-state_machine.rb
|
348
|
+
- state_machine.gemspec
|
349
|
+
- test/files/en.yml
|
350
|
+
- test/files/switch.rb
|
351
|
+
- test/functional/state_machine_test.rb
|
352
|
+
- test/test_helper.rb
|
353
|
+
- test/unit/assertions_test.rb
|
354
|
+
- test/unit/branch_test.rb
|
355
|
+
- test/unit/callback_test.rb
|
356
|
+
- test/unit/error_test.rb
|
357
|
+
- test/unit/eval_helpers_test.rb
|
358
|
+
- test/unit/event_collection_test.rb
|
359
|
+
- test/unit/event_test.rb
|
360
|
+
- test/unit/graph_test.rb
|
361
|
+
- test/unit/helper_module_test.rb
|
362
|
+
- test/unit/integrations/active_model_test.rb
|
363
|
+
- test/unit/integrations/active_record_test.rb
|
364
|
+
- test/unit/integrations/base_test.rb
|
365
|
+
- test/unit/integrations/data_mapper_test.rb
|
366
|
+
- test/unit/integrations/mongo_mapper_test.rb
|
367
|
+
- test/unit/integrations/mongoid_test.rb
|
368
|
+
- test/unit/integrations/sequel_test.rb
|
369
|
+
- test/unit/integrations_test.rb
|
370
|
+
- test/unit/invalid_event_test.rb
|
371
|
+
- test/unit/invalid_parallel_transition_test.rb
|
372
|
+
- test/unit/invalid_transition_test.rb
|
373
|
+
- test/unit/machine_collection_test.rb
|
374
|
+
- test/unit/machine_test.rb
|
375
|
+
- test/unit/matcher_helpers_test.rb
|
376
|
+
- test/unit/matcher_test.rb
|
377
|
+
- test/unit/node_collection_test.rb
|
378
|
+
- test/unit/path_collection_test.rb
|
379
|
+
- test/unit/path_test.rb
|
380
|
+
- test/unit/state_collection_test.rb
|
381
|
+
- test/unit/state_context_test.rb
|
382
|
+
- test/unit/state_machine_test.rb
|
383
|
+
- test/unit/state_test.rb
|
384
|
+
- test/unit/transition_collection_test.rb
|
385
|
+
- test/unit/transition_test.rb
|
386
|
+
homepage:
|
387
|
+
licenses: []
|
388
|
+
metadata: {}
|
389
|
+
post_install_message:
|
390
|
+
rdoc_options:
|
391
|
+
- "--line-numbers"
|
392
|
+
- "--inline-source"
|
393
|
+
- "--title"
|
394
|
+
- state_machine
|
395
|
+
- "--main"
|
396
|
+
- README.md
|
397
|
+
require_paths:
|
398
|
+
- lib
|
399
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
400
|
+
requirements:
|
401
|
+
- - ">="
|
402
|
+
- !ruby/object:Gem::Version
|
403
|
+
version: '0'
|
404
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
405
|
+
requirements:
|
406
|
+
- - ">="
|
407
|
+
- !ruby/object:Gem::Version
|
408
|
+
version: '0'
|
409
|
+
requirements: []
|
410
|
+
rubygems_version: 3.1.2
|
411
|
+
signing_key:
|
412
|
+
specification_version: 4
|
413
|
+
summary: State machines for attributes
|
414
|
+
test_files:
|
415
|
+
- test/files/en.yml
|
416
|
+
- test/files/switch.rb
|
417
|
+
- test/functional/state_machine_test.rb
|
418
|
+
- test/test_helper.rb
|
419
|
+
- test/unit/assertions_test.rb
|
420
|
+
- test/unit/branch_test.rb
|
421
|
+
- test/unit/callback_test.rb
|
422
|
+
- test/unit/error_test.rb
|
423
|
+
- test/unit/eval_helpers_test.rb
|
424
|
+
- test/unit/event_collection_test.rb
|
425
|
+
- test/unit/event_test.rb
|
426
|
+
- test/unit/graph_test.rb
|
427
|
+
- test/unit/helper_module_test.rb
|
428
|
+
- test/unit/integrations/active_model_test.rb
|
429
|
+
- test/unit/integrations/active_record_test.rb
|
430
|
+
- test/unit/integrations/base_test.rb
|
431
|
+
- test/unit/integrations/data_mapper_test.rb
|
432
|
+
- test/unit/integrations/mongo_mapper_test.rb
|
433
|
+
- test/unit/integrations/mongoid_test.rb
|
434
|
+
- test/unit/integrations/sequel_test.rb
|
435
|
+
- test/unit/integrations_test.rb
|
436
|
+
- test/unit/invalid_event_test.rb
|
437
|
+
- test/unit/invalid_parallel_transition_test.rb
|
438
|
+
- test/unit/invalid_transition_test.rb
|
439
|
+
- test/unit/machine_collection_test.rb
|
440
|
+
- test/unit/machine_test.rb
|
441
|
+
- test/unit/matcher_helpers_test.rb
|
442
|
+
- test/unit/matcher_test.rb
|
443
|
+
- test/unit/node_collection_test.rb
|
444
|
+
- test/unit/path_collection_test.rb
|
445
|
+
- test/unit/path_test.rb
|
446
|
+
- test/unit/state_collection_test.rb
|
447
|
+
- test/unit/state_context_test.rb
|
448
|
+
- test/unit/state_machine_test.rb
|
449
|
+
- test/unit/state_test.rb
|
450
|
+
- test/unit/transition_collection_test.rb
|
451
|
+
- test/unit/transition_test.rb
|