rspec-interactive 0.9.0 → 0.9.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: 987faf5573f9ae7554f4983ee350beaf7ad9ef832544cea3b6f92114cf554788
4
- data.tar.gz: 29e0c2b195497e1d2af2f7e8565ee64ae6039870f3bb685dc86e750c11342a71
3
+ metadata.gz: dbc1f295bcf16bf85e5d6a6281de27ea2b51aa08f373272fb7d9e472ec13f3e9
4
+ data.tar.gz: 36d80a0af500094c129970d522b2a3a3e6bbfc117549b9453f8a5f07ccbcbe33
5
5
  SHA512:
6
- metadata.gz: 2f3e0573bd9280ca150292045134b5eea34243661733aa68dda3ca03c086fc0275ecfecd919aaf022e5aeb943ca4523170e39e6d47c60f8ef59fc5b925fc60b4
7
- data.tar.gz: 618437758587eb88be800508ef487960c1c760143e81594e89c3e80280a2eada7e3904e323c960b6dce2b40ec93eba6638e3dbda311d57144a95d6fef719a1d9
6
+ metadata.gz: 11ba7e2f1e90ddc985f6154b7fec1b738b2477481eb40efe92a822d11a39970799ed147a4ae5da4736b226d1fcb25fe372083fbb7a2346754f5a771456a9a01f
7
+ data.tar.gz: e10376660d90bace5ea870d3b9f046780157c65e3ec489ca21aa409ae0dcbdacf60cfa11e49d9ba2ab947b06b71e9e3fd5d35b976346ee370b552e8fd07e0bb6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-interactive (0.8.1)
4
+ rspec-interactive (0.9.0)
5
5
  listen
6
6
  pry
7
7
  rspec-core
@@ -12,15 +12,15 @@ GEM
12
12
  specs:
13
13
  coderay (1.1.3)
14
14
  diff-lcs (1.4.4)
15
- ffi (1.15.3)
16
- listen (3.5.1)
15
+ ffi (1.15.5)
16
+ listen (3.7.1)
17
17
  rb-fsevent (~> 0.10, >= 0.10.3)
18
18
  rb-inotify (~> 0.9, >= 0.9.10)
19
19
  method_source (1.0.0)
20
20
  pry (0.14.1)
21
21
  coderay (~> 1.1)
22
22
  method_source (~> 1.0)
23
- rb-fsevent (0.11.0)
23
+ rb-fsevent (0.11.1)
24
24
  rb-inotify (0.10.1)
25
25
  ffi (~> 1.0)
26
26
  rspec (3.9.0)
@@ -7,7 +7,7 @@ require 'socket'
7
7
 
8
8
  @options = {
9
9
  host: 'localhost',
10
- port: RSpec::Interactive::DEFAULT_PORT
10
+ port: 5678
11
11
  }
12
12
 
13
13
  parser = OptionParser.new do |opts|
@@ -18,7 +18,7 @@ parser = OptionParser.new do |opts|
18
18
  @options[:host] = host
19
19
  end
20
20
 
21
- opts.on("-p", "--port <port>", Integer, "Optional. Server port. Defaults to #{RSpec::Interactive::DEFAULT_PORT}.") do |port|
21
+ opts.on("-p", "--port <port>", Integer, "Optional. Server port. Defaults to 5678.") do |port|
22
22
  @options[:port] = port
23
23
  end
24
24
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Interactive
5
- VERSION = "0.9.0"
5
+ VERSION = "0.9.1"
6
6
  end
7
7
  end
@@ -52,7 +52,6 @@ module RSpec
52
52
  load config_file if config_file
53
53
 
54
54
  check_rails
55
- trap_interrupt
56
55
  configure_pry
57
56
 
58
57
  @config_cache.record_configuration { @configuration.configure_rspec.call }
@@ -93,17 +92,6 @@ module RSpec
93
92
  end
94
93
  end
95
94
 
96
- def self.trap_interrupt
97
- trap('INT') do
98
- if @runner
99
- # We are on a different thread. There is a race here. Ignore nil.
100
- @runner&.quit
101
- else
102
- raise Interrupt
103
- end
104
- end
105
- end
106
-
107
95
  def self.start_file_watcher
108
96
  return if @configuration.watch_dirs.empty?
109
97
 
@@ -117,9 +105,6 @@ module RSpec
117
105
  end
118
106
 
119
107
  def self.configure_pry
120
- # Prevent Pry from trapping too. It will break ctrl-c handling.
121
- Pry.config.should_trap_interrupts = false
122
-
123
108
  # Set up IO.
124
109
  Pry.config.input = Readline
125
110
  Pry.config.output = @output_stream
@@ -184,6 +169,8 @@ module RSpec
184
169
  RSpec.clear_examples
185
170
  RSpec.reset
186
171
  @config_cache.replay_configuration
172
+ rescue Interrupt
173
+ @runner&.quit
187
174
  ensure
188
175
  @runner = nil
189
176
  end
@@ -203,6 +190,9 @@ module RSpec
203
190
 
204
191
  # RSpec::Interactive-specific RSpec configuration
205
192
  configure_rspec
193
+ RSpec.configuration.instance_variable_set(
194
+ :@formatter_loader,
195
+ RSpec::Core::Formatters::Loader.new(RSpec::Core::Reporter.new(RSpec.configuration)))
206
196
  RSpec.configuration.formatter = Spec::Runner::Formatter::TeamcityFormatter
207
197
 
208
198
  # Run.
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Dower
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core