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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fded5aa78eecbc292b4b27840b420f7fd1b723b76541e5854b27b45cb583e6ba
4
- data.tar.gz: 86ed82a2dc55f826d38ae2a20f22929dbbf11b7f5d79dcfc0740a20f6779ca01
3
+ metadata.gz: 0d7510fb7f25427c63713eb5fa7e06a2e6237c61963fce651fd9f0624c49c0a2
4
+ data.tar.gz: a3956d43c1d5733f4e09362e0e251d3b2182cd4237bd132243d4479dbdf38efd
5
5
  SHA512:
6
- metadata.gz: 9f84b40177824ce98dbe858ab440608fa55f1060f97b76f860727e109704d7842f67ad6ef7caa53965d0b3564286cb2516dfcaed3e7b6465105080916bc22d71
7
- data.tar.gz: b03f296f12ed93fb92e7b6f7243f250cc4ada6c08b70e52a5b8df81c6707aa9c3124d60b03e0e922b5626b543c59059c7300e626858b59706140df7cd19d9fb8
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
- attr_accessor :heading_color,
8
- :public_method_color,
9
- :private_method_color,
10
- :protected_method_color,
11
- :method_missing_color,
12
- :local_var_color,
13
- :pry_var_color, # e.g. _, pry_instance, _file_
14
- :instance_var_color, # e.g. @foo
15
- :class_var_color, # e.g. @@foo
16
- :global_var_color, # e.g. $CODERAY_DEBUG, $foo
17
- :builtin_global_color, # e.g. $stdin, $-w, $PID
18
- :pseudo_global_color, # e.g. $~, $1..$9, $LAST_MATCH_INFO
19
- :constant_color, # e.g. VERSION, ARGF
20
- :class_constant_color, # e.g. Object, Kernel
21
- :exception_constant_color, # e.g. Exception, RuntimeError
22
- :unloaded_constant_color, # Constant that is still in .autoload?
23
- :separator,
24
- :ceiling
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
- config = new
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
- require 'prism'
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
- @prism_available ||= defined?(Prism) &&
254
- Gem::Version.new(Prism::VERSION) >= Gem::Version.new('0.25.0')
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Pry
4
- VERSION = '0.15.0'.freeze
4
+ VERSION = '0.15.1'.freeze
5
5
  end
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.0
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-11-15 00:00:00.000000000 Z
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.6.0.dev
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.