composable-core 0.0.7 → 0.0.8
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 +7 -1
- data/lib/composable/core/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d511eed10b06d93b1b327cbc63f1f87e8935021397c4d34452b3c379f4dac537
|
4
|
+
data.tar.gz: e8f8604c0d94158ffa6652df812be5be63a0766d5624c31b5b88210c90ab1997
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3551c71dfb71f2ecd27602e03f5393a7ee1d5468c5843970fce06094067b7a9756adb6858e2498e89d45b5a9702ff838690c0ba58eee49ce11253ab60cd654e4
|
7
|
+
data.tar.gz: bbefe89a9659d134e9f65727b48b2f6ab2865b0d48b223f95aee3b818d9087112e3fc72ef949ac29364f4a88513efa89cf460d4a56e3aad63d3aa09598a469d7
|
@@ -19,9 +19,11 @@ 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) || options.delete(attribute.to_s)
|
23
23
|
send("#{attribute}=", value) unless value.nil?
|
24
24
|
end
|
25
|
+
|
26
|
+
@rest = options
|
25
27
|
end
|
26
28
|
|
27
29
|
def attributes
|
@@ -34,6 +36,10 @@ module Composable
|
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
39
|
+
def rest
|
40
|
+
@rest
|
41
|
+
end
|
42
|
+
|
37
43
|
module ClassMethods
|
38
44
|
def attribute(*attrs)
|
39
45
|
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.8
|
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-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|