pinball 0.0.4 → 0.0.5

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
2
  SHA1:
3
- metadata.gz: af1f43e30b5d803695302f7f5b4ad31895f6b616
4
- data.tar.gz: 8baa4806fe830062b49a59ccee87a9e3ff7534c4
3
+ metadata.gz: 8694c6a9754e8563f40aac11464ad2e15cb2c95b
4
+ data.tar.gz: d8a1ca2d30a0e5207fbdb93caff25b3993f90ec2
5
5
  SHA512:
6
- metadata.gz: 837f8c57fdd029c221460729d9a8760dff10e6a1f915f97d4e28f14d6482e0c58f7f6d220204346e22f419b3839a9d294066639463ec960509ffcf23204b9c85
7
- data.tar.gz: 2ca5ec7ef6d0bd47b99f0520d89a7a7785ab061b25363b2454905defd793b326f69a2b320eae7dc0c2fd778311890e32df6adf64ad58a4707c094360b036f5e1
6
+ metadata.gz: 4a3d8797145fb2372a09936cda30244c5a6a9ae09a424c8e4cb617fd074ffc58e0121eeaed6946cdc15094557777ba4ac63174ffa7fca0d9a2d513aeecf152ae
7
+ data.tar.gz: f0ef29a9ff9fb698c52be476178e23f6ace4b26b0afb64ab0b1e257d1e6b9d19c5500855bad79a3dd9d6cb21282518a1baa31a99acef5d45e5e91dcd9a5cc194
data/lib/pinball/class.rb CHANGED
@@ -21,10 +21,14 @@ class Class
21
21
  self.extend Pinball
22
22
  self.send(:include, Pinball::Methods)
23
23
 
24
- self.send(:define_singleton_method, :inherited) do |child|
24
+ self.send(:define_singleton_method, :inherited_with_pinball) do |child|
25
+ inherited_without_pinball(child) if respond_to?(:inherited_without_pinball)
25
26
  child.instance_variable_set :@dependencies, self.dependencies
26
27
  child.check_pinball
27
28
  end
29
+
30
+ self.send(:define_singleton_method, :inherited_without_pinball, self.method(:inherited)) if self.respond_to?(:inherited)
31
+ self.send(:define_singleton_method, :inherited, self.method(:inherited_with_pinball))
28
32
  end
29
33
  end
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module Pinball
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -1,8 +1,6 @@
1
1
  require 'spec_helper.rb'
2
2
  require 'pinball'
3
3
 
4
-
5
-
6
4
  describe Class do
7
5
  before do
8
6
  Pinball::Container.clear
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinball
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Sinyavsky