[BioRuby-cvs] bioruby/lib/bio/db/embl sptr.rb,1.36,1.36.2.1
Naohisa Goto
ngoto at dev.open-bio.org
Thu Apr 24 13:49:44 UTC 2008
Update of /home/repository/bioruby/bioruby/lib/bio/db/embl
In directory dev.open-bio.org:/tmp/cvs-serv15545/lib/bio/db/embl
Modified Files:
Tag: BRANCH-biohackathon2008
sptr.rb
Log Message:
The same change (except comment) as of 1.36 => 1.37 in CVS HEAD is made
(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.36.2.1
diff -C2 -d -r1.36 -r1.36.2.1
*** sptr.rb 5 Apr 2007 23:35:40 -0000 1.36
--- sptr.rb 24 Apr 2008 13:49:42 -0000 1.36.2.1
***************
*** 506,514 ****
hash['journal'] = value
end
! when 'RX' # PUBMED, MEDLINE
! value.split('.').each {|item|
! tag, xref = item.split(/; /).map {|i| i.strip }
hash[ tag.downcase ] = xref
! }
end
}
--- 506,513 ----
hash['journal'] = value
end
! when 'RX' # PUBMED, MEDLINE, DOI
! value.each do |tag, xref|
hash[ tag.downcase ] = xref
! end
end
}
More information about the bioruby-cvs
mailing list