core-inspect 0.1.0 → 0.1.1
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 +7 -1
- data/lib/core/inspect/version.rb +1 -1
- data/lib/is/inspectable.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f07082e1925de58943a99e20889e090550e5efcdd08932a726a087f2bb490b9
|
4
|
+
data.tar.gz: 3ec5210448d211c6393df04cae72505a8dc6065a87e91e02e908a7b0358f5da4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c814fedceb04f969459aeb57f7db02e2b217851238138379c32daefb34445d6b155b9fc583709c7cfc26f2e1c218a8f85b6f49b07c0db3407e0cd49a93178a18
|
7
|
+
data.tar.gz: a4fa78503a24febdc58d7e679fe71944a618c8f2f8a52b1fc1eb63361cd9f4c37deeacf838a92371217cb0c99a81763d8d9897fb7f9cf13cfea94753b606a603
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
+
## [v0.1.1](https://github.com/metabahn/corerb/releases/tag/2022-01-13)
|
2
|
+
|
3
|
+
*released on 2022-01-13*
|
4
|
+
|
5
|
+
* `fix` [#119](https://github.com/metabahn/corerb/pull/119) Access inspectable state through instance variables ([bryanp](https://github.com/bryanp))
|
6
|
+
|
1
7
|
## [v0.1.0](https://github.com/metabahn/corerb/releases/tag/2021-11-23.1)
|
2
8
|
|
3
|
-
*released on 2021-11-23
|
9
|
+
*released on 2021-11-23*
|
4
10
|
|
5
11
|
* `add` [#110](https://github.com/metabahn/corerb/pull/110) Introduce Core::Inspect::Inspectable for greater customization ([bryanp](https://github.com/bryanp))
|
6
12
|
* `chg` [#109](https://github.com/metabahn/corerb/pull/109) Prefer `__send__` to `send` ([bryanp](https://github.com/bryanp))
|
data/lib/core/inspect/version.rb
CHANGED
data/lib/is/inspectable.rb
CHANGED
@@ -77,8 +77,8 @@ module Is
|
|
77
77
|
end
|
78
78
|
|
79
79
|
private def each_inspectable
|
80
|
-
inspectables = if __inspectables__.any?
|
81
|
-
__inspectables__
|
80
|
+
inspectables = if @__inspectables__.any?
|
81
|
+
@__inspectables__
|
82
82
|
else
|
83
83
|
instance_variables.map(&:to_s).reject { |instance_variable|
|
84
84
|
instance_variable.start_with?("@_")
|
@@ -88,7 +88,7 @@ module Is
|
|
88
88
|
end
|
89
89
|
|
90
90
|
inspectables.each_value do |inspectable|
|
91
|
-
unless __uninspectables__.include?(inspectable.name)
|
91
|
+
unless @__uninspectables__.include?(inspectable.name)
|
92
92
|
yield inspectable
|
93
93
|
end
|
94
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: core-inspect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: core-extension
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
86
|
+
rubygems_version: 3.3.3
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Customized inspections for any object.
|