testdata 0.2.3 → 0.2.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.
Files changed (2) hide show
  1. data/lib/testdata.rb +6 -3
  2. metadata +1 -1
data/lib/testdata.rb CHANGED
@@ -38,12 +38,15 @@ class Path
38
38
  node = XPath.first(@doc.root, "records/test[summary/description='#{description}']")
39
39
  path_no = node.text('summary/path')
40
40
  raise "Path error: node not found" unless node
41
+
42
+ result = nil
43
+
41
44
  begin
42
- @success << [yield(*%w(input output).map {|x| Select.new(x,node)}), path_no]
45
+ result = yield(*%w(input output).map {|x| Select.new(x,node)})
43
46
  rescue
44
- @success << [false, path_no]
47
+ result = false
45
48
  ensure
46
- @success << [nil, path_no]
49
+ @success << [result, path_no]
47
50
  end
48
51
  end
49
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors: []
7
7