Permalink
Browse files

Move all source files to src dir, move all working files out of vim dir

Now all files which should be loaded by vim are placed in the root dir
of the repo, all 'development' files are placed into 'src' dir. This
way, it should be easier to handle the plugin by git submodules when
using it with pathogen.
  • Loading branch information...
1 parent a1b28ba commit 10792e8365a04cfd02b3c6e4b8cee03f4c452235 Anton Astashov committed Feb 5, 2011
Showing with 13 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +4 −0 {vim → }/autoload/ruby_debugger.vim
  3. 0 {vim → }/bin/ruby_debugger.rb
  4. 0 {vim → }/doc/ruby_debugger.txt
  5. 0 {vim → }/plugin/ruby_debugger.vim
  6. +4 −0 { → src}/additionals/autoload/ruby_debugger.vim
  7. BIN { → src}/additionals/bin/socket
  8. +3 −3 { → src}/collector.rb
  9. 0 { → src}/notifier
  10. 0 { → src}/ruby_debugger/after.vim
  11. 0 { → src}/ruby_debugger/before.vim
  12. 0 { → src}/ruby_debugger/breakpoint.vim
  13. 0 { → src}/ruby_debugger/commands.vim
  14. 0 { → src}/ruby_debugger/common.vim
  15. 0 { → src}/ruby_debugger/exception.vim
  16. 0 { → src}/ruby_debugger/frame.vim
  17. 0 { → src}/ruby_debugger/init.vim
  18. 0 { → src}/ruby_debugger/logger.vim
  19. 0 { → src}/ruby_debugger/public.vim
  20. 0 { → src}/ruby_debugger/queue.vim
  21. 0 { → src}/ruby_debugger/server.vim
  22. 0 { → src}/ruby_debugger/var.vim
  23. 0 { → src}/ruby_debugger/var_child.vim
  24. 0 { → src}/ruby_debugger/var_parent.vim
  25. 0 { → src}/ruby_debugger/window.vim
  26. 0 { → src}/ruby_debugger/window_breakpoints.vim
  27. 0 { → src}/ruby_debugger/window_frames.vim
  28. 0 { → src}/ruby_debugger/window_variables.vim
  29. 0 { → src}/ruby_debugger_autoload_plan.txt
  30. 0 { → src}/ruby_debugger_plugin_plan.txt
  31. 0 { → src}/ruby_test_plan.txt
  32. 0 { → src}/socket.c
  33. 0 { → src}/tests/breakpoint.vim
  34. 0 { → src}/tests/command.vim
  35. 0 { → src}/tests/exceptions.vim
  36. 0 { → src}/tests/frames.vim
  37. 0 { → src}/tests/framework.vim
  38. 0 { → src}/tests/mock.vim
  39. 0 { → src}/tests/server.vim
  40. 0 { → src}/tests/variables.vim
View
@@ -1,2 +1,4 @@
*.swp
*.un~
+tmp
+doc/tags
@@ -1608,6 +1608,10 @@ endfunction
" Log datetime and then message. It logs only if debug mode is enabled
+" TODO: Now to add one line to the log file, it read whole file to memory, add
+" one line and write all that stuff back to file. When log file is large, it
+" affects performance very much. Need to find way to write only to the end of
+" file (preferably - crossplatform way. Maybe Ruby?)
function! s:Logger.put(string)
if g:ruby_debugger_debug_mode
let file = readfile(self.file)
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1608,6 +1608,10 @@ endfunction
" Log datetime and then message. It logs only if debug mode is enabled
+" TODO: Now to add one line to the log file, it read whole file to memory, add
+" one line and write all that stuff back to file. When log file is large, it
+" affects performance very much. Need to find way to write only to the end of
+" file (preferably - crossplatform way. Maybe Ruby?)
function! s:Logger.put(string)
if g:ruby_debugger_debug_mode
let file = readfile(self.file)
File renamed without changes.
@@ -3,7 +3,7 @@ class Collector
def initialize(input, output)
@path = File.dirname(__FILE__)
@input_files = input.map{|i| @path + '/' + i}
- @output_file = @path + '/' + output
+ @output_file = File.expand_path(@path + '/' + output)
@file = ''
end
@@ -35,10 +35,10 @@ def save_file
end
-plugin = Collector.new(['ruby_debugger_plugin_plan.txt'], 'vim/plugin/ruby_debugger.vim')
+plugin = Collector.new(['ruby_debugger_plugin_plan.txt'], '../plugin/ruby_debugger.vim')
plugin.accumulate!
-auto_load = Collector.new(['ruby_debugger_autoload_plan.txt'], 'vim/autoload/ruby_debugger.vim')
+auto_load = Collector.new(['ruby_debugger_autoload_plan.txt'], '../autoload/ruby_debugger.vim')
auto_load.accumulate!
with_tests = Collector.new(['ruby_debugger_autoload_plan.txt', 'ruby_test_plan.txt'], 'additionals/autoload/ruby_debugger.vim')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 10792e8

Please sign in to comment.