pry 0.15.0-java → 0.15.1-java
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/pry/commands/ls/config.rb +41 -38
- data/lib/pry/repl.rb +10 -3
- data/lib/pry/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d7510fb7f25427c63713eb5fa7e06a2e6237c61963fce651fd9f0624c49c0a2
|
4
|
+
data.tar.gz: a3956d43c1d5733f4e09362e0e251d3b2182cd4237bd132243d4479dbdf38efd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be8c495d8f79e3e4b5fb894688e39180bb5c9a32e7b088e98b31c5443ab65605d8a65e407ddbaabdbb202322d29d04d1c802d8f838f6079b83ec9422ca693329
|
7
|
+
data.tar.gz: ce971fc59838f97522e4653772199e46ae7b3ef9b9bacb86e40e8975a6b07652af1b7b3a76c396de2f574903041c86d9c657f847a9f194892378318717da4def
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
### [v0.15.1](v0.15.1) (December 24, 2024)
|
2
|
+
|
3
|
+
#### Bug Fixes
|
4
|
+
|
5
|
+
* Restore Pry.config.ls compatibility
|
6
|
+
([#2335](https://github.com/pry/pry/pull/2335))
|
7
|
+
* Avoid breaking reading inputs if Prism is not available
|
8
|
+
([#2338](https://github.com/pry/pry/pull/2338))
|
9
|
+
|
1
10
|
### [v0.15.0][v0.15.0] (November 15, 2024)
|
2
11
|
|
3
12
|
#### Features
|
@@ -1,49 +1,52 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'forwardable'
|
4
|
+
|
3
5
|
class Pry
|
4
6
|
class Command
|
5
7
|
class Ls < Pry::ClassCommand
|
6
8
|
class Config
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
9
|
+
extend Forwardable
|
10
|
+
|
11
|
+
DEFAULT_OPTIONS = {
|
12
|
+
heading_color: :bright_blue,
|
13
|
+
public_method_color: :default,
|
14
|
+
private_method_color: :blue,
|
15
|
+
protected_method_color: :blue,
|
16
|
+
method_missing_color: :bright_red,
|
17
|
+
local_var_color: :yellow,
|
18
|
+
pry_var_color: :default, # e.g. _, pry_instance, _file_
|
19
|
+
instance_var_color: :blue, # e.g. @foo
|
20
|
+
class_var_color: :bright_blue, # e.g. @@foo
|
21
|
+
global_var_color: :default, # e.g. $CODERAY_DEBUG, $eventmachine_library
|
22
|
+
builtin_global_color: :cyan, # e.g. $stdin, $-w, $PID
|
23
|
+
pseudo_global_color: :cyan, # e.g. $~, $1..$9, $LAST_MATCH_INFO
|
24
|
+
constant_color: :default, # e.g. VERSION, ARGF
|
25
|
+
class_constant_color: :blue, # e.g. Object, Kernel
|
26
|
+
exception_constant_color: :magenta, # e.g. Exception, RuntimeError
|
27
|
+
unloaded_constant_color: :yellow, # Constant still in .autoload? state
|
28
|
+
separator: " ",
|
29
|
+
ceiling: [Object, Module, Class]
|
30
|
+
}.freeze
|
31
|
+
|
32
|
+
DEFAULT_OPTIONS.each_key do |key|
|
33
|
+
define_method key do
|
34
|
+
@config[key]
|
35
|
+
end
|
36
|
+
|
37
|
+
define_method "#{key}=" do |value|
|
38
|
+
@config[key] = value
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def_delegators :@config, :[], :[]=, :each, :each_pair, :values, :keys, :to_a
|
43
|
+
|
44
|
+
def initialize(config)
|
45
|
+
@config = config
|
46
|
+
end
|
25
47
|
|
26
48
|
def self.default
|
27
|
-
|
28
|
-
config.heading_color = :bright_blue
|
29
|
-
config.public_method_color = :default
|
30
|
-
config.private_method_color = :blue
|
31
|
-
config.protected_method_color = :blue
|
32
|
-
config.method_missing_color = :bright_red
|
33
|
-
config.local_var_color = :yellow
|
34
|
-
config.pry_var_color = :default
|
35
|
-
config.instance_var_color = :blue
|
36
|
-
config.class_var_color = :bright_blue
|
37
|
-
config.global_var_color = :default
|
38
|
-
config.builtin_global_color = :cyan
|
39
|
-
config.pseudo_global_color = :cyan
|
40
|
-
config.constant_color = :default
|
41
|
-
config.class_constant_color = :blue
|
42
|
-
config.exception_constant_color = :magenta
|
43
|
-
config.unloaded_constant_color = :yellow
|
44
|
-
config.separator = " "
|
45
|
-
config.ceiling = [Object, Module, Class]
|
46
|
-
config
|
49
|
+
new(DEFAULT_OPTIONS.dup)
|
47
50
|
end
|
48
51
|
end
|
49
52
|
end
|
data/lib/pry/repl.rb
CHANGED
@@ -248,10 +248,17 @@ class Pry
|
|
248
248
|
end
|
249
249
|
|
250
250
|
def prism_available?
|
251
|
-
|
251
|
+
@prism_available ||= begin
|
252
|
+
# rubocop:disable Lint/SuppressedException
|
253
|
+
begin
|
254
|
+
require 'prism'
|
255
|
+
rescue LoadError
|
256
|
+
end
|
257
|
+
# rubocop:enable Lint/SuppressedException
|
252
258
|
|
253
|
-
|
254
|
-
|
259
|
+
defined?(Prism) &&
|
260
|
+
Gem::Version.new(Prism::VERSION) >= Gem::Version.new('0.25.0')
|
261
|
+
end
|
255
262
|
end
|
256
263
|
|
257
264
|
# If `$stdout` is not a tty, it's probably a pipe.
|
data/lib/pry/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
8
8
|
- Conrad Irwin
|
9
9
|
- Ryan Fitzgerald
|
10
10
|
- Kyrylo Silin
|
11
|
+
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date: 2024-
|
14
|
+
date: 2024-12-24 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: coderay
|
@@ -215,6 +216,7 @@ metadata:
|
|
215
216
|
changelog_uri: https://github.com/pry/pry/blob/master/CHANGELOG.md
|
216
217
|
source_code_uri: https://github.com/pry/pry
|
217
218
|
bug_tracker_uri: https://github.com/pry/pry/issues
|
219
|
+
post_install_message:
|
218
220
|
rdoc_options: []
|
219
221
|
require_paths:
|
220
222
|
- lib
|
@@ -229,7 +231,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
231
|
- !ruby/object:Gem::Version
|
230
232
|
version: '0'
|
231
233
|
requirements: []
|
232
|
-
rubygems_version: 3.
|
234
|
+
rubygems_version: 3.4.14
|
235
|
+
signing_key:
|
233
236
|
specification_version: 4
|
234
237
|
summary: A runtime developer console and IRB alternative with powerful introspection
|
235
238
|
capabilities.
|