statesman 7.0.0 → 7.0.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
2
  SHA256:
3
- metadata.gz: 3e43186830b499468b2a68209d617f21c2d69039ce77e2e91182de63b617bd63
4
- data.tar.gz: 1bd2c4b13efbed3525e9bb03fe301c6695b21d4d6228a906276acbb0198010d4
3
+ metadata.gz: 4e098c0148958526a38807f1019f76735c627dcd57124bd61108c52ec5d468a1
4
+ data.tar.gz: 7ee21582573f6aa3887b5081e96850080ad450afeec1431365fcab492ef8fc1a
5
5
  SHA512:
6
- metadata.gz: 9caf345cd2c806be717407e9ee4cf4a15e2bec5e583f7b5f2ba1bee7cf6ef531d2e32a0cf9196cc1e2af0e2a168e584c09d5eea076a0381837cd769bf13f9814
7
- data.tar.gz: af376684100920894aca78bbee1cb4e7e17bc3202bb8aa649a29c40789f3545455e78c9d61ceb6dc99e37aafd5b8f78421cd8813e53c7e77c099a46aac150968
6
+ metadata.gz: bcc7845c4fe7e31640bfa956f7aae786fd3bbbc395af0a5266e1b18c67cd309265e9b6076cd6ba75c90802f48a1e95c716cd39f5303e7410063b403cc0eec3d1
7
+ data.tar.gz: b359e526717980326362978645a5abcd2c1fd8eeaa07ddb6ea41212100c05d4588e752791bf9592495abf6e30d06cb7ea488825266caf3440f66dbd4d22bc903
@@ -12,7 +12,7 @@ references:
12
12
  - type: cache-restore
13
13
  key: statesman-{{ checksum "Gemfile" }}-{{ checksum "~/RAILS_VERSION.txt" }}
14
14
 
15
- - run: gem install bundler -v 1.3
15
+ - run: gem install bundler -v 2.1.4
16
16
 
17
17
  - run: bundle install --path vendor/bundle
18
18
 
@@ -31,6 +31,33 @@ references:
31
31
  path: /tmp/test-results
32
32
 
33
33
  jobs:
34
+ build-ruby249-rails-524-mysql:
35
+ docker:
36
+ - image: circleci/ruby:2.4.9-node
37
+ environment:
38
+ - RAILS_VERSION=5.2.4
39
+ - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
40
+ - DATABASE_DEPENDENCY_PORT=3306
41
+ - image: circleci/mysql:5.7.18
42
+ environment:
43
+ - MYSQL_ALLOW_EMPTY_PASSWORD=true
44
+ - MYSQL_USER=root
45
+ - MYSQL_PASSWORD=
46
+ - MYSQL_DATABASE=statesman_test
47
+ steps: *steps
48
+ build-ruby249-rails-524-postgres:
49
+ docker:
50
+ - image: circleci/ruby:2.4.9-node
51
+ environment:
52
+ - RAILS_VERSION=5.2.4
53
+ - DATABASE_URL=postgres://postgres@localhost/statesman_test
54
+ - DATABASE_DEPENDENCY_PORT=5432
55
+ - image: circleci/postgres:9.6
56
+ environment:
57
+ - POSTGRES_USER=postgres
58
+ - POSTGRES_DB=statesman_test
59
+ steps: *steps
60
+
34
61
  build-ruby265-rails-602-mysql:
35
62
  docker:
36
63
  - image: circleci/ruby:2.6.5-node
@@ -84,11 +111,12 @@ jobs:
84
111
  - POSTGRES_USER=postgres
85
112
  - POSTGRES_DB=statesman_test
86
113
  steps: *steps
87
- build-ruby249-rails-524-mysql:
114
+
115
+ build-ruby270-rails-602-mysql:
88
116
  docker:
89
- - image: circleci/ruby:2.4.9-node
117
+ - image: circleci/ruby:2.7.0-node
90
118
  environment:
91
- - RAILS_VERSION=5.2.4
119
+ - RAILS_VERSION=6.0.2
92
120
  - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
93
121
  - DATABASE_DEPENDENCY_PORT=3306
94
122
  - image: circleci/mysql:5.7.18
@@ -98,11 +126,11 @@ jobs:
98
126
  - MYSQL_PASSWORD=
99
127
  - MYSQL_DATABASE=statesman_test
100
128
  steps: *steps
101
- build-ruby249-rails-524-postgres:
129
+ build-ruby270-rails-602-postgres:
102
130
  docker:
103
- - image: circleci/ruby:2.4.9-node
131
+ - image: circleci/ruby:2.7.0-node
104
132
  environment:
105
- - RAILS_VERSION=5.2.4
133
+ - RAILS_VERSION=6.0.2
106
134
  - DATABASE_URL=postgres://postgres@localhost/statesman_test
107
135
  - DATABASE_DEPENDENCY_PORT=5432
108
136
  - image: circleci/postgres:9.6
@@ -110,7 +138,33 @@ jobs:
110
138
  - POSTGRES_USER=postgres
111
139
  - POSTGRES_DB=statesman_test
112
140
  steps: *steps
113
-
141
+ build-ruby270-rails-master-mysql:
142
+ docker:
143
+ - image: circleci/ruby:2.7.0-node
144
+ environment:
145
+ - RAILS_VERSION=master
146
+ - DATABASE_URL=mysql2://root@127.0.0.1/statesman_test
147
+ - DATABASE_DEPENDENCY_PORT=3306
148
+ - image: circleci/mysql:5.7.18
149
+ environment:
150
+ - MYSQL_ALLOW_EMPTY_PASSWORD=true
151
+ - MYSQL_USER=root
152
+ - MYSQL_PASSWORD=
153
+ - MYSQL_DATABASE=statesman_test
154
+ steps: *steps
155
+ build-ruby270-rails-master-postgres:
156
+ docker:
157
+ - image: circleci/ruby:2.7.0-node
158
+ environment:
159
+ - RAILS_VERSION=master
160
+ - DATABASE_URL=postgres://postgres@localhost/statesman_test
161
+ - EXCLUDE_MONGOID=true
162
+ - DATABASE_DEPENDENCY_PORT=5432
163
+ - image: circleci/postgres:9.6
164
+ environment:
165
+ - POSTGRES_USER=postgres
166
+ - POSTGRES_DB=statesman_test
167
+ steps: *steps
114
168
 
115
169
  workflows:
116
170
  version: 2
@@ -122,3 +176,7 @@ workflows:
122
176
  - build-ruby265-rails-602-postgres
123
177
  - build-ruby265-rails-master-mysql
124
178
  - build-ruby265-rails-master-postgres
179
+ - build-ruby270-rails-602-mysql
180
+ - build-ruby270-rails-602-postgres
181
+ - build-ruby270-rails-master-mysql
182
+ - build-ruby270-rails-master-postgres
@@ -1,3 +1,7 @@
1
+ ## v7.0.1, 8th Jan 2020
2
+
3
+ - Fix deprecation warning with Ruby 2.7 [#386](https://github.com/gocardless/statesman/pull/386)
4
+
1
5
  ## v7.0.0, 8th Jan 2020
2
6
 
3
7
  **Breaking changes**
data/README.md CHANGED
@@ -30,7 +30,7 @@ protection.
30
30
  To get started, just add Statesman to your `Gemfile`, and then run `bundle`:
31
31
 
32
32
  ```ruby
33
- gem 'statesman', '~> 5.2.0'
33
+ gem 'statesman', '~> 7.0.1'
34
34
  ```
35
35
 
36
36
  ## Usage
@@ -197,8 +197,8 @@ module Statesman
197
197
  end
198
198
 
199
199
  class ActiveRecordAfterCommitWrap
200
- def initialize
201
- @callback = Proc.new
200
+ def initialize(&block)
201
+ @callback = block
202
202
  @connection = ::ActiveRecord::Base.connection
203
203
  end
204
204
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Statesman
4
- VERSION = "7.0.0"
4
+ VERSION = "7.0.1"
5
5
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.required_ruby_version = ">= 2.2"
23
23
 
24
24
  spec.add_development_dependency "ammeter", "~> 1.1"
25
- spec.add_development_dependency "bundler", "~> 1.3"
25
+ spec.add_development_dependency "bundler", "~> 2.1.4"
26
26
  spec.add_development_dependency "gc_ruboconfig", "~> 2.3.9"
27
27
  spec.add_development_dependency "mysql2", ">= 0.4", "< 0.6"
28
28
  spec.add_development_dependency "pg", "~> 0.18"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statesman
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
33
+ version: 2.1.4
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.3'
40
+ version: 2.1.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gc_ruboconfig
43
43
  requirement: !ruby/object:Gem::Requirement