pp 0.6.3 → 0.6.4
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/lib/pp.rb +4 -4
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f949dbc0a645874384f2d992d9d74a24ddc93be57eb389600cf7d471e12a5677
|
|
4
|
+
data.tar.gz: 1c908a2919627a12531a5fb8948fff8875659a91aa1b836fb22bfc89c6f3acd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86debd2191cd34130ae9084581a078b5aa9295cddd05b76f639a89c00f8db6e40c6248468b2e912f01e5cd86fcfca8ac4afbbd3c894df9cd3bf8a82264c05786
|
|
7
|
+
data.tar.gz: 4a7428a9be65bab1975c816fc0976007da6b4f1cef31232c12b72b1698e3ffba93a6e0a92622c5af6db850569b8ecce97036af5d0ac3cd992b4586236d7b622e
|
data/lib/pp.rb
CHANGED
|
@@ -64,7 +64,7 @@ require 'prettyprint'
|
|
|
64
64
|
class PP < PrettyPrint
|
|
65
65
|
|
|
66
66
|
# The version string
|
|
67
|
-
VERSION = "0.6.
|
|
67
|
+
VERSION = "0.6.4"
|
|
68
68
|
|
|
69
69
|
# Returns the usable width for +out+.
|
|
70
70
|
# As the width of +out+:
|
|
@@ -174,7 +174,7 @@ class PP < PrettyPrint
|
|
|
174
174
|
Thread.current[:__recursive_key__][:inspect].delete id
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
private def guard_inspect(object)
|
|
177
|
+
private def guard_inspect(object) # :nodoc:
|
|
178
178
|
recursive_state = Thread.current[:__recursive_key__]
|
|
179
179
|
|
|
180
180
|
if recursive_state&.key?(:inspect)
|
|
@@ -277,7 +277,7 @@ class PP < PrettyPrint
|
|
|
277
277
|
kwsplat ? yield(*v, **kwsplat) : yield(*v)
|
|
278
278
|
}
|
|
279
279
|
end
|
|
280
|
-
EMPTY_KWHASH = if RUBY_VERSION >= "3.0"
|
|
280
|
+
EMPTY_KWHASH = if RUBY_VERSION >= "3.0" # :nodoc:
|
|
281
281
|
{}.freeze
|
|
282
282
|
end
|
|
283
283
|
private_constant :EMPTY_KWHASH
|
|
@@ -388,7 +388,7 @@ class PP < PrettyPrint
|
|
|
388
388
|
# This method should return an array of names of instance variables as symbols or strings as:
|
|
389
389
|
# +[:@a, :@b]+.
|
|
390
390
|
def pretty_print_instance_variables
|
|
391
|
-
ivars = respond_to?(:instance_variables_to_inspect) ? instance_variables_to_inspect : instance_variables
|
|
391
|
+
ivars = respond_to?(:instance_variables_to_inspect, true) ? instance_variables_to_inspect || instance_variables : instance_variables
|
|
392
392
|
ivars.sort
|
|
393
393
|
end
|
|
394
394
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tanaka Akira
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: prettyprint
|
|
@@ -42,7 +41,6 @@ licenses:
|
|
|
42
41
|
metadata:
|
|
43
42
|
homepage_uri: https://github.com/ruby/pp
|
|
44
43
|
source_code_uri: https://github.com/ruby/pp
|
|
45
|
-
post_install_message:
|
|
46
44
|
rdoc_options: []
|
|
47
45
|
require_paths:
|
|
48
46
|
- lib
|
|
@@ -57,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
55
|
- !ruby/object:Gem::Version
|
|
58
56
|
version: '0'
|
|
59
57
|
requirements: []
|
|
60
|
-
rubygems_version: 3.
|
|
61
|
-
signing_key:
|
|
58
|
+
rubygems_version: 3.6.9
|
|
62
59
|
specification_version: 4
|
|
63
60
|
summary: Provides a PrettyPrinter for Ruby objects
|
|
64
61
|
test_files: []
|