[BioRuby-cvs] bioruby/lib/bio/shell core.rb,1.8,1.9

Katayama Toshiaki k at pub.open-bio.org
Thu Nov 24 11:57:46 EST 2005


Update of /home/repository/bioruby/bioruby/lib/bio/shell
In directory pub.open-bio.org:/tmp/cvs-serv21332/lib/bio/shell

Modified Files:
	core.rb 
Log Message:
* fixed to check whether the object can be dumped by Marshal


Index: core.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/core.rb,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** core.rb	24 Nov 2005 16:19:38 -0000	1.8
--- core.rb	24 Nov 2005 16:57:43 -0000	1.9
***************
*** 312,316 ****
              value = eval(elem, bind)
              if value
!               hash[elem] = value
              end
            end
--- 312,321 ----
              value = eval(elem, bind)
              if value
!               begin
!                 Marshal.dump(value)
!                 hash[elem] = value
!               rescue
!                 # value could not be dumped.
!               end
              end
            end



More information about the bioruby-cvs mailing list