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 +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/lib/smart_core/initializer.rb +0 -3
- data/lib/smart_core/initializer/dsl.rb +3 -3
- data/lib/smart_core/initializer/functionality.rb +1 -0
- data/lib/smart_core/initializer/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f516b06f95abb4c257cf0507897bd8d9ee65a27db12f117c3f54fd8cbefab7
|
4
|
+
data.tar.gz: be6bf05b4dbdbca0cafde4ac3097926e4d5b45ea5f3a0c21f4e0679bf0a4e590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b00d4d9be6148a7b24c6fe9b178b99d7934bb05fa6751d857a2d2c62abc1d3b5640ae6099b264f0c27c570e9e62632ae9f3f870e1a0ddb91bf51c6c3e9f23577
|
7
|
+
data.tar.gz: 28aad37b3850085764aed335bd93da10295f6f4e3cb32f76bf5a3dcac55fac2f1cd60de3f73fb4778f8e661662291c2c2deff3efbfd69dc8edce75c04cadd2ec
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
@@ -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.
|
36
|
+
# @version 0.3.2
|
37
37
|
def inherited(child_klass)
|
38
|
-
child_klass.
|
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__,
|
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)
|