rails_state_machine 2.1.0 → 2.1.1
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/.github/workflows/test.yml +9 -8
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/Gemfile.5.1.pg.lock +1 -1
- data/Gemfile.5.2.pg.lock +1 -1
- data/Gemfile.6.0.pg.lock +1 -1
- data/Gemfile.6.1.pg.lock +1 -1
- data/Gemfile.7.0.pg +15 -0
- data/Gemfile.7.0.pg.lock +172 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/rails_state_machine/version.rb +1 -1
- data/rails_state_machine.gemspec +1 -0
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f378f574778d4689103d41b8b77a264ae1480ace89753c5cf33015dda494f296
|
|
4
|
+
data.tar.gz: 0dec14e494125c3a7282e5629849c6322cc5404fa744ee5a6847256b1c00bc63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b6b13a387e5ecebd6a9b6d301652df68b2bd5e95514491729e521e7efbc28ecce1752aacc667395974a211bf2aa2e3f0883126eea8dc1bbcd3b827e5d13e442
|
|
7
|
+
data.tar.gz: ed790b2722a425566cc9d02d074cf3b20d296b1524579839af8678519b8e59c2fdb7ddd1546d225258d843b96f0a0dcfa443d09fca0cb400cd0f35c3e644f184
|
data/.github/workflows/test.yml
CHANGED
|
@@ -23,26 +23,27 @@ jobs:
|
|
|
23
23
|
fail-fast: false
|
|
24
24
|
matrix:
|
|
25
25
|
include:
|
|
26
|
-
- ruby: 2.3.8
|
|
27
|
-
gemfile: Gemfile.5.1.pg
|
|
28
|
-
- ruby: 2.4.6
|
|
29
|
-
gemfile: Gemfile.5.1.pg
|
|
30
|
-
- ruby: 2.3.8
|
|
31
|
-
gemfile: Gemfile.5.2.pg
|
|
32
|
-
- ruby: 2.4.6
|
|
33
|
-
gemfile: Gemfile.5.2.pg
|
|
34
26
|
- ruby: 2.5.6
|
|
35
27
|
gemfile: Gemfile.5.2.pg
|
|
36
28
|
- ruby: 2.5.6
|
|
37
29
|
gemfile: Gemfile.6.0.pg
|
|
30
|
+
|
|
31
|
+
- ruby: 2.6.6
|
|
32
|
+
gemfile: Gemfile.5.2.pg
|
|
38
33
|
- ruby: 2.6.6
|
|
39
34
|
gemfile: Gemfile.6.0.pg
|
|
35
|
+
|
|
40
36
|
- ruby: 2.7.2
|
|
41
37
|
gemfile: Gemfile.6.0.pg
|
|
42
38
|
- ruby: 2.7.2
|
|
43
39
|
gemfile: Gemfile.6.1.pg
|
|
40
|
+
- ruby: 2.7.2
|
|
41
|
+
gemfile: Gemfile.7.0.pg
|
|
42
|
+
|
|
44
43
|
- ruby: 3.0.0
|
|
45
44
|
gemfile: Gemfile.6.1.pg
|
|
45
|
+
- ruby: 3.0.0
|
|
46
|
+
gemfile: Gemfile.7.0.pg
|
|
46
47
|
env:
|
|
47
48
|
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
|
48
49
|
steps:
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Gemfile.5.1.pg
|
data/Gemfile.5.1.pg.lock
CHANGED
data/Gemfile.5.2.pg.lock
CHANGED
data/Gemfile.6.0.pg.lock
CHANGED
data/Gemfile.6.1.pg.lock
CHANGED
data/Gemfile.7.0.pg
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
|
|
3
|
+
# Runtime dependencies
|
|
4
|
+
gem 'rails', '~>7.0.0'
|
|
5
|
+
gem 'pg'
|
|
6
|
+
|
|
7
|
+
# Development dependencies
|
|
8
|
+
gem 'rspec', '~>3.5'
|
|
9
|
+
gem 'rake'
|
|
10
|
+
gem 'pry-byebug'
|
|
11
|
+
gem 'gemika'
|
|
12
|
+
gem 'database_cleaner'
|
|
13
|
+
|
|
14
|
+
# Gem under test
|
|
15
|
+
gem 'rails_state_machine', :path => '.'
|
data/Gemfile.7.0.pg.lock
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
rails_state_machine (2.1.1)
|
|
5
|
+
activerecord
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
actioncable (7.0.0)
|
|
11
|
+
actionpack (= 7.0.0)
|
|
12
|
+
activesupport (= 7.0.0)
|
|
13
|
+
nio4r (~> 2.0)
|
|
14
|
+
websocket-driver (>= 0.6.1)
|
|
15
|
+
actionmailbox (7.0.0)
|
|
16
|
+
actionpack (= 7.0.0)
|
|
17
|
+
activejob (= 7.0.0)
|
|
18
|
+
activerecord (= 7.0.0)
|
|
19
|
+
activestorage (= 7.0.0)
|
|
20
|
+
activesupport (= 7.0.0)
|
|
21
|
+
mail (>= 2.7.1)
|
|
22
|
+
actionmailer (7.0.0)
|
|
23
|
+
actionpack (= 7.0.0)
|
|
24
|
+
actionview (= 7.0.0)
|
|
25
|
+
activejob (= 7.0.0)
|
|
26
|
+
activesupport (= 7.0.0)
|
|
27
|
+
mail (~> 2.5, >= 2.5.4)
|
|
28
|
+
rails-dom-testing (~> 2.0)
|
|
29
|
+
actionpack (7.0.0)
|
|
30
|
+
actionview (= 7.0.0)
|
|
31
|
+
activesupport (= 7.0.0)
|
|
32
|
+
rack (~> 2.0, >= 2.2.0)
|
|
33
|
+
rack-test (>= 0.6.3)
|
|
34
|
+
rails-dom-testing (~> 2.0)
|
|
35
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
36
|
+
actiontext (7.0.0)
|
|
37
|
+
actionpack (= 7.0.0)
|
|
38
|
+
activerecord (= 7.0.0)
|
|
39
|
+
activestorage (= 7.0.0)
|
|
40
|
+
activesupport (= 7.0.0)
|
|
41
|
+
globalid (>= 0.6.0)
|
|
42
|
+
nokogiri (>= 1.8.5)
|
|
43
|
+
actionview (7.0.0)
|
|
44
|
+
activesupport (= 7.0.0)
|
|
45
|
+
builder (~> 3.1)
|
|
46
|
+
erubi (~> 1.4)
|
|
47
|
+
rails-dom-testing (~> 2.0)
|
|
48
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
49
|
+
activejob (7.0.0)
|
|
50
|
+
activesupport (= 7.0.0)
|
|
51
|
+
globalid (>= 0.3.6)
|
|
52
|
+
activemodel (7.0.0)
|
|
53
|
+
activesupport (= 7.0.0)
|
|
54
|
+
activerecord (7.0.0)
|
|
55
|
+
activemodel (= 7.0.0)
|
|
56
|
+
activesupport (= 7.0.0)
|
|
57
|
+
activestorage (7.0.0)
|
|
58
|
+
actionpack (= 7.0.0)
|
|
59
|
+
activejob (= 7.0.0)
|
|
60
|
+
activerecord (= 7.0.0)
|
|
61
|
+
activesupport (= 7.0.0)
|
|
62
|
+
marcel (~> 1.0)
|
|
63
|
+
mini_mime (>= 1.1.0)
|
|
64
|
+
activesupport (7.0.0)
|
|
65
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
66
|
+
i18n (>= 1.6, < 2)
|
|
67
|
+
minitest (>= 5.1)
|
|
68
|
+
tzinfo (~> 2.0)
|
|
69
|
+
builder (3.2.4)
|
|
70
|
+
byebug (11.1.3)
|
|
71
|
+
coderay (1.1.3)
|
|
72
|
+
concurrent-ruby (1.1.9)
|
|
73
|
+
crass (1.0.6)
|
|
74
|
+
database_cleaner (2.0.1)
|
|
75
|
+
database_cleaner-active_record (~> 2.0.0)
|
|
76
|
+
database_cleaner-active_record (2.0.1)
|
|
77
|
+
activerecord (>= 5.a)
|
|
78
|
+
database_cleaner-core (~> 2.0.0)
|
|
79
|
+
database_cleaner-core (2.0.1)
|
|
80
|
+
diff-lcs (1.4.4)
|
|
81
|
+
erubi (1.10.0)
|
|
82
|
+
gemika (0.6.1)
|
|
83
|
+
globalid (1.0.0)
|
|
84
|
+
activesupport (>= 5.0)
|
|
85
|
+
i18n (1.8.11)
|
|
86
|
+
concurrent-ruby (~> 1.0)
|
|
87
|
+
loofah (2.13.0)
|
|
88
|
+
crass (~> 1.0.2)
|
|
89
|
+
nokogiri (>= 1.5.9)
|
|
90
|
+
mail (2.7.1)
|
|
91
|
+
mini_mime (>= 0.1.1)
|
|
92
|
+
marcel (1.0.2)
|
|
93
|
+
method_source (1.0.0)
|
|
94
|
+
mini_mime (1.1.2)
|
|
95
|
+
minitest (5.15.0)
|
|
96
|
+
nio4r (2.5.8)
|
|
97
|
+
nokogiri (1.12.5-x86_64-linux)
|
|
98
|
+
racc (~> 1.4)
|
|
99
|
+
pg (1.2.3)
|
|
100
|
+
pry (0.13.1)
|
|
101
|
+
coderay (~> 1.1)
|
|
102
|
+
method_source (~> 1.0)
|
|
103
|
+
pry-byebug (3.9.0)
|
|
104
|
+
byebug (~> 11.0)
|
|
105
|
+
pry (~> 0.13.0)
|
|
106
|
+
racc (1.6.0)
|
|
107
|
+
rack (2.2.3)
|
|
108
|
+
rack-test (1.1.0)
|
|
109
|
+
rack (>= 1.0, < 3)
|
|
110
|
+
rails (7.0.0)
|
|
111
|
+
actioncable (= 7.0.0)
|
|
112
|
+
actionmailbox (= 7.0.0)
|
|
113
|
+
actionmailer (= 7.0.0)
|
|
114
|
+
actionpack (= 7.0.0)
|
|
115
|
+
actiontext (= 7.0.0)
|
|
116
|
+
actionview (= 7.0.0)
|
|
117
|
+
activejob (= 7.0.0)
|
|
118
|
+
activemodel (= 7.0.0)
|
|
119
|
+
activerecord (= 7.0.0)
|
|
120
|
+
activestorage (= 7.0.0)
|
|
121
|
+
activesupport (= 7.0.0)
|
|
122
|
+
bundler (>= 1.15.0)
|
|
123
|
+
railties (= 7.0.0)
|
|
124
|
+
rails-dom-testing (2.0.3)
|
|
125
|
+
activesupport (>= 4.2.0)
|
|
126
|
+
nokogiri (>= 1.6)
|
|
127
|
+
rails-html-sanitizer (1.4.2)
|
|
128
|
+
loofah (~> 2.3)
|
|
129
|
+
railties (7.0.0)
|
|
130
|
+
actionpack (= 7.0.0)
|
|
131
|
+
activesupport (= 7.0.0)
|
|
132
|
+
method_source
|
|
133
|
+
rake (>= 12.2)
|
|
134
|
+
thor (~> 1.0)
|
|
135
|
+
zeitwerk (~> 2.5)
|
|
136
|
+
rake (13.0.6)
|
|
137
|
+
rspec (3.10.0)
|
|
138
|
+
rspec-core (~> 3.10.0)
|
|
139
|
+
rspec-expectations (~> 3.10.0)
|
|
140
|
+
rspec-mocks (~> 3.10.0)
|
|
141
|
+
rspec-core (3.10.1)
|
|
142
|
+
rspec-support (~> 3.10.0)
|
|
143
|
+
rspec-expectations (3.10.1)
|
|
144
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
145
|
+
rspec-support (~> 3.10.0)
|
|
146
|
+
rspec-mocks (3.10.2)
|
|
147
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
148
|
+
rspec-support (~> 3.10.0)
|
|
149
|
+
rspec-support (3.10.3)
|
|
150
|
+
thor (1.1.0)
|
|
151
|
+
tzinfo (2.0.4)
|
|
152
|
+
concurrent-ruby (~> 1.0)
|
|
153
|
+
websocket-driver (0.7.5)
|
|
154
|
+
websocket-extensions (>= 0.1.0)
|
|
155
|
+
websocket-extensions (0.1.5)
|
|
156
|
+
zeitwerk (2.5.1)
|
|
157
|
+
|
|
158
|
+
PLATFORMS
|
|
159
|
+
x86_64-linux
|
|
160
|
+
|
|
161
|
+
DEPENDENCIES
|
|
162
|
+
database_cleaner
|
|
163
|
+
gemika
|
|
164
|
+
pg
|
|
165
|
+
pry-byebug
|
|
166
|
+
rails (~> 7.0.0)
|
|
167
|
+
rails_state_machine!
|
|
168
|
+
rake
|
|
169
|
+
rspec (~> 3.5)
|
|
170
|
+
|
|
171
|
+
BUNDLED WITH
|
|
172
|
+
2.3.0
|
data/Gemfile.lock
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Gemfile.5.1.pg.lock
|
data/README.md
CHANGED
|
@@ -59,7 +59,7 @@ A model instance offers these state machine methods:
|
|
|
59
59
|
- `state_event=` to take a state event, but not save yet. Commonly used for forms where the controller takes a "state_event" param and saves.
|
|
60
60
|
- `state_event` to get the name of the event that will be called
|
|
61
61
|
|
|
62
|
-
Should you ever need to query the state machine for its states or events, it is accessible via `state_machine` class or instance methods on the model. This is mostly helpful in tests.
|
|
62
|
+
Should you ever need to query the state machine for its states or events, it is accessible via `state_machine` class or instance methods on the model. See [`state_machine.rb`](https://github.com/makandra/rails_state_machine/blob/master/lib/rails_state_machine/state_machine.rb) for a list of available methods. This is mostly helpful in tests.
|
|
63
63
|
|
|
64
64
|
If you want an event to be available for a different edge in your graph, you may define multiple `transitions` per event:
|
|
65
65
|
|
data/rails_state_machine.gemspec
CHANGED
|
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = spec.summary
|
|
13
13
|
spec.homepage = 'https://github.com/makandra/rails_state_machine'
|
|
14
14
|
spec.license = 'MIT'
|
|
15
|
+
spec.metadata = { 'rubygems_mfa_required' => 'true' }
|
|
15
16
|
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
17
18
|
f.match(%r{^(test|spec|features)/})
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_state_machine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arne Hartherz
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|
|
@@ -88,6 +88,8 @@ files:
|
|
|
88
88
|
- Gemfile.6.0.pg.lock
|
|
89
89
|
- Gemfile.6.1.pg
|
|
90
90
|
- Gemfile.6.1.pg.lock
|
|
91
|
+
- Gemfile.7.0.pg
|
|
92
|
+
- Gemfile.7.0.pg.lock
|
|
91
93
|
- Gemfile.lock
|
|
92
94
|
- LICENSE
|
|
93
95
|
- LICENSE.txt
|
|
@@ -107,7 +109,8 @@ files:
|
|
|
107
109
|
homepage: https://github.com/makandra/rails_state_machine
|
|
108
110
|
licenses:
|
|
109
111
|
- MIT
|
|
110
|
-
metadata:
|
|
112
|
+
metadata:
|
|
113
|
+
rubygems_mfa_required: 'true'
|
|
111
114
|
post_install_message:
|
|
112
115
|
rdoc_options: []
|
|
113
116
|
require_paths:
|
|
@@ -123,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
126
|
- !ruby/object:Gem::Version
|
|
124
127
|
version: '0'
|
|
125
128
|
requirements: []
|
|
126
|
-
rubygems_version: 3.
|
|
129
|
+
rubygems_version: 3.3.9
|
|
127
130
|
signing_key:
|
|
128
131
|
specification_version: 4
|
|
129
132
|
summary: ActiveRecord-bound state machine
|