pry-shell 0.6.1 → 0.6.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abde3ee8ce030cfb4b4db8350d5bbbbab3c5d27f678e8d72d3bd67811935ada6
4
- data.tar.gz: 55b77914e3f6a464bf459069dadd376ca6b6983d507900997eaea82911d66832
3
+ metadata.gz: 7a429d6f870d6f12817175d5c5b718f1057e6a936dcb8049d78deb671c359759
4
+ data.tar.gz: c2e5741f4463f03903769a5e95c998682f406ea69c567e07534464b9aca494a4
5
5
  SHA512:
6
- metadata.gz: 49df2ec3118914f2fbdc7b1a961336e3e10f9e955cc6c5c33956cf7e213c565e37a4ee32ef11fdb924f45376df6d238c6ff0059e53523bc7aeb249f1d60f8c17
7
- data.tar.gz: 62392a361636fd1aa5ab69d659cb1d5c033b3593588db1c1cc415084d73b0e8a072d07e2f401069d03582ab9d5423386f0d660887a71d3ac13aa368437fdcdbb
6
+ metadata.gz: c31e684a9d8569cf14b0866adc015fac9b25274aad8532cc11b7779ea8ce2cffc175dbddc396642061816b6aa6d750a7e551bd1f3c053dee77b53d9bef0990c7
7
+ data.tar.gz: b9acbd77177e61a6cce94d7880cf6e95b5f7597d5855027d82c7bf7c8a86e4353615b6997ff868095b7f09c2f4425418e7265934d27b088b57c7488a10051965
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pry-shell (0.6.1)
4
+ pry-shell (0.6.3)
5
5
  pry (>= 0.13.0)
6
6
  tty-markdown
7
7
  tty-prompt
@@ -31,7 +31,7 @@ GEM
31
31
  rake (13.0.3)
32
32
  regexp_parser (2.1.1)
33
33
  rexml (3.2.5)
34
- rouge (3.30.0)
34
+ rouge (4.1.3)
35
35
  rspec (3.10.0)
36
36
  rspec-core (~> 3.10.0)
37
37
  rspec-expectations (~> 3.10.0)
@@ -64,10 +64,10 @@ GEM
64
64
  strings-ansi (0.2.0)
65
65
  tty-color (0.6.0)
66
66
  tty-cursor (0.7.1)
67
- tty-markdown (0.7.1)
67
+ tty-markdown (0.7.2)
68
68
  kramdown (>= 1.16.2, < 3.0)
69
69
  pastel (~> 0.8)
70
- rouge (~> 3.14)
70
+ rouge (>= 3.14, < 5.0)
71
71
  strings (~> 0.2.0)
72
72
  tty-color (~> 0.5)
73
73
  tty-screen (~> 0.8)
@@ -5,7 +5,9 @@ class Pry
5
5
  module Patches
6
6
  module RackTimeout
7
7
  def initialize(&on_timeout)
8
- @on_timeout = -> (thread) { Shell.active_shell_options(thread: thread) || on_timeout || ON_TIMEOUT }
8
+ timeout_handler = on_timeout || ON_TIMEOUT
9
+
10
+ @on_timeout = -> (thread) { Shell.active_shell_options(thread: thread) || timeout_handler.call(thread) } # Do not raise timeout error if the shell session is active
9
11
  @scheduler = Rack::Timeout::Scheduler.singleton
10
12
  end
11
13
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  class Pry
4
4
  class Shell
5
- VERSION = "0.6.1"
5
+ VERSION = "0.6.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Emin INAC
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-03 00:00:00.000000000 Z
11
+ date: 2023-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry