composable-core 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/composable/core/attribute_dsl.rb +4 -1
- data/lib/composable/core/gem_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c96ef190ca77b40d2f3cefd876a7a9b4ebba438ba691ca2d19e0f5324d8a204b
|
4
|
+
data.tar.gz: f20b1305822b2563168c981cc31189cff9c0297361885d48a44534a64d87c022
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d6aa5b78ac5e5e44d88f0a892d8cd4f041b21785ca51616e9e3e79e73472348d25361b94f3ed32464b6f8106d7b530c2cdbc2d1b475a3d692c16bf94d7a0eec
|
7
|
+
data.tar.gz: b63929830119a1d174f42377e718d1d8bb04b0f9f0952d1b5ca1f3620addf66fc647bd9aa707c4226b428378bb9256b042fca6b7caea571733a3a0966b29dfe2
|
@@ -67,7 +67,10 @@ module Composable
|
|
67
67
|
value = if instance_variable_defined?("@#{attribute}")
|
68
68
|
instance_variable_get("@#{attribute}")
|
69
69
|
else
|
70
|
-
instance_variable_set(
|
70
|
+
instance_variable_set(
|
71
|
+
"@#{attribute}",
|
72
|
+
options[:default].respond_to?(:call) ? options[:default].call : options[:default].deep_dup
|
73
|
+
)
|
71
74
|
end
|
72
75
|
|
73
76
|
options[:type] ? options[:type].cast(value) : value
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: composable-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jairo Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
82
|
+
rubygems_version: 3.5.5
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Core Composable Object
|