state_machines-activemodel 0.9.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -26
- data/lib/state_machines/integrations/active_model/locale.rb +7 -3
- data/lib/state_machines/integrations/active_model/version.rb +3 -1
- data/lib/state_machines/integrations/active_model.rb +71 -102
- data/lib/state_machines-activemodel.rb +2 -0
- data/test/event_human_name_test.rb +176 -0
- data/test/human_name_preservation_test.rb +75 -0
- data/test/integration_test.rb +3 -1
- data/test/machine_by_default_test.rb +3 -1
- data/test/machine_errors_test.rb +3 -1
- data/test/machine_initialization_compatibility_test.rb +60 -0
- data/test/machine_multiple_test.rb +3 -1
- data/test/machine_with_callbacks_test.rb +3 -1
- data/test/machine_with_dirty_attribute_and_custom_attributes_during_loopback_test.rb +3 -1
- data/test/machine_with_dirty_attribute_and_state_events_test.rb +3 -1
- data/test/machine_with_dirty_attributes_and_custom_attribute_test.rb +3 -1
- data/test/machine_with_dirty_attributes_during_loopback_test.rb +3 -1
- data/test/machine_with_dirty_attributes_test.rb +3 -1
- data/test/machine_with_dynamic_initial_state_test.rb +3 -1
- data/test/machine_with_events_test.rb +3 -1
- data/test/machine_with_failed_after_callbacks_test.rb +3 -1
- data/test/machine_with_failed_before_callbacks_test.rb +3 -1
- data/test/machine_with_initialized_aliased_attribute_test.rb +3 -1
- data/test/machine_with_initialized_state_test.rb +3 -1
- data/test/machine_with_internationalization_test.rb +12 -10
- data/test/machine_with_model_state_attribute_test.rb +3 -1
- data/test/machine_with_non_model_state_attribute_undefined_test.rb +3 -1
- data/test/machine_with_state_driven_validations_test.rb +4 -2
- data/test/machine_with_states_test.rb +3 -1
- data/test/machine_with_static_initial_state_test.rb +3 -1
- data/test/machine_with_validations_and_custom_attribute_test.rb +3 -1
- data/test/machine_with_validations_test.rb +3 -1
- data/test/state_human_name_test.rb +152 -0
- data/test/test_helper.rb +55 -0
- metadata +18 -11
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_machines-activemodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
- Aaron Pfeifer
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: state_machines
|
@@ -17,28 +16,28 @@ dependencies:
|
|
17
16
|
requirements:
|
18
17
|
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
19
|
+
version: 0.31.0
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
24
|
- - ">="
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
26
|
+
version: 0.31.0
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: activemodel
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
32
31
|
- - ">="
|
33
32
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
33
|
+
version: '7.1'
|
35
34
|
type: :runtime
|
36
35
|
prerelease: false
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
38
|
- - ">="
|
40
39
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
40
|
+
version: '7.1'
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
42
|
name: bundler
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,9 +122,12 @@ files:
|
|
123
122
|
- lib/state_machines/integrations/active_model.rb
|
124
123
|
- lib/state_machines/integrations/active_model/locale.rb
|
125
124
|
- lib/state_machines/integrations/active_model/version.rb
|
125
|
+
- test/event_human_name_test.rb
|
126
|
+
- test/human_name_preservation_test.rb
|
126
127
|
- test/integration_test.rb
|
127
128
|
- test/machine_by_default_test.rb
|
128
129
|
- test/machine_errors_test.rb
|
130
|
+
- test/machine_initialization_compatibility_test.rb
|
129
131
|
- test/machine_multiple_test.rb
|
130
132
|
- test/machine_with_callbacks_test.rb
|
131
133
|
- test/machine_with_dirty_attribute_and_custom_attributes_during_loopback_test.rb
|
@@ -147,11 +149,12 @@ files:
|
|
147
149
|
- test/machine_with_static_initial_state_test.rb
|
148
150
|
- test/machine_with_validations_and_custom_attribute_test.rb
|
149
151
|
- test/machine_with_validations_test.rb
|
152
|
+
- test/state_human_name_test.rb
|
153
|
+
- test/test_helper.rb
|
150
154
|
homepage: https://github.com/state-machines/state_machines-activemodel
|
151
155
|
licenses:
|
152
156
|
- MIT
|
153
157
|
metadata: {}
|
154
|
-
post_install_message:
|
155
158
|
rdoc_options: []
|
156
159
|
require_paths:
|
157
160
|
- lib
|
@@ -159,21 +162,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
162
|
requirements:
|
160
163
|
- - ">="
|
161
164
|
- !ruby/object:Gem::Version
|
162
|
-
version: 3.
|
165
|
+
version: 3.1.0
|
163
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
167
|
requirements:
|
165
168
|
- - ">="
|
166
169
|
- !ruby/object:Gem::Version
|
167
170
|
version: '0'
|
168
171
|
requirements: []
|
169
|
-
rubygems_version: 3.
|
170
|
-
signing_key:
|
172
|
+
rubygems_version: 3.6.9
|
171
173
|
specification_version: 4
|
172
174
|
summary: ActiveModel integration for State Machines
|
173
175
|
test_files:
|
176
|
+
- test/event_human_name_test.rb
|
177
|
+
- test/human_name_preservation_test.rb
|
174
178
|
- test/integration_test.rb
|
175
179
|
- test/machine_by_default_test.rb
|
176
180
|
- test/machine_errors_test.rb
|
181
|
+
- test/machine_initialization_compatibility_test.rb
|
177
182
|
- test/machine_multiple_test.rb
|
178
183
|
- test/machine_with_callbacks_test.rb
|
179
184
|
- test/machine_with_dirty_attribute_and_custom_attributes_during_loopback_test.rb
|
@@ -195,3 +200,5 @@ test_files:
|
|
195
200
|
- test/machine_with_static_initial_state_test.rb
|
196
201
|
- test/machine_with_validations_and_custom_attribute_test.rb
|
197
202
|
- test/machine_with_validations_test.rb
|
203
|
+
- test/state_human_name_test.rb
|
204
|
+
- test/test_helper.rb
|