[BioRuby-cvs] bioruby/lib/bio/db/embl sptr.rb,1.36,1.37

Naohisa Goto ngoto at dev.open-bio.org
Fri Apr 18 11:40:38 EDT 2008


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

Modified Files:
	sptr.rb 
Log Message:
bug fix: Bio::SPTR#references raises NoMethodError since 
lib/bio/db/embl/sptr.rb version 1.34.


Index: sptr.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/embl/sptr.rb,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** sptr.rb	5 Apr 2007 23:35:40 -0000	1.36
--- sptr.rb	18 Apr 2008 15:40:36 -0000	1.37
***************
*** 507,514 ****
              end
            when 'RX'  # PUBMED, MEDLINE
!             value.split('.').each {|item|
!               tag, xref = item.split(/; /).map {|i| i.strip }
                hash[ tag.downcase ]  = xref
!             }
            end
          }
--- 507,513 ----
              end
            when 'RX'  # PUBMED, MEDLINE
!             value.each do |tag, xref|
                hash[ tag.downcase ]  = xref
!             end
            end
          }



More information about the bioruby-cvs mailing list