jazz_fingers 6.3.0 → 7.1.0

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: 4868ec9212c8526e4ee0cd865faed67c2b6ddc90ccf483507789b5596bb983e6
4
- data.tar.gz: db72df056560c5e03356054b0ebfb97dddec73997d1ef3756c687b739c170ac9
3
+ metadata.gz: 00ff12a52876ba2664db32d68ab3d55daae79716a10ec9575905cd29a5a128f2
4
+ data.tar.gz: f1691d97889274cb0f35eaa7e2cd8289478c0949bb9e397ed212b8610ce682a1
5
5
  SHA512:
6
- metadata.gz: 82e011080946b65884b0aa66e48ddab1500bab36892ca14d394026b2f76edb2e5120e651987c35be231597d4cbfafcf25d97b686d9510c00f0cc500ffd7441d7
7
- data.tar.gz: '07683460156b2f44a97e43c465c5b704282a6c5f635592467633b648cf7325d79aa9e2a8d97e96c14fd0bff251a59644d084dae7de4865b6c1473587975ad617'
6
+ metadata.gz: 810515a40e9b666040fce15e7e6a752dffcd3d4217314b8b65a55518f09ed6badd6f5ab5df8db1e761d735098085e10d557dfd098a83d4c5ca7aec939ad216a9
7
+ data.tar.gz: c7e91c22390bbd910922965cb4b6287013ceee267079743cba7610da486154c02ec7740a335ae65e49cbbb5d6d79c14eeba33e612775eda8f6e036d80e43fa4f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.1.0 (2026-03-25)
4
+
5
+ ### Fixed
6
+ * Pager on Ruby 4.0
7
+
8
+ ## 7.0.0 (2026-03-24)
9
+ * Replace `readline` with `reline` for Ruby 4.0 compatibility
10
+ * Remove `pry-byebug` runtime dependency and debugger aliases
11
+ * Simplify `colored_prompt` and `prompt_separator` defaults
12
+
3
13
  ## 6.3.0 (2025-10-01)
4
14
  * Upgrade [amazing-print][amazing-print] to 1.8
5
15
  * Upgrade [pry][pry] to 0.15
data/jazz_fingers.gemspec CHANGED
@@ -22,7 +22,6 @@ Gem::Specification.new do |gem|
22
22
  gem.required_ruby_version = '>= 2.0'
23
23
  gem.add_runtime_dependency 'amazing_print', '~> 1.8'
24
24
  gem.add_runtime_dependency 'pry', '~> 0.15'
25
- gem.add_runtime_dependency 'pry-byebug', '~> 3.11'
26
25
  gem.add_runtime_dependency 'pry-coolline', '~> 0.2'
27
26
 
28
27
  gem.add_development_dependency 'rubocop'
@@ -8,22 +8,20 @@ module JazzFingers
8
8
  # A different setting than Pry.color since some may like colored output, but a
9
9
  # plain prompt.
10
10
  #
11
- # Default: 'true' for GNU readline or rb-readline which correctly count line
12
- # widths with color codes when using \001 and \002 hints. 'false' for
13
- # libedit-based wrapper (standard on OS X unless ruby is explicitly compiled
14
- # otherwise).
11
+ # Default: true, delegating to Pry.color.
15
12
  def colored_prompt
16
- return (Readline::VERSION !~ /EditLine/) && Pry.color if @colored_prompt.nil?
17
-
18
- @colored_prompt
13
+ if @colored_prompt.nil?
14
+ Pry.color
15
+ else
16
+ @colored_prompt
17
+ end
19
18
  end
20
19
 
21
20
  # Separator between application name and input in the prompt.
22
21
  #
23
- # Default: right angle quote, or '>' when using rb-readline which doesn't
24
- # handle mixed encodings well.
22
+ # Default: right angle quote (»).
25
23
  def prompt_separator
26
- @prompt_separator ||= defined?(RbReadline) ? '>' : "\u00BB"
24
+ @prompt_separator ||= "\u00BB"
27
25
  end
28
26
 
29
27
  def coolline?
@@ -1,3 +1,3 @@
1
1
  module JazzFingers
2
- VERSION = '6.3.0'.freeze
2
+ VERSION = '7.1.0'.freeze
3
3
  end
data/lib/jazz_fingers.rb CHANGED
@@ -1,10 +1,18 @@
1
1
  ENV['HOME'] ||= '/dev/null'
2
2
 
3
3
  require 'pry'
4
- require 'pry-byebug'
5
- require 'readline'
6
4
  require 'forwardable'
7
5
 
6
+ # Pry's SimplePager hardcodes the Readline constant. Ruby 4.0 removed
7
+ # the readline stdlib, so we mirror Pry's own load_readline fallback
8
+ # and shim the constant when only Reline is available.
9
+ begin
10
+ require 'readline'
11
+ rescue LoadError
12
+ require 'reline'
13
+ Readline = Reline unless defined?(Readline)
14
+ end
15
+
8
16
  module JazzFingers
9
17
  autoload :AMAZING_PRINT, 'jazz_fingers/amazing_print'
10
18
  autoload :CodeRay, 'jazz_fingers/coderay'
@@ -51,9 +59,6 @@ module JazzFingers
51
59
  Pry.prompt = prompt
52
60
  Pry.input = input if JazzFingers.coolline?
53
61
  Pry.config.should_load_plugins = false
54
- Pry.commands.alias_command('c', 'continue')
55
- Pry.commands.alias_command('s', 'step')
56
- Pry.commands.alias_command('n', 'next')
57
62
  Pry.editor = 'vi'
58
63
  Pry.config.ls.separator = "\n"
59
64
  Pry.config.ls.heading_color = :magenta
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jazz_fingers
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.0
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Henrique Lopes Ribeiro
@@ -37,20 +37,6 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0.15'
40
- - !ruby/object:Gem::Dependency
41
- name: pry-byebug
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '3.11'
47
- type: :runtime
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '3.11'
54
40
  - !ruby/object:Gem::Dependency
55
41
  name: pry-coolline
56
42
  requirement: !ruby/object:Gem::Requirement