activeinteractor 2.0.0.alpha.2.3.1 → 2.0.0.alpha.2.3.2

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: e8af4270754db50c59e2c28fd5877446d12e1d15617ff8ce2dc67b97a0a95830
4
- data.tar.gz: 43d1b328973b54ef6623db8e216a2d5a6d84098582ccb674e998ae181b88171a
3
+ metadata.gz: 1db6f6df66049791647fd77a005364d34352ee6dcdc8e3e06d96bf3a0f0fe7aa
4
+ data.tar.gz: 720d4d08c58ee263bdd4b199ab89e7d8142f97cf37c87c1c60a3a81f6de6703c
5
5
  SHA512:
6
- metadata.gz: 5a9e727d815c173b8be85a47cf65110a48e5e3e65bf370764a29d12060f5da85e2b4a444f35e87c15e4c328795834f3e315a351993deb46fad1d8e7432b78a06
7
- data.tar.gz: 655d2a8362d581afb7074b8b00abbd97e496071bb5ce373dd4f475c04e881dc5a8406d4ecd95d7921c29d5e2346aaac7b6f532f54a2c7b31223f5dee38a4ab9f
6
+ metadata.gz: e0b72abcf5ba60f5223dea9107280e9813d084ed416dc1ab8d810ab618554b27602dc08dd8d6d671e12851fe90e94ab9552503c30c11b65294858afb447732b7
7
+ data.tar.gz: 3d7ac38cfbe1ec554033213f84a8e2a6bc253bead86f0b192376f1886e500b80f7a8715cf92c9ab448472d724ef63fb567363ebf8fd1e382c29f154f49ba284c
@@ -36,16 +36,14 @@ module ActiveInteractor
36
36
  "wrong number of arguments (given #{arguments.length}, expected 1)"
37
37
  end
38
38
 
39
- assign_attribute_value(method_name, arguments.first)
39
+ assign_attribute_value(method_name.to_s.delete('=').to_sym, arguments.first)
40
40
  end
41
41
 
42
- def method_missing(method_id, *arguments)
43
- return super unless respond_to_missing?(method_id)
42
+ def method_missing(method_name, *arguments)
43
+ return super unless respond_to_missing?(method_name)
44
+ return assignment_method_missing(method_name, *arguments) if method_name.to_s.end_with?('=')
44
45
 
45
- method_name = method_id[/.*(?==\z)/m]
46
- return assignment_method_missing(method_name, *arguments) if method_name
47
-
48
- read_attribute_value(method_id)
46
+ read_attribute_value(method_name)
49
47
  end
50
48
 
51
49
  def read_attribute_value(attribute_name)
@@ -57,7 +55,7 @@ module ActiveInteractor
57
55
 
58
56
  def respond_to_missing?(method_name, _include_private = false)
59
57
  return true if attribute_set.attribute_names.include?(method_name.to_sym)
60
- return true if attribute_set.attribute_names.include?(method_name[/.*(?==\z)/m]&.to_sym)
58
+ return true if attribute_set.attribute_names.include?(method_name.to_s.delete('=').to_sym)
61
59
 
62
60
  super
63
61
  end
@@ -28,11 +28,10 @@ module ActiveInteractor
28
28
  @table[attribute_name.to_sym] = value
29
29
  end
30
30
 
31
- def method_missing(method_id, *arguments)
32
- method_name = method_id[/.*(?==\z)/m]
33
- return assignment_method_missing(method_name, *arguments) if method_name
31
+ def method_missing(method_name, *arguments)
32
+ return assignment_method_missing(method_name, *arguments) if method_name.to_s.end_with?('=')
34
33
 
35
- read_attribute_value(method_id)
34
+ read_attribute_value(method_name)
36
35
  end
37
36
 
38
37
  def read_attribute_value(attribute_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeinteractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha.2.3.1
4
+ version: 2.0.0.alpha.2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Allen
@@ -88,9 +88,9 @@ licenses:
88
88
  - MIT
89
89
  metadata:
90
90
  bug_tracker_uri: https://github.com/activeinteractor/activeinteractor/issues
91
- changelog_uri: https://github.com/activeinteractor/activeinteractor/blob/v2.0.0-alpha.2.3.1/CHANGELOG.md
91
+ changelog_uri: https://github.com/activeinteractor/activeinteractor/blob/v2.0.0-alpha.2.3.2/CHANGELOG.md
92
92
  homepage_uri: https://github.com/activeinteractor/activeinteractor
93
- source_code_uri: https://github.com/activeinteractor/activeinteractor/tree/v2.0.0-alpha.2.3.1
93
+ source_code_uri: https://github.com/activeinteractor/activeinteractor/tree/v2.0.0-alpha.2.3.2
94
94
  wiki_uri: https://github.com/activeinteractor/activeinteractor/wiki
95
95
  rubygems_mfa_required: 'true'
96
96
  post_install_message: