rails_state_machine 1.1.3 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9600103349aae06d290487b42d571e2c3128068b
4
- data.tar.gz: 6599f3c3ae8aa457876917b082a9394d17bd3af3
2
+ SHA256:
3
+ metadata.gz: f378f574778d4689103d41b8b77a264ae1480ace89753c5cf33015dda494f296
4
+ data.tar.gz: 0dec14e494125c3a7282e5629849c6322cc5404fa744ee5a6847256b1c00bc63
5
5
  SHA512:
6
- metadata.gz: f824cc7e14c0a452dcec86193967825d8d98a83fffa18e1330ac18532d31b46a2121b509391b37e7594c0b9c44dce39ec73fe72a290aaa2ce9bea98b9dd1b149
7
- data.tar.gz: a39eef615eefffb383c1f9a0576de0f56022e49275a056ebef9f9b792305247968805f879fe7287c5a50ac51440c3a8bc479c1a9852734951d63962e73875ad4
6
+ metadata.gz: 0b6b13a387e5ecebd6a9b6d301652df68b2bd5e95514491729e521e7efbc28ecce1752aacc667395974a211bf2aa2e3f0883126eea8dc1bbcd3b827e5d13e442
7
+ data.tar.gz: ed790b2722a425566cc9d02d074cf3b20d296b1524579839af8678519b8e59c2fdb7ddd1546d225258d843b96f0a0dcfa443d09fca0cb400cd0f35c3e644f184
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: Tests
3
+ 'on':
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ test_pg:
12
+ runs-on: ubuntu-20.04
13
+ services:
14
+ postgres:
15
+ image: postgres:9.3
16
+ env:
17
+ POSTGRES_PASSWORD: postgres
18
+ options: "--health-cmd pg_isready --health-interval 10s --health-timeout 5s
19
+ --health-retries 5"
20
+ ports:
21
+ - 5432:5432
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ include:
26
+ - ruby: 2.5.6
27
+ gemfile: Gemfile.5.2.pg
28
+ - ruby: 2.5.6
29
+ gemfile: Gemfile.6.0.pg
30
+
31
+ - ruby: 2.6.6
32
+ gemfile: Gemfile.5.2.pg
33
+ - ruby: 2.6.6
34
+ gemfile: Gemfile.6.0.pg
35
+
36
+ - ruby: 2.7.2
37
+ gemfile: Gemfile.6.0.pg
38
+ - ruby: 2.7.2
39
+ gemfile: Gemfile.6.1.pg
40
+ - ruby: 2.7.2
41
+ gemfile: Gemfile.7.0.pg
42
+
43
+ - ruby: 3.0.0
44
+ gemfile: Gemfile.6.1.pg
45
+ - ruby: 3.0.0
46
+ gemfile: Gemfile.7.0.pg
47
+ env:
48
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
49
+ steps:
50
+ - uses: actions/checkout@v2
51
+ - name: Install ruby
52
+ uses: ruby/setup-ruby@v1
53
+ with:
54
+ ruby-version: "${{ matrix.ruby }}"
55
+ - name: Setup database
56
+ run: |
57
+ sudo apt-get install -y postgresql-client
58
+ PGPASSWORD=postgres psql -c 'create database rails_state_machine_test;' -U postgres -p 5432 -h localhost
59
+ - name: Bundle
60
+ run: |
61
+ gem install bundler:2.1.4
62
+ bundle install --no-deployment
63
+ - name: Run tests
64
+ run: bundle exec rspec
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.4
1
+ 2.4.6
data/CHANGELOG.md CHANGED
@@ -5,13 +5,35 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
5
5
 
6
6
  ## Unreleased
7
7
 
8
+ ### Compatible changes
9
+
8
10
  ### Breaking changes
9
11
 
10
- -
12
+
13
+ ## 2.1.1 2022-03-16
14
+
15
+ ### Compatible changes
16
+
17
+ - Enabled MFA for RubyGems
18
+
19
+ ## 2.1.0 2021-03-30
11
20
 
12
21
  ### Compatible changes
13
22
 
14
- -
23
+ - Added support for Ruby 3.0.
24
+
25
+ ## 2.0.0 2019-09-30
26
+
27
+ ### Compatible changes
28
+
29
+ - Added: State machine can now use an attribute other than `state` to represent the machine's state.
30
+ - Added: It is now possible to define multiple state machines on the same model. States and event names
31
+ have to differ, though.
32
+
33
+ ### Breaking changes
34
+
35
+ - Removed: Dropped support for adding a state machine to a model without including `RailsStateMachine::Model`.
36
+
15
37
 
16
38
  ## 1.1.3 2019-08-12
17
39
 
data/Gemfile CHANGED
@@ -1 +1 @@
1
- ./Gemfile.5.1.pg
1
+ Gemfile.5.1.pg
data/Gemfile.5.1.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_state_machine (1.1.3)
4
+ rails_state_machine (2.1.1)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -53,7 +53,7 @@ GEM
53
53
  database_cleaner (1.6.2)
54
54
  diff-lcs (1.3)
55
55
  erubi (1.7.0)
56
- gemika (0.3.2)
56
+ gemika (0.5.0)
57
57
  globalid (0.4.1)
58
58
  activesupport (>= 4.2.0)
59
59
  i18n (0.9.1)
@@ -146,4 +146,4 @@ DEPENDENCIES
146
146
  rspec (~> 3.5)
147
147
 
148
148
  BUNDLED WITH
149
- 1.17.1
149
+ 2.2.3
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_state_machine (1.1.3)
4
+ rails_state_machine (2.1.1)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -57,7 +57,7 @@ GEM
57
57
  database_cleaner (1.7.0)
58
58
  diff-lcs (1.3)
59
59
  erubi (1.7.1)
60
- gemika (0.3.4)
60
+ gemika (0.5.0)
61
61
  globalid (0.4.1)
62
62
  activesupport (>= 4.2.0)
63
63
  i18n (1.1.0)
@@ -70,7 +70,9 @@ GEM
70
70
  marcel (0.3.2)
71
71
  mimemagic (~> 0.3.2)
72
72
  method_source (0.9.0)
73
- mimemagic (0.3.2)
73
+ mimemagic (0.3.10)
74
+ nokogiri (~> 1)
75
+ rake
74
76
  mini_mime (1.0.1)
75
77
  mini_portile2 (2.3.0)
76
78
  minitest (5.11.3)
@@ -154,4 +156,4 @@ DEPENDENCIES
154
156
  rspec (~> 3.5)
155
157
 
156
158
  BUNDLED WITH
157
- 1.17.1
159
+ 2.2.15
data/Gemfile.6.0.pg ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'rails', '~>6.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 => '.'
@@ -0,0 +1,175 @@
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 (6.0.0)
11
+ actionpack (= 6.0.0)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailbox (6.0.0)
15
+ actionpack (= 6.0.0)
16
+ activejob (= 6.0.0)
17
+ activerecord (= 6.0.0)
18
+ activestorage (= 6.0.0)
19
+ activesupport (= 6.0.0)
20
+ mail (>= 2.7.1)
21
+ actionmailer (6.0.0)
22
+ actionpack (= 6.0.0)
23
+ actionview (= 6.0.0)
24
+ activejob (= 6.0.0)
25
+ mail (~> 2.5, >= 2.5.4)
26
+ rails-dom-testing (~> 2.0)
27
+ actionpack (6.0.0)
28
+ actionview (= 6.0.0)
29
+ activesupport (= 6.0.0)
30
+ rack (~> 2.0)
31
+ rack-test (>= 0.6.3)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
+ actiontext (6.0.0)
35
+ actionpack (= 6.0.0)
36
+ activerecord (= 6.0.0)
37
+ activestorage (= 6.0.0)
38
+ activesupport (= 6.0.0)
39
+ nokogiri (>= 1.8.5)
40
+ actionview (6.0.0)
41
+ activesupport (= 6.0.0)
42
+ builder (~> 3.1)
43
+ erubi (~> 1.4)
44
+ rails-dom-testing (~> 2.0)
45
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
+ activejob (6.0.0)
47
+ activesupport (= 6.0.0)
48
+ globalid (>= 0.3.6)
49
+ activemodel (6.0.0)
50
+ activesupport (= 6.0.0)
51
+ activerecord (6.0.0)
52
+ activemodel (= 6.0.0)
53
+ activesupport (= 6.0.0)
54
+ activestorage (6.0.0)
55
+ actionpack (= 6.0.0)
56
+ activejob (= 6.0.0)
57
+ activerecord (= 6.0.0)
58
+ marcel (~> 0.3.1)
59
+ activesupport (6.0.0)
60
+ concurrent-ruby (~> 1.0, >= 1.0.2)
61
+ i18n (>= 0.7, < 2)
62
+ minitest (~> 5.1)
63
+ tzinfo (~> 1.1)
64
+ zeitwerk (~> 2.1, >= 2.1.8)
65
+ builder (3.2.3)
66
+ byebug (10.0.2)
67
+ coderay (1.1.2)
68
+ concurrent-ruby (1.1.5)
69
+ crass (1.0.4)
70
+ database_cleaner (1.7.0)
71
+ diff-lcs (1.3)
72
+ erubi (1.9.0)
73
+ gemika (0.5.0)
74
+ globalid (0.4.2)
75
+ activesupport (>= 4.2.0)
76
+ i18n (1.6.0)
77
+ concurrent-ruby (~> 1.0)
78
+ loofah (2.3.0)
79
+ crass (~> 1.0.2)
80
+ nokogiri (>= 1.5.9)
81
+ mail (2.7.1)
82
+ mini_mime (>= 0.1.1)
83
+ marcel (0.3.3)
84
+ mimemagic (~> 0.3.2)
85
+ method_source (0.9.2)
86
+ mimemagic (0.3.10)
87
+ nokogiri (~> 1)
88
+ rake
89
+ mini_mime (1.0.2)
90
+ mini_portile2 (2.4.0)
91
+ minitest (5.12.2)
92
+ nio4r (2.5.2)
93
+ nokogiri (1.10.4)
94
+ mini_portile2 (~> 2.4.0)
95
+ pg (1.1.2)
96
+ pry (0.11.3)
97
+ coderay (~> 1.1.0)
98
+ method_source (~> 0.9.0)
99
+ pry-byebug (3.6.0)
100
+ byebug (~> 10.0)
101
+ pry (~> 0.10)
102
+ rack (2.0.7)
103
+ rack-test (1.1.0)
104
+ rack (>= 1.0, < 3)
105
+ rails (6.0.0)
106
+ actioncable (= 6.0.0)
107
+ actionmailbox (= 6.0.0)
108
+ actionmailer (= 6.0.0)
109
+ actionpack (= 6.0.0)
110
+ actiontext (= 6.0.0)
111
+ actionview (= 6.0.0)
112
+ activejob (= 6.0.0)
113
+ activemodel (= 6.0.0)
114
+ activerecord (= 6.0.0)
115
+ activestorage (= 6.0.0)
116
+ activesupport (= 6.0.0)
117
+ bundler (>= 1.3.0)
118
+ railties (= 6.0.0)
119
+ sprockets-rails (>= 2.0.0)
120
+ rails-dom-testing (2.0.3)
121
+ activesupport (>= 4.2.0)
122
+ nokogiri (>= 1.6)
123
+ rails-html-sanitizer (1.2.0)
124
+ loofah (~> 2.2, >= 2.2.2)
125
+ railties (6.0.0)
126
+ actionpack (= 6.0.0)
127
+ activesupport (= 6.0.0)
128
+ method_source
129
+ rake (>= 0.8.7)
130
+ thor (>= 0.20.3, < 2.0)
131
+ rake (13.0.0)
132
+ rspec (3.8.0)
133
+ rspec-core (~> 3.8.0)
134
+ rspec-expectations (~> 3.8.0)
135
+ rspec-mocks (~> 3.8.0)
136
+ rspec-core (3.8.0)
137
+ rspec-support (~> 3.8.0)
138
+ rspec-expectations (3.8.1)
139
+ diff-lcs (>= 1.2.0, < 2.0)
140
+ rspec-support (~> 3.8.0)
141
+ rspec-mocks (3.8.0)
142
+ diff-lcs (>= 1.2.0, < 2.0)
143
+ rspec-support (~> 3.8.0)
144
+ rspec-support (3.8.0)
145
+ sprockets (3.7.2)
146
+ concurrent-ruby (~> 1.0)
147
+ rack (> 1, < 3)
148
+ sprockets-rails (3.2.1)
149
+ actionpack (>= 4.0)
150
+ activesupport (>= 4.0)
151
+ sprockets (>= 3.0.0)
152
+ thor (0.20.3)
153
+ thread_safe (0.3.6)
154
+ tzinfo (1.2.5)
155
+ thread_safe (~> 0.1)
156
+ websocket-driver (0.7.1)
157
+ websocket-extensions (>= 0.1.0)
158
+ websocket-extensions (0.1.4)
159
+ zeitwerk (2.1.10)
160
+
161
+ PLATFORMS
162
+ ruby
163
+
164
+ DEPENDENCIES
165
+ database_cleaner
166
+ gemika
167
+ pg
168
+ pry-byebug
169
+ rails (~> 6.0.0)
170
+ rails_state_machine!
171
+ rake
172
+ rspec (~> 3.5)
173
+
174
+ BUNDLED WITH
175
+ 2.1.4
data/Gemfile.6.1.pg ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'rails', '~>6.1.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 => '.'
@@ -0,0 +1,181 @@
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 (6.1.3.1)
11
+ actionpack (= 6.1.3.1)
12
+ activesupport (= 6.1.3.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.3.1)
16
+ actionpack (= 6.1.3.1)
17
+ activejob (= 6.1.3.1)
18
+ activerecord (= 6.1.3.1)
19
+ activestorage (= 6.1.3.1)
20
+ activesupport (= 6.1.3.1)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.3.1)
23
+ actionpack (= 6.1.3.1)
24
+ actionview (= 6.1.3.1)
25
+ activejob (= 6.1.3.1)
26
+ activesupport (= 6.1.3.1)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.3.1)
30
+ actionview (= 6.1.3.1)
31
+ activesupport (= 6.1.3.1)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.3.1)
37
+ actionpack (= 6.1.3.1)
38
+ activerecord (= 6.1.3.1)
39
+ activestorage (= 6.1.3.1)
40
+ activesupport (= 6.1.3.1)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.3.1)
43
+ activesupport (= 6.1.3.1)
44
+ builder (~> 3.1)
45
+ erubi (~> 1.4)
46
+ rails-dom-testing (~> 2.0)
47
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.3.1)
49
+ activesupport (= 6.1.3.1)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.3.1)
52
+ activesupport (= 6.1.3.1)
53
+ activerecord (6.1.3.1)
54
+ activemodel (= 6.1.3.1)
55
+ activesupport (= 6.1.3.1)
56
+ activestorage (6.1.3.1)
57
+ actionpack (= 6.1.3.1)
58
+ activejob (= 6.1.3.1)
59
+ activerecord (= 6.1.3.1)
60
+ activesupport (= 6.1.3.1)
61
+ marcel (~> 1.0.0)
62
+ mini_mime (~> 1.0.2)
63
+ activesupport (6.1.3.1)
64
+ concurrent-ruby (~> 1.0, >= 1.0.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
69
+ builder (3.2.4)
70
+ byebug (11.1.3)
71
+ coderay (1.1.3)
72
+ concurrent-ruby (1.1.8)
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.0)
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.5.0)
83
+ globalid (0.4.2)
84
+ activesupport (>= 4.2.0)
85
+ i18n (1.8.9)
86
+ concurrent-ruby (~> 1.0)
87
+ loofah (2.9.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.0)
93
+ method_source (1.0.0)
94
+ mini_mime (1.0.3)
95
+ mini_portile2 (2.5.0)
96
+ minitest (5.14.4)
97
+ nio4r (2.5.7)
98
+ nokogiri (1.11.2)
99
+ mini_portile2 (~> 2.5.0)
100
+ racc (~> 1.4)
101
+ pg (1.2.3)
102
+ pry (0.13.1)
103
+ coderay (~> 1.1)
104
+ method_source (~> 1.0)
105
+ pry-byebug (3.9.0)
106
+ byebug (~> 11.0)
107
+ pry (~> 0.13.0)
108
+ racc (1.5.2)
109
+ rack (2.2.3)
110
+ rack-test (1.1.0)
111
+ rack (>= 1.0, < 3)
112
+ rails (6.1.3.1)
113
+ actioncable (= 6.1.3.1)
114
+ actionmailbox (= 6.1.3.1)
115
+ actionmailer (= 6.1.3.1)
116
+ actionpack (= 6.1.3.1)
117
+ actiontext (= 6.1.3.1)
118
+ actionview (= 6.1.3.1)
119
+ activejob (= 6.1.3.1)
120
+ activemodel (= 6.1.3.1)
121
+ activerecord (= 6.1.3.1)
122
+ activestorage (= 6.1.3.1)
123
+ activesupport (= 6.1.3.1)
124
+ bundler (>= 1.15.0)
125
+ railties (= 6.1.3.1)
126
+ sprockets-rails (>= 2.0.0)
127
+ rails-dom-testing (2.0.3)
128
+ activesupport (>= 4.2.0)
129
+ nokogiri (>= 1.6)
130
+ rails-html-sanitizer (1.3.0)
131
+ loofah (~> 2.3)
132
+ railties (6.1.3.1)
133
+ actionpack (= 6.1.3.1)
134
+ activesupport (= 6.1.3.1)
135
+ method_source
136
+ rake (>= 0.8.7)
137
+ thor (~> 1.0)
138
+ rake (13.0.3)
139
+ rspec (3.10.0)
140
+ rspec-core (~> 3.10.0)
141
+ rspec-expectations (~> 3.10.0)
142
+ rspec-mocks (~> 3.10.0)
143
+ rspec-core (3.10.1)
144
+ rspec-support (~> 3.10.0)
145
+ rspec-expectations (3.10.1)
146
+ diff-lcs (>= 1.2.0, < 2.0)
147
+ rspec-support (~> 3.10.0)
148
+ rspec-mocks (3.10.2)
149
+ diff-lcs (>= 1.2.0, < 2.0)
150
+ rspec-support (~> 3.10.0)
151
+ rspec-support (3.10.2)
152
+ sprockets (4.0.2)
153
+ concurrent-ruby (~> 1.0)
154
+ rack (> 1, < 3)
155
+ sprockets-rails (3.2.2)
156
+ actionpack (>= 4.0)
157
+ activesupport (>= 4.0)
158
+ sprockets (>= 3.0.0)
159
+ thor (1.1.0)
160
+ tzinfo (2.0.4)
161
+ concurrent-ruby (~> 1.0)
162
+ websocket-driver (0.7.3)
163
+ websocket-extensions (>= 0.1.0)
164
+ websocket-extensions (0.1.5)
165
+ zeitwerk (2.4.2)
166
+
167
+ PLATFORMS
168
+ ruby
169
+
170
+ DEPENDENCIES
171
+ database_cleaner
172
+ gemika
173
+ pg
174
+ pry-byebug
175
+ rails (~> 6.1.0)
176
+ rails_state_machine!
177
+ rake
178
+ rspec (~> 3.5)
179
+
180
+ BUNDLED WITH
181
+ 2.2.3
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 => '.'