kafo 5.0.1 → 5.1.0

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
  SHA256:
3
- metadata.gz: 8444079aa3981305927cda7536f93d476b43bb6feaaaac2a3172a52010ff1575
4
- data.tar.gz: f2dd10a6c71c6ee003cc1ca205820e2b9037e182dd9b11c68ab62e13476a2034
3
+ metadata.gz: a5bb233f06b493ded5dfc032260f4069329eecf431cdfe6c6b93ea20ed7303af
4
+ data.tar.gz: f8af42dfbbf78ddb16971c776f1e658a7d0aa0306216f7b06ccd984f912c0a96
5
5
  SHA512:
6
- metadata.gz: 64ebbbc3909f6fc60c5b9a714bdbe98869602a1f5b320f9e9963cf78d26c1104868cec8fcaf68d928a7f7825981ce7558dbc41043b3c0967f6b775b2c28073de
7
- data.tar.gz: 8a86cd7cac3a0f17fdd0006119bb3f60f043e93410e33672dc712cbdc846d5049a5a8db5020f34abf1d2d5f2afa62c8f66901376a4f83aec8fbf472f88cc0b5e
6
+ metadata.gz: 26c1cde782d8ad9e78f63627223492471b66504efb82491f723ee1a8d9efbd427455fc2219b92eee190217158788b1c42091633dd1a162a6a9e5502c671d4007
7
+ data.tar.gz: e546068a983e2e6d45cd61e08945eb02903c366f9aebbc03d70bbf90df94af8b74d4d86e4034970c77d9b3bda145981bc9861e64323d84e0f9210c40477f90b9
@@ -104,6 +104,10 @@ module Kafo
104
104
  custom_fact_storage[key.to_s] = value
105
105
  end
106
106
 
107
+ def has_custom_fact?(key)
108
+ custom_fact_storage.key?(key.to_s)
109
+ end
110
+
107
111
  def modules
108
112
  @modules ||= begin
109
113
  register_data_types
@@ -105,7 +105,7 @@ module Kafo
105
105
  self.kafo.config.get_custom_fact(key)
106
106
  end
107
107
 
108
- # Store a any custom fact. This will show up as kafo.scenario.custom.your_fact.
108
+ # Store any custom fact. This will show up as kafo.scenario.custom.your_fact.
109
109
  # It is possible to use structures such as arrays and hashes besides the
110
110
  # obvious ones such as strings, integers, booleans.
111
111
  #
@@ -114,6 +114,11 @@ module Kafo
114
114
  self.kafo.config.set_custom_fact(key, value)
115
115
  end
116
116
 
117
+ # Check whether a custom fact exists, regardless of whether or not it has a value.
118
+ def has_custom_fact?(key)
119
+ self.kafo.config.has_custom_fact?(key)
120
+ end
121
+
117
122
  # Return the id of the current scenario
118
123
  def scenario_id
119
124
  self.kafo.config.scenario_id
@@ -19,7 +19,7 @@ module Kafo
19
19
  end
20
20
 
21
21
  @last_level = method
22
- return [method, message.chomp]
22
+ return [method, message.chomp.strip]
23
23
  end
24
24
  end
25
25
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
3
  PARSER_CACHE_VERSION = 1
4
- VERSION = "5.0.1"
4
+ VERSION = "5.1.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafo
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Hulan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2020-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler