rspec-interactive 0.6.1 → 0.7.0

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: 858197f05a88cbac9b4acf36c6220a79c15bc008945fa87cef7c008e20ca172d
4
- data.tar.gz: b9a34852edc5bc544e9117ebfef1c6190e7ecae73cb7a29e2929f82743e72ed5
3
+ metadata.gz: e1f9390c00756ace39f74e3af9d78410cf2890000285035537c2ec6ce6b9e861
4
+ data.tar.gz: 8d07aec8a3fb5bc78849dbf403a3d30aeb1fec9bdbb38cef2204672e84ba3e9d
5
5
  SHA512:
6
- metadata.gz: ec6835e7baeb24d4126edb542629529e308ab9ecd79a28697c03f8290a8c6b5d15bbe6fd645338e870df124a073638c45bab0f790f8bb09becfd4a613d995cc0
7
- data.tar.gz: cbf961a6c0a60cfc3cced32778f34ebbf7ae3e97399c017148cbe88e1229f5d96b2ab6f374ad4bc68e6eaaf9e7f18013e5510cab76521f4d70c0e90cb485b126
6
+ metadata.gz: 8f585f27c12cc58f2ccb1f8a9d1baf5c05139b58244cba1daf0228c7a9ff8bff71bc0ad79bc0d87ae27ac7580138cb3607ae51c84f3a11d2443fe03f8eaff183
7
+ data.tar.gz: d8bd001d9bd1be1b3cfa21ec69bcd70b9cb55f3d684bcc336f71e458aa20483a30ced6977c40e4055e9871698246e6e494f805a3fd210a3ec0310dfe72ef25e4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-interactive (0.6.0)
4
+ rspec-interactive (0.6.1)
5
5
  listen
6
6
  pry
7
7
  rspec-core
@@ -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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Interactive
5
- VERSION = "0.6.1"
5
+ VERSION = "0.7.0"
6
6
  end
7
7
  end
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.6.1
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-20 00:00:00.000000000 Z
11
+ date: 2021-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core