testdata 0.1.2 → 0.1.3

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 +7 -1
  2. metadata +1 -1
data/lib/testdata.rb CHANGED
@@ -52,7 +52,13 @@ class Testdata
52
52
  @success = []
53
53
  end
54
54
 
55
- def paths() @success << yield(path = Path.new(@doc)) end
55
+ def paths()
56
+ begin
57
+ @success << yield(path = Path.new(@doc))
58
+ rescue
59
+ nil
60
+ end
61
+ end
56
62
  def read_file(s) File.open(s, 'r').read end
57
63
  def read_url(xml_url) open(xml_url, 'UserAgent' => 'S-Rscript').read end
58
64
 
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors: []
7
7