rbbt-util 5.16.2 → 5.16.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34f1d517fbcc392d6fb628b06c1803ccc741c5c7
4
- data.tar.gz: 37a629ea804ba0fe4dddfd113ea58b4334de99d8
3
+ metadata.gz: 944628eca69d1b9757794dd04d2e1fae618ec30f
4
+ data.tar.gz: 6c1cb13e51f8efa8e5360b428bf0af8059cd74db
5
5
  SHA512:
6
- metadata.gz: 468a5f0148cdbaee168e98d356e3d05989ff6a28b3ed146dec47ed53a470e36e5309170cf474ffff52ab91ce664585dfdec9bb07ea54349faf8c6bd677f12c4c
7
- data.tar.gz: 462e3776be3b24f57a61c3d24316d8f60858859c145590f2d3303494f3e5d28729c44e5cfee7dca49c775c537e82c2d371518226c4441c49a4c7a25740b0ad41
6
+ metadata.gz: baf4b9ae49ef200ae206de3aa6b4e2eed9093c653876dafd36f8f4fc06b71ffa89dbb6292a68c1075219193fed77ca539f841b8de3cf6ecd376c3e19c577eaa9
7
+ data.tar.gz: 8df2ad85ef430be6d054d524cfa5fcab8c3e48be04ad6e47659491c62da16f8a855cf955fb430dfe1e9599b338242a7499c5843b4b4ae5b44e09a7727b4abbea
@@ -71,7 +71,7 @@ module Entity
71
71
  end
72
72
 
73
73
  base.property :default => :both do
74
- to(:name)
74
+ to(:default)
75
75
  end
76
76
 
77
77
  base.property :ensembl => :both do
@@ -1,4 +1,3 @@
1
- require 'rbbt/entity'
2
1
  require 'rbbt/knowledge_base/registry'
3
2
 
4
3
  class KnowledgeBase
@@ -5,7 +5,7 @@ class KnowledgeBase
5
5
  file, kb_options = kb.registry[database]
6
6
  options = {}
7
7
  options[:entity_options] = kb_options[:entity_options]
8
- options[:undirected] = true if kb_options and kb_options[:undirected]
8
+ options[:undirected] = kb_options[:undirected] if kb_options
9
9
  if kb.entity_options
10
10
  options[:entity_options] = kb.entity_options.merge(options[:entity_options] || {})
11
11
  end
@@ -61,8 +61,7 @@ module TSV
61
61
  fields << parser.fields
62
62
  sizes << parser.fields.length if parser.fields
63
63
  input_options << parser.options
64
- preambles << parser.preamble if TrueClass === preamble and
65
- not parser.preamble.empty?
64
+ preambles << parser.preamble if preamble and not parser.preamble.empty?
66
65
 
67
66
  parser.stream
68
67
  end
@@ -76,7 +75,11 @@ module TSV
76
75
  when TrueClass
77
76
  preambles * "\n"
78
77
  when String
79
- preamble
78
+ if preamble[0] == '+'
79
+ preambles * "\n" + "\n" + preamble[1..-1]
80
+ else
81
+ preamble
82
+ end
80
83
  else
81
84
  nil
82
85
  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.16.2
4
+ version: 5.16.3
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-01-30 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake