aasm 5.3.1 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aasm/version.rb +1 -1
- metadata +3 -409
- data/.document +0 -6
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -27
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- data/.github/workflows/build.yml +0 -102
- data/.gitignore +0 -20
- data/API +0 -34
- data/Appraisals +0 -51
- data/CHANGELOG.md +0 -469
- data/CODE_OF_CONDUCT.md +0 -13
- data/CONTRIBUTING.md +0 -24
- data/Dockerfile +0 -44
- data/Gemfile +0 -7
- data/Gemfile.lock_old +0 -151
- data/HOWTO +0 -12
- data/PLANNED_CHANGES.md +0 -11
- data/README_FROM_VERSION_3_TO_4.md +0 -240
- data/Rakefile +0 -31
- data/TESTING.md +0 -25
- data/aasm.gemspec +0 -37
- data/docker-compose.yml +0 -40
- data/gemfiles/norails.gemfile +0 -11
- data/gemfiles/rails_4.2.gemfile +0 -17
- data/gemfiles/rails_4.2_mongoid_5.gemfile +0 -12
- data/gemfiles/rails_4.2_nobrainer.gemfile +0 -10
- data/gemfiles/rails_5.2.gemfile +0 -14
- data/gemfiles/rails_6.0.gemfile +0 -14
- data/gemfiles/rails_6.1.gemfile +0 -14
- data/gemfiles/rails_7.0.gemfile +0 -14
- data/spec/database.rb +0 -57
- data/spec/database.yml +0 -3
- data/spec/en.yml +0 -9
- data/spec/generators/active_record_generator_spec.rb +0 -53
- data/spec/generators/mongoid_generator_spec.rb +0 -31
- data/spec/generators/no_brainer_generator_spec.rb +0 -29
- data/spec/localizer_test_model_deprecated_style.yml +0 -13
- data/spec/localizer_test_model_new_style.yml +0 -11
- data/spec/models/active_record/active_record_callback.rb +0 -93
- data/spec/models/active_record/basic_active_record_two_state_machines_example.rb +0 -25
- data/spec/models/active_record/complex_active_record_example.rb +0 -37
- data/spec/models/active_record/derivate_new_dsl.rb +0 -7
- data/spec/models/active_record/false_state.rb +0 -35
- data/spec/models/active_record/gate.rb +0 -39
- data/spec/models/active_record/instance_level_skip_validation_example.rb +0 -19
- data/spec/models/active_record/invalid_persistor.rb +0 -29
- data/spec/models/active_record/localizer_test_model.rb +0 -42
- data/spec/models/active_record/namespaced.rb +0 -16
- data/spec/models/active_record/no_direct_assignment.rb +0 -21
- data/spec/models/active_record/no_scope.rb +0 -21
- data/spec/models/active_record/persisted_state.rb +0 -12
- data/spec/models/active_record/person.rb +0 -23
- data/spec/models/active_record/provided_and_persisted_state.rb +0 -24
- data/spec/models/active_record/reader.rb +0 -7
- data/spec/models/active_record/readme_job.rb +0 -21
- data/spec/models/active_record/silent_persistor.rb +0 -29
- data/spec/models/active_record/simple_new_dsl.rb +0 -32
- data/spec/models/active_record/thief.rb +0 -29
- data/spec/models/active_record/timestamp_example.rb +0 -16
- data/spec/models/active_record/transactor.rb +0 -124
- data/spec/models/active_record/transient.rb +0 -6
- data/spec/models/active_record/validator.rb +0 -118
- data/spec/models/active_record/with_enum.rb +0 -39
- data/spec/models/active_record/with_enum_without_column.rb +0 -38
- data/spec/models/active_record/with_false_enum.rb +0 -31
- data/spec/models/active_record/with_true_enum.rb +0 -39
- data/spec/models/active_record/work.rb +0 -3
- data/spec/models/active_record/worker.rb +0 -2
- data/spec/models/active_record/writer.rb +0 -6
- data/spec/models/basic_two_state_machines_example.rb +0 -25
- data/spec/models/callbacks/basic.rb +0 -98
- data/spec/models/callbacks/basic_multiple.rb +0 -75
- data/spec/models/callbacks/guard_within_block.rb +0 -67
- data/spec/models/callbacks/guard_within_block_multiple.rb +0 -66
- data/spec/models/callbacks/multiple_transitions_transition_guard.rb +0 -66
- data/spec/models/callbacks/multiple_transitions_transition_guard_multiple.rb +0 -65
- data/spec/models/callbacks/private_method.rb +0 -44
- data/spec/models/callbacks/private_method_multiple.rb +0 -44
- data/spec/models/callbacks/with_args.rb +0 -62
- data/spec/models/callbacks/with_args_multiple.rb +0 -61
- data/spec/models/callbacks/with_state_arg.rb +0 -34
- data/spec/models/callbacks/with_state_arg_multiple.rb +0 -29
- data/spec/models/complex_example.rb +0 -222
- data/spec/models/conversation.rb +0 -93
- data/spec/models/default_state.rb +0 -12
- data/spec/models/double_definer.rb +0 -21
- data/spec/models/dynamoid/complex_dynamoid_example.rb +0 -37
- data/spec/models/dynamoid/dynamoid_multiple.rb +0 -18
- data/spec/models/dynamoid/dynamoid_simple.rb +0 -18
- data/spec/models/event_with_keyword_arguments.rb +0 -16
- data/spec/models/foo.rb +0 -106
- data/spec/models/foo_callback_multiple.rb +0 -45
- data/spec/models/guard_arguments_check.rb +0 -17
- data/spec/models/guard_with_params.rb +0 -24
- data/spec/models/guard_with_params_multiple.rb +0 -18
- data/spec/models/guardian.rb +0 -58
- data/spec/models/guardian_multiple.rb +0 -48
- data/spec/models/guardian_without_from_specified.rb +0 -18
- data/spec/models/initial_state_proc.rb +0 -31
- data/spec/models/mongoid/complex_mongoid_example.rb +0 -37
- data/spec/models/mongoid/invalid_persistor_mongoid.rb +0 -39
- data/spec/models/mongoid/mongoid_relationships.rb +0 -26
- data/spec/models/mongoid/no_scope_mongoid.rb +0 -21
- data/spec/models/mongoid/silent_persistor_mongoid.rb +0 -39
- data/spec/models/mongoid/simple_mongoid.rb +0 -23
- data/spec/models/mongoid/simple_new_dsl_mongoid.rb +0 -25
- data/spec/models/mongoid/timestamp_example_mongoid.rb +0 -20
- data/spec/models/mongoid/validator_mongoid.rb +0 -100
- data/spec/models/multi_transitioner.rb +0 -34
- data/spec/models/multiple_transitions_that_differ_only_by_guard.rb +0 -31
- data/spec/models/namespaced_multiple_example.rb +0 -42
- data/spec/models/no_initial_state.rb +0 -25
- data/spec/models/nobrainer/complex_no_brainer_example.rb +0 -36
- data/spec/models/nobrainer/invalid_persistor_no_brainer.rb +0 -39
- data/spec/models/nobrainer/no_scope_no_brainer.rb +0 -21
- data/spec/models/nobrainer/nobrainer_relationships.rb +0 -25
- data/spec/models/nobrainer/silent_persistor_no_brainer.rb +0 -39
- data/spec/models/nobrainer/simple_new_dsl_nobrainer.rb +0 -25
- data/spec/models/nobrainer/simple_no_brainer.rb +0 -23
- data/spec/models/nobrainer/validator_no_brainer.rb +0 -98
- data/spec/models/not_auto_loaded/process.rb +0 -21
- data/spec/models/parametrised_event.rb +0 -42
- data/spec/models/parametrised_event_multiple.rb +0 -29
- data/spec/models/process_with_new_dsl.rb +0 -31
- data/spec/models/provided_state.rb +0 -24
- data/spec/models/redis/complex_redis_example.rb +0 -40
- data/spec/models/redis/redis_multiple.rb +0 -20
- data/spec/models/redis/redis_simple.rb +0 -20
- data/spec/models/sequel/complex_sequel_example.rb +0 -46
- data/spec/models/sequel/invalid_persistor.rb +0 -52
- data/spec/models/sequel/sequel_multiple.rb +0 -25
- data/spec/models/sequel/sequel_simple.rb +0 -26
- data/spec/models/sequel/silent_persistor.rb +0 -50
- data/spec/models/sequel/transactor.rb +0 -112
- data/spec/models/sequel/validator.rb +0 -93
- data/spec/models/sequel/worker.rb +0 -12
- data/spec/models/silencer.rb +0 -27
- data/spec/models/simple_custom_example.rb +0 -53
- data/spec/models/simple_example.rb +0 -23
- data/spec/models/simple_example_with_guard_args.rb +0 -17
- data/spec/models/simple_multiple_example.rb +0 -42
- data/spec/models/state_machine_with_failed_event.rb +0 -20
- data/spec/models/states_on_one_line_example.rb +0 -8
- data/spec/models/sub_class.rb +0 -41
- data/spec/models/sub_class_with_more_states.rb +0 -18
- data/spec/models/sub_classing.rb +0 -3
- data/spec/models/super_class.rb +0 -46
- data/spec/models/this_name_better_not_be_in_use.rb +0 -11
- data/spec/models/timestamps_example.rb +0 -19
- data/spec/models/timestamps_with_named_machine_example.rb +0 -13
- data/spec/models/valid_state_name.rb +0 -23
- data/spec/spec_helper.rb +0 -41
- data/spec/spec_helpers/active_record.rb +0 -8
- data/spec/spec_helpers/dynamoid.rb +0 -39
- data/spec/spec_helpers/mongoid.rb +0 -27
- data/spec/spec_helpers/nobrainer.rb +0 -15
- data/spec/spec_helpers/redis.rb +0 -18
- data/spec/spec_helpers/remove_warnings.rb +0 -1
- data/spec/spec_helpers/sequel.rb +0 -7
- data/spec/unit/abstract_class_spec.rb +0 -27
- data/spec/unit/api_spec.rb +0 -104
- data/spec/unit/basic_two_state_machines_example_spec.rb +0 -10
- data/spec/unit/callback_multiple_spec.rb +0 -304
- data/spec/unit/callbacks_spec.rb +0 -551
- data/spec/unit/complex_example_spec.rb +0 -101
- data/spec/unit/complex_multiple_example_spec.rb +0 -115
- data/spec/unit/edge_cases_spec.rb +0 -16
- data/spec/unit/event_multiple_spec.rb +0 -73
- data/spec/unit/event_naming_spec.rb +0 -16
- data/spec/unit/event_spec.rb +0 -411
- data/spec/unit/event_with_keyword_arguments_spec.rb +0 -10
- data/spec/unit/exception_spec.rb +0 -11
- data/spec/unit/guard_arguments_check_spec.rb +0 -9
- data/spec/unit/guard_multiple_spec.rb +0 -60
- data/spec/unit/guard_spec.rb +0 -89
- data/spec/unit/guard_with_params_multiple_spec.rb +0 -10
- data/spec/unit/guard_with_params_spec.rb +0 -14
- data/spec/unit/guard_without_from_specified_spec.rb +0 -10
- data/spec/unit/initial_state_multiple_spec.rb +0 -15
- data/spec/unit/initial_state_spec.rb +0 -12
- data/spec/unit/inspection_multiple_spec.rb +0 -205
- data/spec/unit/inspection_spec.rb +0 -153
- data/spec/unit/invoker_spec.rb +0 -189
- data/spec/unit/invokers/base_invoker_spec.rb +0 -72
- data/spec/unit/invokers/class_invoker_spec.rb +0 -95
- data/spec/unit/invokers/literal_invoker_spec.rb +0 -86
- data/spec/unit/invokers/proc_invoker_spec.rb +0 -86
- data/spec/unit/localizer_spec.rb +0 -109
- data/spec/unit/memory_leak_spec.rb +0 -38
- data/spec/unit/multiple_transitions_that_differ_only_by_guard_spec.rb +0 -14
- data/spec/unit/namespaced_multiple_example_spec.rb +0 -75
- data/spec/unit/new_dsl_spec.rb +0 -12
- data/spec/unit/override_warning_spec.rb +0 -94
- data/spec/unit/persistence/active_record_persistence_multiple_spec.rb +0 -635
- data/spec/unit/persistence/active_record_persistence_spec.rb +0 -852
- data/spec/unit/persistence/dynamoid_persistence_multiple_spec.rb +0 -135
- data/spec/unit/persistence/dynamoid_persistence_spec.rb +0 -84
- data/spec/unit/persistence/mongoid_persistence_multiple_spec.rb +0 -200
- data/spec/unit/persistence/mongoid_persistence_spec.rb +0 -177
- data/spec/unit/persistence/no_brainer_persistence_multiple_spec.rb +0 -198
- data/spec/unit/persistence/no_brainer_persistence_spec.rb +0 -158
- data/spec/unit/persistence/redis_persistence_multiple_spec.rb +0 -88
- data/spec/unit/persistence/redis_persistence_spec.rb +0 -53
- data/spec/unit/persistence/sequel_persistence_multiple_spec.rb +0 -148
- data/spec/unit/persistence/sequel_persistence_spec.rb +0 -368
- data/spec/unit/readme_spec.rb +0 -41
- data/spec/unit/reloading_spec.rb +0 -15
- data/spec/unit/rspec_matcher_spec.rb +0 -88
- data/spec/unit/simple_custom_example_spec.rb +0 -39
- data/spec/unit/simple_example_spec.rb +0 -57
- data/spec/unit/simple_multiple_example_spec.rb +0 -91
- data/spec/unit/state_spec.rb +0 -105
- data/spec/unit/states_on_one_line_example_spec.rb +0 -16
- data/spec/unit/subclassing_multiple_spec.rb +0 -74
- data/spec/unit/subclassing_spec.rb +0 -46
- data/spec/unit/timestamps_spec.rb +0 -32
- data/spec/unit/transition_spec.rb +0 -436
- data/test/minitest_helper.rb +0 -61
- data/test/unit/minitest_matcher_test.rb +0 -80
data/Appraisals
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
appraise 'rails_4.2' do
|
2
|
-
gem 'nokogiri', '1.6.8.1', platforms: %i[ruby_19]
|
3
|
-
gem 'mime-types', '~> 2', platforms: %i[ruby_19 jruby]
|
4
|
-
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
5
|
-
gem 'rails', '~> 4.2.11'
|
6
|
-
gem 'mongoid', '~> 4.0'
|
7
|
-
gem 'sequel'
|
8
|
-
gem 'dynamoid', '~> 1', platforms: :ruby
|
9
|
-
gem 'aws-sdk', '~> 2', platforms: :ruby
|
10
|
-
gem 'redis-objects'
|
11
|
-
gem 'activerecord-jdbcsqlite3-adapter', '1.3.24', platforms: :jruby
|
12
|
-
gem "after_commit_everywhere", "~> 1.0"
|
13
|
-
end
|
14
|
-
|
15
|
-
appraise 'rails_4.2_mongoid_5' do
|
16
|
-
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
17
|
-
gem 'mime-types', '~> 2', platforms: %i[ruby_19 jruby]
|
18
|
-
gem 'rails', '~> 4.2.11'
|
19
|
-
gem 'mongoid', '~> 5.0'
|
20
|
-
gem 'activerecord-jdbcsqlite3-adapter', '1.3.24', platforms: :jruby
|
21
|
-
gem "after_commit_everywhere", "~> 1.0"
|
22
|
-
end
|
23
|
-
|
24
|
-
appraise 'rails_5.2' do
|
25
|
-
gem 'sqlite3', '~> 1.3.5', platforms: :ruby
|
26
|
-
gem 'rails', '~> 5.2.4'
|
27
|
-
gem 'mongoid', '~>6.0'
|
28
|
-
gem 'sequel'
|
29
|
-
gem 'dynamoid', '~>2.2', platforms: :ruby
|
30
|
-
gem 'aws-sdk', '~>2', platforms: :ruby
|
31
|
-
gem 'redis-objects'
|
32
|
-
gem "after_commit_everywhere", "~> 1.0"
|
33
|
-
end
|
34
|
-
|
35
|
-
appraise 'rails_6.1' do
|
36
|
-
gem 'rails', '~> 6.1.4'
|
37
|
-
gem 'mongoid', '~>7.0', '>= 7.0.5'
|
38
|
-
gem 'sequel'
|
39
|
-
gem 'dynamoid', '~>3.3', platforms: :ruby
|
40
|
-
gem 'aws-sdk-dynamodb', '~> 1'
|
41
|
-
gem 'redis-objects'
|
42
|
-
gem "after_commit_everywhere", "~> 1.0"
|
43
|
-
end
|
44
|
-
|
45
|
-
appraise 'norails' do
|
46
|
-
gem 'sqlite3', '~> 1.3', '>= 1.3.5', platforms: :ruby
|
47
|
-
gem 'rails', install_if: false
|
48
|
-
gem 'sequel'
|
49
|
-
gem 'redis-objects'
|
50
|
-
gem "after_commit_everywhere", install_if: false
|
51
|
-
end
|
data/CHANGELOG.md
DELETED
@@ -1,469 +0,0 @@
|
|
1
|
-
# CHANGELOG
|
2
|
-
|
3
|
-
## unreleased
|
4
|
-
## 5.3.1
|
5
|
-
* Fix fire! with string argument [#787](https://github.com/aasm/aasm/issues/787), in PR[#788](https://github.com/aasm/aasm/pull/788) thanks to [norman](https://github.com/norman)
|
6
|
-
|
7
|
-
* Allow `fire` and `fire!` to accept a String or Symbol for the event name, and raise AASM::UndefinedEvent rather than AASM::UndefinedState
|
8
|
-
when an event can not be found, thanks to [norman](https://github.com/norman).
|
9
|
-
|
10
|
-
## 5.3.0
|
11
|
-
|
12
|
-
* Add Ruby 3.1 and Rails 7 to the CI matrix [#775](https://github.com/aasm/aasm/pull/775), thanks to [petergoldstein](https://github.com/petergoldstein)
|
13
|
-
* Fixed an error in Ruby 3 when specifying a method that takes keyword arguments, such as event's before hook [#777](https://github.com/aasm/aasm/pull/777), thanks to [pocari](https://github.com/pocari)
|
14
|
-
* Fix multi-threading bug not firing success callbacks [#778](https://github.com/aasm/aasm/pull/778), thanks to [guewen](https://github.com/guewen)
|
15
|
-
* Raise AASM::UndefinedState when calling fire or fire! with undefined event names [#753](https://github.com/aasm/aasm/pull/753), thanks to [danielvdao](https://github.com/danielvdao)
|
16
|
-
* Fixing Readme typos [#745](https://github.com/aasm/aasm/pull/745) [#772](https://github.com/aasm/aasm/pull/772) [#774](https://github.com/aasm/aasm/pull/774) [#781](https://github.com/aasm/aasm/pull/781), thanks to [jaredsmithse](https://github.com/jaredsmithse) [jcat4](https://github.com/jcat4) [ChandanChainani](https://github.com/ChandanChainani) [TessHuelskamp](https://github.com/TessHuelskamp)
|
17
|
-
* Add github actions config [#750](https://github.com/aasm/aasm/pull/750), thanks to [aka47](https://github.com/aka47)
|
18
|
-
* Test against for Rails 6.0 and improve ci [#719](https://github.com/aasm/aasm/pull/719), thanks to [yujideveloper](https://github.com/yujideveloper)
|
19
|
-
* Fix migration class name to work with zeitwerk [#720](https://github.com/aasm/aasm/pull/720), thanks to [rwegrzyniak](https://github.com/rwegrzyniak)
|
20
|
-
## 5.2.0
|
21
|
-
|
22
|
-
* fix: timestamp will work with named machine [#739](https://github.com/aasm/aasm/pull/739), thanks to [RolandStuder](https://github.com/RolandStuder)
|
23
|
-
* Create namespaced scopes in PR [#735](https://github.com/aasm/aasm/pull/735), thanks to [caiohsramos](https://github.com/caiohsramos)
|
24
|
-
* Fix multiple state machines example per class on README in PR [#732](https://github.com/aasm/aasm/pull/732), thanks to [RodrigoVitiello](https://github.com/RodrigoVitiello)
|
25
|
-
* Update version in recommendation to add after_commit_everywhere in PR [#729](https://github.com/aasm/aasm/pull/729), thanks to [Envek](https://github.com/Envek)
|
26
|
-
* Fix i18n Event translations failing [#721](https://github.com/aasm/aasm/issues/721) in PR [#723](https://github.com/aasm/aasm/pull/723), thanks to [the-spectator](https://github.com/the-spectator)
|
27
|
-
* Add documentation to the Readme about how parameters are handled in AASM events in PR [#722](https://github.com/aasm/aasm/pull/722), thanks to [dstuebe](https://github.com/dstuebe)
|
28
|
-
* Fix human_state cached across locales [#709](https://github.com/aasm/aasm/issues/709) in PR [716](https://github.com/aasm/aasm/pull/716), thanks to [the-spectator](https://github.com/the-spectator)
|
29
|
-
* Relocate DslHelper from root namespace to under AASM namespace in PR [#711](https://github.com/aasm/aasm/pull/711) thank to [yujideveloper ](https://github.com/yujideveloper )
|
30
|
-
* Document how to define transitions from any state in in PR [#699](https://github.com/aasm/aasm/pull/699) thanks to [hedgesky](https://github.com/hedgesky)
|
31
|
-
* Add simple option for auto-generated timestamps in PR [#677](https://github.com/aasm/aasm/pull/677), thanks to [jaynetics](https://github.com/jaynetics)
|
32
|
-
## 5.1.1
|
33
|
-
|
34
|
-
* Fix Depreciation message for after_commit_everywhere [#695](https://github.com/aasm/aasm/issues/695) in PR [#696](https://github.com/aasm/aasm/pull/696)
|
35
|
-
* Fix human_state to use display option [#684](https://github.com/aasm/aasm/issues/684) in PR [#697](https://github.com/aasm/aasm/pull/697)
|
36
|
-
* Remove support for ruby 2.3
|
37
|
-
|
38
|
-
## 5.1.0
|
39
|
-
|
40
|
-
* Fix after_commit in nested transactions [#536](https://github.com/aasm/aasm/issues/536) without explicit AR dependency in PR [#668](https://github.com/aasm/aasm/pull/668), thanks to [stokarenko](https://github.com/stokarenko)
|
41
|
-
* Remove support for Rails 3.2
|
42
|
-
|
43
|
-
## 5.0.8
|
44
|
-
|
45
|
-
* Revert Fix for :after_commit within nested transaction because it adds after_commit_action dependency which is dependent on many gems.
|
46
|
-
|
47
|
-
## 5.0.7
|
48
|
-
|
49
|
-
* Fix :after_commit within nested transaction [#666](https://github.com/aasm/aasm/pull/666), thanks to [stokarenko](https://github.com/stokarenko)
|
50
|
-
* Add permitted_transitions to group permitted event with state [#664](https://github.com/aasm/aasm/pull/664), thanks to [dnamsons](https://github.com/dnamsons)
|
51
|
-
* Add Ruby 2.7.0 & 2.6.5 to Travis CI Test Matrix [#661](https://github.com/aasm/aasm/pull/661), thanks to [the-spectator](https://github.com/the-spectator)
|
52
|
-
* Handle InvalidTransition in transition_from matcher [#653](https://github.com/aasm/aasm/pull/653), thanks to [ryanwood](https://github.com/ryanwood)
|
53
|
-
|
54
|
-
## 5.0.6
|
55
|
-
|
56
|
-
* Fix no_direct_assignment, couldn't be turned off pragmatically [#636](https://github.com/aasm/aasm/issues/636)
|
57
|
-
* Add instance level validation skip option [#644](https://github.com/aasm/aasm/pull/644), thanks to [Nitin-Salunke](https://github.com/Nitin-Salunke)
|
58
|
-
* Fixed aasm.current_event incorrectly yields nil when calling aasm.fire!(:event) [#551](https://github.com/aasm/aasm/issues/551) in [#638](https://github.com/aasm/aasm/pull/638), thanks to [DoubleJarvis](https://github.com/DoubleJarvis)
|
59
|
-
* Code Refactor [#634](https://github.com/aasm/aasm/pull/634) , thanks to [rahulknojha](https://github.com/rahulknojha)
|
60
|
-
* Fixed callback argument for :before_success & :success callback, [#630](https://github.com/aasm/aasm/pull/630)
|
61
|
-
|
62
|
-
## 5.0.5
|
63
|
-
|
64
|
-
* Independent of ActiveSupport methods, [#627](https://github.com/aasm/aasm/pull/627),
|
65
|
-
thanks to [tristandruyen](https://github.com/tristandruyen). Fixes [#508](https://github.com/aasm/aasm/issues/508)
|
66
|
-
|
67
|
-
## 5.0.4
|
68
|
-
|
69
|
-
* Specify dynamoid version for Rails > 5, [#625](https://github.com/aasm/aasm/pull/625),
|
70
|
-
thanks to [waghanza](https://github.com/waghanza)
|
71
|
-
* Add travis runner for Rails 5.2, [#624](https://github.com/aasm/aasm/pull/624), thanks
|
72
|
-
to [waghanza](https://github.com/waghanza)
|
73
|
-
* Cleanup Abstract class issue, [#620](https://github.com/aasm/aasm/pull/620), thanks to
|
74
|
-
[dennym](https://github.com/dennym)
|
75
|
-
|
76
|
-
## 5.0.3
|
77
|
-
|
78
|
-
* Fix Abstract class issue, [#619](https://github.com/aasm/aasm/pull/619)
|
79
|
-
|
80
|
-
## 5.0.2
|
81
|
-
|
82
|
-
* Clear failed callbacks, [#600](https://github.com/aasm/aasm/pull/600), thanks to
|
83
|
-
[nedgar](https://github.com/nedgar)
|
84
|
-
* README improvements, [#594](https://github.com/aasm/aasm/pull/594),
|
85
|
-
[#589](https://github.com/aasm/aasm/pull/589), [#587](https://github.com/aasm/aasm/pull/587),
|
86
|
-
[#597](https://github.com/aasm/aasm/pull/597), thanks to [jackscotti](https://github.com/jackscotti), [krmbzds](https://github.com/krmbzds),
|
87
|
-
[zegomesjf](https://github.com/zegomesjf), [BKSpurgeon](https://github.com/BKSpurgeon)
|
88
|
-
* Update InvalidTransition to include state_machine_name [#592](https://github.com/aasm/aasm/pull/592), thanks to [a14m](https://github.com/a14m)
|
89
|
-
* Do not add migration if model and column already exists [#586](https://github.com/aasm/aasm/pull/586), thanks to [KiranJosh](https://github.com/KiranJosh)
|
90
|
-
|
91
|
-
## 5.0.1
|
92
|
-
|
93
|
-
* Fix failures array in transition not being reset [#383](https://github.com/aasm/aasm/issues/383)
|
94
|
-
* Enable AASM scopes to be defined on abstract classes.
|
95
|
-
|
96
|
-
## 5.0.0
|
97
|
-
|
98
|
-
* Chore(invokers): Refactor callback invokers, add class-callbacks support [#541](https://github.com/aasm/aasm/pull/541), thanks to [pandomic](https://github.com/pandomic)
|
99
|
-
* Add docker setup to readme
|
100
|
-
* Add support for Nobrainer (RethinkDB) [#522](https://github.com/aasm/aasm/pull/522), thanks to [zedtux](https://github.com/zedtux)
|
101
|
-
* Patch `allow_event` to accept event with custom arguments [#419](https://github.com/aasm/aasm/pull/419), thanks to [czhc](https://github.com/czhc)
|
102
|
-
|
103
|
-
## 4.12.3
|
104
|
-
|
105
|
-
* Add to AASM fire(event) and fire!(event) methods [#494](https://github.com/aasm/aasm/pull/494), thanks to [slayer](https://github.com/slayer)
|
106
|
-
* Add `use_transactions` flag to persist changes to the database even when some error occurs. [#493](https://github.com/aasm/aasm/pull/493), thanks to Peter Lampesberger.
|
107
|
-
|
108
|
-
## 4.12.2
|
109
|
-
|
110
|
-
* Fix guards parameter [#484](https://github.com/aasm/aasm/pull/484), thanks to [teohm](https://github.com/teohm)
|
111
|
-
* Make errors more inspectable [#452](https://github.com/aasm/aasm/pull/452), thanks to [flexoid](https://github.com/flexoid)
|
112
|
-
* Enable Dynamoid for Rails 5 [#483](https://github.com/aasm/aasm/pull/483), thanks to [focusshifter](https://github.com/focusshifter)
|
113
|
-
|
114
|
-
## 4.12.1
|
115
|
-
|
116
|
-
* DRY-up Mongoid and ActiveRecord Persistence, Add Sequel transactions and locking [#475](https://github.com/aasm/aasm/pull/475), thanks to [@Aryk](https://github.com/Aryk)
|
117
|
-
* Add aliases for event methods [#476](https://github.com/aasm/aasm/pull/476), thanks to [@Aryk](https://github.com/Aryk)
|
118
|
-
* Support Minitest spec expectations [#387](https://github.com/aasm/aasm/pull/387), thanks to [@faragorn](https://github.com/faragorn)
|
119
|
-
## 4.12.0
|
120
|
-
|
121
|
-
* Fix thread safe issue with concurrent-ruby gem [see [pull-request #422](https://github.com/aasm/aasm/pull/442), thanks to [@reidmorrison](https://github.com/reidmorrison)
|
122
|
-
* Drop Support for Mongo Mapper [see [pull-request #439](https://github.com/aasm/aasm/pull/439)], thanks to [@reidmorrison](https://github.com/reidmorrison)
|
123
|
-
* add :binding_event option to event [see [pull-request #438](https://github.com/aasm/aasm/pull/438)], thanks to [@leanhdaovn](https://github.com/leanhdaovn)
|
124
|
-
* fix: `skip_validation_on_save: true` for default_scope records, [see [pull-request #433](https://github.com/aasm/aasm/pull/433)], thanks to [@larissa](https://github.com/larissa)
|
125
|
-
* Deep clone state machine during inheritance so that state machines in child classes can be modified (see [pull-request #429](https://github.com/aasm/aasm/pull/429)), thanks to [@reidmorrison](https://github.com/reidmorrison) and [@Tybot204](https://github.com/Tybot204)
|
126
|
-
* add before_success callback for event (see [pull-request #422](https://github.com/aasm/aasm/pull/422)), thanks to [@timsly ](https://github.com/timsly)
|
127
|
-
* fix: multiple transitions in a single event with the same to and from states (see [issue #372](https://github.com/aasm/aasm/issues/372) and [issue #362](https://github.com/aasm/aasm/issues/362) for details, fixed with [pull-request #408](https://github.com/aasm/aasm/pull/408), thanks to [@dathanb](https://github.com/dathanb))
|
128
|
-
* fix: passing nil as a argument to callbacks (see [issue #404](https://github.com/aasm/aasm/issues/404) for details, fixed with [pull-request #406](https://github.com/aasm/aasm/pull/406), thanks to [@yogeshjain999](https://github.com/yogeshjain999))
|
129
|
-
|
130
|
-
|
131
|
-
## 4.11.1
|
132
|
-
|
133
|
-
* fix: generator file name when using custom column name instead of
|
134
|
-
aasm_state (see [issue #398](https://github.com/aasm/aasm/pull/398) for details,
|
135
|
-
thanks to [@bastianwegge](https://github.com/bastianwegge))
|
136
|
-
* fix: Scopes when states are defined as a series of symbols (see [issue #397](https://github.com/aasm/aasm/pull/397) for details, thanks to [@evheny0](https://github.com/evheny0))
|
137
|
-
* fix: Multiple transition behavior when one of the transitions does not
|
138
|
-
have a "from" parameter (see [issue #392](https://github.com/aasm/aasm/issues/392) for details)
|
139
|
-
* fix: permissible states not respecting guard parameters (see [issue #388](https://github.com/aasm/aasm/issues/388)) with [pull-request #389](https://github.com/aasm/aasm/pull/389)
|
140
|
-
|
141
|
-
## 4.11.0
|
142
|
-
|
143
|
-
* support `logger` configuration (see [issue #370](https://github.com/aasm/aasm/pull/370) for details, thanks to [@HoyaBoya](https://github.com/HoyaBoya))
|
144
|
-
* support configuration to let bang transitions fail if object is invalid (see [issue #366](https://github.com/aasm/aasm/pull/366) and [issue #262](https://github.com/aasm/aasm/issues/262) for details, thanks to [@Wildebeest](https://github.com/Wildebeest))
|
145
|
-
|
146
|
-
|
147
|
-
## 4.10.1
|
148
|
-
|
149
|
-
* fix: suppress warnings when using ActiveRecord enums feature (see [issue #346](https://github.com/aasm/aasm/pull/346) for details, thanks to [@110y](https://github.com/110y), and [issue #353](https://github.com/aasm/aasm/pull/353) for details, thanks to [@nathanstitt](https://github.com/nathanstitt))
|
150
|
-
* fix: handle array of success callbacks for transitions properly (see [issue #363](https://github.com/aasm/aasm/pull/363) for details, thanks to [@shunichi](https://github.com/shunichi))
|
151
|
-
* support `permitted: false` for states and events query/inspection methods (see [issue #364](https://github.com/aasm/aasm/pull/364) for details, thanks to [@hspazio](https://github.com/hspazio))
|
152
|
-
|
153
|
-
## 4.10.0
|
154
|
-
|
155
|
-
* fix: some issues with RubyMotion (see [issue #320](https://github.com/aasm/aasm/pull/320) and [issue #343](https://github.com/aasm/aasm/pull/343) for details, thanks to [@Infotaku](https://github.com/Infotaku))
|
156
|
-
* fix: transitions now work in dup'ed copies (see [issue #325](https://github.com/aasm/aasm/pull/325) which fixes [issue #273](https://github.com/aasm/aasm/pull/273) for details, thanks to [@lingceng](https://github.com/lingceng))
|
157
|
-
* fix: allow skipping the `aasm_ensure_initial_state` callback (see [issue #326](https://github.com/aasm/aasm/pull/326) for details, thanks to [@sineed](https://github.com/sineed))
|
158
|
-
* fix: has_many association helper works again for Mongoid (see [issue #333](https://github.com/aasm/aasm/pull/333) which fixes [issue #332](https://github.com/aasm/aasm/pull/332) for details, thanks to [@anilmaurya](https://github.com/anilmaurya))
|
159
|
-
* improve performance / refactor: load and run only code which is needed (see [issue #336](https://github.com/aasm/aasm/pull/336) for details, thanks to [@csmuc](https://github.com/csmuc))
|
160
|
-
* improve: warn when overriding an existing method (see [issue #340](https://github.com/aasm/aasm/pull/340) which fixes [issue #335](https://github.com/aasm/aasm/pull/335) for details, thanks to [@pirj](https://github.com/pirj))
|
161
|
-
* fix: correct error message (by not evaluating the current state lazily) (see [issue #341](https://github.com/aasm/aasm/pull/341) which fixes [issue #312](https://github.com/aasm/aasm/pull/312) for details, thanks to [@pirj](https://github.com/pirj))
|
162
|
-
* addition: support for Redis as persistence layer (see [issue #190](https://github.com/aasm/aasm/pull/190) for details, thanks to [@javajax](https://github.com/javajax))
|
163
|
-
* addition: support transition `:success` callbacks (see [issue #239](https://github.com/aasm/aasm/pull/239) which fixes [issue #236](https://github.com/aasm/aasm/pull/236) for details, thanks to [@brega](https://github.com/brega))
|
164
|
-
* addition: support for namespacing methods and state names (see [issue #259](https://github.com/aasm/aasm/pull/259) for details, thanks to [@allspiritseve](https://github.com/allspiritseve))
|
165
|
-
* addition: support for defining multiple states in one line (see [issue #288](https://github.com/aasm/aasm/pull/288) which fixes [issue #146](https://github.com/aasm/aasm/pull/146) for details, thanks to [@HParker](https://github.com/HParker))
|
166
|
-
* fix: uninitialised constant when running Rails generator (see [issue #339](https://github.com/aasm/aasm/pull/339) for details, thanks to [@long-long-float](https://github.com/long-long-float))
|
167
|
-
|
168
|
-
## 4.9.0
|
169
|
-
|
170
|
-
* add support for callback classes (`after` only) (see [issue #316](https://github.com/aasm/aasm/pull/316) for details, thanks to [@mlr](https://github.com/mlr))
|
171
|
-
* allow easier extension of _AASM_ (utilising the idea of _ApplicationRecords_ from _Rails 5_) (see [issue #296](https://github.com/aasm/aasm/pull/296) for details, thanks to [@mlr](https://github.com/mlr))
|
172
|
-
* support pessimistic locking for _ActiveRecord_ (see [issue #283](https://github.com/aasm/aasm/pull/283) for details, thanks to [@HoyaBoya](https://github.com/HoyaBoya))
|
173
|
-
* fix: support database sharding for _ActiveRecord_ (see [issue #289](https://github.com/aasm/aasm/pull/289) for details, thanks to [@scambra](https://github.com/scambra))
|
174
|
-
* fix: some issues with RubyMotion (see [issue #318](https://github.com/aasm/aasm/pull/318) for details, thanks to [@Infotaku](https://github.com/Infotaku))
|
175
|
-
* fix: Rails generator now features the correct namespace (see [issue #328](https://github.com/aasm/aasm/pull/328) and [issue #329](https://github.com/aasm/aasm/pull/329) for details, thanks to [@anilmaurya](https://github.com/anilmaurya))
|
176
|
-
|
177
|
-
|
178
|
-
## 4.8.0
|
179
|
-
|
180
|
-
* add support for [dynamoid](http://joshsymonds.com/Dynamoid/) (see [issue #300](https://github.com/aasm/aasm/pull/300) for details, thanks to [@LeeChSien](https://github.com/LeeChSien))
|
181
|
-
* make compatible with [RubyMotion](http://www.rubymotion.com) (see [issue #315](https://github.com/aasm/aasm/pull/315) for details, thanks to [@Infotaku](https://github.com/Infotaku))
|
182
|
-
* improve error handling in case of an exception during transitioning (see [issue #275](https://github.com/aasm/aasm/pull/275) for details, thanks to [@chriswoodrich](https://github.com/chriswoodrich))
|
183
|
-
* rspec matcher `on_event` now supports arguments (see [issue #309](https://github.com/aasm/aasm/pull/309) for details, thanks to [@zacviandier](https://github.com/zacviandier))
|
184
|
-
* fix: permitted states now respect guards (see [issue #308](https://github.com/aasm/aasm/pull/308) for details, thanks to [@eebs](https://github.com/eebs))
|
185
|
-
* fix: reloading the env now doesn't add callbacks twice anymore (see [issue #311](https://github.com/aasm/aasm/pull/311) for details, thanks to [@lingceng](https://github.com/lingceng))
|
186
|
-
|
187
|
-
## 4.7.0
|
188
|
-
|
189
|
-
* fix: allow :send as event name (see [issue #257](https://github.com/aasm/aasm/issues/257) for details)
|
190
|
-
* add new callbacks: transactions, all events, ensure (see [issue #282](https://github.com/aasm/aasm/issues/282) for details, thanks to [@HoyaBoya](https://github.com/HoyaBoya))
|
191
|
-
|
192
|
-
## 4.6.0
|
193
|
-
|
194
|
-
* fix: make sure the column is actually present for _ActiveRecord_ enums (see [issue #265](https://github.com/aasm/aasm/issues/265) and [issue #152](https://github.com/aasm/aasm/issues/152) for details, thanks to [@anilmaurya](https://github.com/anilmaurya))
|
195
|
-
* add generators to configure active_record and mongoid after install (see [issue #261](https://github.com/aasm/aasm/issues/261) for details, thanks to [@anilmaurya](https://github.com/anilmaurya))
|
196
|
-
|
197
|
-
## 4.5.2
|
198
|
-
|
199
|
-
* fix arity difference between Procs and lambdas (see [issue #293](https://github.com/aasm/aasm/issues/293) for details)
|
200
|
-
|
201
|
-
## 4.5.1
|
202
|
-
|
203
|
-
* make sure to use override configuration options if state machine is defined more than once (see [issue #287](https://github.com/aasm/aasm/issues/287) for details)
|
204
|
-
|
205
|
-
## 4.5.0
|
206
|
-
|
207
|
-
* add RSpec matchers `have_state`, `allow_event` and `allow_transition_to` (see [issue #147](https://github.com/aasm/aasm/issues/147) for details)
|
208
|
-
* add RSpec matcher `transition_from` (see [issue #178](https://github.com/aasm/aasm/issues/178) for details, thanks to [@thomasstephane](https://github.com/thomasstephane))
|
209
|
-
|
210
|
-
## 4.4.1
|
211
|
-
|
212
|
-
* add support for rejecting certain events on inspection (see [issue #272](https://github.com/aasm/aasm/issues/272) for details, thanks to [@dubroe](https://github.com/dubroe))
|
213
|
-
|
214
|
-
## 4.4.0
|
215
|
-
|
216
|
-
* add support global transation callbacks (see [issue #221](https://github.com/aasm/aasm/issues/221) and [issue #253](https://github.com/aasm/aasm/issues/253) for details)
|
217
|
-
* add support (bugfix) for Mongoid >= 5.0 (see [issue #277](https://github.com/aasm/aasm/issues/277) and [issue #278](https://github.com/aasm/aasm/issues/278) for details)
|
218
|
-
|
219
|
-
## 4.3.0
|
220
|
-
|
221
|
-
* add support for multiple state machines per class (see [issue #158](https://github.com/aasm/aasm/issues/158) and [issue #240](https://github.com/aasm/aasm/issues/240) for details)
|
222
|
-
* special thanks to [@evadne](https://github.com/evadne) for testing this feature, and providing comments and patches (see [issue #245](https://github.com/aasm/aasm/issues/245) for details)
|
223
|
-
|
224
|
-
## 4.2.0
|
225
|
-
|
226
|
-
* support turning off and on the configuration option for `no_direct_assignment` (see [issue #223](https://github.com/aasm/aasm/issues/223) for details)
|
227
|
-
* event arguments are now passed to `:after_commit` callbacks as well (see [issue #238](https://github.com/aasm/aasm/pull/238), thanks to [@kuinak](https://github.com/kuinak))
|
228
|
-
|
229
|
-
## 4.1.1
|
230
|
-
|
231
|
-
* support block notation for `:after_commit` event callbacks (see [issue #224](https://github.com/aasm/aasm/issues/224) for details)
|
232
|
-
* event arguments are now passed to state callbacks as well (not only to event callbacks) (see [issue #219](https://github.com/aasm/aasm/issues/219), thanks to [@tobithiel](https://github.com/tobithiel))
|
233
|
-
* `AASM::InvalidTransition` now references the current object (with the state machine) and the _AASM_ event name (see [issue #217](https://github.com/aasm/aasm/issues/217), thanks to [@awsmsrc](https://github.com/awsmsrc))
|
234
|
-
* bugfix: do not update unloaded state for [Sequel](http://sequel.jeremyevans.net/) (see [issue #218](https://github.com/aasm/aasm/issues/218), thanks to [@godfat](https://github.com/godfat))
|
235
|
-
|
236
|
-
## 4.1.0
|
237
|
-
|
238
|
-
* bugfix: initialize the aasm state column after initialization of the _Mongoid_ instance (see [issue #206](https://github.com/aasm/aasm/issues/206), thanks to [@Shwetakale ](https://github.com/Shwetakale ))
|
239
|
-
* added support for mongomapper ORM (see [issue #203](https://github.com/aasm/aasm/issues/203), thanks to [@reidmorrison ](https://github.com/reidmorrison ))
|
240
|
-
* `aasm_column` has been removed. Use `aasm.attribute_name` instead
|
241
|
-
* `aasm_human_event_name` has been removed. Use `aasm.human_event_name` instead
|
242
|
-
|
243
|
-
## 4.0.8
|
244
|
-
|
245
|
-
* bugfix: may_event_name? should return true or false only (see [issue #200](https://github.com/aasm/aasm/issues/200) for details)
|
246
|
-
|
247
|
-
## 4.0.7
|
248
|
-
|
249
|
-
* bugfix: take private methods into account when checking for callbacks (see [issue #197](https://github.com/aasm/aasm/issues/197) for details)
|
250
|
-
|
251
|
-
## 4.0.6
|
252
|
-
|
253
|
-
* bugfix: `false` is treated as uninitialised state (same as `nil`) (see [issue #195](https://github.com/aasm/aasm/issues/195) for details)
|
254
|
-
* bugfix: an event's `:error` callback now retrieves all arguments passed to the event (see [issue #196](https://github.com/aasm/aasm/issues/196) for details)
|
255
|
-
|
256
|
-
## 4.0.5
|
257
|
-
|
258
|
-
* bugfix: initialize the aasm state column after initialization of the _ActiveRecord_ instance only if the attribute has been loaded (see [issue #193](https://github.com/aasm/aasm/issues/193) for details)
|
259
|
-
|
260
|
-
## 4.0.4
|
261
|
-
|
262
|
-
* corrected callback order in README
|
263
|
-
* bugfix: initialize the aasm state column after initialization of the _ActiveRecord_ instance (see [issue #191](https://github.com/aasm/aasm/issues/191) for details)
|
264
|
-
* bugfix: avoid Rails autoloading conflicts (see [issue #137](https://github.com/aasm/aasm/issues/137) and [issue #139](https://github.com/aasm/aasm/issues/139) for details)
|
265
|
-
|
266
|
-
## 4.0.3
|
267
|
-
|
268
|
-
* bugfix: fire guards only once per transition, part 2 (see [issue #187](https://github.com/aasm/aasm/issues/187) for details)
|
269
|
-
* `aasm_column` is deprecated. Use `aasm.attribute_name` instead
|
270
|
-
|
271
|
-
## 4.0.2
|
272
|
-
|
273
|
-
* bugfix: really support block-guards (defined within a transition block) (see [issue #186](https://github.com/aasm/aasm/issues/186) for details)
|
274
|
-
|
275
|
-
## 4.0.1
|
276
|
-
|
277
|
-
* fire guards only once per transition (see [issue #184](https://github.com/aasm/aasm/issues/184) for details)
|
278
|
-
* `aasm_human_event_name` is deprecated, use `aasm.human_event_name` instead
|
279
|
-
|
280
|
-
## 4.0.0
|
281
|
-
|
282
|
-
* support `if` and `unless` guard syntax: (see [issue #179](https://github.com/aasm/aasm/issues/179) and [issue #181](https://github.com/aasm/aasm/issues/181)), thanks to [@bigtunacan](https://github.com/bigtunacan)
|
283
|
-
* may configure to not allow direct assignment for persisted AASM models (see [issue #53](https://github.com/aasm/aasm/issues/53))
|
284
|
-
* **DSL change**: callbacks don't require `to_state` parameter anymore, but still support it
|
285
|
-
(closing issues
|
286
|
-
[#11](https://github.com/aasm/aasm/issues/11),
|
287
|
-
[#58](https://github.com/aasm/aasm/issues/58) and
|
288
|
-
[#80](https://github.com/aasm/aasm/issues/80)
|
289
|
-
thanks to [@ejlangev](https://github.com/ejlangev))
|
290
|
-
* **DSL change**: `after_commit` hooks are now event-based (see [issue #112](https://github.com/aasm/aasm/issues/112))
|
291
|
-
* **DSL change**: event and state callbacks have been re-ordered; state callbacks are not run anymore if any guard fails
|
292
|
-
* **DSL change**: `:on_transition` renamed to `:after`
|
293
|
-
* **DSL change**: `:on_transition` renamed to `:after`
|
294
|
-
* **DSL change**: transition `:after` binding changed (see [issue #59](https://github.com/aasm/aasm/issues/59), thanks to [@stiff](https://github.com/stiff))
|
295
|
-
* **DSL change**: instance-based events inspection now returns event instances (instead of the event names as symbol)
|
296
|
-
* **DSL change**: instance-based permissible_events has been removed in favor or events(:permissible => true)
|
297
|
-
* **DSL change**: class-based events now returns a list of Event instances (instead of a hash with event names as keys)
|
298
|
-
* **DSL change**: renamed permissible states and events to permitted states events
|
299
|
-
* removed deprecated methods (mostly the ones prefixed with `aasm_`)
|
300
|
-
|
301
|
-
## 3.4.0
|
302
|
-
|
303
|
-
* allow retrieving the current event (`aasm.current_event`) (see [issue #159](https://github.com/aasm/aasm/issues/159) and [issue #168](https://github.com/aasm/aasm/issues/168))
|
304
|
-
|
305
|
-
## 3.3.3
|
306
|
-
|
307
|
-
* bugfix: support reloading development environment in Rails (see [issue #148](https://github.com/aasm/aasm/issues/148))
|
308
|
-
|
309
|
-
## 3.3.2
|
310
|
-
|
311
|
-
* bugfix: avoid conflicts with `failed` and `fired` event names (see [issue #157](https://github.com/aasm/aasm/issues/157)), thanks to [@MichaelXavier](https://github.com/MichaelXavier)
|
312
|
-
* bugfix: not using transactions unless saving to the database (see [issue #162](https://github.com/aasm/aasm/issues/162) and [issue #164](https://github.com/aasm/aasm/issues/164)), thanks to [@roberthoner](https://github.com/roberthoner)
|
313
|
-
* bugfix: `after_commit` should only run if saving to the database (see [issue #151](https://github.com/aasm/aasm/issues/151)), thanks to [@ivantsepp](https://github.com/ivantsepp)
|
314
|
-
|
315
|
-
## 3.3.1
|
316
|
-
|
317
|
-
* bugfix: permissible events will respect given `guards` (see [issue #150](https://github.com/aasm/aasm/issues/150))
|
318
|
-
|
319
|
-
## 3.3.0
|
320
|
-
|
321
|
-
* support for Rails 4.1 enum fields (see [issue #124](https://github.com/aasm/aasm/issues/124), thanks to [@bkon](https://github.com/bkon))
|
322
|
-
* bugfix: allow lazy-evaluation for Rails 3 scopes (see [issue #144](https://github.com/aasm/aasm/issues/144), thanks to [@laurens](https://github.com/laurens))
|
323
|
-
|
324
|
-
## 3.2.1
|
325
|
-
|
326
|
-
* bugfix: permissible_events and events did not contain events with an empty "from" transition (see [issue #140](https://github.com/aasm/aasm/issues/140) and [issue #141](https://github.com/aasm/aasm/issues/141), thanks to [@daniel-rikowski](https://github.com/daniel-rikowski))
|
327
|
-
|
328
|
-
## 3.2.0
|
329
|
-
|
330
|
-
* support [Sequel](http://sequel.jeremyevans.net/) (see [issue #119](https://github.com/aasm/aasm/issues/119), thanks to [@godfat](https://github.com/godfat))
|
331
|
-
* may not fire an unknown event (see [issue #128](https://github.com/aasm/aasm/issues/128)
|
332
|
-
|
333
|
-
## 3.1.1
|
334
|
-
|
335
|
-
* bugfix: don't require ActiveRecord for localizing AASM event and state name (see [issue #113](https://github.com/aasm/aasm/issues/113), thanks to [@silentshade](https://github.com/silentshade))
|
336
|
-
|
337
|
-
## 3.1.0
|
338
|
-
|
339
|
-
* validating the current state (see [issue #95](https://github.com/aasm/aasm/issues/95), thanks to [@ivantsepp](https://github.com/ivantsepp))
|
340
|
-
* allow configuring behavior of nested transactions (see [issue #107](https://github.com/aasm/aasm/issues/107))
|
341
|
-
* support multiple guards per transition
|
342
|
-
* support event guards (see [issue #85](https://github.com/aasm/aasm/issues/85))
|
343
|
-
* support reading from- and to-state during on_transition callback (see [issue #100](https://github.com/aasm/aasm/issues/100))
|
344
|
-
|
345
|
-
## 3.0.26
|
346
|
-
|
347
|
-
* support state.human_name (aliased to state.localized_name) (see [issue #105](https://github.com/aasm/aasm/issues/105))
|
348
|
-
|
349
|
-
## 3.0.25
|
350
|
-
|
351
|
-
* initialize the state even if validation is skipped (for ActiveRecord and Mongoid persistence) (see [issue #103](https://github.com/aasm/aasm/issues/103), thanks to [@vfonic](https://github.com/vfonic) and [@aaronklaassen](https://github.com/aaronklaassen))
|
352
|
-
|
353
|
-
## 3.0.24
|
354
|
-
|
355
|
-
* added support for event blocks (thanks to [@Intrepidd](https://github.com/Intrepidd))
|
356
|
-
|
357
|
-
## 3.0.23
|
358
|
-
|
359
|
-
* added support for `after_commit` callback (transaction support) (thanks to [@tisba](https://github.com/tisba))
|
360
|
-
|
361
|
-
## 3.0.22
|
362
|
-
|
363
|
-
* fixed [issue 88](https://github.com/aasm/aasm/issues/88): wrong number of arguments for transaction method
|
364
|
-
|
365
|
-
## 3.0.21
|
366
|
-
|
367
|
-
* support nested ActiveRecord transactions ([@ozeias](https://github.com/ozeias))
|
368
|
-
* allow overwriting of events, can be very useful with inheritance ([@Intrepidd](https://github.com/Intrepidd))
|
369
|
-
|
370
|
-
## 3.0.20
|
371
|
-
|
372
|
-
* added configuration option to disable automatic scope creation
|
373
|
-
|
374
|
-
## 3.0.19
|
375
|
-
|
376
|
-
* fixed deprecation warning with *Rails 4* (`Relation#update_all` with conditions is deprecated)
|
377
|
-
* fixing [issue #69](https://github.com/aasm/aasm/issues/69) ( *ActiveRecord* scopes are not chainable)
|
378
|
-
|
379
|
-
## 3.0.18
|
380
|
-
|
381
|
-
* fixing [issue #66](https://github.com/aasm/aasm/issues/66) (state methods not reflecting the current state)
|
382
|
-
|
383
|
-
## 3.0.17
|
384
|
-
|
385
|
-
* supporting instance level inspection for states (including permissible state, see [issue #54](https://github.com/aasm/aasm/issues/54))
|
386
|
-
* added autocreation of constants for each state ([@jherdman](https://github.com/jherdman))
|
387
|
-
|
388
|
-
## 3.0.16
|
389
|
-
|
390
|
-
* added autocreation of state scopes for Mongoid (thanks to [@jonnyshields](https://github.com/johnnyshields))
|
391
|
-
|
392
|
-
## 3.0.15
|
393
|
-
|
394
|
-
* added support for localized state names (on a class level, like `Record.aasm.states.map(&:localized_name)`)
|
395
|
-
|
396
|
-
## 3.0.14
|
397
|
-
|
398
|
-
* supporting event inspection for to-states transitions (`Event#transitions_to_state?`)
|
399
|
-
|
400
|
-
## 3.0.13
|
401
|
-
|
402
|
-
* supporting *ActiveRecord* transactions when firing an event
|
403
|
-
|
404
|
-
## 3.0.12
|
405
|
-
|
406
|
-
* `aasm_from_states_for_state` now supports to filter for specific transition
|
407
|
-
|
408
|
-
## 3.0.11
|
409
|
-
|
410
|
-
* added class method `aasm_from_states_for_state` to retrieve all from states (regarding transitions) for a given state
|
411
|
-
|
412
|
-
## 3.0.10
|
413
|
-
|
414
|
-
* added support for transitions from all other states (thanks to [@swrobel](https://github.com/swrobel))
|
415
|
-
|
416
|
-
## 3.0.9
|
417
|
-
|
418
|
-
* guard checks (e.g. `may_edit?`) now support guard parameters as well
|
419
|
-
|
420
|
-
## 3.0.8
|
421
|
-
|
422
|
-
* fixed issue with generating docs using yard
|
423
|
-
|
424
|
-
## 3.0.7
|
425
|
-
|
426
|
-
* removed deprecation warning when localizing aasm state names (look at [issue #38](https://github.com/rubyist/aasm/issues/38) for details)
|
427
|
-
|
428
|
-
## 3.0.6
|
429
|
-
|
430
|
-
* bugfix: if configured to skip validation the code does not validate anymore
|
431
|
-
|
432
|
-
## 3.0.5
|
433
|
-
|
434
|
-
* bugfix: get rid of error with old rubygems versions
|
435
|
-
|
436
|
-
## 3.0.4
|
437
|
-
|
438
|
-
* bugfix: Subclasses of aasm-enabled classes don't lose settings anymore (thanks to codez)
|
439
|
-
|
440
|
-
## 3.0.3
|
441
|
-
|
442
|
-
* bugfix: ActiveRecord scopes are generated when using the new DSL
|
443
|
-
|
444
|
-
## 3.0.2
|
445
|
-
|
446
|
-
* ActiveRecord persistence can ignore validation when trying to save invalid models
|
447
|
-
|
448
|
-
## 3.0.1
|
449
|
-
|
450
|
-
* added support for Mongoid (Thanks, Michał Taberski)
|
451
|
-
|
452
|
-
## 3.0.0
|
453
|
-
|
454
|
-
* switched documentation to the new DSL
|
455
|
-
* whiny transactions: by default, raise an exception if an event transition is not possible
|
456
|
-
* you may disable whiny transactions
|
457
|
-
|
458
|
-
## 2.4.0
|
459
|
-
|
460
|
-
* supporting new DSL (which is much shorter)
|
461
|
-
|
462
|
-
## 2.3.1
|
463
|
-
|
464
|
-
* bugfix: avoid naming conflict with i18n
|
465
|
-
|
466
|
-
## 2.3.0
|
467
|
-
|
468
|
-
* supporting i18n
|
469
|
-
* supporting regular expressions for hash values and strings
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
-
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
-
|
7
|
-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
-
|
9
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
-
|
11
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
-
|
13
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/CONTRIBUTING.md
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
## Contributing ##
|
2
|
-
|
3
|
-
While not required to contribute, we recommend [RVM](https://rvm.io/) to manage your rubies.
|
4
|
-
|
5
|
-
1. Read the [Contributor Code of Conduct](https://github.com/aasm/aasm/blob/master/CODE_OF_CONDUCT.md)
|
6
|
-
2. [Fork it](https://help.github.com/articles/about-forks/)
|
7
|
-
3. Clone the project `git clone git@github.com:[YOUR GITHUB USERNAME]/aasm.git`
|
8
|
-
4. `cd aasm`
|
9
|
-
5. Create your feature branch `git checkout -b my-new-feature`
|
10
|
-
6. Write tests for your changes (feature/bug)
|
11
|
-
7. Write your (feature/bugfix)
|
12
|
-
8. Install the dependencies `appraisal install`
|
13
|
-
9. Run the tests `appraisal rspec`
|
14
|
-
10. Commit your changes `git commit -am 'Added some feature'`
|
15
|
-
11. Push to the branch `git push origin my-new-feature`
|
16
|
-
12. Create new [Pull Request](https://help.github.com/articles/creating-a-pull-request/)
|
17
|
-
|
18
|
-
There are some option dependencies as well.
|
19
|
-
|
20
|
-
- [MongoDB server](https://www.mongodb.com/download-center)
|
21
|
-
- [Redis](https://redis.io/topics/quickstart)
|
22
|
-
- [DynamoDB (local)](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html)
|
23
|
-
|
24
|
-
If we've missed something please open an [issue](https://github.com/aasm/aasm/issues/new)
|
data/Dockerfile
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
FROM ruby:2.3.4-slim
|
2
|
-
|
3
|
-
LABEL maintainer="AASM"
|
4
|
-
|
5
|
-
ENV DEBIAN_FRONTEND noninteractive
|
6
|
-
|
7
|
-
# ~~~~ System locales ~~~~
|
8
|
-
RUN apt-get update && apt-get install -y locales && \
|
9
|
-
dpkg-reconfigure locales && \
|
10
|
-
locale-gen C.UTF-8 && \
|
11
|
-
/usr/sbin/update-locale LANG=C.UTF-8 && \
|
12
|
-
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
|
13
|
-
locale-gen
|
14
|
-
|
15
|
-
# Set default locale for the environment
|
16
|
-
ENV LC_ALL C.UTF-8
|
17
|
-
ENV LANG en_US.UTF-8
|
18
|
-
ENV LANGUAGE en_US.UTF-8
|
19
|
-
ENV APP_HOME /application
|
20
|
-
|
21
|
-
# ~~~~ Application dependencies ~~~~
|
22
|
-
RUN apt-get update
|
23
|
-
RUN apt-get install -y libsqlite3-dev \
|
24
|
-
build-essential \
|
25
|
-
git
|
26
|
-
|
27
|
-
# ~~~~ Bundler ~~~~
|
28
|
-
RUN gem install bundler
|
29
|
-
|
30
|
-
WORKDIR $APP_HOME
|
31
|
-
RUN mkdir -p $APP_HOME/lib/aasm/
|
32
|
-
|
33
|
-
COPY Gemfile* $APP_HOME/
|
34
|
-
COPY *.gemspec $APP_HOME/
|
35
|
-
COPY lib/aasm/version.rb $APP_HOME/lib/aasm/
|
36
|
-
|
37
|
-
ENV BUNDLE_GEMFILE=$APP_HOME/Gemfile \
|
38
|
-
BUNDLE_JOBS=8 \
|
39
|
-
BUNDLE_PATH=/bundle
|
40
|
-
|
41
|
-
RUN bundle install
|
42
|
-
|
43
|
-
# ~~~~ Import application ~~~~
|
44
|
-
COPY . $APP_HOME
|