smart_initializer 0.3.1 → 0.3.2

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
  SHA256:
3
- metadata.gz: fd0eb76f680e74b4b2eb404eb72df5181d13135bcba2c4eb105a7ae663d068f9
4
- data.tar.gz: 0a532548173e17b18135d2b3a2748430330b0e28467fc483f434e463f6f6f862
3
+ metadata.gz: b5f516b06f95abb4c257cf0507897bd8d9ee65a27db12f117c3f54fd8cbefab7
4
+ data.tar.gz: be6bf05b4dbdbca0cafde4ac3097926e4d5b45ea5f3a0c21f4e0679bf0a4e590
5
5
  SHA512:
6
- metadata.gz: fc77143a0cfd9e90553059444eb38bb527aae5afc2f543eafb0a9525171ca45c2506d0826170e14f2a9a284c05ec43d6f9f024d14ea288f664b4ea962219f9f4
7
- data.tar.gz: 1b889ee6f9d801cede43a624a6f800bf3b2341f874395870426522025ee5fd8bbbbd40a01940cf087e40f696cb2b87282739ebe72ddd34b9845b37c01c7c207b
6
+ metadata.gz: b00d4d9be6148a7b24c6fe9b178b99d7934bb05fa6751d857a2d2c62abc1d3b5640ae6099b264f0c27c570e9e62632ae9f3f870e1a0ddb91bf51c6c3e9f23577
7
+ data.tar.gz: 28aad37b3850085764aed335bd93da10295f6f4e3cb32f76bf5a3dcac55fac2f1cd60de3f73fb4778f8e661662291c2c2deff3efbfd69dc8edce75c04cadd2ec
@@ -1,9 +1,13 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.3.2] - 2020-07-12
5
+ ### Fixed
6
+ - Deeply inherited entities lose their `__initializer_settings__` entitiy;
7
+
4
8
  ## [0.3.1] - 2020-07-12
5
9
  ### Fixed
6
- - Deeply inherited entities lose class attribute definers;
10
+ - Deeply inherited entities lose their class attribute definers;
7
11
 
8
12
  ## [0.3.0] - 2020-07-11
9
13
  ### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smart_initializer (0.3.0)
4
+ smart_initializer (0.3.1)
5
5
  qonfig (~> 0.24)
6
6
  smart_engine (~> 0.7)
7
7
  smart_types (~> 0.1.0)
@@ -23,9 +23,6 @@ module SmartCore
23
23
  require_relative 'initializer/instance_attribute_accessing'
24
24
  require_relative 'initializer/functionality'
25
25
 
26
- # @since 0.3.0
27
- include SmartCore::Initializer::InstanceAttributeAccessing
28
-
29
26
  class << self
30
27
  # @param base_klass [Class]
31
28
  # @return [void]
@@ -33,15 +33,15 @@ module SmartCore::Initializer::DSL
33
33
  #
34
34
  # @api private
35
35
  # @since 0.1.0
36
- # @version 0.3.1
36
+ # @version 0.3.2
37
37
  def inherited(child_klass)
38
- child_klass.instance_eval do
38
+ child_klass.instance_exec(__initializer_settings__) do |init_settings|
39
39
  instance_variable_set(:@__params__, SmartCore::Initializer::Attribute::List.new)
40
40
  instance_variable_set(:@__options__, SmartCore::Initializer::Attribute::List.new)
41
41
  instance_variable_set(:@__init_extensions__, SmartCore::Initializer::Extensions::List.new)
42
42
  instance_variable_set(:@__definer__, SmartCore::Initializer::Constructor::Definer.new(self))
43
43
  instance_variable_set(:@__deflock__, SmartCore::Engine::Lock.new)
44
- instance_variable_set(:@__initializer_settings__, __initializer_settings__.dup)
44
+ instance_variable_set(:@__initializer_settings__, init_settings.dup)
45
45
  end
46
46
  child_klass.extend(ClassMethods)
47
47
  SmartCore::Initializer::DSL::Inheritance.inherit(base: self, child: child_klass)
@@ -31,6 +31,7 @@ module SmartCore::Initializer::Functionality
31
31
  # @since 0.3.0
32
32
  def seed_to(base_klass)
33
33
  base_klass.extend(SmartCore::Initializer::DSL)
34
+ base_klass.include(SmartCore::Initializer::InstanceAttributeAccessing)
34
35
  end
35
36
  end
36
37
  end
@@ -6,7 +6,7 @@ module SmartCore
6
6
  #
7
7
  # @api public
8
8
  # @since 0.1.0
9
- # @version 0.3.1
10
- VERSION = '0.3.1'
9
+ # @version 0.3.2
10
+ VERSION = '0.3.2'
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_initializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov