-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rails-spec.el: base support for rspec. Function
`rails-spec:run-all', `rails-spec:run-this-file', `rails-spec:run-last', `rails-spec:run-files'. Variables: `rails-spec:all-files', `rails-spec:last-files', `rails-spec:runner', `rails-spec:runner-options'. * rails-find.el, rails-ui.el: finds for rspec * rails-project.el: new functions: rails-project:in-root-with-cd, rails-project:compile-in-root * rails-lib.el: new macro in-directory M trunk/rails-lib.el M trunk/rails-project.el M trunk/rails-ui.el M trunk/rails-find.el M trunk/ChangeLog A trunk/rails-spec.el M trunk/rails.el git-svn-id: svn+ssh://rubyforge.org/var/svn/emacs-rails/trunk@213 cc5033d0-740f-0410-afc7-949910e492f2
- Loading branch information
crazypit
committed
Aug 24, 2007
1 parent
cc95737
commit 8523372
Showing
7 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
2007-08-18 Peter Rezikov <[email protected]> | ||
* rails-spec.el: base support for rspec. Function | ||
`rails-spec:run-all', `rails-spec:run-this-file', `rails-spec:run-last', | ||
`rails-spec:run-files'. Variables: `rails-spec:all-files', | ||
`rails-spec:last-files', `rails-spec:runner', | ||
`rails-spec:runner-options'. | ||
* rails-find.el, rails-ui.el: finds for rspec | ||
* rails-project.el: new functions: rails-project:in-root-with-cd, | ||
rails-project:compile-in-root | ||
* rails-lib.el: new macro in-directory | ||
|
||
2007-08-18 Dmitry Galinsky <[email protected]> | ||
|
||
* rails-scripts.el (rails-script:run-interactive): setup a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
;;; rails-rake.el --- emacs-rails integraions with rake tasks. | ||
|
||
;; Copyright (C) 2006 Dmitry Galinsky <dima dot exe at gmail dot com> | ||
|
||
;; Authors: Dmitry Galinsky <dima dot exe at gmail dot com>, | ||
;; Peter Rezikov <crazypit13 at gmail dot com> | ||
;; Keywords: ruby rails languages oop | ||
;; $URL: svn+ssh://rubyforge/var/svn/emacs-rails/trunk/rails-spec.el $ | ||
;; $Id: rails-spec.el 117 2007-03-25 23:37:37Z dimaexe $ | ||
|
||
;;; License | ||
|
||
;; This program is free software; you can redistribute it and/or | ||
;; modify it under the terms of the GNU General Public License | ||
;; as published by the Free Software Foundation; either version 2 | ||
;; of the License, or (at your option) any later version. | ||
|
||
;; This program is distributed in the hope that it will be useful, | ||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
;; GNU General Public License for more details. | ||
|
||
;; You should have received a copy of the GNU General Public License | ||
;; along with this program; if not, write to the Free Software | ||
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
|
||
(defvar rails-spec:all-files "./spec" | ||
"All spec files/directories in project") | ||
|
||
(defvar rails-spec:last-files rails-spec:all-files | ||
"Last files that run with spec. In this variable memorized each spec coommand.") | ||
|
||
(defvar rails-spec:runner "./script/spec" | ||
"Command, that run specs.") | ||
|
||
(defvar rails-spec:runner-options "" | ||
"Options to spec command.") | ||
|
||
(defun rails-spec:run-files (files) | ||
"Run spec for files" | ||
(interactive "Mspec files: ") | ||
(setf rails-spec:last-files files) | ||
(let ((default-process-coding-system '(utf-8 . utf-8))) | ||
(rails-project:compile-in-root | ||
(concat rails-spec:runner " " | ||
rails-spec:runner-options " " | ||
files)))) | ||
|
||
(defun rails-spec:run-this-file () | ||
"Run spec for current file" | ||
(interactive) | ||
(rails-spec:run-files (buffer-file-name (current-buffer)))) | ||
|
||
(defun rails-spec:run-all () | ||
"Run spec for all files in project (rails-spec:all-files variable)" | ||
(interactive) | ||
(rails-spec:run-files rails-spec:all-files)) | ||
|
||
(defun rails-spec:run-last () | ||
"Run last runned spec command" | ||
(interactive) | ||
(rails-spec:run-files rails-spec:last-files)) | ||
|
||
(provide 'rails-spec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters