[BioRuby-cvs] bioruby/lib/bio/db/embl format_embl.rb, 1.1.2.6, 1.1.2.7
Naohisa Goto
ngoto at dev.open-bio.org
Thu Jun 19 12:45:18 UTC 2008
Update of /home/repository/bioruby/bioruby/lib/bio/db/embl
In directory dev.open-bio.org:/tmp/cvs-serv596/lib/bio/db/embl
Modified Files:
Tag: BRANCH-biohackathon2008
format_embl.rb
Log Message:
avoid error when keywords or classification is nil
Index: format_embl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/embl/Attic/format_embl.rb,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -C2 -d -r1.1.2.6 -r1.1.2.7
*** format_embl.rb 17 Jun 2008 16:06:04 -0000 1.1.2.6
--- format_embl.rb 19 Jun 2008 12:45:15 -0000 1.1.2.7
***************
*** 166,173 ****
<%= embl_wrap('DE ', definition) %>
XX
! <%= embl_wrap('KW ', keywords.join('; ') + '.') %>
XX
OS <%= species %>
! <%= embl_wrap('OC ', classification.join('; ') + '.') %>
XX
<% hash = {}; (references || []).each do |ref| %><%= reference_format_embl(ref, hash) %>
--- 166,173 ----
<%= embl_wrap('DE ', definition) %>
XX
! <%= embl_wrap('KW ', (keywords || []).join('; ') + '.') %>
XX
OS <%= species %>
! <%= embl_wrap('OC ', (classification || []).join('; ') + '.') %>
XX
<% hash = {}; (references || []).each do |ref| %><%= reference_format_embl(ref, hash) %>
More information about the bioruby-cvs
mailing list