kalibro_gatekeeper_client 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3ebc0c46da1a174a469f820ec18d9caf291c4e1
4
- data.tar.gz: d4b57f3f98875caa96c3fb3bc653ed55d60e9326
3
+ metadata.gz: 50a197b6cbf1580ece1b90c729c35c434b336364
4
+ data.tar.gz: b57bf192e1e0dab0de27735503249baeb547b02f
5
5
  SHA512:
6
- metadata.gz: 4e11a43924f1a7cb1d0ca62438f5ad09180d51ffda2dc65922f36cce24a367ecd2308d1a50bfa603a98b33b5c683c177e68a4f91bf97872901034f7ecf5f70ee
7
- data.tar.gz: bbc7ff325b437e5aff231761b2c3f0c1f2b7b20bc47e8ceafb0ec25fc9ed59a005646aec9e6cda256d651378c8de8fcdd5745579cc9f6c85428e052793bc6c35
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 {|date_module_result| KalibroGatekeeperClient::Entities::DateModuleResult.new date_module_result}
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
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module KalibroGatekeeperClient
18
- VERSION = "0.3.1"
18
+ VERSION = "0.3.2"
19
19
  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.1
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-08-25 00:00:00.000000000 Z
14
+ date: 2014-09-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler