evt-set_attributes 0.4.0.0 → 0.5.0.0

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: 511965e601f45eadb47a1c860e6f5b46e7d8e1f83aa34a1ac48c4d3be8335ffa
4
- data.tar.gz: 837375a48da4e964bda8bc32007f6e79735b5ac615914b345cbe472ef2c91152
3
+ metadata.gz: 6b94861a42a265553c50f704f1ae55042ffc015712ef202f2e40cd011997f165
4
+ data.tar.gz: 839bbd7358a4de42d574df63341cdeb956ba312a81c00cabc8f2714bf7989f39
5
5
  SHA512:
6
- metadata.gz: afa5f8dfcda5819a2b45fbb48444e17f9c843d672503b84260a8a15946576756766aedb3117f86ccfead7f9bc9b1acd98c17762eabc283456453fad449d36760
7
- data.tar.gz: 0c402f1ea2f0b9f0b52d347052297050b04e68b8ce812350b60100d371cd74712c59e158dc730b0c0b1e6fb204bef196a8c4029f4cf7f9fffc79bebeaefa779d
6
+ metadata.gz: 2125c8d455f2f86c5c35b6db382c4007a339fee6673c984cf0da52d29ee32451616e7e75e87de5343abd4d087e2ecdcca15a33947eb4110b9db5f6266fe7f9d8
7
+ data.tar.gz: 0425d824af496b4ee2fae0d5f93eedf1cd202b1e86f78d4ccff1f3bc86d0bb585da2af2d30c8f0d22be9db9e8b74dc801f9fd755450aa68c309a9a76cb8d9db9
@@ -3,7 +3,7 @@ class SetAttributes
3
3
  class Error < RuntimeError; end
4
4
 
5
5
  def self.set(receiver, attribute, value, strict: nil)
6
- strict ||= false
6
+ strict = true if strict.nil?
7
7
 
8
8
  setter = :"#{attribute}="
9
9
 
@@ -53,10 +53,8 @@ class SetAttributes
53
53
 
54
54
  def self.call(receiver, data, include: nil, copy: nil, exclude: nil, strict: nil)
55
55
  instance = build(receiver, data, copy: copy, include: include, exclude: exclude, strict: strict)
56
-
57
56
  instance.()
58
57
  end
59
- class << self; alias :! :call; end # TODO: Remove deprecated actuator [Kelsey, Thu Oct 08 2015]
60
58
 
61
59
  def call
62
60
  include_mapping = self.include_mapping
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-set_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.0
4
+ version: 0.5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project