test_ids 1.0.0 → 1.1.0

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
- SHA1:
3
- metadata.gz: 5ed0f63265007afb642078d96f8acd7362495c85
4
- data.tar.gz: 748add426abaf38bdc4c8e3577736d28d97d09b0
2
+ SHA256:
3
+ metadata.gz: f5dda875340a14998768dac93d34f66b019a8d0ad4f3eb6328bd1ad9b726e64b
4
+ data.tar.gz: e3e7aae1bb0b68c34a34cad431e5bbd9ca37f19d3697ea7feddac4c4b5c58a48
5
5
  SHA512:
6
- metadata.gz: 9e5823734dc64272dd90f73196100e21434b3c9a5d05519929d90a2262712d99108a9cbf9efc378813307e1a8450f50ef4efdfb237ca07486de7d12b30738eb0
7
- data.tar.gz: 73ffa02f9b035e7f94ba1ccd0eb91fef83cc115c8489884bac20221ff538137d84926d40d5c331eb01fb8684b399b3641468fa7f03147eab61c59939bbdf3344
6
+ metadata.gz: b2ea76aef9f4e37d79a769549dff0858bd6942b928c389c3c4940ae35028ca37b1d944bfcc2a2f42f020d88e4f6ab14f9e750b7dc5bd9fca8cc062e39e0762b3
7
+ data.tar.gz: eb109af83f298ae6c15849637bb5a4daded69073a93df47a71ff9468e72954eb0fada2c06faa751b31d78221c1a80ea0f5d3b39b5106c5b336e1f46839b87bbd
data/config/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module TestIds
2
2
  MAJOR = 1
3
- MINOR = 0
3
+ MINOR = 1
4
4
  BUGFIX = 0
5
5
  DEV = nil
6
6
 
@@ -9,7 +9,7 @@ module OrigenTesters
9
9
  def test(instance, options = {})
10
10
  if TestIds.configured?
11
11
  unless options[:test_ids] == :notrack
12
- options[:test_ids_flow_id] = id
12
+ options[:test_ids_flow_id] = try(:top_level).try(:id) || id
13
13
 
14
14
  TestIds.current_configuration.allocator.allocate(instance, options)
15
15
 
data/lib/test_ids.rb CHANGED
@@ -71,7 +71,8 @@ module TestIds
71
71
  # @api private
72
72
  def inject_flow_id(options)
73
73
  if Origen.interface_loaded?
74
- options[:test_ids_flow_id] = Origen.interface.flow.id
74
+ flow = Origen.interface.flow
75
+ options[:test_ids_flow_id] = flow.try(:top_level).try(:id) || flow.id
75
76
  end
76
77
  end
77
78
 
@@ -128,6 +129,11 @@ module TestIds
128
129
  @configuration_id = id
129
130
  end
130
131
 
132
+ # Return an Array of configuration IDs
133
+ def configs
134
+ @configuration.ids
135
+ end
136
+
131
137
  def bin_config=(id)
132
138
  @bin_config = id
133
139
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_ids
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2019-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: 1.8.11
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.6.14.1
104
+ rubygems_version: 2.7.6
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Origen plugin to assign and track test program bins and test numbers