origen_testers 0.52.0 → 0.52.1

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
  SHA256:
3
- metadata.gz: 806f6c174a2b26a0ead003ab2a26ad6874ab43ceaeb1f72b90183f0c549f0b0f
4
- data.tar.gz: 997ca9d806de6b205cf98013f9260b5b44e2e0a82dda42b2aa98020a9a9c961c
3
+ metadata.gz: eb1671039082e3f1856ec1facd0861776bf7ed44b07be01103028a21e20962cc
4
+ data.tar.gz: a9855748f37e09b0f80d86c42c111c3577eec987e49336ad43b772fb267c8a36
5
5
  SHA512:
6
- metadata.gz: 79ade702c6acb3876aa888ca66570afea165a48a52c08fb0d19f41707f0f02a6c32151d694fd4d4a4cbff45dd1b53c73ca27c5e2e56bd733a48975452a4f8f66
7
- data.tar.gz: d84b6632197fb9305b4fb7032eecf5620a424fb292ab46c6b24376116f7701aff2dabeec31a11c5b18214285adbfab98fc38f739a720c62feb9494389c2ff2f3
6
+ metadata.gz: b647195f53446e14b390662d93ebe7207aba5f8a90af089cad0e5368f0ee9f8347db00c7440ea497509b6b565067ddebf8b4e0e4e3f47a3f4f1d50e6aa16784b
7
+ data.tar.gz: 2ec5f3ed1581bdaac66f115c8f0950e0e965d40c7b369da6b3b16d405c7cddfd337fa5f9b088c7bbb54ee3d51166b5904a43aca8c2a1055c12170bb7bd451c10
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenTesters
2
2
  MAJOR = 0
3
3
  MINOR = 52
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -88,13 +88,7 @@ module OrigenTesters
88
88
  unless name.is_a?(String)
89
89
  name = name.to_s[0] == '_' ? name.to_s.camelize(:upper) : name.to_s.camelize(:lower)
90
90
  end
91
- if [true, false].include? test_method.format(param[0])
92
- l << " #{name} = #{wrap_if_string(test_method.format(param[0]))};"
93
- elsif NO_STRING_TYPES.include?(param.last) && test_method.format(param[0]).is_a?(String) && !test_method.format(param[0]).empty?
94
- l << " #{name} = #{test_method.format(param[0])};"
95
- elsif test_method.format(param[0]).is_a?(String) && !test_method.format(param[0]).empty?
96
- l << " #{name} = #{wrap_if_string(test_method.format(param[0]))};"
97
- elsif param.last.is_a? Hash
91
+ if param.last.is_a? Hash
98
92
  if !test_method.format(name).nil? && !test_method.format(name).is_a?(Hash)
99
93
  fail "#{name} parameter structure requires a Hash but value provided is #{test_method.format(name).class}"
100
94
  elsif test_method.format(name).nil? && tester.print_all_params
@@ -106,6 +100,10 @@ module OrigenTesters
106
100
  l = add_nested_params(l, name, key, meta_hash, param.last, 1)
107
101
  end
108
102
  end
103
+ elsif NO_STRING_TYPES.include?(param.last) && test_method.format(param[0]).is_a?(String) && !test_method.format(param[0]).empty?
104
+ l << " #{name} = #{test_method.format(param[0])};"
105
+ else
106
+ l << " #{name} = #{wrap_if_string(test_method.format(param[0]))};"
109
107
  end
110
108
  end
111
109
  l << '}'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_testers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.52.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen