composable-core 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d56d2c41394ea626296bdcfef8a547e272e7202c872972d6ea4b749ebcff538
4
- data.tar.gz: b9f1d63e63db227c16cb45d5e702d32df51c1774fff1dc8c7ed8e002fae36f8b
3
+ metadata.gz: d511eed10b06d93b1b327cbc63f1f87e8935021397c4d34452b3c379f4dac537
4
+ data.tar.gz: e8f8604c0d94158ffa6652df812be5be63a0766d5624c31b5b88210c90ab1997
5
5
  SHA512:
6
- metadata.gz: e0f79489b8c6c33dfe0d0bdb8d76fe8ee08be37a00749ebb5fe4c7050ff4d336e3f3f7af56224f049f1334d9933095e3a5e23e458aca516e5b047ac7f2018614
7
- data.tar.gz: 415dfb4b81b6c069a9fb8c80b0a53b3c52be68423f9063e3da35e2d98e768227b134ba5ffc708aadf444fb1c6b832c316b468c4d1bb6896268ea4812505fabac
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.fetch(attribute.to_sym, options[attribute.to_s])
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!
@@ -10,7 +10,7 @@ module Composable
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 7
13
+ TINY = 8
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.7
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-08-30 00:00:00.000000000 Z
11
+ date: 2022-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport