[BioRuby-cvs] bioruby/lib/bio/shell core.rb,1.2,1.3

Katayama Toshiaki k at pub.open-bio.org
Sat Sep 24 08:33:10 EDT 2005


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

Modified Files:
	core.rb 
Log Message:
* load/save history is suppressed when readline isn't available
* $bioruby_cache variable is introduced for non persistent configuration


Index: core.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/core.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** core.rb	24 Sep 2005 03:25:49 -0000	1.2
--- core.rb	24 Sep 2005 12:33:07 -0000	1.3
***************
*** 286,290 ****
  
    def load_history
!     load_history_file(SAVEDIR + HISTORY)
    end
  
--- 286,290 ----
  
    def load_history
!     load_history_file(SAVEDIR + HISTORY) unless $bioruby_cache[:no_readline]
    end
  
***************
*** 301,305 ****
    def save_history
      create_save_dir
!     save_history_file(SAVEDIR + HISTORY)
    end
  
--- 301,305 ----
    def save_history
      create_save_dir
!     save_history_file(SAVEDIR + HISTORY) unless $bioruby_cache[:no_readline]
    end
  



More information about the bioruby-cvs mailing list