Permalink
Browse files

Add ert.el for Emacs-23.

  • Loading branch information...
rejeep committed Oct 10, 2013
1 parent 01ed403 commit 0bd59d9eefef0307278331a6abeb26207813f54d
Showing with 2,560 additions and 11 deletions.
  1. +1 −0 Cask
  2. +15 −11 features/support/env.el
  3. +2,544 −0 features/vendor/ert.el
View
1 Cask
@@ -4,4 +4,5 @@
(package-file "ruby-end.el")
(development
+ (depends-on "f")
(depends-on "ecukes"))
View
@@ -1,18 +1,22 @@
-(let* ((current-directory (file-name-directory load-file-name))
- (features-directory (expand-file-name ".." current-directory))
- (project-directory (expand-file-name ".." features-directory)))
- (setq ruby-end-root-path project-directory)
- (setq ruby-end-util-path (expand-file-name "util" project-directory)))
+(require 'f)
+
+(defvar ruby-end-features-path
+ (f-parent (f-dirname (f-this-file))))
+
+(defvar ruby-end-root-path
+ (f-parent ruby-end-features-path))
+
+(defvar ruby-end-vendor-path
+ (f-expand "vendor" ruby-end-features-path))
(add-to-list 'load-path ruby-end-root-path)
-(add-to-list 'load-path (expand-file-name "espuds" ruby-end-util-path))
-(add-to-list 'load-path (expand-file-name "emacs-lisp" (expand-file-name "lisp" (expand-file-name "ert" ruby-end-util-path))))
+
+(require 'ruby-end)
+(require 'espuds)
+(unless (require 'ert nil 'noerror)
+ (require 'ert (f-expand "ert" ruby-end-vendor-path)))
(Before
(setq ruby-end-insert-newline t)
(setq ruby-end-expand-on-ret t)
(setq ruby-end-expand-only-for-last-commands nil))
-
-(require 'ruby-end)
-(require 'espuds)
-(require 'ert)
Oops, something went wrong.

0 comments on commit 0bd59d9

Please sign in to comment.