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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c7830abc050b3b176596bcbbd359b0170010004e
4
- data.tar.gz: 733bee9156bba95c6af439b1051847fca8432406
2
+ SHA256:
3
+ metadata.gz: b1d50ffea44727e814b66e026dd4769eb1ed48582d3a1cd73660ecab584aa8d4
4
+ data.tar.gz: 43b0e0730c5f056b8c1e25cf374d990b4b48e79bea582c31343948bab9545a59
5
5
  SHA512:
6
- metadata.gz: 911dac749063d37fb90185a8502f81f00f3ebf273455210c8eb807be2beca505f3b279bc418d57f59df1e2f568f142229b2ebcdc879177a62f2692c8a5089b9f
7
- data.tar.gz: 407a7b7582fae7e6ea3a235d5f0a353a3c7ac096417df06de33ac0e08d63b5a4d2bbdf5923354de25444fd865d2ea0d15921322e2aa497439a18a8edf9bd4ef3
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__,
@@ -1,3 +1,3 @@
1
1
  module StateInspector
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-25 00:00:00.000000000 Z
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.8
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.