statesman 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +30 -98
- data/.rubocop_todo.yml +23 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +7 -1
- data/lib/statesman/adapters/active_record.rb +8 -0
- data/lib/statesman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4d4aa46f593b25a40fdb2ce22c437d06edf7ec4
|
4
|
+
data.tar.gz: 9b734682ee2d770977863fff48db0e0606fea028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 890add9a875cfa4bda6a926059b57bdc03c64c8aa3d525d0ee7ff3530a0d2c4c6b0230acfebd2079e89e4eafb655b368acc7d64492650fce6464bcb5958e29ae
|
7
|
+
data.tar.gz: 289d75e87a6a8ba34493fde16d24b3747840b3c865bae67b0bf9fbb991de86e2f0006e9cf48679c89a6bcbbe66deaec19bfaf1e4023b60918ce4088c9ab43e2c
|
data/.circleci/config.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
version: 2
|
2
3
|
|
3
4
|
references:
|
@@ -30,14 +31,6 @@ references:
|
|
30
31
|
path: /tmp/test-results
|
31
32
|
|
32
33
|
jobs:
|
33
|
-
build-ruby241-rails-429-mongo:
|
34
|
-
docker:
|
35
|
-
- image: circleci/ruby:2.4.1-node
|
36
|
-
environment:
|
37
|
-
- RAILS_VERSION=4.2.9
|
38
|
-
- DATABASE_DEPENDENCY_PORT=27017
|
39
|
-
- image: circleci/mongo:3
|
40
|
-
steps: *steps
|
41
34
|
build-ruby241-rails-429-mysql:
|
42
35
|
docker:
|
43
36
|
- image: circleci/ruby:2.4.1-node
|
@@ -66,14 +59,6 @@ jobs:
|
|
66
59
|
- POSTGRES_USER=postgres
|
67
60
|
- POSTGRES_DB=statesman_test
|
68
61
|
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
62
|
build-ruby241-rails-505-mysql:
|
78
63
|
docker:
|
79
64
|
- image: circleci/ruby:2.4.1-node
|
@@ -102,14 +87,6 @@ jobs:
|
|
102
87
|
- POSTGRES_USER=postgres
|
103
88
|
- POSTGRES_DB=statesman_test
|
104
89
|
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
90
|
build-ruby241-rails-513-mysql:
|
114
91
|
docker:
|
115
92
|
- image: circleci/ruby:2.4.1-node
|
@@ -138,19 +115,11 @@ jobs:
|
|
138
115
|
- POSTGRES_USER=postgres
|
139
116
|
- POSTGRES_DB=statesman_test
|
140
117
|
steps: *steps
|
141
|
-
build-ruby262-rails-600-mongo:
|
142
|
-
docker:
|
143
|
-
- image: circleci/ruby:2.6.2-node
|
144
|
-
environment:
|
145
|
-
- RAILS_VERSION=6.0.0.rc1
|
146
|
-
- DATABASE_DEPENDENCY_PORT=27017
|
147
|
-
- image: circleci/mongo:3
|
148
|
-
steps: *steps
|
149
118
|
build-ruby262-rails-600-mysql:
|
150
119
|
docker:
|
151
120
|
- image: circleci/ruby:2.6.2-node
|
152
121
|
environment:
|
153
|
-
- RAILS_VERSION=6.0.0
|
122
|
+
- RAILS_VERSION=6.0.0
|
154
123
|
- DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
|
155
124
|
- EXCLUDE_MONGOID=true
|
156
125
|
- DATABASE_DEPENDENCY_PORT=3306
|
@@ -165,7 +134,7 @@ jobs:
|
|
165
134
|
docker:
|
166
135
|
- image: circleci/ruby:2.6.2-node
|
167
136
|
environment:
|
168
|
-
- RAILS_VERSION=6.0.0
|
137
|
+
- RAILS_VERSION=6.0.0
|
169
138
|
- DATABASE_URL=postgres://postgres@localhost/statesman_test
|
170
139
|
- EXCLUDE_MONGOID=true
|
171
140
|
- DATABASE_DEPENDENCY_PORT=5432
|
@@ -174,13 +143,33 @@ jobs:
|
|
174
143
|
- POSTGRES_USER=postgres
|
175
144
|
- POSTGRES_DB=statesman_test
|
176
145
|
steps: *steps
|
177
|
-
build-
|
146
|
+
build-ruby262-rails-master-mysql:
|
178
147
|
docker:
|
179
|
-
- image: circleci/ruby:2.
|
148
|
+
- image: circleci/ruby:2.6.2-node
|
180
149
|
environment:
|
181
|
-
- RAILS_VERSION=
|
182
|
-
-
|
183
|
-
|
150
|
+
- RAILS_VERSION=master
|
151
|
+
- DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
|
152
|
+
- EXCLUDE_MONGOID=true
|
153
|
+
- DATABASE_DEPENDENCY_PORT=3306
|
154
|
+
- image: circleci/mysql:5.7.18
|
155
|
+
environment:
|
156
|
+
- MYSQL_ALLOW_EMPTY_PASSWORD=true
|
157
|
+
- MYSQL_USER=root
|
158
|
+
- MYSQL_PASSWORD=
|
159
|
+
- MYSQL_DATABASE=statesman_test
|
160
|
+
steps: *steps
|
161
|
+
build-ruby262-rails-master-postgres:
|
162
|
+
docker:
|
163
|
+
- image: circleci/ruby:2.6.2-node
|
164
|
+
environment:
|
165
|
+
- RAILS_VERSION=master
|
166
|
+
- DATABASE_URL=postgres://postgres@localhost/statesman_test
|
167
|
+
- EXCLUDE_MONGOID=true
|
168
|
+
- DATABASE_DEPENDENCY_PORT=5432
|
169
|
+
- image: circleci/postgres:9.6
|
170
|
+
environment:
|
171
|
+
- POSTGRES_USER=postgres
|
172
|
+
- POSTGRES_DB=statesman_test
|
184
173
|
steps: *steps
|
185
174
|
build-ruby241-rails-523-mysql:
|
186
175
|
docker:
|
@@ -210,14 +199,6 @@ jobs:
|
|
210
199
|
- POSTGRES_USER=postgres
|
211
200
|
- POSTGRES_DB=statesman_test
|
212
201
|
steps: *steps
|
213
|
-
build-ruby233-rails-429-mongo:
|
214
|
-
docker:
|
215
|
-
- image: circleci/ruby:2.3.3-node
|
216
|
-
environment:
|
217
|
-
- RAILS_VERSION=4.2.9
|
218
|
-
- DATABASE_DEPENDENCY_PORT=27017
|
219
|
-
- image: circleci/mongo:3
|
220
|
-
steps: *steps
|
221
202
|
build-ruby233-rails-429-mysql:
|
222
203
|
docker:
|
223
204
|
- image: circleci/ruby:2.3.3-node
|
@@ -246,14 +227,6 @@ jobs:
|
|
246
227
|
- POSTGRES_USER=postgres
|
247
228
|
- POSTGRES_DB=statesman_test
|
248
229
|
steps: *steps
|
249
|
-
build-ruby233-rails-505-mongo:
|
250
|
-
docker:
|
251
|
-
- image: circleci/ruby:2.3.3-node
|
252
|
-
environment:
|
253
|
-
- RAILS_VERSION=5.0.5
|
254
|
-
- DATABASE_DEPENDENCY_PORT=27017
|
255
|
-
- image: circleci/mongo:3
|
256
|
-
steps: *steps
|
257
230
|
build-ruby233-rails-505-mysql:
|
258
231
|
docker:
|
259
232
|
- image: circleci/ruby:2.3.3-node
|
@@ -282,14 +255,6 @@ jobs:
|
|
282
255
|
- POSTGRES_USER=postgres
|
283
256
|
- POSTGRES_DB=statesman_test
|
284
257
|
steps: *steps
|
285
|
-
build-ruby233-rails-513-mongo:
|
286
|
-
docker:
|
287
|
-
- image: circleci/ruby:2.3.3-node
|
288
|
-
environment:
|
289
|
-
- RAILS_VERSION=5.1.3
|
290
|
-
- DATABASE_DEPENDENCY_PORT=27017
|
291
|
-
- image: circleci/mongo:3
|
292
|
-
steps: *steps
|
293
258
|
build-ruby233-rails-513-mysql:
|
294
259
|
docker:
|
295
260
|
- image: circleci/ruby:2.3.3-node
|
@@ -318,14 +283,6 @@ jobs:
|
|
318
283
|
- POSTGRES_USER=postgres
|
319
284
|
- POSTGRES_DB=statesman_test
|
320
285
|
steps: *steps
|
321
|
-
build-ruby227-rails-429-mongo:
|
322
|
-
docker:
|
323
|
-
- image: circleci/ruby:2.2.7-node
|
324
|
-
environment:
|
325
|
-
- RAILS_VERSION=4.2.9
|
326
|
-
- DATABASE_DEPENDENCY_PORT=27017
|
327
|
-
- image: circleci/mongo:3
|
328
|
-
steps: *steps
|
329
286
|
build-ruby227-rails-429-mysql:
|
330
287
|
docker:
|
331
288
|
- image: circleci/ruby:2.2.7-node
|
@@ -354,14 +311,6 @@ jobs:
|
|
354
311
|
- POSTGRES_USER=postgres
|
355
312
|
- POSTGRES_DB=statesman_test
|
356
313
|
steps: *steps
|
357
|
-
build-ruby227-rails-505-mongo:
|
358
|
-
docker:
|
359
|
-
- image: circleci/ruby:2.2.7-node
|
360
|
-
environment:
|
361
|
-
- RAILS_VERSION=5.0.5
|
362
|
-
- DATABASE_DEPENDENCY_PORT=27017
|
363
|
-
- image: circleci/mongo:3
|
364
|
-
steps: *steps
|
365
314
|
build-ruby227-rails-505-mysql:
|
366
315
|
docker:
|
367
316
|
- image: circleci/ruby:2.2.7-node
|
@@ -390,14 +339,6 @@ jobs:
|
|
390
339
|
- POSTGRES_USER=postgres
|
391
340
|
- POSTGRES_DB=statesman_test
|
392
341
|
steps: *steps
|
393
|
-
build-ruby227-rails-513-mongo:
|
394
|
-
docker:
|
395
|
-
- image: circleci/ruby:2.2.7-node
|
396
|
-
environment:
|
397
|
-
- RAILS_VERSION=5.1.3
|
398
|
-
- DATABASE_DEPENDENCY_PORT=27017
|
399
|
-
- image: circleci/mongo:3
|
400
|
-
steps: *steps
|
401
342
|
build-ruby227-rails-513-mysql:
|
402
343
|
docker:
|
403
344
|
- image: circleci/ruby:2.2.7-node
|
@@ -431,36 +372,27 @@ workflows:
|
|
431
372
|
version: 2
|
432
373
|
tests:
|
433
374
|
jobs:
|
434
|
-
- build-ruby241-rails-429-mongo
|
435
375
|
- build-ruby241-rails-429-mysql
|
436
376
|
- build-ruby241-rails-429-postgres
|
437
|
-
- build-ruby241-rails-505-mongo
|
438
377
|
- build-ruby241-rails-505-mysql
|
439
378
|
- build-ruby241-rails-505-postgres
|
440
|
-
- build-ruby241-rails-513-mongo
|
441
379
|
- build-ruby241-rails-513-mysql
|
442
380
|
- build-ruby241-rails-513-postgres
|
443
|
-
- build-ruby241-rails-523-mongo
|
444
381
|
- build-ruby241-rails-523-mysql
|
445
382
|
- build-ruby241-rails-523-postgres
|
446
|
-
- build-ruby262-rails-600-mongo
|
447
383
|
- build-ruby262-rails-600-mysql
|
448
384
|
- build-ruby262-rails-600-postgres
|
449
|
-
- build-
|
385
|
+
- build-ruby262-rails-master-mysql
|
386
|
+
- build-ruby262-rails-master-postgres
|
450
387
|
- build-ruby233-rails-429-mysql
|
451
388
|
- build-ruby233-rails-429-postgres
|
452
|
-
- build-ruby233-rails-505-mongo
|
453
389
|
- build-ruby233-rails-505-mysql
|
454
390
|
- build-ruby233-rails-505-postgres
|
455
|
-
- build-ruby233-rails-513-mongo
|
456
391
|
- build-ruby233-rails-513-mysql
|
457
392
|
- build-ruby233-rails-513-postgres
|
458
|
-
- build-ruby227-rails-429-mongo
|
459
393
|
- build-ruby227-rails-429-mysql
|
460
394
|
- build-ruby227-rails-429-postgres
|
461
|
-
- build-ruby227-rails-505-mongo
|
462
395
|
- build-ruby227-rails-505-mysql
|
463
396
|
- build-ruby227-rails-505-postgres
|
464
|
-
- build-ruby227-rails-513-mongo
|
465
397
|
- build-ruby227-rails-513-mysql
|
466
398
|
- build-ruby227-rails-513-postgres
|
data/.rubocop_todo.yml
CHANGED
@@ -1,20 +1,28 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
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:
|
9
|
+
# Offense count: 5
|
10
10
|
Metrics/AbcSize:
|
11
11
|
Max: 18
|
12
12
|
|
13
13
|
# Offense count: 4
|
14
|
-
# Configuration parameters: CountComments.
|
14
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
15
15
|
Metrics/MethodLength:
|
16
16
|
Max: 14
|
17
17
|
|
18
|
+
# Offense count: 2
|
19
|
+
# Cop supports --auto-correct.
|
20
|
+
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
21
|
+
# SupportedStyles: described_class, explicit
|
22
|
+
RSpec/DescribedClass:
|
23
|
+
Exclude:
|
24
|
+
- 'spec/statesman/adapters/active_record_queries_spec.rb'
|
25
|
+
|
18
26
|
# Offense count: 7
|
19
27
|
# Configuration parameters: Max.
|
20
28
|
RSpec/ExampleLength:
|
@@ -29,6 +37,12 @@ RSpec/ExpectInHook:
|
|
29
37
|
- 'spec/statesman/adapters/active_record_spec.rb'
|
30
38
|
- 'spec/statesman/machine_spec.rb'
|
31
39
|
|
40
|
+
# Offense count: 3
|
41
|
+
RSpec/ImplicitBlockExpectation:
|
42
|
+
Exclude:
|
43
|
+
- 'spec/statesman/adapters/active_record_spec.rb'
|
44
|
+
- 'spec/statesman/adapters/shared_examples.rb'
|
45
|
+
|
32
46
|
# Offense count: 1
|
33
47
|
# Configuration parameters: AssignmentOnly.
|
34
48
|
RSpec/InstanceVariable:
|
@@ -40,6 +54,11 @@ RSpec/IteratedExpectation:
|
|
40
54
|
Exclude:
|
41
55
|
- 'spec/statesman/machine_spec.rb'
|
42
56
|
|
57
|
+
# Offense count: 1
|
58
|
+
RSpec/LeakyConstantDeclaration:
|
59
|
+
Exclude:
|
60
|
+
- 'spec/statesman/adapters/active_record_queries_spec.rb'
|
61
|
+
|
43
62
|
# Offense count: 3
|
44
63
|
RSpec/LetSetup:
|
45
64
|
Exclude:
|
@@ -71,7 +90,7 @@ RSpec/ScatteredSetup:
|
|
71
90
|
- 'spec/statesman/machine_spec.rb'
|
72
91
|
|
73
92
|
# Offense count: 8
|
74
|
-
# Configuration parameters: IgnoreSymbolicNames.
|
93
|
+
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
75
94
|
RSpec/VerifiedDoubles:
|
76
95
|
Exclude:
|
77
96
|
- 'spec/generators/statesman/active_record_transition_generator_spec.rb'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## v4.1.2, 17th August 2019
|
2
|
+
|
3
|
+
- Add support for Rails 6 [@greysteil](https://github.com/gocardless/statesman/pull/360)
|
4
|
+
|
1
5
|
## v4.1.1, 6th July 2019
|
2
6
|
|
3
7
|
- Fix statesman index detection for indexes that start t-z [@hmarr](https://github.com/gocardless/statesman/pull/354)
|
data/Gemfile
CHANGED
@@ -2,7 +2,13 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
5
|
+
# rubocop:disable Bundler/DuplicatedGem
|
6
|
+
if ENV['RAILS_VERSION'] == 'master'
|
7
|
+
gem "rails", git: "https://github.com/rails/rails"
|
8
|
+
elsif ENV['RAILS_VERSION']
|
9
|
+
gem "rails", "~> #{ENV['RAILS_VERSION']}"
|
10
|
+
end
|
11
|
+
# rubocop:enable Bundler/DuplicatedGem
|
6
12
|
|
7
13
|
group :development do
|
8
14
|
gem "mongoid", ">= 3.1" unless ENV["EXCLUDE_MONGOID"]
|
@@ -200,6 +200,14 @@ module Statesman
|
|
200
200
|
@connection = ::ActiveRecord::Base.connection
|
201
201
|
end
|
202
202
|
|
203
|
+
def self.trigger_transactional_callbacks?
|
204
|
+
true
|
205
|
+
end
|
206
|
+
|
207
|
+
def trigger_transactional_callbacks?
|
208
|
+
true
|
209
|
+
end
|
210
|
+
|
203
211
|
# rubocop: disable Naming/PredicateName
|
204
212
|
def has_transactional_callbacks?
|
205
213
|
true
|
data/lib/statesman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statesman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ammeter
|