rbbt-util 5.21.99 → 5.21.100

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
2
  SHA1:
3
- metadata.gz: 7dd511eb01b14817584552dad9178ede2319c65b
4
- data.tar.gz: 8931609250cca85686c0be1e35b3d9cdcba8aca6
3
+ metadata.gz: 88e29c1345bcc7c571585987bea350f115a4b1e2
4
+ data.tar.gz: e52d2d3e8c9e2369b43a418ec27a7b1d9d506881
5
5
  SHA512:
6
- metadata.gz: 298f9fffa765f4eb2c2cd92a85289c148ab8e49d81e4a509341fd9256222cd8d3ff42fd81217d040241dd2960f4ff743853cf5ec0ad8ae12094dbca7d11e0e2e
7
- data.tar.gz: 06ef1631872f80edce0c3dc759d650c83466666a70ec123242d0bcce6c7ea225417b5bcc8561ae285934ec8bfd570bb980ccccb1483128f7a16ce58444a5b9ab
6
+ metadata.gz: 8db2cbd99356b81a82baa0940bdce32325f86b0ed4f5b29e5db1ac1c5f726c4e7932bba0147b78712bf829da2c55fbea61c4c7fdf1806ebbbfec93b30fe72f93
7
+ data.tar.gz: 2e3b5796e6b93824392578e8e2ec9c30e9c561ee962086453c86dd3c390a30a284d0ac2680a0d652701ad7258252a522d72dfb96db465d471da1c9d858f2fbb4
@@ -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.99
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-20 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake