rbbt-util 5.5.39 → 5.5.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rbbt/tsv/accessor.rb +2 -2
- data/lib/rbbt/util/named_array.rb +2 -2
- data/lib/rbbt/util/semaphore.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
|
+
ZmZmMjdiMDU1OTQzZTk5NjAwYzNlM2U3ZjlhZmFlMjMxMmZmMjI1Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmFhODUzYWM2MTM2N2QxNmU3ZTAzODM4YzkwNTgzNTk0M2NkZmQ3OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWU3YTFhMTljNDQyYjMwMTdmOWQzMzQ1N2Q2ZGEyY2M1ZmFiOTI5MWYyNTBh
|
10
|
+
NmRlOGU5ODZiYjM1Mzg3YzQ1MGM3MmVlY2NkMTczNGZiMGY5ZGEzNDZhYjk2
|
11
|
+
MGRkNDJmZGYxODljY2Q1MjJkMjIyNDFiYTMxYTAwOTkwMGIxNTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjcxOTk4ZTBiNmJjNTdhNmYwY2I4NWUzYzdjN2I1MWUzMjJiMTVmMDZhMDkx
|
14
|
+
ZWEyYjE5NjI2Mzk4NDdlMzQzNGIwMDg1ZDNhOGYzODQzYmNkMTkxODRkMjE3
|
15
|
+
YTI3NTc1MmQzM2UxN2JlMGZlMDNkYWJhYzNlYzkwMzgzYTdiZTc=
|
data/lib/rbbt/tsv/accessor.rb
CHANGED
@@ -34,7 +34,7 @@ module TSV
|
|
34
34
|
return entity if entity.nil?
|
35
35
|
return entity unless defined? Entity
|
36
36
|
entity = entity if options.delete :dup_array
|
37
|
-
if (template = entity_templates[field])
|
37
|
+
if (template = entity_templates[field]) and template.respond_to?(:annotate)
|
38
38
|
entity = template.annotate(entity.frozen? ? entity.dup : entity)
|
39
39
|
entity.extend AnnotatedArray if Array === entity
|
40
40
|
entity
|
@@ -43,7 +43,7 @@ module TSV
|
|
43
43
|
entity
|
44
44
|
else
|
45
45
|
template = Misc.prepare_entity("TEMPLATE", field, options)
|
46
|
-
if
|
46
|
+
if template.respond_to?(:annotate)
|
47
47
|
entity_templates[field] = template
|
48
48
|
entity = template.annotate(entity.frozen? ? entity.dup : entity)
|
49
49
|
entity.extend AnnotatedArray if Array === entity
|
@@ -28,7 +28,7 @@ module NamedArray
|
|
28
28
|
return entity unless defined? Entity
|
29
29
|
template = entity_templates[field]
|
30
30
|
entity_templates ||= {}
|
31
|
-
if template
|
31
|
+
if template and template.respond_to?(:annotate)
|
32
32
|
entity = template.annotate(entity.frozen? ? entity.dup : entity)
|
33
33
|
entity.extend AnnotatedArray if Array === entity
|
34
34
|
entity
|
@@ -37,7 +37,7 @@ module NamedArray
|
|
37
37
|
entity
|
38
38
|
else
|
39
39
|
template = Misc.prepare_entity("ENTITY_TEMPLATE", field, options)
|
40
|
-
if
|
40
|
+
if template.respond_to?(:annotate)
|
41
41
|
entity_templates[field] = template
|
42
42
|
entity = template.annotate(entity.frozen? ? entity.dup : entity)
|
43
43
|
entity.extend AnnotatedArray if Array === entity
|
data/lib/rbbt/util/semaphore.rb
CHANGED
@@ -77,7 +77,7 @@ void post_semaphore(char* name){
|
|
77
77
|
pids.each do |pid| Process.waitpid pid end
|
78
78
|
rescue Exception
|
79
79
|
Log.error "Killing children: #{pids.sort * ", " }"
|
80
|
-
pids.each do |pid| begin Process.kill
|
80
|
+
pids.each do |pid| begin Process.kill("INT", pid); RbbtSemaphore.post_semaphore(file); rescue; end; end
|
81
81
|
Log.error "Ensuring children are dead: #{pids.sort * ", " }"
|
82
82
|
pids.each do |pid| begin Process.waitpid pid; rescue; end; end
|
83
83
|
end
|
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.40
|
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-11-
|
11
|
+
date: 2013-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|