rspec-interactive 0.6.1 → 0.7.0
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/Gemfile.lock +1 -1
- data/lib/rspec-interactive.rb +9 -2
- data/lib/rspec-interactive/version.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: e1f9390c00756ace39f74e3af9d78410cf2890000285035537c2ec6ce6b9e861
|
|
4
|
+
data.tar.gz: 8d07aec8a3fb5bc78849dbf403a3d30aeb1fec9bdbb38cef2204672e84ba3e9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f585f27c12cc58f2ccb1f8a9d1baf5c05139b58244cba1daf0228c7a9ff8bff71bc0ad79bc0d87ae27ac7580138cb3607ae51c84f3a11d2443fe03f8eaff183
|
|
7
|
+
data.tar.gz: d8bd001d9bd1be1b3cfa21ec69bcd70b9cb55f3d684bcc336f71e458aa20483a30ced6977c40e4055e9871698246e6e494f805a3fd210a3ec0310dfe72ef25e4
|
data/Gemfile.lock
CHANGED
data/lib/rspec-interactive.rb
CHANGED
|
@@ -37,13 +37,15 @@ module RSpec
|
|
|
37
37
|
@configuration = Configuration.new
|
|
38
38
|
load config_file if config_file
|
|
39
39
|
|
|
40
|
-
@config_cache.record_configuration { @configuration.configure_rspec.call }
|
|
41
|
-
|
|
42
40
|
check_rails
|
|
43
41
|
start_file_watcher
|
|
44
42
|
trap_interrupt
|
|
45
43
|
configure_pry
|
|
46
44
|
|
|
45
|
+
@init_thread = Thread.start {
|
|
46
|
+
@config_cache.record_configuration { @configuration.configure_rspec.call }
|
|
47
|
+
}
|
|
48
|
+
|
|
47
49
|
if initial_rspec_args
|
|
48
50
|
open(@history_file, 'a') { |f| f.puts "rspec #{initial_rspec_args.strip}" }
|
|
49
51
|
rspec Shellwords.split(initial_rspec_args)
|
|
@@ -111,6 +113,11 @@ module RSpec
|
|
|
111
113
|
end
|
|
112
114
|
|
|
113
115
|
def self.rspec(args)
|
|
116
|
+
if @init_thread&.alive?
|
|
117
|
+
@init_thread.join
|
|
118
|
+
@init_thread = nil
|
|
119
|
+
end
|
|
120
|
+
|
|
114
121
|
parsed_args = args.flat_map do |arg|
|
|
115
122
|
if arg.match(/[\*\?\[]/)
|
|
116
123
|
glob = Dir.glob(arg)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-interactive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Dower
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-06-
|
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec-core
|