derail_specs 0.5.0 → 0.5.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: 90fd1d641de71a5a41d231af09190c33987e21efb49cd973fbef9671a9ef8cdb
4
- data.tar.gz: 6eb5f40e29be236de49bf2625e54d04f33647f22c74862e6dd4fdf6ee891771a
3
+ metadata.gz: 3cf9a4363bbaa67b3fce2b01191b7bb8f7a11bdea4b1d710702e47b303cc379f
4
+ data.tar.gz: 94cad7e3e96d35edb0c67dc153f366f0252e1aa5e8dec31cc182d77b3757b969
5
5
  SHA512:
6
- metadata.gz: ba977461d31563b4d7dd4da9cf9217e4bba40b34f113170852f623d1a4a02e24963dbb64e6a9c18c7e0911824330ffe21636233446ce12c5f2efc03ce2258e0b
7
- data.tar.gz: 969d0a9fa3c125ed4bcb707c3a5907616de8bd4567d081e0b8f23fc53056390fab0bc61418b72c0a27a5c7f88729573a1cbe52530169db20258c863e03161c7c
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.0)
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.4.0)
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- derail_specs (0.5.0)
4
+ derail_specs (0.5.1)
5
5
  puma (>= 3.8.0)
6
6
  railties (>= 5.2.0)
7
7
 
@@ -22,9 +22,8 @@ module DerailSpecs
22
22
 
23
23
  def run(name)
24
24
  return unless @hooks[name]
25
- @hooks[name].each do |blk|
26
- blk.call
27
- end
25
+
26
+ @hooks[name].each(&:call)
28
27
  end
29
28
 
30
29
  private
@@ -39,4 +38,3 @@ module DerailSpecs
39
38
  end
40
39
  end
41
40
  end
42
-
@@ -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.instance_method(:setup_shared_connection_pool).bind_call(self)
81
+ ActiveRecord::TestFixtures
82
+ .instance_method(:setup_shared_connection_pool)
83
+ .bind(self)
84
+ .call
82
85
  end
83
86
  end
84
87
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DerailSpecs
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
@@ -1,7 +1,7 @@
1
1
  return unless Rails.test.env?
2
2
 
3
3
  DerailSpecs.configure do |config|
4
- config.command = './tests.sh'
4
+ config.command = './tests.sh' # <-- delete this line for infinite mode
5
5
  config.host = '127.0.0.1'
6
6
  config.port = 3001
7
7
  end
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2021-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma