statinize 0.3.1 → 0.3.2

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: '0098c847e6bc5a635a49088e2743a4f229378acf5b69b92f1fd9318c1fe3066c'
4
- data.tar.gz: 5422215479267d866b48b06786bc7794582289f3c13957b6825c70e749743ed7
3
+ metadata.gz: 8076207399abda2e6f39e33f71e78a318819bbdb9cd7ae759d6a896f62cf49ce
4
+ data.tar.gz: 53378fe3b67039c26472294ac3061c2d9a2dbd7801a77d61602f6804e05c389e
5
5
  SHA512:
6
- metadata.gz: a9a8442f442999cee53a0f7f105dbe695258877d13d77ffdff22e721f2f1a70746ae68fd415b81f4418dc0d8063d2182c9d46390cea6e5cbb04a53a0a59fc148
7
- data.tar.gz: 5a6bd4518f967b2cdf3826017749ee4920460b1634320dc8618f230e7299f5829b3efd3c50334c71b5d8be583d7db30bf1e921b7a5fcec84c7f9f09c98b15a2b
6
+ metadata.gz: a6919c84d1fb55b306fc37663152b438c23b199dc952d68e4ee8618d9f2987be236583f7bf7035a9c1e1397edfcd70b58e09a99d71ef4e87d9d3a210cd893c8f
7
+ data.tar.gz: 6f6d9af898f648a285f377bed8f5be59ab9045f67296dfd7ed4bc0807a544f8bc62aef377c585d1f2ddd258d9b5012a6c1eff95c1a0c5fe36071bf1f951b321f
@@ -20,8 +20,6 @@ module Statinize
20
20
  module PrependedMethods
21
21
  def initialize(options = {}, *args, **kwargs, &block)
22
22
  symbolized = kwargs.merge(options).transform_keys(&:to_sym)
23
- extra_attributes = symbolized.keys.map(&:to_sym) - statinizer.attributes.map(&:name).map(&:to_sym)
24
- raise UnknownAttributeError, "Attributes #{extra_attributes.join(", ")} are unknown" if extra_attributes.any?
25
23
 
26
24
  if private_methods(false).include? :initialize
27
25
  super(*args, **kwargs, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statinize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barseek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-25 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Statinization gem. Allows for creation of attributes for a class with
14
14
  a given type.