pry-shell 0.6.1 → 0.6.2

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: 389a33c7fd18d6c524fed6336f9f542ac0a40aa3c30480fe4d77e9f02da2779b
4
+ data.tar.gz: f1f6112d6623eacf91a50c3858805e4ec36181c55bbbe482829ea1d5884b0515
5
5
  SHA512:
6
- metadata.gz: 49df2ec3118914f2fbdc7b1a961336e3e10f9e955cc6c5c33956cf7e213c565e37a4ee32ef11fdb924f45376df6d238c6ff0059e53523bc7aeb249f1d60f8c17
7
- data.tar.gz: 62392a361636fd1aa5ab69d659cb1d5c033b3593588db1c1cc415084d73b0e8a072d07e2f401069d03582ab9d5423386f0d660887a71d3ac13aa368437fdcdbb
6
+ metadata.gz: a58253f83fd57ac0c7638a91a622aa0eef30efae0e17cb174d5b829c63555225656425a5e01320b5d126a982315e2185066f4f4489f7f058d5222f6c98c8413e
7
+ data.tar.gz: 37228f46b4b8eacf2c034817c46952120a65cc71cdf1a6a3b700053c895daba00ca47d6e67ecb5316c56798b8e93918616ffeab06d840429551311ca0da83c7c
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pry-shell (0.6.1)
4
+ pry-shell (0.6.2)
5
5
  pry (>= 0.13.0)
6
- tty-markdown
6
+ tty-markdown (= 0.7.1)
7
7
  tty-prompt
8
8
 
9
9
  GEM
@@ -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.2"
6
6
  end
7
7
  end
data/pry-shell.gemspec CHANGED
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.require_paths = ["lib"]
28
28
 
29
29
  spec.add_dependency "pry", ">= 0.13.0"
30
- spec.add_dependency "tty-markdown"
30
+ spec.add_dependency "tty-markdown", '0.7.1'
31
31
  spec.add_dependency "tty-prompt"
32
32
  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.2
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
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: tty-markdown
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.7.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.7.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: tty-prompt
43
43
  requirement: !ruby/object:Gem::Requirement