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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1db6f6df66049791647fd77a005364d34352ee6dcdc8e3e06d96bf3a0f0fe7aa
|
4
|
+
data.tar.gz: 720d4d08c58ee263bdd4b199ab89e7d8142f97cf37c87c1c60a3a81f6de6703c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
43
|
-
return super unless respond_to_missing?(
|
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
|
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
|
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(
|
32
|
-
method_name
|
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(
|
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.
|
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.
|
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.
|
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:
|