state_inspector 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/state_inspector/state_inspector.rb +2 -2
- data/lib/state_inspector/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b1d50ffea44727e814b66e026dd4769eb1ed48582d3a1cd73660ecab584aa8d4
|
4
|
+
data.tar.gz: 43b0e0730c5f056b8c1e25cf374d990b4b48e79bea582c31343948bab9545a59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b995590f3feec9acc2bbc0b9ee1859882848d59c06fd0405eef380c39fe2b2caddf4b9a038137aa5c43d00ede5ece640e1d2354e169125ec3fb6e4428aafe4b5
|
7
|
+
data.tar.gz: 8b51834c46976037dced1dee6840e3b4289cc3e1d5282346312bdf33820677ded09922bebf3975d87b0b7feae34486d93c3ee49d348973bc6f38bda78eae092c
|
@@ -9,7 +9,7 @@ module StateInspector
|
|
9
9
|
setters.
|
10
10
|
delete_if {|m| (@state_inspector || {}).fetch(m){ nil } }.
|
11
11
|
each do |m|
|
12
|
-
single = singleton_methods.include? m
|
12
|
+
single = singleton_methods.include?(m) && method(m).owner == self.singleton_class
|
13
13
|
original_method = (single ? singleton_method(m).unbind : instance_method(m))
|
14
14
|
(@state_inspector ||= {})[m] = {
|
15
15
|
contructor: __method__,
|
@@ -31,7 +31,7 @@ module StateInspector
|
|
31
31
|
meth0ds.
|
32
32
|
delete_if {|m| (@state_inspector || {}).fetch(m){ nil } }.
|
33
33
|
each do |m|
|
34
|
-
single = singleton_methods.include? m
|
34
|
+
single = singleton_methods.include?(m) && method(m).owner == self.singleton_class
|
35
35
|
original_method = (single ? singleton_method(m).unbind : instance_method(m))
|
36
36
|
(@state_inspector ||= {})[m] = {
|
37
37
|
contructor: __method__,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_inspector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel P. Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.6.
|
131
|
+
rubygems_version: 2.6.10
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Introspection tool for reporting method calls and state change.
|