derail_specs 0.5.0 → 0.5.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/CHANGELOG.md +4 -1
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/example/Gemfile.lock +1 -1
- data/lib/derail_specs/initializer_hooks.rb +2 -4
- data/lib/derail_specs/transaction.rb +4 -1
- data/lib/derail_specs/version.rb +1 -1
- data/lib/generators/templates/config/initializers/derail_specs.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cf9a4363bbaa67b3fce2b01191b7bb8f7a11bdea4b1d710702e47b303cc379f
|
|
4
|
+
data.tar.gz: 94cad7e3e96d35edb0c67dc153f366f0252e1aa5e8dec31cc182d77b3757b969
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5da35b8957275ab2eb84d7985e941b3800e6cd08af6090b98db477237f9d2d1e350083178abefe297e94accbdadb6b1dac8d15f28f58daab26812bf5398df70d
|
|
7
|
+
data.tar.gz: 015ef7e97de920756eeb547391f11204ca3011d5a6842d20b0ecc63c9b39cd1ea71cca72c5d3b851098e31208e29de6295412d547bad513b95ab08b62b1e46b4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.5.1] - 2021-09-23
|
|
4
|
+
|
|
5
|
+
- Fixed a bug with Ruby 2.6 and Rails >= 6 where #bind_call (Ruby 2.7) was used instead of #bind#call
|
|
3
6
|
|
|
4
7
|
## [0.5.0] - 2021-09-17
|
|
5
8
|
|
|
@@ -8,7 +11,7 @@
|
|
|
8
11
|
## [0.4.0] - 2021-09-16
|
|
9
12
|
|
|
10
13
|
- Add infinite server mode, which can be used by not setting a command in the config
|
|
11
|
-
|
|
14
|
+
|
|
12
15
|
## [0.3.0] - 2021-09-16
|
|
13
16
|
|
|
14
17
|
- Add `/factory-bot/create` route to map to FactoryBot.create
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
derail_specs (0.5.
|
|
4
|
+
derail_specs (0.5.1)
|
|
5
5
|
puma (>= 3.8.0)
|
|
6
6
|
railties (>= 5.2.0)
|
|
7
7
|
|
|
@@ -49,7 +49,7 @@ GEM
|
|
|
49
49
|
parallel (1.21.0)
|
|
50
50
|
parser (3.0.2.0)
|
|
51
51
|
ast (~> 2.4.1)
|
|
52
|
-
puma (5.
|
|
52
|
+
puma (5.5.0)
|
|
53
53
|
nio4r (~> 2.0)
|
|
54
54
|
racc (1.5.2)
|
|
55
55
|
rack (2.2.3)
|
data/README.md
CHANGED
|
@@ -32,7 +32,7 @@ to include your test command:
|
|
|
32
32
|
|
|
33
33
|
```ruby
|
|
34
34
|
DerailSpecs.configure do |config|
|
|
35
|
-
config.command = './tests.sh' # <-- your test command here
|
|
35
|
+
config.command = './tests.sh' # <-- your test command here, or blank for infinite mode
|
|
36
36
|
config.host = '127.0.0.1'
|
|
37
37
|
config.port = 3001
|
|
38
38
|
end
|
|
@@ -97,7 +97,7 @@ curl -X POST \
|
|
|
97
97
|
By default, DerailSpecs doesn't run any fixtures. You can configure global fixture
|
|
98
98
|
loading with initializer hooks in `config/initializers/derail_specs.rb`:
|
|
99
99
|
|
|
100
|
-
```
|
|
100
|
+
```ruby
|
|
101
101
|
return unless Rails.env.test?
|
|
102
102
|
|
|
103
103
|
DerailSpecs.hooks.before_server_start do
|
data/example/Gemfile.lock
CHANGED
|
@@ -78,7 +78,10 @@ module DerailSpecs
|
|
|
78
78
|
@legacy_saved_pool_configs ||= Hash.new { |hash, key| hash[key] = {} }
|
|
79
79
|
@saved_pool_configs ||= Hash.new { |hash, key| hash[key] = {} }
|
|
80
80
|
|
|
81
|
-
ActiveRecord::TestFixtures
|
|
81
|
+
ActiveRecord::TestFixtures
|
|
82
|
+
.instance_method(:setup_shared_connection_pool)
|
|
83
|
+
.bind(self)
|
|
84
|
+
.call
|
|
82
85
|
end
|
|
83
86
|
end
|
|
84
87
|
end
|
data/lib/derail_specs/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: derail_specs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Piechowski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-09-
|
|
11
|
+
date: 2021-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: puma
|