rbbt-util 5.17.52 → 5.17.53
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/rest/client/step.rb +1 -1
- data/lib/rbbt/util/misc/omics.rb +0 -3
- data/lib/rbbt/util/misc/pipes.rb +3 -1
- data/lib/rbbt/util/tmpfile.rb +5 -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: 9998932f7037c551f4aef97c75fa09296f0e4cba
|
|
4
|
+
data.tar.gz: c52cab12dc83feea2d889ecffbc2e07472e02b61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7030c7870cc8ea1ca80d76509c4526ae5435321dcd22561a661c6b57fb190d641a010b9b222e1295504807c7fd226fb4642e8c00e9ac2b02c33aa678b9a0141
|
|
7
|
+
data.tar.gz: 02546e560b57a8bce92689137e58b4dfe8165e5095cf9382a98f6c588b19970b2b2a75dace012ba2067fb38312b9cdd83d4fea17769f85d7bae6265bf9f8592b
|
data/lib/rbbt/util/misc/omics.rb
CHANGED
data/lib/rbbt/util/misc/pipes.rb
CHANGED
|
@@ -174,6 +174,8 @@ module Misc
|
|
|
174
174
|
else
|
|
175
175
|
Log.medium "Consuming stream #{Misc.fingerprint io}"
|
|
176
176
|
begin
|
|
177
|
+
into = into.find if Path === into
|
|
178
|
+
into = Open.open(into, :mode => 'w') if String === into
|
|
177
179
|
into.sync == true if IO === into
|
|
178
180
|
while not io.closed? and block = io.read(2048)
|
|
179
181
|
into << block if into
|
|
@@ -295,7 +297,7 @@ module Misc
|
|
|
295
297
|
end
|
|
296
298
|
end
|
|
297
299
|
|
|
298
|
-
def self.sort_stream(stream, header_hash = "#", cmd_args = "
|
|
300
|
+
def self.sort_stream(stream, header_hash = "#", cmd_args = "-u")
|
|
299
301
|
Misc.open_pipe do |sin|
|
|
300
302
|
begin
|
|
301
303
|
if defined? Step and Step === stream
|
data/lib/rbbt/util/tmpfile.rb
CHANGED
|
@@ -34,7 +34,11 @@ module TmpFile
|
|
|
34
34
|
tmpfile += ".#{options[:extension]}"
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
if IO === content
|
|
38
|
+
Misc.consume_stream(content, false, tmpfile)
|
|
39
|
+
else
|
|
40
|
+
File.open(tmpfile, 'w') do |f| f.write content end if content != nil
|
|
41
|
+
end
|
|
38
42
|
|
|
39
43
|
result = yield(tmpfile)
|
|
40
44
|
|
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.17.
|
|
4
|
+
version: 5.17.53
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|