pry-byebug 3.10.0 → 3.10.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: a5cd1dcba0a316d9abf2842900170c4adffc517777c67916bc7f49744669c1cc
4
- data.tar.gz: c2eb031ee7d4998df0bc1f0c2a3d8af303cd0b2956bfbafdd1832ed799603a60
3
+ metadata.gz: 3bff5ce219c6e5c0acf109be04d7c3e0232f16e9c2b459d8432b9b380b4c9ce5
4
+ data.tar.gz: 0b00bae23422f150b7ffb96e920ebc9ed87998344367c4d1f432f05976722b75
5
5
  SHA512:
6
- metadata.gz: 050f9701d0c5286e7a7b18ee3e7aafda441fc0a2f72e55c4c8828e08eb68362d54906e99e6d43ef60e469ebb959d6bc6e54ddd097b8e38922560d6026eb612eb
7
- data.tar.gz: 3cb6fcb16a10b239ae30b90ec8e71d9c90c1960b14c8b56a89733bb810e15181a9914da34f66457381c574d74ffb601a1a35940aa0ebc8a2f0c185ec51cfe9d6
6
+ metadata.gz: 1ee481a6d35a160364db2eae31e36ad80fc708dc708f9b31f1daa574d150b6b2a25ca4610a342b79ffed646f3b02086d0df726bd191f87c645140214f53e88b0
7
+ data.tar.gz: 6908e1d26692ceffc98ba54664622ef3b5abbcdd6a72962424e52d34712df708f17da8e886e6f61a9df46f12eeda558acbb908437652c7b06b1ad8258b26dcef
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 3.10.1 (2022-08-16)
6
+
7
+ ### Fixed
8
+
9
+ * Rails console loading a debugger REPL instead of the standard Pry REPL (#392)
10
+
5
11
  ## 3.10.0 (2022-08-15)
6
12
 
7
13
  ### Added
data/README.md CHANGED
@@ -175,7 +175,7 @@ Tidelift will coordinate the fix and disclosure.
175
175
 
176
176
  Patches and bug reports are welcome.
177
177
 
178
- [pry]: http://pry.github.com
178
+ [pry]: https://pry.github.io
179
179
  [byebug]: https://github.com/deivid-rodriguez/byebug
180
180
  [pry-debugger]: https://github.com/nixme/pry-debugger
181
181
  [pry-nav]: https://github.com/nixme/pry-nav
@@ -5,8 +5,15 @@ require "byebug/processors/pry_processor"
5
5
  class << Pry::REPL
6
6
  alias start_without_pry_byebug start
7
7
 
8
- def start_with_pry_byebug(_ = {})
9
- Byebug::PryProcessor.start unless ENV["DISABLE_PRY"]
8
+ def start_with_pry_byebug(options = {})
9
+ target = options[:target]
10
+
11
+ if target.is_a?(Binding) && PryByebug.file_context?(target)
12
+ Byebug::PryProcessor.start unless ENV["DISABLE_PRY"]
13
+ else
14
+ # No need for the tracer unless we have a file context to step through
15
+ start_without_pry_byebug(options)
16
+ end
10
17
  end
11
18
 
12
19
  alias start start_with_pry_byebug
@@ -4,5 +4,5 @@
4
4
  # Main container module for Pry-Byebug functionality
5
5
  #
6
6
  module PryByebug
7
- VERSION = "3.10.0"
7
+ VERSION = "3.10.1"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-byebug
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.0
4
+ version: 3.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rodríguez
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-08-15 00:00:00.000000000 Z
12
+ date: 2022-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: byebug