composable-core 0.0.7 → 0.0.9
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 +8 -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: 673f819ca4be72562bca0977c2b9c8fe290cd93a9960c1ac34f40958d8d29114
|
4
|
+
data.tar.gz: e121ecacd8ce6e4e929d8e80ee7212ea1ae6945d245ddbd952d345470428f3b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe0128e4c4c9ad914f1fa13bb6668a4a8cc0dd5d966cc46be3e8b97cb27e8022b1042afa53609d7bd5fcf6a719501ace3f4d9119f49ba762653d923296706e2d
|
7
|
+
data.tar.gz: f44cab2b1f3f8611646e2aa99f1150d6a5bd1de6cb03bc89c8698052ef22146eb244e8e313a3231eabc795b361b9a48f887cbb563087f87c6f7384f3f01d7ec8
|
@@ -19,9 +19,12 @@ module Composable
|
|
19
19
|
|
20
20
|
attributes.each do |attribute|
|
21
21
|
# Try a `string` key if `symbol` key does not exist
|
22
|
-
value = options.
|
22
|
+
value = options.delete(attribute.to_sym)
|
23
|
+
value = options.delete(attribute.to_s) if value.nil?
|
23
24
|
send("#{attribute}=", value) unless value.nil?
|
24
25
|
end
|
26
|
+
|
27
|
+
@rest = options
|
25
28
|
end
|
26
29
|
|
27
30
|
def attributes
|
@@ -34,6 +37,10 @@ module Composable
|
|
34
37
|
end
|
35
38
|
end
|
36
39
|
|
40
|
+
def rest
|
41
|
+
@rest
|
42
|
+
end
|
43
|
+
|
37
44
|
module ClassMethods
|
38
45
|
def attribute(*attrs)
|
39
46
|
options = attrs.extract_options!
|
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.9
|
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-
|
11
|
+
date: 2022-11-07 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.
|
82
|
+
rubygems_version: 3.3.7
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Core Composable Object
|