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
(setq ruby-deep-indent-paren nil) | |
(defadvice ruby-indent-line (after unindent-closing-paren activate) | |
(let ((column (current-column)) | |
indent offset) | |
(save-excursion | |
(back-to-indentation) | |
(let ((state (syntax-ppss))) | |
(setq offset (- column (current-column))) | |
(when (and (eq (char-after) ?\)) | |
(not (zerop (car state)))) |
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
Referencing http://twitter.com/#!/refinerycms/status/73536619038261248 | |
Depends, do you want to speed up single test runs/running one spec file or speeding up the whole suite? | |
Speeding up a single test == shorten init time | |
------------------------- | |
Reduce the number of requires: | |
When running on 1.9.2, require is an extremely costly operation. @xshay is currently working on this, should be better in 1.9.3. |