kalibro_gatekeeper_client 0.3.1 → 0.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50a197b6cbf1580ece1b90c729c35c434b336364
|
4
|
+
data.tar.gz: b57bf192e1e0dab0de27735503249baeb547b02f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f97a0508b35005e36a76dfc2344c9c03765b43fb46d3d5c366f9afa37813a1e708336c715e47e6ba3a98e7aeebb2f5419c452402814cf6f3db4fa8af86332d96
|
7
|
+
data.tar.gz: 124d40273051830d28e20d8c566b8c08863d54f36848637bd4a5ac7ca9cd2963dca1181a70eb7d0fa658097e8aed483d4084f3546f7fe0195a92778888177b79
|
@@ -68,7 +68,12 @@ module KalibroGatekeeperClient
|
|
68
68
|
|
69
69
|
def self.history_of(module_result_id)
|
70
70
|
response = self.create_array_from_hash(self.request('history_of', {id: module_result_id})['date_module_results'])
|
71
|
-
response.map
|
71
|
+
response.map do |date_module_result_pair|
|
72
|
+
date_module_result = KalibroGatekeeperClient::Entities::DateModuleResult.new
|
73
|
+
date_module_result.date = date_module_result_pair.first
|
74
|
+
date_module_result.module_result = date_module_result_pair.last
|
75
|
+
date_module_result
|
76
|
+
end
|
72
77
|
end
|
73
78
|
end
|
74
79
|
end
|
@@ -124,7 +124,7 @@ describe KalibroGatekeeperClient::Entities::ModuleResult do
|
|
124
124
|
KalibroGatekeeperClient::Entities::ModuleResult.
|
125
125
|
expects(:request).
|
126
126
|
with('history_of', {id: subject.id}).
|
127
|
-
returns({'date_module_results' => date_module_result.to_hash})
|
127
|
+
returns({'date_module_results' => [[date_module_result.date, date_module_result.module_result.to_hash]]})
|
128
128
|
end
|
129
129
|
|
130
130
|
it 'should return a list of date_module_results' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kalibro_gatekeeper_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Araújo Martinez
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-09-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|