tdl-client-ruby 0.29.6 → 0.29.7
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 +4 -4
- data/lib/tdl/queue/queue_based_implementation_runner.rb +1 -20
- data/tdl-client-ruby.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6264d8e5d961380839c32853b71d9b0788b512c12a3dbe9d3342e25dfbd5bd19
|
4
|
+
data.tar.gz: 987911ce072fe3bd0b8bf5159e9d366dbe675489588694bb05f76b397d7e31db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c141fed6d50e8a34e3621886466f53ea94c1a8f869c43d9821e8d67e94950a1655434ff2d8de9241733daa29c2020646fd55e1a3235c2dd9ad2a1cf938b755a
|
7
|
+
data.tar.gz: 86a7b748df181bdee114810b16b43e514983e6b3f6a2b3a1af172bf17fbb8bd49c113bd7afd1bf0c76a3ccf0cb3ec27ae6d7b7448be075c5fc1907c25ea2bff0
|
@@ -63,8 +63,7 @@ module TDL
|
|
63
63
|
@audit.log_request(request)
|
64
64
|
|
65
65
|
# Obtain response from user
|
66
|
-
|
67
|
-
response = @processing_rules.get_response_for(request_as_object)
|
66
|
+
response = @processing_rules.get_response_for(request)
|
68
67
|
@audit.log_response(response)
|
69
68
|
|
70
69
|
# Act
|
@@ -90,24 +89,6 @@ module TDL
|
|
90
89
|
# Do nothing
|
91
90
|
end
|
92
91
|
end
|
93
|
-
|
94
|
-
def self.request_as_object(request)
|
95
|
-
Request.new(request.original_message,
|
96
|
-
request.id,
|
97
|
-
request.method,
|
98
|
-
ApplyProcessingRules.to_openstruct(request.params))
|
99
|
-
end
|
100
|
-
|
101
|
-
def self.to_openstruct(obj)
|
102
|
-
case obj
|
103
|
-
when Hash
|
104
|
-
OpenStruct.new(obj.transform_values { |v| to_openstruct(v) })
|
105
|
-
when Array
|
106
|
-
obj.map { |e| to_openstruct(e) }
|
107
|
-
else
|
108
|
-
obj
|
109
|
-
end
|
110
|
-
end
|
111
92
|
end
|
112
93
|
end
|
113
94
|
end
|
data/tdl-client-ruby.gemspec
CHANGED