rbbt-util 5.21.99 → 5.21.100
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 +4 -4
- data/lib/rbbt/resource/path.rb +7 -5
- data/lib/rbbt/tsv/parallel/traverse.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88e29c1345bcc7c571585987bea350f115a4b1e2
|
|
4
|
+
data.tar.gz: e52d2d3e8c9e2369b43a418ec27a7b1d9d506881
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8db2cbd99356b81a82baa0940bdce32325f86b0ed4f5b29e5db1ac1c5f726c4e7932bba0147b78712bf829da2c55fbea61c4c7fdf1806ebbbfec93b30fe72f93
|
|
7
|
+
data.tar.gz: 2e3b5796e6b93824392578e8e2ec9c30e9c561ee962086453c86dd3c390a30a284d0ac2680a0d652701ad7258252a522d72dfb96db465d471da1c9d858f2fbb4
|
data/lib/rbbt/resource/path.rb
CHANGED
|
@@ -3,9 +3,9 @@ require 'rbbt/util/misc/indiferent_hash'
|
|
|
3
3
|
require 'yaml'
|
|
4
4
|
|
|
5
5
|
module Path
|
|
6
|
-
attr_accessor :resource, :pkgdir, :original, :search_paths, :search_order
|
|
6
|
+
attr_accessor :resource, :pkgdir, :original, :search_paths, :search_order, :libdir
|
|
7
7
|
|
|
8
|
-
def self.setup(string, pkgdir = nil, resource = nil, search_paths = nil, search_order = nil)
|
|
8
|
+
def self.setup(string, pkgdir = nil, resource = nil, search_paths = nil, search_order = nil, libdir = nil)
|
|
9
9
|
return string if string.nil?
|
|
10
10
|
string = string.dup if string.frozen?
|
|
11
11
|
string.extend Path
|
|
@@ -13,6 +13,7 @@ module Path
|
|
|
13
13
|
string.resource = resource
|
|
14
14
|
string.search_paths = search_paths
|
|
15
15
|
string.search_order = search_order
|
|
16
|
+
string.libdir = libdir
|
|
16
17
|
string
|
|
17
18
|
end
|
|
18
19
|
|
|
@@ -44,7 +45,7 @@ module Path
|
|
|
44
45
|
|
|
45
46
|
def annotate(name)
|
|
46
47
|
name = name.to_s
|
|
47
|
-
name = Path.setup name, @pkgdir, @resource, @search_paths, @search_order
|
|
48
|
+
name = Path.setup name, @pkgdir, @resource, @search_paths, @search_order, @libdir
|
|
48
49
|
name
|
|
49
50
|
end
|
|
50
51
|
|
|
@@ -182,11 +183,12 @@ module Path
|
|
|
182
183
|
where = where.to_sym
|
|
183
184
|
raise "Did not recognize the 'where' tag: #{where}. Options: #{paths.keys}" unless paths.include? where
|
|
184
185
|
|
|
185
|
-
if where == :lib
|
|
186
|
-
libdir = Path.caller_lib_dir(caller_lib) || "NOLIBDIR"
|
|
186
|
+
if where == :lib
|
|
187
|
+
libdir = @libdir || Path.caller_lib_dir(caller_lib) || "NOLIBDIR"
|
|
187
188
|
else
|
|
188
189
|
libdir = "NOLIBDIR"
|
|
189
190
|
end
|
|
191
|
+
|
|
190
192
|
pwd = FileUtils.pwd
|
|
191
193
|
path = paths[where]
|
|
192
194
|
path = File.join(path, "{PATH}") unless path.include? "PATH}" or path.include? "{BASENAME}"
|
|
@@ -254,7 +254,7 @@ module TSV
|
|
|
254
254
|
end
|
|
255
255
|
when IO, File, Zlib::GzipReader, Bgzf, StringIO
|
|
256
256
|
begin
|
|
257
|
-
if options[:type] == :array
|
|
257
|
+
if options[:type] == :array or options[:type] == :line
|
|
258
258
|
traverse_io_array(obj, options, &block)
|
|
259
259
|
else
|
|
260
260
|
traverse_io(obj, options, &block)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbbt-util
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.21.
|
|
4
|
+
version: 5.21.100
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-10-
|
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|