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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 391dabb8dbbee7bad63ca6a701193227c2829affa135db1b58035153ced6d079
4
- data.tar.gz: 9ce283422270b1dee3a517dfb39cb52438504867924061277732e16ac58347ca
3
+ metadata.gz: 46375ea86105e9cb191d0ba2c90d56a950cf6179089c735d6191371e035d1c1d
4
+ data.tar.gz: bd1965e84b3ceab6673df8e300604a37910be007031fbfc14f305b3105b0d7c4
5
5
  SHA512:
6
- metadata.gz: 662abef818a3761fafcddbac8dfb7c1219afb3d4b49d9eff61fe9b843c5e45b9af9b3714ce75f62164157dbd9d01a6ff9ffa35a774fa88f1f029929bf8e27e0f
7
- data.tar.gz: 8d8048b05386af2d81bea333827e9efadfba6b4de9bf62375e164ca46455773c962b798162e11671594048848c4904deb4ec0304cbcec2dba0ee1705aeec77b2
6
+ metadata.gz: 21225b2857499c836b7055293ed60182b20504ddc308415179364aebc9024c12b03b083cf8601717b27fb318b3e1b4f06788decc2a6666a8c85b67c95802db0e
7
+ data.tar.gz: 7f75c140f1b66be107f667eb94e16fb59a9c40c884e4ac7fab0cffb124cb0492302a2f004ed5d82e03edd33a5ff714e8adbb97560f87a37a11576cffb064014e
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2024 Paul DobbinSchmaltz
3
+ Copyright (c) 2025 Paul DobbinSchmaltz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Gem Version](https://img.shields.io/github/v/release/pdobb/object_inspector)](https://img.shields.io/github/v/release/pdobb/object_inspector)
4
4
  [![CI Actions](https://github.com/pdobb/object_inspector/actions/workflows/ci.yml/badge.svg)](https://github.com/pdobb/object_inspector/actions)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/34e821263d9e0c33d536/maintainability)](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
- - `join_name` -- Joins name parts with ` - ` by default
231
- - `join_flags` -- Joins flags with ` / ` by default
232
- - `join_info` -- Joins info items with ` | ` by default
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 (gemwork):
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 object_inspector to RubyGems:
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, **kwargs)
12
- ObjectInspector::Inspector.inspect(object, **kwargs)
11
+ def inspect(object = self, ...)
12
+ ObjectInspector::Inspector.inspect(object, ...)
13
13
  end
14
14
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ObjectInspector
4
4
  # The current ObjectInspector gem version.
5
- VERSION = "0.7.0"
5
+ VERSION = "0.8.0"
6
6
  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.7.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: 2024-11-21 00:00:00.000000000 Z
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.3.27
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.