konstructor 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: be318569bd5eb191168f2c1c3ee4a1f78a8bf5a0
4
- data.tar.gz: 7bbe980bfdd9d4c9dd11c9796a29e1713670044b
3
+ metadata.gz: 8a9016154d40a8361e02e4aabf327f89d454dd61
4
+ data.tar.gz: 2476aeb1d5cb5773d8c248aac34ee21dd1640637
5
5
  SHA512:
6
- metadata.gz: 2e0c499b547b7ff4e5f9005a5a161482e339dc9fab91757057bdc14fda2429ce2e375dc83f4911a31ca3aea1f95b912f49e450cb722cb9599b1357e30f3ec673
7
- data.tar.gz: cab3f355ccc9237407da8d6da00620a070d1e9de9fae088398f7c873ba477ae46b7c38bc7b3243915ace7df9b293d82ea22e7d5718499d53e70dd521360d5ccd
6
+ metadata.gz: 50a37b15d19a9e7fe193650b001fb51b60becfb8ea6562823ed66114e52d185e082bbe61ad1a0fd2ad3799228c7082281f6fee63a6fbad7f7157b876fc669b27
7
+ data.tar.gz: d552aec0802c10ca83d09cbbc7280ec6fa1929aacd5919543a799298752000184008e9c423ca522a1d6fe15f042b5801388a7ef25dededcbebfdfe4167fca7ef
@@ -1,5 +1,5 @@
1
1
  module Konstructor
2
- class Factory #:nodoc:
2
+ class Factory # :nodoc:
3
3
 
4
4
  def initialize(klass)
5
5
  @klass = klass
@@ -1,5 +1,5 @@
1
1
  module Konstructor
2
- module KonstructorMethodHook #:nodoc:
2
+ module KonstructorMethodHook # :nodoc:
3
3
 
4
4
  # Experimental and currently not used <code>method_added</code>
5
5
  # hook approach protecting against method_added
@@ -21,8 +21,7 @@ module Konstructor
21
21
  alias konstructor_super_method_added method_added
22
22
 
23
23
  def method_added(name)
24
- @konstructor ||= Konstructor.new(self)
25
- @konstructor.method_added_to_klass(name)
24
+ Konstructor.method_added_to_klass(self, name)
26
25
  konstructor_super_method_added(name)
27
26
  end
28
27
  end
@@ -56,7 +56,7 @@ module Konstructor
56
56
  # ReservedNameError
57
57
  # DeclaringInheritedError
58
58
  # IncludingInModuleError
59
- def konstructor(*several_variants) #:doc:
59
+ def konstructor(*several_variants) # :doc:
60
60
  Konstructor.declare(self, several_variants)
61
61
  nil
62
62
  end
@@ -1,5 +1,5 @@
1
1
  module Konstructor
2
- module SimpleMethodHook #:nodoc:
2
+ module SimpleMethodHook # :nodoc:
3
3
 
4
4
  private
5
5
 
@@ -1,3 +1,3 @@
1
1
  module Konstructor
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: konstructor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dima Lashkov