origen_testers 0.5.3 → 0.5.4

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: 5002a6e4293e3bb9362f8c4a9266024d5ccb7cc9
4
- data.tar.gz: b5f28a2f3267dd9210d4eca6cd414e98a44be406
3
+ metadata.gz: d35bd38567c40187d2a40d73d3caf1b4d62bef07
4
+ data.tar.gz: 099d4e1d9d35bf1be12e61eae7076596078ccbce
5
5
  SHA512:
6
- metadata.gz: e35b56a18d5fae9293e45fd624934999dc36a5b207c22f57b45c9c82a6a2939f71a6a203cfdfc4a0b613e990dabcbd7f26489783f8b6b959b32d7f1eeb834bbd
7
- data.tar.gz: af1bd2846e6215977a45b3bb818c0b12c7e743cd21b8e6cf55506a154932ae90b69e3b47f5ef82b583b4f01a2df2096e9752aeda1ae3825e315b45f7f508c562
6
+ metadata.gz: acb2eaa27a1162b0be3d52bcb1da5ecdb48da88963e927dd4e8ab990e843a5d0b010b755cfabff5e677d0abc589adbeee719d267e122aa0366f7e38465d1905a
7
+ data.tar.gz: 637746af96a717e03eadb77942cd4bc7366096390502772de10925eb82ff3b91a0de0226e255fc0481651fba525db26e904d2a7a36f6077fcfba336cf0f6875e
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenTesters
2
2
  MAJOR = 0
3
3
  MINOR = 5
4
- BUGFIX = 3
4
+ BUGFIX = 4
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -55,12 +55,14 @@ module OrigenTesters
55
55
  # Add any methods
56
56
  if options[:methods][:methods]
57
57
  methods = options[:methods][:methods]
58
- @finalize = methods.delete(:finalize)
58
+ @finalize = methods[:finalize]
59
59
  methods.each do |method_name, function|
60
- var_name = "@#{method_name}".gsub(/=|\?/, '_')
61
- instance_variable_set(var_name, function)
62
- define_singleton_method method_name do |*args|
63
- instance_variable_get(var_name).call(self, *args)
60
+ unless method_name == :finalize
61
+ var_name = "@#{method_name}".gsub(/=|\?/, '_')
62
+ instance_variable_set(var_name, function)
63
+ define_singleton_method method_name do |*args|
64
+ instance_variable_get(var_name).call(self, *args)
65
+ end
64
66
  end
65
67
  end
66
68
  end
@@ -9,20 +9,19 @@ module OrigenTesters
9
9
  end
10
10
 
11
11
  def custom(name, options = {})
12
- if name == :test1
13
- if tester.try(:igxl_based?)
14
- ti = test_instances.mylib.test_a(:custom_test1)
15
- ti.my_arg0 = 'arg0_set'
16
- ti.my_arg2_alias = 'curr'
17
- ti.set_my_arg4('arg4_set_from_method')
12
+ name = "custom_#{name}".to_sym
13
+ if tester.try(:igxl_based?)
14
+ ti = test_instances.mylib.test_a(name)
15
+ ti.my_arg0 = 'arg0_set'
16
+ ti.my_arg2_alias = 'curr'
17
+ ti.set_my_arg4('arg4_set_from_method')
18
18
 
19
- elsif tester.v93k?
20
- ti = test_methods.my_tml.test_a
21
- ti.my_arg0 = 'arg0_set'
22
- ti.my_arg2_alias = 'CURR'
23
- ti.set_my_arg4('arg4_set_from_method')
19
+ elsif tester.v93k?
20
+ ti = test_methods.my_tml.test_a
21
+ ti.my_arg0 = 'arg0_set'
22
+ ti.my_arg2_alias = 'CURR'
23
+ ti.set_my_arg4('arg4_set_from_method')
24
24
 
25
- end
26
25
  end
27
26
  end
28
27
 
@@ -3,4 +3,8 @@ Flow.create interface: 'OrigenTesters::Test::CustomTestInterface' do
3
3
 
4
4
  custom :test1
5
5
 
6
+ custom :test2
7
+
8
+ custom :test3
9
+
6
10
  end
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.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen