rspec-interactive 0.9.15 → 0.9.17

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: b5f3f89cd6ae43636a3fac68501c3dd0b9dccae03f85ce06a911ea5eb71630b2
4
- data.tar.gz: 7fceb3943d24a280f9bbd361ec3844cbd70f6205fd217f68fb94af072b4bd2c4
3
+ metadata.gz: 90df3b8868b3a3b9eaf62fa025f6db1d1fb9582d57855a17db5da0ba4e9048a6
4
+ data.tar.gz: 6cf1492492738f361f2c87ed5b1206a291af39bbbd4cd46cee47ea5396ce4fcb
5
5
  SHA512:
6
- metadata.gz: 9fdd623bcb524967e1153b690a94c7a8b3132d158c3bfbdc166151a0400981fe0f6b86be572354e32061a0b1273e903c822b4d5f0caa80eaae241240dfbe1d08
7
- data.tar.gz: 5e02491b2d4d5f86d54d02f877c488d67afa5de5636796c14a8eec3cf528ec01c0705229d17f73eb91892df691ffd0710dc49ecbec8c4dd8d90d4a2c03fb68e6
6
+ metadata.gz: f53d1b9783630382c8addcada1cb1fdfbb119f503b64014a31294f52b4b99c138b0f2b7bef490ae5eaa51b3125e4d1f935b58c09c2571cf9cc3c7aaea1255e14
7
+ data.tar.gz: 4514ef8b3e50d92998a95a83ee605893df84e44a92878b12ceafa74140a4bd5b89434f423b5559dfe457851e6d4d01ab22b8676fecadb0c2804d4595a501ce23
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-interactive (0.9.14)
4
+ rspec-interactive (0.9.16)
5
5
  pry
6
6
  rspec-core
7
7
  rspec-teamcity (= 1.0.0)
@@ -11,13 +11,12 @@ GEM
11
11
  specs:
12
12
  coderay (1.1.3)
13
13
  diff-lcs (1.4.4)
14
- ffi (1.15.5)
15
14
  ffi (1.15.5-java)
16
15
  method_source (1.0.0)
17
- pry (0.14.1)
16
+ pry (0.14.2)
18
17
  coderay (~> 1.1)
19
18
  method_source (~> 1.0)
20
- pry (0.14.1-java)
19
+ pry (0.14.2-java)
21
20
  coderay (~> 1.1)
22
21
  method_source (~> 1.0)
23
22
  spoon (~> 0.0)
@@ -48,4 +47,4 @@ DEPENDENCIES
48
47
  rspec-interactive!
49
48
 
50
49
  BUNDLED WITH
51
- 2.2.17
50
+ 2.3.14
@@ -27,6 +27,17 @@ module RSpec
27
27
  def string
28
28
  @output
29
29
  end
30
+
31
+ def sync
32
+ @sync || false
33
+ end
34
+
35
+ def sync=(sync)
36
+ @sync = sync
37
+ end
38
+
39
+ def close
40
+ end
30
41
  end
31
42
  end
32
43
  end
@@ -25,6 +25,17 @@ module RSpec
25
25
  def closed?
26
26
  @client.closed?
27
27
  end
28
+
29
+ def sync
30
+ @sync || false
31
+ end
32
+
33
+ def sync=(sync)
34
+ @sync = sync
35
+ end
36
+
37
+ def close
38
+ end
28
39
  end
29
40
  end
30
41
  end
@@ -28,6 +28,18 @@ module RSpec
28
28
  def closed?
29
29
  (@thread_map[Thread.current] || @default).closed?
30
30
  end
31
+
32
+ def sync=(sync)
33
+ (@thread_map[Thread.current] || @default).sync = sync
34
+ end
35
+
36
+ def sync
37
+ (@thread_map[Thread.current] || @default).sync
38
+ end
39
+
40
+ def close
41
+ (@thread_map[Thread.current] || @default).close
42
+ end
31
43
  end
32
44
  end
33
45
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Interactive
5
- VERSION = "0.9.15"
5
+ VERSION = "0.9.17"
6
6
  end
7
7
  end
@@ -124,13 +124,11 @@ module RSpec
124
124
  end
125
125
 
126
126
  def self.maybe_trap_interrupt
127
- return unless RbConfig::CONFIG['ruby_install_name'] == 'jruby'
128
-
129
- # When on JRuby, Pry traps interrupts and raises an Interrupt exception.
130
- # Unfortunately, raising Interrupt is not enough when RSpec is running since it
131
- # will only cause the current example to fail. We want to kill RSpec entirely
132
- # if it is running so here we disable Pry's handling and rewrite it to include
133
- # special handling for RSpec.
127
+ # Pry traps interrupts and raises an Interrupt exception. Unfortunately, raising
128
+ # Interrupt is not enough when RSpec is running since it may lead to issues when
129
+ # using transactional fixtures. Also, when running in JRuby, it seems to only fail
130
+ # the current example not the entire RSpec run. Here we disable Pry's handling and
131
+ # rewrite it to include special handling for RSpec.
134
132
 
135
133
  Pry.config.should_trap_interrupts = false
136
134
 
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.15
4
+ version: 0.9.17
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-11-19 00:00:00.000000000 Z
11
+ date: 2023-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.2.3
134
+ rubygems_version: 3.3.3
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: An interactive console for running specs.