Permalink
Browse files

Changes I did some months ago and don't remember

  • Loading branch information...
1 parent 97ef6af commit bf591b22df1aa59b5946ec3824838869db34adc3 @lucashungaro committed Jul 12, 2011
Showing with 3,825 additions and 8 deletions.
  1. +49 −5 custom.el
  2. +111 −0 elpa-to-submit/color-theme-molokai.el
  3. BIN elpa-to-submit/color-theme-molokai.elc
  4. BIN init.elc
  5. +3 −2 loaddefs.el
  6. +1 −1 places
  7. +2,691 −0 vendor/mode-compile.el
  8. BIN vendor/mode-compile.elc
  9. +466 −0 vendor/rspec-mode.el
  10. BIN vendor/rspec-mode.elc
  11. +7 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/aft
  12. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/annot
  13. +3 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/anr
  14. +3 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/anra
  15. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/anrb
  16. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/ant
  17. +3 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/any
  18. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/atl
  19. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/atm
  20. +7 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/bef
  21. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/befm
  22. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/bfe
  23. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/con
  24. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/conn
  25. +11 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/des
  26. +11 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desc
  27. +11 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desrc.delete
  28. +11 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desrc.get
  29. +11 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desrc.post
  30. +11 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desrc.put
  31. +11 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/dest
  32. +11 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/dests
  33. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/ex
  34. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/fm
  35. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/fmar
  36. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/it
  37. +28 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/mat
  38. +7 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/mocw.flexmock
  39. +7 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/mocw.mocha
  40. +7 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/mocw.rr
  41. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/on
  42. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/resh
  43. +10 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/sce
  44. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/set
  45. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/sh=
  46. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shb
  47. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbc
  48. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbio
  49. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbko
  50. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbr
  51. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbs
  52. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/she.eql
  53. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/she.equal
  54. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shh
  55. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shhal
  56. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shham
  57. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shhr
  58. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shm.match
  59. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shn=
  60. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnb
  61. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbc
  62. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbio
  63. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbko
  64. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbr
  65. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbs
  66. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shne.eql
  67. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shne.equal
  68. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnm.match
  69. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnp
  70. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnr
  71. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnre
  72. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnrt
  73. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shns
  74. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnt
  75. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shp
  76. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shr
  77. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shre
  78. +3 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shrt
  79. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shrt.redirect
  80. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shrt.render
  81. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shrt.respond
  82. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shs
  83. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/sht
  84. +10 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/sto
  85. +3 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/stub
  86. +5 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/tw
  87. +6 −0 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/wia
  88. BIN visual-bell.elc
View
54 custom.el
@@ -1,15 +1,41 @@
(server-start)
-(load-file "~/.emacs.d/elpa-to-submit/color-theme-almost-monokai.el")
-(color-theme-almost-monokai)
+(push "/usr/local/bin" exec-path)
+
+(setq running-osx (or (featurep 'mac-carbon) (eq 'ns window-system)))
+
+(if (and running-osx (not (member "/Users/lucashungaro/bin" exec-path)))
+ (let* ((path (shell-command-to-string "/bin/bash -lc 'echo -n $PATH'"))
+ (cdpath (shell-command-to-string "/bin/bash -lc 'echo -n $CDPATH'"))
+ (path-list (split-string path ":" t)))
+ (setenv "PATH" path)
+ (setenv "CDPATH" cdpath)
+ (dolist (p path-list) (add-to-list 'exec-path p t))))
+
+(setq make-backup-files nil)
+(setq auto-save-default nil)
+
+(delete-selection-mode t)
+(blink-cursor-mode t)
+(show-paren-mode t)
+
+(load-file "~/.emacs.d/elpa-to-submit/color-theme-molokai.el")
+(color-theme-molokai)
(load-file "~/.emacs.d/visual-bell.el")
+(global-linum-mode)
+
(add-to-list 'load-path "~/.emacs.d/vendor/yasnippet-0.6.1c")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/vendor/yasnippet-0.6.1c/snippets")
+(add-hook 'rspec-mode-hook
+ #'(lambda ()
+ (setq yas/mode-symbol 'rspec-mode)))
+
+
(add-to-list 'load-path "~/.emacs.d/vendor/textmate.el")
(add-to-list 'load-path "~/.emacs.d/vendor/")
(require 'peepopen)
@@ -25,8 +51,26 @@
(require 'rinari)
+;;mode-compile
+(autoload 'mode-compile "mode-compile"
+ "Command to compile current buffer file based on the major mode" t)
+(global-set-key "\C-cc" 'mode-compile)
+(autoload 'mode-compile-kill "mode-compile"
+ "Command to kill a compilation launched by `mode-compile'" t)
+(global-set-key "\C-ck" 'mode-compile-kill)
+
+(require 'rspec-mode)
+
+(defun set-exec-path-from-shell-PATH ()
+ (let ((path-from-shell
+ (replace-regexp-in-string "[[:space:]\n]*$" ""
+ (shell-command-to-string "$SHELL -l -c 'echo $PATH'"))))
+ (setenv "PATH" path-from-shell)
+ (setq exec-path (split-string path-from-shell path-separator))))
+(when (equal system-type 'darwin) (set-exec-path-from-shell-PATH))
+
(set-face-attribute 'default nil :height 140)
-(set-default-font "-apple-Monaco-medium-normal-normal-*-*-*-*-*-m-0-iso10646-1")
+(set-frame-font "-apple-Monaco-medium-normal-normal-*-*-*-*-*-m-0-iso10646-1")
(defun set-frame-size-according-to-resolution ()
(interactive)
@@ -35,8 +79,8 @@
;; use 120 char wide window for largeish displays
;; and smaller 80 column windows for smaller displays
;; pick whatever numbers make sense for you
- (if (> (x-display-pixel-width) 1280)
- (add-to-list 'default-frame-alist (cons 'width 160))
+ (if (> (x-display-pixel-width) 1400)
+ (add-to-list 'default-frame-alist (cons 'width 190))
(add-to-list 'default-frame-alist (cons 'width 80)))
;; for the height, subtract a couple hundred pixels
;; from the screen height (for panels, menubars and
View
111 elpa-to-submit/color-theme-molokai.el
@@ -0,0 +1,111 @@
+;; Author: Adam Lloyd <lloyda2@rpi.edu>
+;;
+;; Note: Based on the molokai theme for vim by Tomas Restrepo, which
+;; is in turn based on the monokai theme for textmate by Wimer
+;; Hazenberg and a darker variant by Hamish Stuart Macpherson.
+
+(eval-when-compile
+ (require 'color-theme))
+
+(defun color-theme-molokai ()
+ "Color theme based on the Molokai color scheme for vim."
+ (interactive)
+ (color-theme-install
+ '(color-theme-molokai
+ ((foreground-color . "#F8F8F2")
+ (background-color . "#1B1D1E")
+ (cursor-color . "#F8F8F0")
+ (background-mode . dark))
+ (default ((t (:foreground "#F8F8F2" :background "#1B1D1E"))))
+ (bold ((t (:weight bold))))
+ (bold-italic ((t (:weight bold :slant italic))))
+ (custom-face-tag ((t (:foreground "#66D9EF" :weight bold))))
+ (custom-state ((t (:foreground "#A6E22E"))))
+ (italic ((t (:slant italic))))
+ (region ((t (:background "#403D3D"))))
+ (underline ((t (:underline t))))
+ (css-selector ((t (:foreground "#F92672"))))
+ (css-property ((t (:foreground "#66D9EF"))))
+ (diff-added ((t (:foreground "#A6E22E" :weight bold))))
+ (diff-context ((t (:foreground "#F8F8F2"))))
+ (diff-file-header ((t (:foreground "#66D9EF" :background nil))))
+ (diff-indicator-added ((t (:foreground "#A6E22E"))))
+ (diff-indicator-removed ((t (:foreground "#F92672"))))
+ (diff-header ((t (:foreground "#F8F8F2" :background "#232526"))))
+ (diff-hunk-header ((t (:foreground "#AE81FF" :background "#232526"))))
+ (diff-removed ((t (:foreground "#F92672" :weight bold))))
+ (escape-glyph ((t (:foreground "#E6DB74"))))
+ (minibuffer-prompt ((t (:foreground "#66D9EF"))))
+ (mode-line ((t (:foreground "#F8F8F2" :background "#000000"
+ :box (:line-width 1 :color "#000000" :style released-button)))))
+ (mode-line-buffer-id ((t (:foreground nil :background "#000000" :weight semi-bold))))
+ (mode-line-inactive ((t (:foreground "#BCBCBC" :background "#000000"
+ :box (:line-width 1 :color "#232526")))))
+ (mode-line-mousable ((t (:foreground "#BCBCBC" :background "#000000"))))
+ (mode-line-mousable-minor-mode ((t (:foreground "#BCBCBC" :background "#000000"))))
+ (font-lock-builtin-face ((t (:foreground "#A6E22E"))))
+ (font-lock-comment-face ((t (:foreground "#465457" :slant italic))))
+ (font-lock-comment-delimiter-face ((t (:foreground "#465457" :slant italic))))
+ (font-lock-constant-face ((t (:foreground "#AE81FF"))))
+ (font-lock-doc-face ((t (:foreground "#E6DB74" :slant italic))))
+ (font-lock-function-name-face ((t (:foreground "#F92672" :slant italic))))
+ (font-lock-keyword-face ((t (:foreground "#66D9EF"))))
+ (font-lock-negation-char-face ((t (:weight bold))))
+ (font-lock-preprocessor-face ((t (:foreground "#A6E22E"))))
+ (font-lock-regexp-grouping-backslash ((t (:weight bold))))
+ (font-lock-regexp-grouping-construct ((t (:weight bold))))
+ (font-lock-string-face ((t (:foreground "#E6DB74"))))
+ (font-lock-type-face ((t (:foreground "#66D9EF"))))
+ (font-lock-variable-name-face ((t (:foreground "#F92672"))))
+ (font-lock-warning-face ((t (:foreground "#FFFFFF"
+ :background "#333333"))))
+ (fringe ((t (:background "#232526"))))
+ (highlight ((t (:foreground "#000000" :background "#C4BE89"))))
+ (hl-line ((t (:background "#293739"))))
+ (icompletep-choices ((t (:foreground "#F92672"))))
+ (icompletep-determined ((t (:foreground "#A6E22E"))))
+ (icompletep-keys ((t (:foreground "#F92672"))))
+ (icompletep-nb-candidates ((t (:foreground "#AE81FF"))))
+ (isearch ((t (:foreground "#C4BE89" :background "#000000"))))
+ (isearch-fail ((t (:foreground "#FFFFFF" :background "#333333"))))
+ (lazy-highlight ((t (:foreground "#465457" :background "#000000"))))
+ (markdown-italic-face ((t (:slant italic))))
+ (markdown-bold-face ((t (:weight bold))))
+ (markdown-header-face ((t (:weight normal))))
+ (markdown-header-face-1 ((t (:foreground "#66D9EF"))))
+ (markdown-header-face-2 ((t (:foreground "#F92672"))))
+ (markdown-header-face-3 ((t (:foreground "#A6E22E"))))
+ (markdown-header-face-4 ((t (:foreground "#AE81FF"))))
+ (markdown-header-face-5 ((t (:foreground "#E6DB74"))))
+ (markdown-header-face-6 ((t (:foreground "#66D9EF"))))
+ (markdown-inline-code-face ((t (:foreground "#66D9EF"))))
+ (markdown-list-face ((t (:foreground "#A6E22E"))))
+ (markdown-blockquote-face ((t (:slant italic))))
+ (markdown-pre-face ((t (:foreground "#AE81FF"))))
+ (markdown-link-face ((t (:foreground "#66D9EF"))))
+ (markdown-reference-face ((t (:foreground "#66D9EF"))))
+ (markdown-url-face ((t (:foreground "#E6DB74"))))
+ (markdown-link-title-face ((t (:foreground "#F92672"))))
+ (markdown-comment-face ((t (:foreground "#465457"))))
+ (markdown-math-face ((t (:foreground "#AE81FF" :slant italic))))
+ (mumamo-background-chunk-major ((t (:background "#272822"))))
+ (mumamo-background-chunk-submode ((t (:background "#1B1D1E"))))
+ (outline-1 ((t (:foreground "#66D9EF"))))
+ (outline-2 ((t (:foreground "#F92672"))))
+ (outline-3 ((t (:foreground "#A6E22E"))))
+ (outline-4 ((t (:foreground "#AE81FF"))))
+ (outline-5 ((t (:foreground "#E6DB74"))))
+ (outline-6 ((t (:foreground "#66D9EF"))))
+ (outline-7 ((t (:foreground "#F92672"))))
+ (outline-8 ((t (:foreground "#A6E22E"))))
+ (secondary-selection ((t (:background "#272822"))))
+ (show-paren-match-face ((t (:foreground "#000000" :background "#FD971F"))))
+ (show-paren-mismatch-face ((t (:foreground "#960050" :background "#1E0010"))))
+ (widget-inactive-face ((t (:background "#ff0000"))))
+ (woman-addition ((t (:foreground "#AE81FF"))))
+ (woman-bold ((t (:foreground "#F92672"))))
+ (woman-italic ((t (:foreground "#A6E22E"))))
+ (woman-unknown ((t (:foreground "#66D9EF"))))
+ )))
+
+(provide 'color-theme-molokai)
View
BIN elpa-to-submit/color-theme-molokai.elc
Binary file not shown.
View
BIN init.elc
Binary file not shown.
View
5 loaddefs.el
@@ -588,8 +588,9 @@ Just some alien fruit salad to keep you in the zone.
;;;***
;;;### (autoloads nil nil ("elpa-to-submit/color-theme-almost-monokai.el"
-;;;;;; "elpa-to-submit/color-theme.el" "elpa-to-submit/eshell-vc.el"
-;;;;;; "elpa-to-submit/notify.el") (19750 38797 595560))
+;;;;;; "elpa-to-submit/color-theme-molokai.el" "elpa-to-submit/color-theme.el"
+;;;;;; "elpa-to-submit/eshell-vc.el" "elpa-to-submit/notify.el")
+;;;;;; (19788 22473 759075))
;;;***
View
2 places
@@ -1,3 +1,3 @@
;;; -*- coding: utf-8 -*-
-(("/Users/lucashungaro/projects/gonow/viaranking/app/models/cart.rb" . 616) ("/Users/lucashungaro/projects/gonow/viaranking/app/adapters/external_deal_to_company_deal_adapter.rb" . 326) ("/Users/lucashungaro/projects/gonow/viaranking/config/routes.rb" . 605) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/payments_controller.rb" . 126) ("/Users/lucashungaro/projects/gonow/viaranking/lib/moip.rb" . 1520) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/external_deals_source.rb" . 101) ("/Users/lucashungaro/projects/gonow/viaranking/lib/external_deals_updater.rb" . 80) ("/Users/lucashungaro/projects/gonow/viaranking/app/helpers/application_helper.rb" . 1248) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/deals_controller.rb" . 120) ("/Users/lucashungaro/projects/gonow/viaranking/app/services/deals_filter_service.rb" . 1209) ("/Users/lucashungaro/projects/gonow/viaranking/lib/sql_conditions_builder.rb" . 214) ("/Users/lucashungaro/projects/sandbox/moip_usage/config/environment.rb" . 1360) ("/Users/lucashungaro/projects/sandbox/moip_usage/config/routes.rb" . 322) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/payment_instruction.rb" . 59) ("/Users/lucashungaro/projects/personal/emacs/custom.el" . 16) ("/Users/lucashungaro/projects/personal/emacs/visual-bell.el" . 1311) ("/Users/lucashungaro/.emacs.d/custom.el" . 137))
+(("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/searches_controller.rb" . 631) ("/Users/lucashungaro/.rvm/gems/ree-1.8.7-2010.02@viaranking/gems/rails-2.3.10/Rakefile" . 12715) ("/Users/lucashungaro/projects/gonow/viaranking/test/integration_teststrap.rb" . 104) ("/Users/lucashungaro/projects/gonow/viaranking/config/initializers/constants.rb" . 1015) ("/Users/lucashungaro/projects/gonow/viaranking/test/factories/address_factory.rb" . 171) ("/Users/lucashungaro/projects/gonow/viaranking/config/initializers/carrier_wave.rb" . 276) ("/Users/lucashungaro/projects/gonow/viaranking/test/factories/banner_factory.rb" . 301) ("/Users/lucashungaro/projects/gonow/viaranking/lib/sql_conditions_builder.rb" . 214) ("/Users/lucashungaro/projects/gonow/viaranking/app/services/deals_filter_service.rb" . 1095) ("/Users/lucashungaro/projects/gonow/viaranking/Gemfile" . 439) ("/Users/lucashungaro/projects/gonow/viaranking/test/teststrap.rb" . 263) ("/Users/lucashungaro/projects/gonow/viaranking/Rakefile" . 68) ("/Users/lucashungaro/projects/gonow/viaranking/config/boot.rb" . 102) ("/Users/lucashungaro/projects/gonow/viaranking/config/environment.rb" . 273) ("/Users/lucashungaro/projects/gonow/viaranking/app/services/banner_service.rb" . 216) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/banner.rb" . 178) ("/Users/lucashungaro/projects/gonow/viaranking/test/services/banner_service_test.rb" . 248) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/state.rb" . 791) ("/Users/lucashungaro/projects/old_projects/spix/busk/public/javascripts/new/search.js" . 41552) ("/Users/lucashungaro/projects/gonow/viaranking/app/uploaders/banner_uploader.rb" . 271) ("/Users/lucashungaro/projects/gonow/viaranking/public/javascripts/admin/banners.js" . 12) ("/Users/lucashungaro/.emacs.d/custom.el" . 736) ("/Users/lucashungaro/.emacs.d/init.el" . 550) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/company.rb" . 292) ("/Users/lucashungaro/.rvm/gems/ruby-1.9.2-p136@pratico/gems/railties-3.0.3/lib/rails/test_unit/testing.rake" . 2554) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/companies_controller.rb" . 481) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/comment.rb" . 1151) ("/Users/lucashungaro/projects/gonow/viaranking/db/migrate/20110124174842_add_city_id_to_professionals.rb" . 470) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/deals_controller.rb" . 103) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/city.rb" . 864) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/application_controller.rb" . 1939) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/location_controller.rb" . 278) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/professionals_controller.rb" . 927) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/professional_category.rb" . 218) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/categories_controller.rb" . 630) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/professional_categories_controller.rb" . 418) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/professional.rb" . 1045) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/home_controller.rb" . 588) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/external_deal.rb" . 101) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/company_deal.rb" . 146) ("/Users/lucashungaro/projects/gonow/viaranking/db/migrate/20110124174931_add_counter_caches_to_city.rb" . 376) ("/Users/lucashungaro/projects/gonow/viaranking/db/seeds.rb" . 3617) ("/Users/lucashungaro/projects/gonow/viaranking/db/migrate/20110113184722_add_rules_and_coupon_validity_dates_to_company_deal.rb" . 415) ("/Users/lucashungaro/projects/gonow/viaranking/db/migrate/20110121032936_add_last_selected_city_id_to_users.rb" . 160) ("/Users/lucashungaro/projects/gonow/viaranking/config/routes.rb" . 2101) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/deal.rb" . 160) ("/Users/lucashungaro/projects/gonow/viaranking/app/adapters/external_deal_to_company_deal_adapter.rb" . 792) ("/Users/lucashungaro/projects/personal/pratico/test/unit/address_test.rb" . 161) ("/Users/lucashungaro/projects/personal/pratico/test/unit/contact_test.rb" . 495) ("/Users/lucashungaro/projects/personal/pratico/test/unit/important_date_test.rb" . 167) ("/Users/lucashungaro/projects/personal/pratico/test/unit/instant_messenger_test.rb" . 138) ("/Users/lucashungaro/projects/personal/pratico/test/unit/email_test.rb" . 293) ("/Users/lucashungaro/projects/personal/pratico/test/unit/note_test.rb" . 125) ("/Users/lucashungaro/projects/personal/pratico/test/unit/phone_test.rb" . 159) ("/Users/lucashungaro/projects/personal/pratico/test/unit/website_test.rb" . 161) ("/Users/lucashungaro/projects/personal/pratico/test/test_helper.rb" . 146) ("/Users/lucashungaro/projects/personal/pratico/Gemfile" . 353) ("/Users/lucashungaro/projects/personal/pratico/config/initializers/load_config.rb" . 122) ("/Users/lucashungaro/projects/personal/pratico/Rakefile" . 235) ("/Users/lucashungaro/projects/personal/pratico/test/unit/person_test.rb" . 153) ("/Users/lucashungaro/projects/personal/pratico/test/unit/company_test.rb" . 194) ("/Users/lucashungaro/projects/personal/pratico/test/functional/users_controller_test.rb" . 212) ("/Users/lucashungaro/projects/personal/pratico/test/functional/people_controller_test.rb" . 3179) ("/Users/lucashungaro/projects/personal/pratico/test/unit/user_test.rb" . 616) ("/Users/lucashungaro/projects/personal/pratico/test/functional/tag_search_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/functional/session_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/functional/person_dates_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/functional/notes_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/functional/home_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/functional/emails_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/functional/contacts_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/functional/company_dates_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/functional/companies_controller_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/test/unit/xapian_test.rb" . 10) ("/Users/lucashungaro/projects/personal/pratico/app/models/contact.rb" . 729) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/company_deals_controller.rb" . 2125) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/deal_mailings_controller.rb" . 30) ("/Users/lucashungaro/projects/gonow/viaranking/lib/validates_as_email.rb" . 1084) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/user.rb" . 989) ("/Users/lucashungaro/projects/personal/pratico/app/controllers/users_controller.rb" . 47) ("/Users/lucashungaro/projects/personal/pratico/app/controllers/people_controller.rb" . 2081) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/users_controller.rb" . 1351) ("/Users/lucashungaro/projects/gonow/viaranking/lib/moip.rb" . 368) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/payment_instruction.rb" . 179) ("/Users/lucashungaro/projects/gonow/viaranking/db/migrate/20110114144238_change_company_deals_rules_datatype.rb" . 117) ("/Users/lucashungaro/projects/personal/emacs/custom.el" . 157) ("/Users/lucashungaro/projects/gonow/viaranking/db/migrate/20101222205341_add_closed_flag_to_carts_again_as_the_first_one_does_nothing.rb" . 289) ("/Users/lucashungaro/projects/gonow/viaranking/config/environments/development.rb" . 366) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/ability.rb" . 373) ("/Users/lucashungaro/projects/gonow/viaranking/app/controllers/payments_controller.rb" . 365) ("/Users/lucashungaro/projects/gonow/viaranking/db/migrate/20110112200603_create_deal_mailings.rb" . 223) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/deal_mailing.rb" . 40) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/cart.rb" . 616) ("/Users/lucashungaro/projects/gonow/viaranking/app/models/external_deals_source.rb" . 101) ("/Users/lucashungaro/projects/gonow/viaranking/lib/external_deals_updater.rb" . 80) ("/Users/lucashungaro/projects/gonow/viaranking/app/helpers/application_helper.rb" . 1248) ("/Users/lucashungaro/projects/sandbox/moip_usage/config/environment.rb" . 1360) ("/Users/lucashungaro/projects/sandbox/moip_usage/config/routes.rb" . 322) ("/Users/lucashungaro/projects/personal/emacs/visual-bell.el" . 1311))
View
2,691 vendor/mode-compile.el
2,691 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN vendor/mode-compile.elc
Binary file not shown.
View
466 vendor/rspec-mode.el
@@ -0,0 +1,466 @@
+;;; rspec-mode.el --- Enhance ruby-mode for RSpec
+
+;; Copyright (C) 2008 Peter Williams <http://pezra.barelyenough.org>
+;; Authors: Peter Williams, et al.
+;; URL: http://github.com/pezra/rspec-mode
+;; Created: 2008
+;; Version: 0.7
+;; Keywords: rspec ruby
+;; Package-Requires: ((ruby-mode "1.1")
+;; (mode-compile "2.29"))
+
+;;; Commentary:
+;;
+;; This file is NOT part of GNU Emacs.
+;;
+;; 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 3 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.
+;;
+;; See <http://www.gnu.org/licenses/> for a copy of the GNU General
+;; Public License.
+
+;;; Documentation:
+;;
+;; This minor mode provides some enhancements to ruby-mode in
+;; the contexts of RSpec specifications. Namely, it provides the
+;; following capabilities:
+;;
+;; * toggle back and forth between a spec and it's target (bound to
+;; `\C-c ,t`)
+;;
+;; * verify the spec file associated with the current buffer (bound to `\C-c ,v`)
+;;
+;; * verify the spec defined in the current buffer if it is a spec
+;; file (bound to `\C-c ,v`)
+;;
+;; * verify the example defined at the point of the current buffer (bound to `\C-c ,s`)
+;;
+;; * re-run the last verification process (bound to `\C-c ,r`)
+;;
+;; * toggle the pendingness of the example at the point (bound to
+;; `\C-c ,d`)
+;;
+;; * disable the example at the point by making it pending
+;;
+;; * reenable the disabled example at the point
+;;
+;; * run spec for entire project (bound to `\C-c ,a`)
+;;
+;; You can choose whether to run specs using 'rake spec' or the 'spec'
+;; command. Use the customization interface (customize-group
+;; rspec-mode) or override using (setq rspec-use-rake-flag TVAL).
+;;
+;; Options will be loaded from spec.opts if it exists, otherwise it
+;; will fallback to defaults.
+;;
+;; Dependencies
+;; ------------
+;;
+;; This minor mode depends on `mode-compile`. The expectations depend
+;; `on el-expectataions.el`. If `ansi-color` is available it will be
+;; loaded so that rspec output is colorized properly. If
+;; `rspec-use-rvm` is set to true `rvm.el` is required.
+;;
+
+;;; Change Log:
+;;
+;; 1.0 - Advance to end of compilation buffer even if it not the other window (byplayer)
+;; 0.8 - RVM support (Peter Williams)
+;; 0.7 - follow RoR conventions for file in lib directory (Tim Harper)
+;; 0.6 - support for arbitrary spec and rake commands (David Yeu)
+;; 0.5 - minor changes from Tim Harper
+;; 0.4 - ansi colorization of compliation buffers (teaforthecat)
+;; 0.3 - Dave Nolan implements respect for spec.opts config and
+;; custom option to use 'rake spec' task or 'spec' command
+;; 0.2 - Tim Harper implemented support for imenu to generate a basic
+;; tag outline
+;; 0.1 - Pezra's version in master
+
+;;; Code:
+(require 'ruby-mode)
+
+(defconst rspec-mode-abbrev-table (make-abbrev-table))
+
+(defconst rspec-mode-keymap (make-sparse-keymap) "Keymap used in rspec mode")
+
+(define-key rspec-mode-keymap (kbd "C-c ,v") 'rspec-verify)
+(define-key rspec-mode-keymap (kbd "C-c ,s") 'rspec-verify-single)
+(define-key rspec-mode-keymap (kbd "C-c ,a") 'rspec-verify-all)
+(define-key rspec-mode-keymap (kbd "C-c ,d") 'rspec-toggle-example-pendingness)
+(define-key rspec-mode-keymap (kbd "C-c ,t") 'rspec-toggle-spec-and-target)
+
+(defgroup rspec-mode nil
+ "Rspec minor mode.")
+
+(defcustom rspec-use-rake-flag t
+ "*Whether rspec runner is run using rake spec task or the spec command"
+ :tag "Rspec runner command"
+ :type '(radio (const :tag "Use 'rake spec' task" t)
+ (const :tag "Use 'spec' command" nil))
+ :group 'rspec-mode)
+
+(defcustom rspec-rake-command "rake"
+ "The command for rake"
+ :type 'string
+ :group 'rspec-mode)
+
+(defcustom rspec-spec-command "spec"
+ "The command for spec"
+ :type 'string
+ :group 'rspec-mode)
+
+(defcustom rspec-use-rvm nil
+ "t when RVM in is in use. (Requires rvm.el)"
+ :type 'boolean
+ :group 'rspec-mode)
+
+
+;;;###autoload
+(define-minor-mode rspec-mode
+ "Minor mode for rSpec files"
+ :lighter " rSpec"
+ :keymap rspec-mode-keymap)
+
+
+(defvar rspec-imenu-generic-expression
+ '(("Examples" "^\\( *\\(it\\|describe\\|context\\) +.+\\)" 1))
+ "The imenu regex to parse an outline of the rspec file")
+
+(defcustom rspec-compilation-buffer-name "*compilation*"
+ "The compilation buffer name for spec"
+ :type 'string
+ :group 'rspec-mode)
+
+(defun rspec-set-imenu-generic-expression ()
+ (make-local-variable 'imenu-generic-expression)
+ (make-local-variable 'imenu-create-index-function)
+ (setq imenu-create-index-function 'imenu-default-create-index-function)
+ (setq imenu-generic-expression rspec-imenu-generic-expression))
+
+(add-hook 'rspec-mode-hook 'rspec-set-imenu-generic-expression)
+
+;; Snippets
+(if (require 'snippet nil t)
+ (snippet-with-abbrev-table
+ 'rspec-mode-abbrev-table
+ ("helper" . "require 'pathname'\nrequire Pathname(__FILE__).dirname + '../spec_helper'\n\n$.")
+ ("desc" . "describe $${ClassName} do\n $.\nend ")
+ ("descm" . "describe $${ClassName}, \"$${modifier}\" do\n $.\nend ")
+ ("it" . "it \"should $${what exactly?}\" do\n $.\n end ")
+ ("bef" . "before do\n $.\n end"))
+ )
+
+
+(defun rspec-beginning-of-example ()
+ "Moves point to the beginning of the example in which the point current is."
+ (interactive)
+ (let ((start (point)))
+ (goto-char
+ (save-excursion
+ (end-of-line)
+ (unless (and (search-backward-regexp "^[[:space:]]*it[[:space:]]*(?[\"']" nil t)
+ (save-excursion (ruby-end-of-block) (< start (point))))
+ (error "Unable to find an example"))
+ (point)))))
+
+(defun rspec-example-pending-p ()
+ "True if the example under point is pending. Otherwise false"
+ (interactive)
+ (save-excursion
+ (rspec-beginning-of-example)
+ (re-search-forward "^[[:space:]]*pending\\([[:space:](]\\|$\\)" (save-excursion (ruby-end-of-block) (point)) t)))
+
+
+(defun rspec-toggle-example-pendingness ()
+ "Disables active examples and enables pending examples."
+ (interactive)
+ (if (rspec-example-pending-p)
+ (rspec-enable-example)
+ (rspec-disable-example)))
+
+(defun rspec-disable-example ()
+ "Disable the example in which the point is located"
+ (interactive)
+ (when (not (rspec-example-pending-p))
+ (save-excursion
+ (rspec-beginning-of-example)
+ (end-of-line)
+ (insert "\npending")
+ (indent-for-tab-command))))
+
+(defun rspec-enable-example ()
+ "Enable the example in which the point is located"
+ (interactive)
+ (when (rspec-example-pending-p)
+ (save-excursion
+ (rspec-beginning-of-example)
+ (search-forward-regexp "^[[:space:]]*pending\\([[:space:](]\\|$\\)" (save-excursion (ruby-end-of-block) (point)))
+ (beginning-of-line)
+ (delete-region (save-excursion (beginning-of-line) (point))
+ (save-excursion (forward-line 1) (point))))))
+
+(defun rspec-verify ()
+ "Runs the specified spec, or the spec file for the current buffer."
+ (interactive)
+ (rspec-run-single-file (rspec-spec-file-for (buffer-file-name)) (rspec-core-options ())))
+
+(defun rspec-verify-single ()
+ "Runs the specified example at the point of the current buffer."
+ (interactive)
+ (rspec-run-single-file (rspec-spec-file-for (buffer-file-name)) (rspec-core-options ()) (concat "--line " (number-to-string (line-number-at-pos)))))
+
+(defun rspec-verify-all ()
+ "Runs the 'spec' rake task for the project of the current file."
+ (interactive)
+ (let ((default-directory (or (rspec-project-root) default-directory)))
+ (rspec-run (rspec-core-options "--format=progress"))))
+
+(defun rspec-toggle-spec-and-target ()
+ "Switches to the spec for the current buffer if it is a
+ non-spec file, or switch to the target of the current buffer
+ if the current is a spec"
+ (interactive)
+ (find-file
+ (if (rspec-buffer-is-spec-p)
+ (rspec-target-file-for (buffer-file-name))
+ (rspec-spec-file-for (buffer-file-name)))))
+(defun rspec-spec-directory-has-lib? (a-file-name)
+ (file-directory-p (concat (rspec-spec-directory a-file-name) "/lib")))
+
+
+(defun rspec-spec-file-for (a-file-name)
+ "Find spec for the specified file"
+ (if (rspec-spec-file-p a-file-name)
+ a-file-name
+ (let ((replace-regex (if (and (rspec-target-lib-file-p a-file-name) (rspec-spec-directory-has-lib? a-file-name))
+ "^\\.\\./"
+ "^\\.\\./[^/]+/"))
+ (relative-file-name (file-relative-name a-file-name (rspec-spec-directory a-file-name))))
+ (rspec-specize-file-name (expand-file-name (replace-regexp-in-string replace-regex "" relative-file-name)
+ (rspec-spec-directory a-file-name))))))
+
+(defun rspec-spec-lib-file-p (a-spec-file-name)
+ (string-match (concat "^" (expand-file-name (regexp-quote (concat (rspec-spec-directory a-spec-file-name) "/lib")))) a-spec-file-name))
+
+(defun rspec-target-lib-file-p (a-file-name)
+ (string-match (concat "^" (expand-file-name (regexp-quote (concat (rspec-project-root a-file-name) "/lib")))) a-file-name))
+
+(defun rspec-target-file-for (a-spec-file-name)
+ "Find the target for a-spec-file-name"
+ (first
+ (file-expand-wildcards
+ (replace-regexp-in-string
+ "/spec/"
+ (if (rspec-spec-lib-file-p a-spec-file-name) "/" "/*/")
+ (rspec-targetize-file-name a-spec-file-name)))))
+
+(defun rspec-specize-file-name (a-file-name)
+ "Returns a-file-name but converted in to a spec file name"
+ (concat
+ (file-name-directory a-file-name)
+ (replace-regexp-in-string "\\(\\.rb\\)?$" "_spec.rb" (file-name-nondirectory a-file-name))))
+
+(defun rspec-targetize-file-name (a-file-name)
+ "Returns a-file-name but converted into a non-spec file name"
+ (concat (file-name-directory a-file-name)
+ (rspec-file-name-with-default-extension
+ (replace-regexp-in-string "_spec\\.rb" "" (file-name-nondirectory a-file-name)))))
+
+(defun rspec-file-name-with-default-extension (a-file-name)
+ "Adds .rb file extension to a-file-name if it does not already have an extension"
+ (if (file-name-extension a-file-name)
+ a-file-name ;; file has a extension already so do nothing
+ (concat a-file-name ".rb")))
+
+(defun rspec-directory-subdirectories (directory)
+ "Returns list of subdirectories"
+ (remove-if
+ (lambda (dir) (or (string-match "^\\.\\.?$" (file-name-nondirectory dir))
+ (not (file-directory-p dir))))
+ (directory-files directory t)))
+
+(defun rspec-parent-directory (a-directory)
+ "Returns the directory of which a-directory is a child"
+ (file-name-directory (directory-file-name a-directory)))
+
+(defun rspec-root-directory-p (a-directory)
+ "Returns t if a-directory is the root"
+ (equal a-directory (rspec-parent-directory a-directory)))
+
+(defun rspec-spec-directory (a-file)
+ "Returns the nearest spec directory that could contain specs for a-file"
+ (if (file-directory-p a-file)
+ (or
+ (first (directory-files a-file t "^spec$"))
+ (if (rspec-root-directory-p a-file)
+ nil
+ (rspec-spec-directory (rspec-parent-directory a-file))))
+ (rspec-spec-directory (rspec-parent-directory a-file))))
+
+(defun rspec-spec-file-p (a-file-name)
+ "Returns true if the specified file is a spec"
+ (string-match "\\(_\\|-\\)spec\\.rb$" a-file-name))
+
+(defun rspec-core-options (&optional default-options)
+ "Returns string of options that instructs spec to use spec.opts file if it exists, or sensible defaults otherwise"
+ (if (file-readable-p (rspec-spec-opts-file))
+ (concat "--options " (rspec-spec-opts-file))
+ (if default-options
+ default-options
+ (concat "--format specdoc " "--reverse"))))
+
+(defun rspec-spec-opts-file ()
+ "Returns filename of spec opts file (usually spec/spec.opts)"
+ (concat (rspec-spec-directory (rspec-project-root)) "/spec.opts"))
+
+(defun rspec-runner ()
+ "Returns command line to run rspec"
+ (if rspec-use-rake-flag
+ (concat rspec-rake-command " spec")
+ rspec-spec-command))
+
+(defun rspec-runner-options (&optional opts)
+ "Returns string of options for command line"
+ (let ((opts (if (listp opts)
+ opts
+ (list opts))))
+ (concat (when rspec-use-rake-flag "SPEC_OPTS=\'")
+ (mapconcat 'identity opts " ")
+ (when rspec-use-rake-flag "\'"))))
+
+(defun rspec-runner-target (target)
+ "Returns target file/directory wrapped in SPEC if using rake"
+ (concat (when rspec-use-rake-flag "SPEC=\'") target (when rspec-use-rake-flag "\'")))
+
+;;;###autoload
+(defun rspec-buffer-is-spec-p ()
+ "Returns true if the current buffer is a spec"
+ (and (buffer-file-name)
+ (rspec-spec-file-p (buffer-file-name))))
+
+(defun rspec-example-name-at-point ()
+ "Returns the name of the example in which the point is currently positioned; or nil if it is outside of and example"
+ (save-excursion
+ (rspec-beginning-of-example)
+ (re-search-forward "it[[:space:]]+['\"]\\(.*\\)['\"][[:space:]]*\\(do\\|DO\\|Do\\|{\\)")
+ (match-string 1)))
+
+(defun rspec-end-of-buffer-target-window (buf-name)
+ "end of line target window"
+ (let ((cur-window (selected-window))
+ (com-buffer (get-buffer buf-name)))
+ (if com-buffer
+ (let ((com-window (get-buffer-window com-buffer)))
+ (cond (com-window
+ (unwind-protect
+ (progn
+ (select-window com-window)
+ (with-no-warnings
+ (goto-char (point-max))
+ (recenter '(t))))
+ (select-window cur-window))))))))
+
+(defun rspec-register-verify-redo (redoer)
+ "Register a bit of code that will repeat a verification process"
+ (let ((redoer-cmd (eval (append '(lambda () (interactive)) (list redoer)))))
+ (global-set-key (kbd "C-c ,r") redoer-cmd)))
+
+(defun rspec-run (&optional opts)
+ "Runs spec with the specified options"
+ (if rspec-use-rvm
+ (rvm-activate-corresponding-ruby))
+ (rspec-register-verify-redo (cons 'rspec-run opts))
+ (compile (mapconcat 'identity (list (rspec-runner) (rspec-spec-directory (rspec-project-root)) (rspec-runner-options opts)) " "))
+ (rspec-end-of-buffer-target-window rspec-compilation-buffer-name))
+
+(defun rspec-run-single-file (spec-file &rest opts)
+ "Runs spec on a file with the specified options"
+ (if rspec-use-rvm
+ (rvm-activate-corresponding-ruby))
+ (rspec-register-verify-redo (cons 'rspec-run-single-file (cons spec-file opts)))
+ (compile (mapconcat 'identity (list (rspec-runner) (rspec-runner-target spec-file) (rspec-runner-options opts)) " "))
+ (rspec-end-of-buffer-target-window rspec-compilation-buffer-name))
+
+(defun rspec-project-root (&optional directory)
+ "Finds the root directory of the project by walking the directory tree until it finds a rake file."
+ (let ((directory (file-name-as-directory (or directory default-directory))))
+ (cond ((rspec-root-directory-p directory) nil)
+ ((file-exists-p (concat directory "Rakefile")) directory)
+ (t (rspec-project-root (file-name-directory (directory-file-name directory)))))))
+
+;; Makes sure that Rspec buffers are given the rspec minor mode by default
+;;;###autoload
+(eval-after-load 'ruby-mode
+ '(add-hook 'ruby-mode-hook
+ (lambda ()
+ (when (rspec-buffer-is-spec-p)
+ (rspec-mode)))))
+
+;; Add verify related spec keybinding to ruby ruby modes
+;;;###autoload
+(eval-after-load 'ruby-mode
+ '(add-hook 'ruby-mode-hook
+ (lambda ()
+ (local-set-key (kbd "C-c ,v") 'rspec-verify)
+ (local-set-key (kbd "C-c ,a") 'rspec-verify-all)
+ (local-set-key (kbd "C-c ,t") 'rspec-toggle-spec-and-target))))
+
+;; Add verify related spec keybinding to ruby ruby modes
+;;;###autoload
+(eval-after-load 'rails
+ '(add-hook 'rails-minor-mode-hook
+ (lambda ()
+ (local-set-key (kbd "C-c ,v") 'rspec-verify)
+ (local-set-key (kbd "C-c ,a") 'rspec-verify-all)
+ (local-set-key (kbd "C-c ,t") 'rspec-toggle-spec-and-target))))
+
+;; This hook makes any abbreviation that are defined in
+;; rspec-mode-abbrev-table available in rSpec buffers
+(add-hook 'rspec-mode-hook
+ (lambda ()
+ (merge-abbrev-tables rspec-mode-abbrev-table
+ local-abbrev-table)))
+
+;; abbrev
+;; from http://www.opensource.apple.com/darwinsource/Current/emacs-59/emacs/lisp/derived.el
+(defun merge-abbrev-tables (old new)
+ "Merge an old abbrev table into a new one.
+This function requires internal knowledge of how abbrev tables work,
+presuming that they are obarrays with the abbrev as the symbol, the expansion
+as the value of the symbol, and the hook as the function definition."
+ (when old
+ (mapatoms
+ (lambda(it)
+ (or (intern-soft (symbol-name it) new)
+ (define-abbrev new
+ (symbol-name it)
+ (symbol-value it)
+ (symbol-function it)
+ nil
+ t)))
+ old)))
+
+
+(add-to-list 'compilation-error-regexp-alist-alist
+ '(rspec "\\([0-9A-Za-z_./\:-]+\\.rb\\):\\([0-9]+\\)" 1 2))
+(add-to-list 'compilation-error-regexp-alist 'rspec)
+
+(condition-case nil
+ (progn
+ (require 'ansi-color)
+ (defun rspec-colorize-compilation-buffer ()
+ (toggle-read-only)
+ (ansi-color-apply-on-region (point-min) (point-max))
+ (toggle-read-only))
+ (add-hook 'compilation-filter-hook 'rspec-colorize-compilation-buffer))
+ (error nil))
+
+(provide 'rspec-mode)
+;;; rspec-mode.el ends here
View
BIN vendor/rspec-mode.elc
Binary file not shown.
View
7 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/aft
@@ -0,0 +1,7 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : after
+# --
+after(${1::each}) do
+ $0
+end
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/annot
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : any_number_of_times
+# --
+any_number_of_times
View
3 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/anr
@@ -0,0 +1,3 @@
+#name: and_return($value)
+# --
+and_return(${1:value})$0
View
3 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/anra
@@ -0,0 +1,3 @@
+#name: and_raise($error)
+# --
+and_raise(${1:RuntimeError})$0
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/anrb
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : and_return with block
+# --
+and_return { $1 }
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/ant
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : and_throw
+# --
+and_throw(${1:sym})
View
3 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/any
@@ -0,0 +1,3 @@
+#name : any? { |...| ... }
+# --
+any? { |${e}| $0 }
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/atl
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : at_least
+# --
+at_least(${1:n}).times
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/atm
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : at_most
+# --
+at_most(${1:n}).times
View
7 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/bef
@@ -0,0 +1,7 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : before
+# --
+before(${1::each}) do
+ $0
+end
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/befm
@@ -0,0 +1,5 @@
+#name : before (rspec)
+# --
+before(:each) do
+ @${1:model} = ${1:$(replace-regexp-in-string "_" "" (upcase-initials text))}.new$0
+end
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/bfe
@@ -0,0 +1,5 @@
+#name: before(:each) do ... end
+# --
+before(:each) do
+ $0
+end
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/con
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#name : context
+# --
+context "${1:description}" do
+ $0
+end
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/conn
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : controller_name
+# --
+controller_name :${1:controller}
View
11 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/des
@@ -0,0 +1,11 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : describe (String)
+# --
+describe '${1:description}' do
+
+ it 'should ${2:description}' do
+ $0
+ end
+
+end
View
11 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desc
@@ -0,0 +1,11 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : describe (Controller)
+# --
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe ${1:controller} do
+
+ $0
+
+end
View
11 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desrc.delete
@@ -0,0 +1,11 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : describe (RESTful Controller): DELETE
+# --
+require File.direname(__FILE__) + '/.../spec_helper'
+
+describe ${1:controller}, 'DELETE ${3:/some/path}${4: with some parameters}' do
+
+ $0
+
+end
View
11 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desrc.get
@@ -0,0 +1,11 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : describe (RESTful Controller): GET
+# --
+require File.direname(__FILE__) + '/.../spec_helper'
+
+describe ${1:controller}, 'GET ${3:/some/path}${4: with some parameters}' do
+
+ $0
+
+end
View
11 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desrc.post
@@ -0,0 +1,11 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : describe (RESTful Controller): POST
+# --
+require File.direname(__FILE__) + '/.../spec_helper'
+
+describe ${1:controller}, 'POST ${3:/some/path}${4: with some parameters}' do
+
+ $0
+
+end
View
11 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/desrc.put
@@ -0,0 +1,11 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : describe (RESTful Controller): PUT
+# --
+require File.direname(__FILE__) + '/.../spec_helper'
+
+describe ${1:controller}, 'PUT ${3:/some/path}${4: with some parameters}' do
+
+ $0
+
+end
View
11 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/dest
@@ -0,0 +1,11 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : describe (type)
+# --
+describe ${1:Type} do
+
+ it 'should ${2:description}' do
+ $0
+ end
+
+end
View
11 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/dests
@@ -0,0 +1,11 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : describe (type, string)
+# --
+describe ${1:Type}, '${2:description}' do
+
+ it 'should ${3:description}' do
+ $0
+ end
+
+end
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/ex
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : exactly
+# --
+exactly(${1:n}).times
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/fm
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : flexmock mock object w/name
+# --
+${1:var} = flexmock('${2:mock_name}')
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/fmar
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : flexmock mock object, ActiveRecord
+# --
+${1:var} = flexmock(:model, ${2:YourModel})
+$0
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/it
@@ -0,0 +1,5 @@
+#name: it "should do something" do ... end
+# --
+it "should ${1:do something}" do
+ $0
+end
View
28 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/mat
@@ -0,0 +1,28 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : custom matcher
+# --
+class ${1:ReverseTo}
+ def initialize($3)
+ @$3 = $3
+ end
+
+ def matches?(actual)
+ @actual = actual
+ # Satisfy expectation here. Return false or raise an error if it's not met.
+ $0@actual.reverse.should == @$3
+ true
+ end
+
+ def failure_message
+ "expected #{@actual.inspect} to $2 #{@$3.inspect}, but it didn't"
+ end
+
+ def negative_failure_message
+ "expected #{@actual.inspect} not to $2 #{@$3.inspect}, but it did"
+ end
+end
+
+def ${2:reverse_to}(${3:expected})
+ $1.new($3)
+end
View
7 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/mocw.flexmock
@@ -0,0 +1,7 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : mock_with flexmock
+# --
+Spec::Runner.configure do |config|
+ config.mock_with :flexmock
+end
View
7 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/mocw.mocha
@@ -0,0 +1,7 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : mock_with mocha
+# --
+Spec::Runner.configure do |config|
+ config.mock_with :mocha
+end
View
7 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/mocw.rr
@@ -0,0 +1,7 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : mock_with rr
+# --
+Spec::Runner.configure do |config|
+ config.mock_with :rr
+end
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/on
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : once
+# --
+once
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/resh
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : Require spec_helper
+# --
+require File.dirname(__FILE__) + '/../spec_helper'
View
10 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/sce
@@ -0,0 +1,10 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : Scenario
+# --
+Scenario '${1:title}' do
+ Given '${2:given}'
+ When '${3:when}'
+ Then '${4:then}'
+end
+$0
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/set
@@ -0,0 +1,5 @@
+#name: setup do ... end
+# --
+setup do
+ $1
+end
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/sh=
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should ==
+# --
+${1:target}.should == ${2:value}
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shb
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should be
+# --
+${1:target}.should be(${2:result})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbc
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should be_close
+# --
+${1:target}.should be_close(${2:result}, ${3:tolerance})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbio
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should be_instance_of
+# --
+${1:target}.should be_instance_of(${2:klass})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbko
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should be_kind_of
+# --
+${1:target}.should be_a_kind_of(${2:klass})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbr
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should be_redirect
+# --
+response.should be_redirect
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shbs
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should be_success
+# --
+response.should be_success
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/she.eql
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should eql
+# --
+${1:target}.should eql(${2:value})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/she.equal
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should equal
+# --
+${1:target}.should equal(${2:value})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shh
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should have
+# --
+${1:target}.should have(${2:num}).${3:things}
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shhal
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should have_at_least
+# --
+${1:target}.should have_at_least(${2:num}).${3:things}
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shham
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should have_at_most
+# --
+${1:target}.should have_at_most(${2:num}).${3:things}
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shhr
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should have_records
+# --
+${1:target}.should have(${2:x}).records
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shm.match
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should match
+# --
+${1:target}.should match(/${2:regex}/)
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shn=
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not ==
+# --
+${1:target}.should_not == ${2:value}
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnb
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not be
+# --
+${1:target}.should_not be(${2:result})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbc
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not be_close
+# --
+${1:target}.should_not be_close(${2:result}, ${3:tolerance})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbio
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not be_instance_of
+# --
+${1:target}.should_not be_instance_of(${2:klass})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbko
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not be_kind_of
+# --
+${1:target}.should_not be_a_kind_of(${2:klass})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbr
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not be_redirect
+# --
+response.should_not be_redirect
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnbs
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not be_success
+# --
+response.should_not be_success
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shne.eql
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not eql
+# --
+${1:target}.should_not eql(${2:value})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shne.equal
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not equal
+# --
+${1:target}.should_not equal(${2:value})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnm.match
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil buffer-read-only: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not match
+# --
+${1:target}.should_not match(/${2:regex}/)
+$0
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnp
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not predicate
+# --
+${1:target}.should_not ${2:be_}${3:predicate} $0
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnr
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not_receive
+# --
+${1:mock}.should_not_receive(:${2:message})$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnre
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not raise_error
+# --
+lambda { ${1: } }.should_not raise_error(${2:error})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnrt
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not respond_to
+# --
+${1:target}.should_not respond_to(:${2:sym})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shns
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not satisfy
+# --
+${1:target}.should_not satisfy { |obj| ${2: } }
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shnt
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_not throw
+# --
+lambda { ${1: } }.should_not throw_symbol(:${2:symbol})
+$0
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shp
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should predicate
+# --
+${1:target}.should ${2:be_}${3:predicate} $0
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shr
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should_receive
+# --
+${1:mock}.should_receive(:${2:message})$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shre
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should raise_error
+# --
+lambda { ${1: } }.should raise_error(${2:error})
+$0
View
3 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shrt
@@ -0,0 +1,3 @@
+#name: response.should render_template("$template")
+# --
+response.should render_template("${0:template}")
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shrt.redirect
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should redirect_to
+# --
+response.should redirect_to(${1:url})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shrt.render
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should render_template
+# --
+response.should render_template(:${1:template})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shrt.respond
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should respond_to
+# --
+${1:target}.should respond_to(:${2:sym})
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/shs
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should satisfy
+# --
+${1:target}.should satisfy { |obj| ${2: } }
+$0
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/sht
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : should throw
+# --
+lambda { ${1: } }.should throw_symbol(:${2:symbol})
+$0
View
10 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/sto
@@ -0,0 +1,10 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : Story
+# --
+Story '${1:title}', %{
+ As a ${2:role}
+ I want ${3:feature}
+ So that ${4:value}
+} do
+end
View
3 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/stub
@@ -0,0 +1,3 @@
+#name: $target.stub!(:$message)
+# --
+${1:target}.stub!(:${2:message})$0
View
5 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/tw
@@ -0,0 +1,5 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : twice
+# --
+twice
View
6 vendor/yasnippet-0.6.1c/snippets/text-mode/rspec-mode/wia
@@ -0,0 +1,6 @@
+#-*- require-final-newline: nil -*-
+#contributor: gary <ge.iams@gmail.com>
+#name : with args
+# --
+with(${1:args})
+$0
View
BIN visual-bell.elc
Binary file not shown.

0 comments on commit bf591b2

Please sign in to comment.