From 119bf654d660f3a10303d9591d273e300da3e64b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 29 Nov 2011 23:16:07 +0000 Subject: [PATCH] removed helper to execute ruby code, as ruby-compilation supplies functions for this --- helpers.el | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/helpers.el b/helpers.el index 9d03665..bb579ac 100644 --- a/helpers.el +++ b/helpers.el @@ -1,22 +1,3 @@ -;; -;; Execute Ruby Code -;; - -(defun is-rails-project () - (when (textmate-project-root) - (file-exists-p (expand-file-name "config/environment.rb" (textmate-project-root))))) - -(defun run-rails-test-or-ruby-buffer () - (interactive) - (if (is-rails-project) - (let* ((path (buffer-file-name)) - (filename (file-name-nondirectory path)) - (test-path (expand-file-name "test" (textmate-project-root))) - (command (list ruby-compilation-executable "-I" test-path path))) - (pop-to-buffer (ruby-compilation-do filename command))) - (ruby-compilation-this-buffer))) - - ;; ;; Auto-indent on Paste ;;