kapnismology 2.0.0 → 2.0.1

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: 1cbf3d487a4c5443e4d4cb4fd5cc77f432ed4954
4
- data.tar.gz: 1e5c71a2f44f9da570c420ead7ff56e1b2445a4b
3
+ metadata.gz: 68fdd33d815ea379619048d25cd3ec70ec538b9c
4
+ data.tar.gz: 0ff86bc7c667d2ec03a0de98fefeb39a227fb7f0
5
5
  SHA512:
6
- metadata.gz: 4cacad590a7220d64e4194abf8eefa561a550ec5d1d37fd08215ec4795f7e413acba81edd2ce7bb91db2d589f4f07d5ee89c5613a1dc1250769655d032b0bce2
7
- data.tar.gz: e011b97bd0d5f35db1fa08bd37e57db69ef7c29097deef445e7e54c31a13d5a57d71045dc010a427d2f6ba03256b9e2575b5b4c519e9d063eb344ec04e52b16d
6
+ metadata.gz: 65184d884e6e3febf749dfe59cea77ec03e4eb7400c1b49f075a339544cea8ac1ad6b0779120f4d257f018b4097b6d83112a96725f59ddcfe62606364e63e135
7
+ data.tar.gz: c083d461c11ebf897924f575d24a7f4a6a65e8cca0353aef02bc9308671552e90fc5290065a2e6bce53c466eac9f32e7b7064434784032a4f053eb276c07088a
@@ -44,11 +44,12 @@ eos
44
44
  # This class makes sense to enforce smoke test to return something known
45
45
  # Params of the constructor:
46
46
  # * passed : Boolean: true -> test passed, false -> test failed
47
- # * data : Typically Array or Hash representing the result of the test
47
+ # * data : Hash representing the result of the test
48
48
  # * message: String with an extra message to provide human readable information
49
49
  class Result < BaseResult
50
50
  def initialize(passed, data, message)
51
51
  raise ArgumentError, 'passed argument must be true or false' unless !!passed == passed
52
+ raise ArgumentError, 'data argument must be a hash' unless data.is_a?(Hash)
52
53
  @passed = passed
53
54
  @data = data
54
55
  @message = message
@@ -91,6 +92,7 @@ eos
91
92
  # For instance when you have a test for deployments that have not happen, etc.
92
93
  class Success < BaseResult
93
94
  def initialize(data, message)
95
+ raise ArgumentError, 'data argument must be a hash' unless data.is_a?(Hash)
94
96
  @passed = true
95
97
  @data = data
96
98
  @message = message
@@ -1,3 +1,3 @@
1
1
  module Kapnismology
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kapnismology
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordi Polo Carres
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-29 00:00:00.000000000 Z
11
+ date: 2016-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails