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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d56d2c41394ea626296bdcfef8a547e272e7202c872972d6ea4b749ebcff538
4
- data.tar.gz: b9f1d63e63db227c16cb45d5e702d32df51c1774fff1dc8c7ed8e002fae36f8b
3
+ metadata.gz: 673f819ca4be72562bca0977c2b9c8fe290cd93a9960c1ac34f40958d8d29114
4
+ data.tar.gz: e121ecacd8ce6e4e929d8e80ee7212ea1ae6945d245ddbd952d345470428f3b0
5
5
  SHA512:
6
- metadata.gz: e0f79489b8c6c33dfe0d0bdb8d76fe8ee08be37a00749ebb5fe4c7050ff4d336e3f3f7af56224f049f1334d9933095e3a5e23e458aca516e5b047ac7f2018614
7
- data.tar.gz: 415dfb4b81b6c069a9fb8c80b0a53b3c52be68423f9063e3da35e2d98e768227b134ba5ffc708aadf444fb1c6b832c316b468c4d1bb6896268ea4812505fabac
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.fetch(attribute.to_sym, options[attribute.to_s])
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!
@@ -10,7 +10,7 @@ module Composable
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 7
13
+ TINY = 9
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.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-08-30 00:00:00.000000000 Z
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.3
82
+ rubygems_version: 3.3.7
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Core Composable Object