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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5dca6cf74c19034f46fd0adf754611f78076779f1bbb16ad59d8b9d2d00a4fe
4
- data.tar.gz: 4708306c9276493d26ffd4bf6d78e8a2808e03e9cefced9ede7663591a9bda94
3
+ metadata.gz: c96ef190ca77b40d2f3cefd876a7a9b4ebba438ba691ca2d19e0f5324d8a204b
4
+ data.tar.gz: f20b1305822b2563168c981cc31189cff9c0297361885d48a44534a64d87c022
5
5
  SHA512:
6
- metadata.gz: e3b798e0a6c067ea1ba70dacc6ccb93396736e88460536fafb5ee8f2a49b269504f3ba7e27b2b00ba113095a5a765445ff50dde50bd84d4879c94818b087d30d
7
- data.tar.gz: c1fe8f09eb03681b52fd03baff26f173b1cd5d58070d57a6147a5ae69e20e9d5f3f56a4c4afa66a75d2b998fac0f725c70976ebb056ad233cfc861318681eb29
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("@#{attribute}", options[:default].deep_dup)
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
@@ -10,7 +10,7 @@ module Composable
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 11
13
+ TINY = 12
14
14
  PRE = nil
15
15
 
16
16
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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.11
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: 2022-12-23 00:00:00.000000000 Z
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.3.7
82
+ rubygems_version: 3.5.5
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Core Composable Object