[BioRuby-cvs] bioruby/lib/bio/io pubmed.rb,1.19,1.20
Katayama Toshiaki
k at dev.open-bio.org
Thu Nov 15 07:40:29 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv6790
Modified Files:
pubmed.rb
Log Message:
* get back to split multiple MEDLINE entries into array when not in XML mode
Index: pubmed.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/pubmed.rb,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** pubmed.rb 15 Nov 2007 07:23:39 -0000 1.19
--- pubmed.rb 15 Nov 2007 07:40:27 -0000 1.20
***************
*** 151,154 ****
--- 151,155 ----
response, = http.get(path + list)
result = response.body
+ result = result.split(/\n\n+/)
return result
end
***************
*** 170,173 ****
--- 171,178 ----
response, = Bio::Command.post_form(serv, opts)
result = response.body
+ if opts["retmode"] == "text"
+ result = result.split(/\n\n+/)
+ end
+
return result
end
More information about the bioruby-cvs
mailing list