[BioRuby-cvs] bioruby/lib/bio/db/genbank format_genbank.rb, 1.1.2.1, 1.1.2.2

Naohisa Goto ngoto at dev.open-bio.org
Wed May 7 06:17:55 UTC 2008


Update of /home/repository/bioruby/bioruby/lib/bio/db/genbank
In directory dev.open-bio.org:/tmp/cvs-serv773/lib/bio/db/genbank

Modified Files:
      Tag: BRANCH-biohackathon2008
	format_genbank.rb 
Log Message:
Bug fix: string in given object may be broken


Index: format_genbank.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/genbank/Attic/format_genbank.rb,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** format_genbank.rb	4 Mar 2008 11:19:16 -0000	1.1.2.1
--- format_genbank.rb	7 May 2008 06:17:52 -0000	1.1.2.2
***************
*** 64,72 ****
          pos = " (bases #{pos})"
        end
!       journal = ref.journal.to_s
!       volissue = ref.volume.to_s
        volissue += " (#{ref.issue})" unless ref.issue.to_s.empty? 
!       journal += " #{volissue}," unless volissue.empty? 
!       journal += " #{ref.pages}" unless ref.pages.to_s.empty?
        journal += " (#{ref.year})" unless ref.year.to_s.empty?
  
--- 64,72 ----
          pos = " (bases #{pos})"
        end
!       volissue = "#{ref.volume.to_s}"
        volissue += " (#{ref.issue})" unless ref.issue.to_s.empty? 
!       journal = "#{ref.journal.to_s}"
!       journal += " #{volissue}" unless volissue.empty? 
!       journal += ", #{ref.pages}" unless ref.pages.to_s.empty?
        journal += " (#{ref.year})" unless ref.year.to_s.empty?
  




More information about the bioruby-cvs mailing list