rbbt-util 5.5.41 → 5.5.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/share/rbbt_commands/tsv/get +28 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzY2OTdkYzE1ZjZjYTZhYTc3YzZmNDJhNWQ3OTA3NWM0ZTIzOWIwNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDYyMGY1YTBmZjQ2ZDQ0MDc4ZWNiMzQ3Y2U3ZDk1ZDE5YTNlYmJkYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjJjMWQ3NzZmZjg5M2JmMzUzM2MyNjI4NjRjNDgzOWExNDNkYzU3OWYwYzBk
|
10
|
+
ZWIwNmJjNjVlOTRlODY3MjM5ZDE3NTExODM4NmI5ZGYwNDNhMzkxODZkYzMy
|
11
|
+
YWEyNzU0YjRkY2Y5MWQ3MWY0ZWI2ZmUwZGFkN2Q4ZTZlNmMwZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTgxOWY3YjRkNjNiODcyODhjMGNjMWI3OTg2OWRiYTk4ZjU1NDcxNjYxMDVh
|
14
|
+
NThlYWE5ZjM4NjU0MWJjMGYyZjZjYjUzYzlhYjE1NTU2NWE2NzAzN2Q5Mjkx
|
15
|
+
NjU5ZjZkZjQzMjU3NmY1ZGY0MjJjZjAyN2FiN2E2ZDUzNmIzMDM=
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rbbt-util'
|
4
|
+
require 'rbbt/util/simpleopt'
|
5
|
+
|
6
|
+
options = SOPT.get("-tch--tokyocabinet:-tcb--tokyocabinet_bd")
|
7
|
+
|
8
|
+
file = ARGV.shift
|
9
|
+
value = ARGV.shift
|
10
|
+
|
11
|
+
case
|
12
|
+
when options[:tokyocabinet]
|
13
|
+
tsv = Persist.open_tokyocabinet(file, false)
|
14
|
+
when options[:tokyocabinet_bd]
|
15
|
+
tsv = Persist.open_tokyocabinet(file, false, nil, TokyoCabinet::BDB)
|
16
|
+
else
|
17
|
+
tsv = TSV.open(file, :grep => value )
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
res = tsv[value]
|
22
|
+
|
23
|
+
if res.nil?
|
24
|
+
raise "RECORD NOT FOUND"
|
25
|
+
else
|
26
|
+
puts tsv[value].report
|
27
|
+
end
|
28
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.5.
|
4
|
+
version: 5.5.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
@@ -188,6 +188,7 @@ files:
|
|
188
188
|
- share/rbbt_commands/study/task
|
189
189
|
- share/rbbt_commands/tsv/attach
|
190
190
|
- share/rbbt_commands/tsv/change_id
|
191
|
+
- share/rbbt_commands/tsv/get
|
191
192
|
- share/rbbt_commands/tsv/info
|
192
193
|
- share/rbbt_commands/workflow/cmd
|
193
194
|
- share/rbbt_commands/workflow/install
|