object_inspector 0.7.0 → 0.8.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 +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +23 -7
- data/lib/object_inspector/inspectors_helper.rb +2 -2
- data/lib/object_inspector/version.rb +1 -1
- 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: 46375ea86105e9cb191d0ba2c90d56a950cf6179089c735d6191371e035d1c1d
|
4
|
+
data.tar.gz: bd1965e84b3ceab6673df8e300604a37910be007031fbfc14f305b3105b0d7c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21225b2857499c836b7055293ed60182b20504ddc308415179364aebc9024c12b03b083cf8601717b27fb318b3e1b4f06788decc2a6666a8c85b67c95802db0e
|
7
|
+
data.tar.gz: 7f75c140f1b66be107f667eb94e16fb59a9c40c884e4ac7fab0cffb124cb0492302a2f004ed5d82e03edd33a5ff714e8adbb97560f87a37a11576cffb064014e
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
[](https://img.shields.io/github/v/release/pdobb/object_inspector)
|
4
4
|
[](https://github.com/pdobb/object_inspector/actions)
|
5
|
-
[](https://codeclimate.com/github/pdobb/object_inspector/maintainability)
|
6
5
|
|
7
6
|
Object Inspector takes Object#inspect to the next level. Specify any combination of identification attributes, flags, issues, info, and/or a name along with an optional, self-definable scope option to represent objects. Great for the console, logging, etc.
|
8
7
|
|
@@ -30,9 +29,21 @@ Or install it yourself:
|
|
30
29
|
|
31
30
|
Tested MRI Ruby Versions:
|
32
31
|
|
33
|
-
- 3.1
|
34
32
|
- 3.2
|
35
33
|
- 3.3
|
34
|
+
- 3.4
|
35
|
+
|
36
|
+
For Ruby 2.7 support, install object_inspector gem version 0.6.3.
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
gem "object_inspector", "0.6.3"
|
40
|
+
```
|
41
|
+
|
42
|
+
For Ruby 3.1 support, install object_inspector gem version 0.7.0.
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
gem "object_inspector", "0.6.3"
|
46
|
+
```
|
36
47
|
|
37
48
|
Object Inspector has no other dependencies.
|
38
49
|
|
@@ -227,9 +238,14 @@ scope.complex? { "MATCH" } # => "*"
|
|
227
238
|
### Scope Joiners
|
228
239
|
|
229
240
|
ObjectInspector::Scope also offers helper methods for uniformly joining inspect elements:
|
230
|
-
|
231
|
-
|
232
|
-
|
241
|
+
|
242
|
+
```ruby
|
243
|
+
join_name # Joins name parts with ` - ` by default
|
244
|
+
join_flags # Joins flags with ` / ` by default
|
245
|
+
join_info # Joins info items with ` | ` by default
|
246
|
+
```
|
247
|
+
|
248
|
+
For example:
|
233
249
|
|
234
250
|
```ruby
|
235
251
|
scope = ObjectInspector::Scope.new(:verbose)
|
@@ -583,7 +599,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
|
|
583
599
|
|
584
600
|
### Testing
|
585
601
|
|
586
|
-
To test this gem
|
602
|
+
To test this gem:
|
587
603
|
|
588
604
|
```bash
|
589
605
|
rake
|
@@ -602,7 +618,7 @@ npx prettier . --write
|
|
602
618
|
|
603
619
|
### Releases
|
604
620
|
|
605
|
-
To release a new version of
|
621
|
+
To release a new version of this gem to RubyGems:
|
606
622
|
|
607
623
|
1. Update the version number in `version.rb`
|
608
624
|
2. Update `CHANGELOG.md`
|
@@ -8,7 +8,7 @@ module ObjectInspector::InspectorsHelper
|
|
8
8
|
# passing it the passed in `kwargs` (keyword arguments).
|
9
9
|
#
|
10
10
|
# @return [String]
|
11
|
-
def inspect(object = self,
|
12
|
-
ObjectInspector::Inspector.inspect(object,
|
11
|
+
def inspect(object = self, ...)
|
12
|
+
ObjectInspector::Inspector.inspect(object, ...)
|
13
13
|
end
|
14
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: object_inspector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul DobbinSchmaltz
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-04 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: benchmark-ips
|
@@ -97,7 +96,6 @@ metadata:
|
|
97
96
|
source_code_uri: https://github.com/pdobb/object_inspector
|
98
97
|
homepage_uri: https://github.com/pdobb/object_inspector
|
99
98
|
rubygems_mfa_required: 'true'
|
100
|
-
post_install_message:
|
101
99
|
rdoc_options: []
|
102
100
|
require_paths:
|
103
101
|
- lib
|
@@ -112,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
110
|
- !ruby/object:Gem::Version
|
113
111
|
version: '0'
|
114
112
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
116
|
-
signing_key:
|
113
|
+
rubygems_version: 3.6.2
|
117
114
|
specification_version: 4
|
118
115
|
summary: Object Inspector builds uniformly formatted inspect output with customizable
|
119
116
|
amounts of detail.
|