statesman 3.5.0 → 7.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +49 -250
  3. data/.rubocop.yml +1 -1
  4. data/.rubocop_todo.yml +26 -6
  5. data/CHANGELOG.md +106 -0
  6. data/Gemfile +10 -4
  7. data/Guardfile +2 -0
  8. data/README.md +78 -48
  9. data/Rakefile +2 -4
  10. data/lib/generators/statesman/active_record_transition_generator.rb +2 -0
  11. data/lib/generators/statesman/generator_helpers.rb +2 -0
  12. data/lib/generators/statesman/migration_generator.rb +2 -0
  13. data/lib/statesman.rb +14 -4
  14. data/lib/statesman/adapters/active_record.rb +259 -37
  15. data/lib/statesman/adapters/active_record_queries.rb +100 -36
  16. data/lib/statesman/adapters/active_record_transition.rb +2 -0
  17. data/lib/statesman/adapters/memory.rb +2 -0
  18. data/lib/statesman/adapters/memory_transition.rb +2 -0
  19. data/lib/statesman/callback.rb +2 -0
  20. data/lib/statesman/config.rb +28 -0
  21. data/lib/statesman/exceptions.rb +34 -2
  22. data/lib/statesman/guard.rb +3 -4
  23. data/lib/statesman/machine.rb +29 -7
  24. data/lib/statesman/railtie.rb +2 -0
  25. data/lib/statesman/utils.rb +2 -0
  26. data/lib/statesman/version.rb +3 -1
  27. data/lib/tasks/statesman.rake +3 -1
  28. data/spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_with_partial_index.rb +2 -0
  29. data/spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb +2 -0
  30. data/spec/fixtures/add_most_recent_to_bacon_transitions.rb +2 -0
  31. data/spec/generators/statesman/active_record_transition_generator_spec.rb +2 -0
  32. data/spec/generators/statesman/migration_generator_spec.rb +2 -0
  33. data/spec/spec_helper.rb +3 -30
  34. data/spec/statesman/adapters/active_record_queries_spec.rb +167 -91
  35. data/spec/statesman/adapters/active_record_spec.rb +15 -1
  36. data/spec/statesman/adapters/active_record_transition_spec.rb +2 -0
  37. data/spec/statesman/adapters/memory_spec.rb +2 -0
  38. data/spec/statesman/adapters/memory_transition_spec.rb +2 -0
  39. data/spec/statesman/adapters/shared_examples.rb +2 -0
  40. data/spec/statesman/callback_spec.rb +2 -0
  41. data/spec/statesman/config_spec.rb +2 -0
  42. data/spec/statesman/exceptions_spec.rb +88 -0
  43. data/spec/statesman/guard_spec.rb +2 -0
  44. data/spec/statesman/machine_spec.rb +79 -4
  45. data/spec/statesman/utils_spec.rb +2 -0
  46. data/spec/support/active_record.rb +9 -12
  47. data/spec/support/generators_shared_examples.rb +2 -0
  48. data/statesman.gemspec +19 -7
  49. metadata +40 -32
  50. data/lib/generators/statesman/mongoid_transition_generator.rb +0 -25
  51. data/lib/generators/statesman/templates/mongoid_transition_model.rb.erb +0 -14
  52. data/lib/statesman/adapters/mongoid.rb +0 -66
  53. data/lib/statesman/adapters/mongoid_transition.rb +0 -10
  54. data/spec/generators/statesman/mongoid_transition_generator_spec.rb +0 -23
  55. data/spec/statesman/adapters/mongoid_spec.rb +0 -86
  56. data/spec/support/mongoid.rb +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9fb352daa2f2ec337dd202cc2615a7e0925741a4
4
- data.tar.gz: 9de7812c9356e6e9f98a317b503220b3a7f7709b
2
+ SHA256:
3
+ metadata.gz: f0dbcc9fe3c29e715be585f2ddae96bdea9b80ca104daf00ee3378feab681b8e
4
+ data.tar.gz: c5824ece991650b8e6e979a9899dbdabc38b18209a79260f2aa9e9f4fda67da2
5
5
  SHA512:
6
- metadata.gz: fbd8b2b4b822b2f7148cb7b47111153e6cd18831e227cf6c72ca073904866025eb3e1d433f503e778853734c0f522e674ad29cad44ec5bc29fdfda7e55130275
7
- data.tar.gz: d55e7635f0773babcc1b5ef9da6f75a4144c8812ce305b93e1762e6100e658bd73f2989bb867efcb0be42225f1dfa49a67aeb064c1c287df62720c8afc693d4b
6
+ metadata.gz: 98fe2966e48e912b33f1c6d842aa6090782dd32be726532d8178377ffb0f1a551ee3d83eee291de0723c756eb0b1bda65dae73d695a47f8b6bd38106b127615f
7
+ data.tar.gz: 6be77a7114e2c3d59e76cfa71de583213ead8a171c5039941698c1e4b0b28b68500acba91d498fb488d33d0e31b3274fa5e373ce81a55f9f70e8e229132de1cf
@@ -1,3 +1,4 @@
1
+ ---
1
2
  version: 2
2
3
 
3
4
  references:
@@ -11,7 +12,7 @@ references:
11
12
  - type: cache-restore
12
13
  key: statesman-{{ checksum "Gemfile" }}-{{ checksum "~/RAILS_VERSION.txt" }}
13
14
 
14
- - run: gem install bundler
15
+ - run: gem install bundler -v 2.1.4
15
16
 
16
17
  - run: bundle install --path vendor/bundle
17
18
 
@@ -30,57 +31,12 @@ references:
30
31
  path: /tmp/test-results
31
32
 
32
33
  jobs:
33
- build-ruby241-rails-429-mongo:
34
+ build-ruby249-rails-524-mysql:
34
35
  docker:
35
- - image: circleci/ruby:2.4.1-node
36
+ - image: circleci/ruby:2.4.9-node
36
37
  environment:
37
- - RAILS_VERSION=4.2.9
38
- - DATABASE_DEPENDENCY_PORT=27017
39
- - image: circleci/mongo:3
40
- steps: *steps
41
- build-ruby241-rails-429-mysql:
42
- docker:
43
- - image: circleci/ruby:2.4.1-node
44
- environment:
45
- - RAILS_VERSION=4.2.9
46
- - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
47
- - EXCLUDE_MONGOID=true
48
- - DATABASE_DEPENDENCY_PORT=3306
49
- - image: circleci/mysql:5.7.18
50
- environment:
51
- - MYSQL_ALLOW_EMPTY_PASSWORD=true
52
- - MYSQL_USER=root
53
- - MYSQL_PASSWORD=
54
- - MYSQL_DATABASE=statesman_test
55
- steps: *steps
56
- build-ruby241-rails-429-postgres:
57
- docker:
58
- - image: circleci/ruby:2.4.1-node
59
- environment:
60
- - RAILS_VERSION=4.2.9
61
- - DATABASE_URL=postgres://postgres@localhost/statesman_test
62
- - EXCLUDE_MONGOID=true
63
- - DATABASE_DEPENDENCY_PORT=5432
64
- - image: circleci/postgres:9.6
65
- environment:
66
- - POSTGRES_USER=postgres
67
- - POSTGRES_DB=statesman_test
68
- steps: *steps
69
- build-ruby241-rails-505-mongo:
70
- docker:
71
- - image: circleci/ruby:2.4.1-node
72
- environment:
73
- - RAILS_VERSION=5.0.5
74
- - DATABASE_DEPENDENCY_PORT=27017
75
- - image: circleci/mongo:3
76
- steps: *steps
77
- build-ruby241-rails-505-mysql:
78
- docker:
79
- - image: circleci/ruby:2.4.1-node
80
- environment:
81
- - RAILS_VERSION=5.0.5
38
+ - RAILS_VERSION=5.2.4
82
39
  - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
83
- - EXCLUDE_MONGOID=true
84
40
  - DATABASE_DEPENDENCY_PORT=3306
85
41
  - image: circleci/mysql:5.7.18
86
42
  environment:
@@ -89,142 +45,26 @@ jobs:
89
45
  - MYSQL_PASSWORD=
90
46
  - MYSQL_DATABASE=statesman_test
91
47
  steps: *steps
92
- build-ruby241-rails-505-postgres:
48
+ build-ruby249-rails-524-postgres:
93
49
  docker:
94
- - image: circleci/ruby:2.4.1-node
50
+ - image: circleci/ruby:2.4.9-node
95
51
  environment:
96
- - RAILS_VERSION=5.0.5
52
+ - RAILS_VERSION=5.2.4
97
53
  - DATABASE_URL=postgres://postgres@localhost/statesman_test
98
- - EXCLUDE_MONGOID=true
99
54
  - DATABASE_DEPENDENCY_PORT=5432
100
55
  - image: circleci/postgres:9.6
101
56
  environment:
102
57
  - POSTGRES_USER=postgres
103
58
  - POSTGRES_DB=statesman_test
59
+ - POSTGRES_PASSWORD=statesman
104
60
  steps: *steps
105
- build-ruby241-rails-513-mongo:
106
- docker:
107
- - image: circleci/ruby:2.4.1-node
108
- environment:
109
- - RAILS_VERSION=5.1.3
110
- - DATABASE_DEPENDENCY_PORT=27017
111
- - image: circleci/mongo:3
112
- steps: *steps
113
- build-ruby241-rails-513-mysql:
114
- docker:
115
- - image: circleci/ruby:2.4.1-node
116
- environment:
117
- - RAILS_VERSION=5.1.3
118
- - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
119
- - EXCLUDE_MONGOID=true
120
- - DATABASE_DEPENDENCY_PORT=3306
121
- - image: circleci/mysql:5.7.18
122
- environment:
123
- - MYSQL_ALLOW_EMPTY_PASSWORD=true
124
- - MYSQL_USER=root
125
- - MYSQL_PASSWORD=
126
- - MYSQL_DATABASE=statesman_test
127
- steps: *steps
128
- build-ruby241-rails-513-postgres:
129
- docker:
130
- - image: circleci/ruby:2.4.1-node
131
- environment:
132
- - RAILS_VERSION=5.1.3
133
- - DATABASE_URL=postgres://postgres@localhost/statesman_test
134
- - EXCLUDE_MONGOID=true
135
- - DATABASE_DEPENDENCY_PORT=5432
136
- - image: circleci/postgres:9.6
137
- environment:
138
- - POSTGRES_USER=postgres
139
- - POSTGRES_DB=statesman_test
140
- steps: *steps
141
- build-ruby233-rails-429-mongo:
142
- docker:
143
- - image: circleci/ruby:2.3.3-node
144
- environment:
145
- - RAILS_VERSION=4.2.9
146
- - DATABASE_DEPENDENCY_PORT=27017
147
- - image: circleci/mongo:3
148
- steps: *steps
149
- build-ruby233-rails-429-mysql:
150
- docker:
151
- - image: circleci/ruby:2.3.3-node
152
- environment:
153
- - RAILS_VERSION=4.2.9
154
- - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
155
- - EXCLUDE_MONGOID=true
156
- - DATABASE_DEPENDENCY_PORT=3306
157
- - image: circleci/mysql:5.7.18
158
- environment:
159
- - MYSQL_ALLOW_EMPTY_PASSWORD=true
160
- - MYSQL_USER=root
161
- - MYSQL_PASSWORD=
162
- - MYSQL_DATABASE=statesman_test
163
- steps: *steps
164
- build-ruby233-rails-429-postgres:
165
- docker:
166
- - image: circleci/ruby:2.3.3-node
167
- environment:
168
- - RAILS_VERSION=4.2.9
169
- - DATABASE_URL=postgres://postgres@localhost/statesman_test
170
- - EXCLUDE_MONGOID=true
171
- - DATABASE_DEPENDENCY_PORT=5432
172
- - image: circleci/postgres:9.6
173
- environment:
174
- - POSTGRES_USER=postgres
175
- - POSTGRES_DB=statesman_test
176
- steps: *steps
177
- build-ruby233-rails-505-mongo:
178
- docker:
179
- - image: circleci/ruby:2.3.3-node
180
- environment:
181
- - RAILS_VERSION=5.0.5
182
- - DATABASE_DEPENDENCY_PORT=27017
183
- - image: circleci/mongo:3
184
- steps: *steps
185
- build-ruby233-rails-505-mysql:
186
- docker:
187
- - image: circleci/ruby:2.3.3-node
188
- environment:
189
- - RAILS_VERSION=5.0.5
190
- - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
191
- - EXCLUDE_MONGOID=true
192
- - DATABASE_DEPENDENCY_PORT=3306
193
- - image: circleci/mysql:5.7.18
194
- environment:
195
- - MYSQL_ALLOW_EMPTY_PASSWORD=true
196
- - MYSQL_USER=root
197
- - MYSQL_PASSWORD=
198
- - MYSQL_DATABASE=statesman_test
199
- steps: *steps
200
- build-ruby233-rails-505-postgres:
201
- docker:
202
- - image: circleci/ruby:2.3.3-node
203
- environment:
204
- - RAILS_VERSION=5.0.5
205
- - DATABASE_URL=postgres://postgres@localhost/statesman_test
206
- - EXCLUDE_MONGOID=true
207
- - DATABASE_DEPENDENCY_PORT=5432
208
- - image: circleci/postgres:9.6
209
- environment:
210
- - POSTGRES_USER=postgres
211
- - POSTGRES_DB=statesman_test
212
- steps: *steps
213
- build-ruby233-rails-513-mongo:
214
- docker:
215
- - image: circleci/ruby:2.3.3-node
216
- environment:
217
- - RAILS_VERSION=5.1.3
218
- - DATABASE_DEPENDENCY_PORT=27017
219
- - image: circleci/mongo:3
220
- steps: *steps
221
- build-ruby233-rails-513-mysql:
61
+
62
+ build-ruby265-rails-602-mysql:
222
63
  docker:
223
- - image: circleci/ruby:2.3.3-node
64
+ - image: circleci/ruby:2.6.5-node
224
65
  environment:
225
- - RAILS_VERSION=5.1.3
66
+ - RAILS_VERSION=6.0.2
226
67
  - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
227
- - EXCLUDE_MONGOID=true
228
68
  - DATABASE_DEPENDENCY_PORT=3306
229
69
  - image: circleci/mysql:5.7.18
230
70
  environment:
@@ -233,34 +73,25 @@ jobs:
233
73
  - MYSQL_PASSWORD=
234
74
  - MYSQL_DATABASE=statesman_test
235
75
  steps: *steps
236
- build-ruby233-rails-513-postgres:
76
+ build-ruby265-rails-602-postgres:
237
77
  docker:
238
- - image: circleci/ruby:2.3.3-node
78
+ - image: circleci/ruby:2.6.5-node
239
79
  environment:
240
- - RAILS_VERSION=5.1.3
80
+ - RAILS_VERSION=6.0.2
241
81
  - DATABASE_URL=postgres://postgres@localhost/statesman_test
242
- - EXCLUDE_MONGOID=true
243
82
  - DATABASE_DEPENDENCY_PORT=5432
244
83
  - image: circleci/postgres:9.6
245
84
  environment:
246
85
  - POSTGRES_USER=postgres
247
86
  - POSTGRES_DB=statesman_test
87
+ - POSTGRES_PASSWORD=statesman
248
88
  steps: *steps
249
- build-ruby227-rails-429-mongo:
250
- docker:
251
- - image: circleci/ruby:2.2.7-node
252
- environment:
253
- - RAILS_VERSION=4.2.9
254
- - DATABASE_DEPENDENCY_PORT=27017
255
- - image: circleci/mongo:3
256
- steps: *steps
257
- build-ruby227-rails-429-mysql:
89
+ build-ruby265-rails-master-mysql:
258
90
  docker:
259
- - image: circleci/ruby:2.2.7-node
91
+ - image: circleci/ruby:2.6.5-node
260
92
  environment:
261
- - RAILS_VERSION=4.2.9
93
+ - RAILS_VERSION=master
262
94
  - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
263
- - EXCLUDE_MONGOID=true
264
95
  - DATABASE_DEPENDENCY_PORT=3306
265
96
  - image: circleci/mysql:5.7.18
266
97
  environment:
@@ -269,11 +100,11 @@ jobs:
269
100
  - MYSQL_PASSWORD=
270
101
  - MYSQL_DATABASE=statesman_test
271
102
  steps: *steps
272
- build-ruby227-rails-429-postgres:
103
+ build-ruby265-rails-master-postgres:
273
104
  docker:
274
- - image: circleci/ruby:2.2.7-node
105
+ - image: circleci/ruby:2.6.5-node
275
106
  environment:
276
- - RAILS_VERSION=4.2.9
107
+ - RAILS_VERSION=master
277
108
  - DATABASE_URL=postgres://postgres@localhost/statesman_test
278
109
  - EXCLUDE_MONGOID=true
279
110
  - DATABASE_DEPENDENCY_PORT=5432
@@ -281,22 +112,15 @@ jobs:
281
112
  environment:
282
113
  - POSTGRES_USER=postgres
283
114
  - POSTGRES_DB=statesman_test
115
+ - POSTGRES_PASSWORD=statesman
284
116
  steps: *steps
285
- build-ruby227-rails-505-mongo:
286
- docker:
287
- - image: circleci/ruby:2.2.7-node
288
- environment:
289
- - RAILS_VERSION=5.0.5
290
- - DATABASE_DEPENDENCY_PORT=27017
291
- - image: circleci/mongo:3
292
- steps: *steps
293
- build-ruby227-rails-505-mysql:
117
+
118
+ build-ruby270-rails-602-mysql:
294
119
  docker:
295
- - image: circleci/ruby:2.2.7-node
120
+ - image: circleci/ruby:2.7.0-node
296
121
  environment:
297
- - RAILS_VERSION=5.0.5
122
+ - RAILS_VERSION=6.0.2
298
123
  - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
299
- - EXCLUDE_MONGOID=true
300
124
  - DATABASE_DEPENDENCY_PORT=3306
301
125
  - image: circleci/mysql:5.7.18
302
126
  environment:
@@ -305,34 +129,25 @@ jobs:
305
129
  - MYSQL_PASSWORD=
306
130
  - MYSQL_DATABASE=statesman_test
307
131
  steps: *steps
308
- build-ruby227-rails-505-postgres:
132
+ build-ruby270-rails-602-postgres:
309
133
  docker:
310
- - image: circleci/ruby:2.2.7-node
134
+ - image: circleci/ruby:2.7.0-node
311
135
  environment:
312
- - RAILS_VERSION=5.0.5
136
+ - RAILS_VERSION=6.0.2
313
137
  - DATABASE_URL=postgres://postgres@localhost/statesman_test
314
- - EXCLUDE_MONGOID=true
315
138
  - DATABASE_DEPENDENCY_PORT=5432
316
139
  - image: circleci/postgres:9.6
317
140
  environment:
318
141
  - POSTGRES_USER=postgres
319
142
  - POSTGRES_DB=statesman_test
143
+ - POSTGRES_PASSWORD=statesman
320
144
  steps: *steps
321
- build-ruby227-rails-513-mongo:
145
+ build-ruby270-rails-master-mysql:
322
146
  docker:
323
- - image: circleci/ruby:2.2.7-node
147
+ - image: circleci/ruby:2.7.0-node
324
148
  environment:
325
- - RAILS_VERSION=5.1.3
326
- - DATABASE_DEPENDENCY_PORT=27017
327
- - image: circleci/mongo:3
328
- steps: *steps
329
- build-ruby227-rails-513-mysql:
330
- docker:
331
- - image: circleci/ruby:2.2.7-node
332
- environment:
333
- - RAILS_VERSION=5.1.3
149
+ - RAILS_VERSION=master
334
150
  - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
335
- - EXCLUDE_MONGOID=true
336
151
  - DATABASE_DEPENDENCY_PORT=3306
337
152
  - image: circleci/mysql:5.7.18
338
153
  environment:
@@ -341,11 +156,11 @@ jobs:
341
156
  - MYSQL_PASSWORD=
342
157
  - MYSQL_DATABASE=statesman_test
343
158
  steps: *steps
344
- build-ruby227-rails-513-postgres:
159
+ build-ruby270-rails-master-postgres:
345
160
  docker:
346
- - image: circleci/ruby:2.2.7-node
161
+ - image: circleci/ruby:2.7.0-node
347
162
  environment:
348
- - RAILS_VERSION=5.1.3
163
+ - RAILS_VERSION=master
349
164
  - DATABASE_URL=postgres://postgres@localhost/statesman_test
350
165
  - EXCLUDE_MONGOID=true
351
166
  - DATABASE_DEPENDENCY_PORT=5432
@@ -353,36 +168,20 @@ jobs:
353
168
  environment:
354
169
  - POSTGRES_USER=postgres
355
170
  - POSTGRES_DB=statesman_test
171
+ - POSTGRES_PASSWORD=statesman
356
172
  steps: *steps
357
173
 
358
174
  workflows:
359
175
  version: 2
360
176
  tests:
361
177
  jobs:
362
- - build-ruby241-rails-429-mongo
363
- - build-ruby241-rails-429-mysql
364
- - build-ruby241-rails-429-postgres
365
- - build-ruby241-rails-505-mongo
366
- - build-ruby241-rails-505-mysql
367
- - build-ruby241-rails-505-postgres
368
- - build-ruby241-rails-513-mongo
369
- - build-ruby241-rails-513-mysql
370
- - build-ruby241-rails-513-postgres
371
- - build-ruby233-rails-429-mongo
372
- - build-ruby233-rails-429-mysql
373
- - build-ruby233-rails-429-postgres
374
- - build-ruby233-rails-505-mongo
375
- - build-ruby233-rails-505-mysql
376
- - build-ruby233-rails-505-postgres
377
- - build-ruby233-rails-513-mongo
378
- - build-ruby233-rails-513-mysql
379
- - build-ruby233-rails-513-postgres
380
- - build-ruby227-rails-429-mongo
381
- - build-ruby227-rails-429-mysql
382
- - build-ruby227-rails-429-postgres
383
- - build-ruby227-rails-505-mongo
384
- - build-ruby227-rails-505-mysql
385
- - build-ruby227-rails-505-postgres
386
- - build-ruby227-rails-513-mongo
387
- - build-ruby227-rails-513-mysql
388
- - build-ruby227-rails-513-postgres
178
+ - build-ruby249-rails-524-mysql
179
+ - build-ruby249-rails-524-postgres
180
+ - build-ruby265-rails-602-mysql
181
+ - build-ruby265-rails-602-postgres
182
+ - build-ruby265-rails-master-mysql
183
+ - build-ruby265-rails-master-postgres
184
+ - build-ruby270-rails-602-mysql
185
+ - build-ruby270-rails-602-postgres
186
+ - build-ruby270-rails-master-mysql
187
+ - build-ruby270-rails-master-postgres
@@ -4,4 +4,4 @@ inherit_gem:
4
4
  gc_ruboconfig: rubocop.yml
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 2.2
7
+ TargetRubyVersion: 2.4
@@ -1,20 +1,31 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-06-07 12:21:30 +0100 using RuboCop version 0.56.0.
3
+ # on 2019-08-17 15:19:58 +0100 using RuboCop version 0.61.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 4
9
+ Gemspec/RequiredRubyVersion:
10
+ Enabled: false # We want to allow Ruby 2.2 even though we don't test on it
11
+
12
+ # Offense count: 5
10
13
  Metrics/AbcSize:
11
14
  Max: 18
12
15
 
13
16
  # Offense count: 4
14
- # Configuration parameters: CountComments.
17
+ # Configuration parameters: CountComments, ExcludedMethods.
15
18
  Metrics/MethodLength:
16
19
  Max: 14
17
20
 
21
+ # Offense count: 2
22
+ # Cop supports --auto-correct.
23
+ # Configuration parameters: SkipBlocks, EnforcedStyle.
24
+ # SupportedStyles: described_class, explicit
25
+ RSpec/DescribedClass:
26
+ Exclude:
27
+ - 'spec/statesman/adapters/active_record_queries_spec.rb'
28
+
18
29
  # Offense count: 7
19
30
  # Configuration parameters: Max.
20
31
  RSpec/ExampleLength:
@@ -29,6 +40,12 @@ RSpec/ExpectInHook:
29
40
  - 'spec/statesman/adapters/active_record_spec.rb'
30
41
  - 'spec/statesman/machine_spec.rb'
31
42
 
43
+ # Offense count: 3
44
+ RSpec/ImplicitBlockExpectation:
45
+ Exclude:
46
+ - 'spec/statesman/adapters/active_record_spec.rb'
47
+ - 'spec/statesman/adapters/shared_examples.rb'
48
+
32
49
  # Offense count: 1
33
50
  # Configuration parameters: AssignmentOnly.
34
51
  RSpec/InstanceVariable:
@@ -40,6 +57,11 @@ RSpec/IteratedExpectation:
40
57
  Exclude:
41
58
  - 'spec/statesman/machine_spec.rb'
42
59
 
60
+ # Offense count: 1
61
+ RSpec/LeakyConstantDeclaration:
62
+ Exclude:
63
+ - 'spec/statesman/adapters/active_record_queries_spec.rb'
64
+
43
65
  # Offense count: 3
44
66
  RSpec/LetSetup:
45
67
  Exclude:
@@ -66,16 +88,14 @@ RSpec/NestedGroups:
66
88
  RSpec/ScatteredSetup:
67
89
  Exclude:
68
90
  - 'spec/statesman/adapters/active_record_spec.rb'
69
- - 'spec/statesman/adapters/mongoid_spec.rb'
70
91
  - 'spec/statesman/adapters/shared_examples.rb'
71
92
  - 'spec/statesman/machine_spec.rb'
72
93
 
73
94
  # Offense count: 8
74
- # Configuration parameters: IgnoreSymbolicNames.
95
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
75
96
  RSpec/VerifiedDoubles:
76
97
  Exclude:
77
98
  - 'spec/generators/statesman/active_record_transition_generator_spec.rb'
78
99
  - 'spec/generators/statesman/migration_generator_spec.rb'
79
100
  - 'spec/statesman/adapters/active_record_spec.rb'
80
- - 'spec/statesman/adapters/mongoid_spec.rb'
81
101
  - 'spec/statesman/adapters/shared_examples.rb'