rbbt-util 5.5.62 → 5.5.63
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 +8 -8
- data/lib/rbbt/association/item.rb +2 -2
- data/lib/rbbt/persist/tsv.rb +5 -0
- data/lib/rbbt/util/log.rb +11 -4
- data/lib/rbbt/util/misc.rb +1 -1
- data/lib/rbbt/workflow/step.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
Mjc5OGIwNmIzM2ExNDQyMDQwMmVhZTUwZDI5ZTUwZGU5Zjg3ZjMwZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ODcwOTgwYjlkOGMyZTQxMTkxZDc2ZTg3ZmJhOGNjMDMxYzJkN2MzMg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OTM5ZjhlMjgxM2I0MzhkYjBjZGI2NDc1OTRmZmJhYjcyZmUwOGM1MjcyMjM2
|
|
10
|
+
YTZiNWRjMzllN2NlMzMyMWIwNjA4NTQ0Y2FlMGU5MjY1ZGQ1NzEyNmNjYWMy
|
|
11
|
+
MmJhOTY5MzkwMzE1ZTY1YjZkYzEzMWFlOGM2ODlkOWYzMWM0YWM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MmM3NmFiNjY5YmNlZjlhNTY5ZDE3MTRkODU4NzM5MTkyYzZmMjlhYTg0Njc5
|
|
14
|
+
ODFhZjI4MWIxYzMxOGZkNjE2MjkwZjM4N2VjOTQyNDQ3ZTZhMzMwZWQwN2Q1
|
|
15
|
+
ZjNlMDgzMDA2ZThmNjc1YTExZjNiNzRkMjE0NWQwMjIwYmE5M2U=
|
|
@@ -21,12 +21,12 @@ module AssociationItem
|
|
|
21
21
|
|
|
22
22
|
property :target_entity => :array2single do
|
|
23
23
|
type = reverse ? knowledge_base.source(database) : knowledge_base.target(database)
|
|
24
|
-
knowledge_base.annotate self.target, type, database if self.target.any?
|
|
24
|
+
knowledge_base.annotate self.target, type, database #if self.target.any?
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
property :source_entity => :array2single do
|
|
28
28
|
type = reverse ? knowledge_base.target(database) : knowledge_base.source(database)
|
|
29
|
-
knowledge_base.annotate self.source, type if self.
|
|
29
|
+
knowledge_base.annotate self.source, type #if self.source.any?
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
property :value => :array2single do
|
data/lib/rbbt/persist/tsv.rb
CHANGED
data/lib/rbbt/util/log.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Log
|
|
|
23
23
|
|
|
24
24
|
WHITE, DARK, GREEN, YELLOW, RED = Color::SOLARIZED.values_at :base0, :base00, :green, :yellow, :magenta
|
|
25
25
|
|
|
26
|
-
SEVERITY_COLOR = [reset,
|
|
26
|
+
SEVERITY_COLOR = [reset, cyan, green, magenta, blue, yellow, red] #.collect{|e| "\033[#{e}"}
|
|
27
27
|
|
|
28
28
|
HIGHLIGHT = "\033[1m"
|
|
29
29
|
|
|
@@ -36,13 +36,11 @@ module Log
|
|
|
36
36
|
message ||= block.call if block_given?
|
|
37
37
|
return if message.nil?
|
|
38
38
|
|
|
39
|
-
severity_color = SEVERITY_COLOR[severity]
|
|
40
39
|
time = Time.now.strftime("%m/%d/%y-%H:%M:%S")
|
|
41
40
|
|
|
42
41
|
sev_str = severity.to_s
|
|
43
|
-
sev_str = "" << HIGHLIGHT << sev_str << SEVERITY_COLOR[0] if severity >= INFO
|
|
44
42
|
|
|
45
|
-
prefix = time << "[" <<
|
|
43
|
+
prefix = time << "[" << SEVERITY_COLOR[severity] << sev_str << SEVERITY_COLOR[0] << "]"
|
|
46
44
|
message = "" << HIGHLIGHT << message << SEVERITY_COLOR[0] if severity >= INFO
|
|
47
45
|
str = prefix << " " << message
|
|
48
46
|
|
|
@@ -118,3 +116,12 @@ def fff(object)
|
|
|
118
116
|
Log.debug{require 'rbbt/util/misc'; "=> " << Misc.fingerprint(object) }
|
|
119
117
|
Log.debug{""}
|
|
120
118
|
end
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
if __FILE__ == $0
|
|
122
|
+
Log.severity = 0
|
|
123
|
+
|
|
124
|
+
(0..6).each do |level|
|
|
125
|
+
Log.log("Level #{level}", level)
|
|
126
|
+
end
|
|
127
|
+
end
|
data/lib/rbbt/util/misc.rb
CHANGED
|
@@ -256,7 +256,7 @@ module Misc
|
|
|
256
256
|
"'" << obj << "'"
|
|
257
257
|
end
|
|
258
258
|
when AnnotatedArray
|
|
259
|
-
"<
|
|
259
|
+
"<A: #{fingerprint Annotated.purge(obj)} #{fingerprint obj.info}>"
|
|
260
260
|
when Array
|
|
261
261
|
if (length = obj.length) > 10
|
|
262
262
|
"[#{length} --" << (obj.values_at(0,1, length / 2, -2, -1).collect{|e| fingerprint(e)} * ",") << "]"
|
data/lib/rbbt/workflow/step.rb
CHANGED
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.5.
|
|
4
|
+
version: 5.5.63
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-12-
|
|
11
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|