[BioRuby-cvs] bioruby/lib/bio/shell core.rb,1.14,1.15

Katayama Toshiaki k at pub.open-bio.org
Wed Dec 7 00:12:09 EST 2005


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

Modified Files:
	core.rb 
Log Message:
* lib/bioruby.rb is added for easy bioruby script startup after the discussion
  with Tanka-san (.bioruby/script.rb will use this)
* access.rb plugin is moved under the plugin directory as a entry.rb
* Core is changed to Ghost :)


Index: core.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/core.rb,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** core.rb	28 Nov 2005 07:03:28 -0000	1.14
--- core.rb	7 Dec 2005 05:12:07 -0000	1.15
***************
*** 1,4 ****
  #
! # = bio/shell/core.rb - internal methods for BioRuby shell
  #
  # Copyright::	Copyright (C) 2005
--- 1,4 ----
  #
! # = bio/shell/core.rb - internal methods for the BioRuby shell
  #
  # Copyright::	Copyright (C) 2005
***************
*** 27,31 ****
  #
  
! module Bio::Shell::Core
  
    CONFIG  = "config"
--- 27,31 ----
  #
  
! module Bio::Shell::Ghost
  
    CONFIG  = "config"
***************
*** 56,59 ****
--- 56,63 ----
    }
  
+   def esc_seq
+     ESC_SEQ
+   end
+ 
    ### save/restore the environment
  
***************
*** 263,267 ****
  
    def config_message(str = nil)
!     str ||= Bio::Shell::Core::MESSAGE
      @config[:message] = str
    end
--- 267,271 ----
  
    def config_message(str = nil)
!     str ||= MESSAGE
      @config[:message] = str
    end
***************
*** 437,444 ****
          File.open(file, "w") do |f|
          f.print "#!/usr/bin/env ruby\n\n"
!         f.print "require 'bio/shell'\n\n"
!         f.print "include Bio::Shell\n\n"
!         f.print "Bio::Shell.setup\n\n"
!         f.puts Readline::HISTORY.to_a[@script_begin.. at script_end]
        end
        puts "done"
--- 441,447 ----
          File.open(file, "w") do |f|
          f.print "#!/usr/bin/env ruby\n\n"
!         f.print "require 'bioruby'\n\n"
!         f.print Readline::HISTORY.to_a[@script_begin.. at script_end]
!         f.print "\n\n"
        end
        puts "done"



More information about the bioruby-cvs mailing list