composable-core 0.0.6 → 0.0.8

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: 345185c951beeea84c4c0a6a7540b5d6c5880e4c662279a880cf6aa45104e253
4
- data.tar.gz: 6e80cf29d05ccaae771ccbdbc10c493d6b661584c2c2880fc47730a2f4fef66f
3
+ metadata.gz: d511eed10b06d93b1b327cbc63f1f87e8935021397c4d34452b3c379f4dac537
4
+ data.tar.gz: e8f8604c0d94158ffa6652df812be5be63a0766d5624c31b5b88210c90ab1997
5
5
  SHA512:
6
- metadata.gz: e15c982438d7d602486927046b7c1498046d20b5b90da8f875d1e2dbb1c8e5d87bfaea7fbaa6208b61aa560c4b6a6c5c2982bf8d74840d80d69c6b7b597e946f
7
- data.tar.gz: 8f0ed2cc4d927b4efc817e5fb9ee36ecbd77c60c8d4eb3f7122f19940a368f4fee1f8cccf66b5d2a32b395d992b2a59e53491abf8443ea73aff4b45ddec3823f
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 = 6
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.6
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-07-15 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