rbbt-util 5.5.39 → 5.5.40

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2VmNmQwZDc4Yjk1OTNkYWYzNjlkNjEyMzQ3MTc5MTNjOWQyMGU5OQ==
4
+ ZmZmMjdiMDU1OTQzZTk5NjAwYzNlM2U3ZjlhZmFlMjMxMmZmMjI1Mw==
5
5
  data.tar.gz: !binary |-
6
- YmJhNTBhZGQzOTg5NGQzM2RmYjBiNGEzZThiNzhjYThmZmM4MmFiOQ==
6
+ YmFhODUzYWM2MTM2N2QxNmU3ZTAzODM4YzkwNTgzNTk0M2NkZmQ3OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWYzZDIwNGVjNjQ3OWExOGQwNjczNGY0ODhiNDMzMDg4NWNiNGY3MjIxY2Jh
10
- NmFjMzNiMzBiZjYzODlhNzE5ODA0Y2VjNTNlOTUwZmI5Zjc5MTc1MWNhN2E3
11
- NTYxYmRmZmZiNmEzNzU2ZGQ3ZmFhMjI2ODIyMTA4YzhjMGFkYmM=
9
+ NWU3YTFhMTljNDQyYjMwMTdmOWQzMzQ1N2Q2ZGEyY2M1ZmFiOTI5MWYyNTBh
10
+ NmRlOGU5ODZiYjM1Mzg3YzQ1MGM3MmVlY2NkMTczNGZiMGY5ZGEzNDZhYjk2
11
+ MGRkNDJmZGYxODljY2Q1MjJkMjIyNDFiYTMxYTAwOTkwMGIxNTA=
12
12
  data.tar.gz: !binary |-
13
- ZWU4N2NiMWYxYTY2OWFiZGUzYmM2Y2YxZDI2N2RkMzZmZGI1YWQzYTFiZWNk
14
- YzJhYjU1YjUxOWZiZWUxNzY2YTU5NTFjOTRlNDY0NTA1YjQzZTY3MjA1NmQ1
15
- NWQxZTMxYjE3YmY5NjUwZGQwNjEyZWZiZTBmMzhmZTY2MGQ1YmE=
13
+ ZjcxOTk4ZTBiNmJjNTdhNmYwY2I4NWUzYzdjN2I1MWUzMjJiMTVmMDZhMDkx
14
+ ZWEyYjE5NjI2Mzk4NDdlMzQzNGIwMDg1ZDNhOGYzODQzYmNkMTkxODRkMjE3
15
+ YTI3NTc1MmQzM2UxN2JlMGZlMDNkYWJhYzNlYzkwMzgzYTdiZTc=
@@ -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 Annotated === template
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 Annotated === template
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
@@ -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 "INT", pid; rescue; end; RbbtSemaphore.post_semaphore(file) end
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.39
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-16 00:00:00.000000000 Z
11
+ date: 2013-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake