evt-set_attributes 2.2.0.0 → 2.2.0.1

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: 858474b2ab6bfcc5f5797f94a86ae12f0ae147dd4d1294e0876f994aa9bb4e75
4
- data.tar.gz: 6908d65b2b45cadb1850dcddc884e821acac3604951b59be3faca5f83332dfb5
3
+ metadata.gz: 23cc433e6acdf8be313f3deff80e3029dd2b97c0a73ea07431f965effde43292
4
+ data.tar.gz: 5c0b57860cd1ee50ff2658207a2b6b37dc81d3b60afa5e1098312e62c3fb32c4
5
5
  SHA512:
6
- metadata.gz: 867ddf6e29d05ef2640b64efaba3ec8847e47313bde7887c56b9f7bf6a82493a24b2f1191cbbf301c9cd3bf62c7853e373722b2455f80ac63d1acf49b06b088e
7
- data.tar.gz: d9b6aafcf95366e0c63c4a90f40cf7e6117655260ba247a92c8e2bd36086abcbe67faef3cfefe53b6a86612b14038e07663212abd95866bbf84661d991c63c7f
6
+ metadata.gz: 58a77a0bcf9b94b4868d0c4019b6f3b5870b185987c8e022fa8b7687debb5575b5ab9de0c6dbf844c9bab7b77eda5db795b0bd13c93e063a83da16f5fad694c4
7
+ data.tar.gz: 5d26b8094818bd3eb1d09e6ccc106468b3bcf6cfc0fbbea630ea646f631ae49c2c0948d0aa9eee29dd1d98a700fa4302fcbeffc8c123b6ee7535b3a3c58df299
@@ -8,7 +8,7 @@ class SetAttributes
8
8
  setter = :"#{attribute}="
9
9
 
10
10
  if receiver.respond_to?(setter)
11
- receiver.send(setter, value)
11
+ receiver.public_send(setter, value)
12
12
  else
13
13
  if strict
14
14
  error_msg = "#{receiver} has no setter for #{attribute}"
@@ -15,7 +15,7 @@ class SetAttributes
15
15
 
16
16
  def get_value(attribute)
17
17
  return nil unless attribute?(attribute)
18
- source.send(attribute)
18
+ source.public_send(attribute)
19
19
  end
20
20
  alias :[] :get_value
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-set_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.0
4
+ version: 2.2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-10 00:00:00.000000000 Z
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test_bench
@@ -47,7 +47,7 @@ homepage: https://github.com/eventide-project/set-attributes
47
47
  licenses:
48
48
  - MIT
49
49
  metadata: {}
50
- post_install_message:
50
+ post_install_message:
51
51
  rdoc_options: []
52
52
  require_paths:
53
53
  - lib
@@ -62,8 +62,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  requirements: []
65
- rubygems_version: 3.0.1
66
- signing_key:
65
+ rubygems_version: 3.3.3
66
+ signing_key:
67
67
  specification_version: 4
68
68
  summary: Set an object's attributes from a source object or hash
69
69
  test_files: []