GithubHelp home page GithubHelp logo

eschulte / rinari Goto Github PK

View Code? Open in Web Editor NEW

This project forked from technomancy/rinari

412.0 16.0 68.0 585 KB

Rinari Is Not A Rails IDE (it is an Emacs minor mode for Rails)

Home Page: http://rinari.rubyforge.org

License: GNU General Public License v3.0

Ruby 21.21% Emacs Lisp 68.64% HTML 9.57% Perl 0.44% JavaScript 0.14%

rinari's Introduction

Rinari Is Not A Ruby IDE.

Well, ok it kind of is. Rinari is an Emacs minor mode that is aimed
towards making Emacs into a top-notch Ruby and Rails development
environment.

IMPORTANT NOTE: This package is unmaintained these days, and
users should consider an alternative, e.g. the projectile-rails package.

For a screencast of Rinari see
http://vimeo.com/2854412

For the latest version see
http://github.com/eschulte/rinari/tree/master

For somewhat outdated installation instructions and documentation see
http://rinari.rubyforge.org

For discussion of Ruby on Rails related Emacs development see
http://groups.google.com/group/emacs-on-rails

rinari's People

Contributors

abugosh avatar akappen avatar asok avatar babysnakes avatar calas avatar dotemacs avatar eiel avatar erw7 avatar eschulte avatar flavorjones avatar imonyse avatar jdodds avatar nex3 avatar pallinder avatar pjones avatar purcell avatar randycoulman avatar rejeep avatar tarsius avatar technomancy avatar tfiala avatar timfel avatar vhallac avatar zw963 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rinari's Issues

rinari-find-* cache

I am working on a few large projects and doing rinari-find- on almost anything (rspec, controller, etc) takes a very long time. Is there a caching option hidden somewhere ?

rinari-cap multisage deploy

It would be great if rinari-cap could support multistage deploy, i.e. cap prod deploy.

As it is, rinari-cap tries to be clever and does not allow me to type prod deploy when prompted for a command.

rinari-escape-partial escapes periods

Given a blob of text in a .html.erb file, I mark it and type rinari-extract-partial and enter "foo" as the filename. This results in a file called _foo\.html\.erb. My lisp is non-existant and I failed to figure out why this is. It seems to me that rinari-ending does the right thing. Pretty much the next step in the code is to use find-file, which is remapped to ido-find-file.

Any ideas?

Need better buffer names with rinari

This is a feature request than a bug report

Rinari should do a better job at naming buffers.

Right now I am working on a moderate sized rails project with a few controllers
and almost all of them have view files named index.html.haml, show.html.haml
etc. Emacs by default names them index.html.haml<n> etc, which is pretty
useless. It would be great if we can add a buffer naming scheme to make things
clearer.

For example, we can name controllers controller-{controller_name}, like
controller-users or controller-files instead of users_controller.rb. Same
goes with views. 'view-{controller}-{action}' will be a lot more useful than a
index.html.haml<3>, like 'view-users-show'. Similar names for assets, config
files, logs etc.

Thoughts?

Crash in rinari-root

Reported by Duncan Mak on the emacs-on-rails list.

Here's the stack trace that I get:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("\\(^[[:alpha:]]:/$\\|^/[^/]+:/?$\\|^/$\\)" nil)
  (if (string-match "\\(^[[:alpha:]]:/$\\|^/[^/]+:/?$\\|^/$\\)" dir)
nil (rinari-root new-dir))
  (unless (string-match "\\(^[[:alpha:]]:/$\\|^/[^/]+:/?$\\|^/$\\)"
dir) (rinari-root new-dir))
  (let ((new-dir (expand-file-name (file-name-as-directory "..")
dir))) (unless (string-match "\\(^[[:alpha:]]:/$\\|^/[^/]+:/?$\\|^/$\
\)" dir) (rinari-root new-dir)))
  (if (file-exists-p (expand-file-name "environment.rb"
(expand-file-name "config" dir))) dir (let ((new-dir
(expand-file-name (file-name-as-directory "..") dir))) (unless
(string-match "\\(^[[:alpha:]]:/$\\|^/[^/]+:/?$\\|^/$\\)" dir)
(rinari-root new-dir))))
  rinari-root()
  (expand-file-name "script" (rinari-root))
  (file-name-as-directory (expand-file-name "script" (rinari-root)))
  (concat (file-name-as-directory (expand-file-name "script"
(rinari-root))))
  rinari-script-path()
  (let* ((default-directory (rinari-root)) (script
(rinari-script-path)) (command (expand-file-name (if (file-exists-p
(expand-file-name "console" script)) "console" "rails console")
script))) (if rinari-rails-env (setq command (concat command " "
rinari-rails-env))) (setq command (if edit-cmd-args (read-string "Run
Ruby: " (concat command " ")) command)) (run-ruby command)
(save-excursion (set-buffer "*ruby*") (set (make-local-variable
(quote inf-ruby-prompt-pattern)) "^\\(j?ruby[^> ]+\\|J?RUBY[^> ]+\\|
irb([^> ]+\\)?\\( ?:[0-9]+\\)* ?>>? ") (set (make-local-variable
(quote inf-ruby-first-prompt-pattern)) inf-ruby-prompt-pattern)
(rinari-launch)))
  rinari-console(nil)
  call-interactively(rinari-console t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

I was running it in the dired buffer of the directory that contains
my project. I also tried running rinari-console when the buffer is
open on a Rakefile in the project.

I'm running Emacs 24 now, but when I first encountered this problem,
I was running Emacs23.

From describe-variable:

default-directory is a variable defined in `C source code'.
Its value is "/home/duncan/git/Scraper-Node/"
Local in buffer Rakefile; global value is nil
  Automatically becomes buffer-local when set in any fashion.
  This variable is safe as a file local variable if its value
  satisfies the predicate `stringp'.
Documentation:
Name of default directory of current buffer.  Should end with
slash.
To interactively change the default directory, use command `cd'.

Duncan.

(void-variable compilation-save-buffers-predicate)

HI!

I'm trying to install rinari under GNU Emacs 23.4.1.

I get the following error when I run M-x rinari-rake and feed it 'test' in my rails project directory:

Debugger entered--Lisp error: (void-variable compilation-save-buffers-predicate)
(save-some-buffers (not compilation-ask-about-save) compilation-save-buffers-predicate)
ad-Orig-ruby-compilation-do("rake" ("rake" "test"))
(setq ad-return-value (ad-Orig-ruby-compilation-do name cmdlist))
(let ((default-directory ...)) (setq ad-return-value (ad-Orig-ruby-compilation-do name cmdlist)) (rinari-launch))
(let (ad-return-value) (let (...) (setq ad-return-value ...) (rinari-launch)) ad-return-value)
ruby-compilation-do("rake" ("rake" "test"))
(pop-to-buffer (ruby-compilation-do "rake" (cons ruby-compilation-executable-rake ...)))
(let* ((task ...) (rake-args ...)) (pop-to-buffer (ruby-compilation-do "rake" ...)))
ad-Orig-ruby-compilation-rake(nil nil nil)
(setq ad-return-value (ad-Orig-ruby-compilation-rake edit task env-vars))
(let ((default-directory ...)) (setq ad-return-value (ad-Orig-ruby-compilation-rake edit task env-vars)) (rinari-launch))
(let (ad-return-value) (let (...) (setq ad-return-value ...) (rinari-launch)) ad-return-value)
ruby-compilation-rake(nil nil nil)
rinari-rake(nil)
call-interactively(rinari-rake t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)

void-variable rinari-find-model

I grabbed rinari from git and did exactly what manual suggested:

 git clone git://github.com/eschulte/rinari.git
 cd rinari
 git submodule init
 git submodule update

but rinari fails to start up, giving this output when emacs is started with --debug-init:

Debugger entered--Lisp error: (void-variable rinari-find-model)
  (defjump rinari-find-model (("app/controllers/\\1_controller.rb#\\2$" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) rinari-root "Go to the most logical model given the current location" (quote (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))) (quote ruby-add-log-current-method))
  eval((defjump rinari-find-model (("app/controllers/\\1_controller.rb#\\2$" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) rinari-root "Go to the most logical model given the current location" (quote (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))) (quote ruby-add-log-current-method)))
  (let ((name (first type)) (specs (third type)) (make (fourth type))) (eval (\` (defjump (\, (intern (format "rinari-find-%S" name))) (\, specs) rinari-root (\, (format "Go to the most logical %S given the current location" name)) (\, (if make (\` (quote ...)))) (quote ruby-add-log-current-method)))))
  (lambda (type) (let ((name (first type)) (specs (third type)) (make (fourth type))) (eval (\` (defjump (\, (intern (format "rinari-find-%S" name))) (\, specs) rinari-root (\, (format "Go to the most logical %S given the current location" name)) (\, (if make (\` ...))) (quote ruby-add-log-current-method))))))((model "m" (("app/controllers/\\1_controller.rb#\\2$" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))))
  mapcar((lambda (type) (let ((name (first type)) (specs (third type)) (make (fourth type))) (eval (\` (defjump (\, (intern (format "rinari-find-%S" name))) (\, specs) rinari-root (\, (format "Go to the most logical %S given the current location" name)) (\, (if make (\` ...))) (quote ruby-add-log-current-method)))))) ((model "m" (("app/controllers/\\1_controller.rb#\\2$" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))) (controller "c" (("app/models/\\1.rb" . "app/controllers/\\1_controller.rb") ("app/views/\\1/\\2\\..*" . "app/controllers/\\1_controller.rb#\\2") ("app/helpers/\\1_helper.rb" . "app/controllers/\\1_controller.rb") ("db/migrate/.*create_\\1.rb" . "app/controllers/\\1_controller.rb") ("spec/models/\\1_spec.rb" . "app/controllers/\\1_controller.rb") ("spec/controllers/\\1_spec.rb" . "app/controllers/\\1.rb") ("spec/views/\\1/\\2\\.*_spec.rb" . "app/controllers/\\1_controller.rb#\\2") ("spec/fixtures/\\1.yml" . "app/controllers/\\1_controller.rb") ("test/functional/\\1_test.rb#test_\\2$" . "app/controllers/\\1.rb#\\2") ("test/functional/\\1_test.rb" . "app/controllers/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/controllers/\\1_controller.rb#\\2") ("test/unit/\\1_test.rb" . "app/controllers/\\1_controller.rb") ("test/fixtures/\\1.yml" . "app/controllers/\\1_controller.rb") (t . "app/controllers/")) (lambda (path) (rinari-generate "controller" (and (string-match ".*/\\(.+?\\)_controller.rb" path) (match-string 1 path))))) (view "v" (("app/models/\\1.rb" . "app/views/\\1/.*") ((lambda nil (let* ((raw-file ...) (file ...) (raw-method ...) (method ...)) (if (and file method) (rinari-follow-controller-and-action file method)))) . "app/views/\\1/\\2.*") ("app/controllers/\\1_controller.rb" . "app/views/\\1/.*") ("app/helpers/\\1_helper.rb" . "app/views/\\1/.*") ("db/migrate/.*create_\\1.rb" . "app/views/\\1/.*") ("spec/models/\\1_spec.rb" . "app/views/\\1/.*") ("spec/controllers/\\1_spec.rb" . "app/views/\\1/.*") ("spec/views/\\1/\\2_spec.rb" . "app/views/\\1/\\2.*") ("spec/fixtures/\\1.yml" . "app/views/\\1/.*") ("test/functional/\\1_controller_test.rb" . "app/views/\\1/.*") ("test/unit/\\1_test.rb#test_\\2$" . "app/views/\\1/_?\\2.*") ("test/fixtures/\\1.yml" . "app/views/\\1/.*") (t . "app/views/.*")) t) (test "t" (("app/models/\\1.rb#\\2$" . "test/unit/\\1_test.rb#test_\\2") ("app/controllers/\\1.rb#\\2$" . "test/functional/\\1_test.rb#test_\\2") ("app/views/\\1/_?\\2\\..*" . "test/functional/\\1_controller_test.rb#test_\\2") ("app/helpers/\\1_helper.rb" . "test/functional/\\1_controller_test.rb") ("db/migrate/.*create_\\1.rb" . "test/unit/\\1_test.rb") ("test/functional/\\1_controller_test.rb" . "test/unit/\\1_test.rb") ("test/unit/\\1_test.rb" . "test/functional/\\1_controller_test.rb") (t . "test/.*")) t) (rspec "r" (("app/\\1\\.rb" . "spec/\\1_spec.rb") ("app/\\1$" . "spec/\\1_spec.rb") ("spec/views/\\1_spec.rb" . "app/views/\\1") ("spec/\\1_spec.rb" . "app/\\1.rb") (t . "spec/.*")) t) (fixture "x" (("app/models/\\1.rb" . "test/fixtures/\\1.yml") ("app/controllers/\\1_controller.rb" . "test/fixtures/\\1.yml") ("app/views/\\1/.*" . "test/fixtures/\\1.yml") ("app/helpers/\\1_helper.rb" . "test/fixtures/\\1.yml") ("db/migrate/.*create_\\1.rb" . "test/fixtures/\\1.yml") ("spec/models/\\1_spec.rb" . "test/fixtures/\\1.yml") ("spec/controllers/\\1_controller_spec.rb" . "test/fixtures/\\1.yml") ("spec/views/\\1/.*" . "test/fixtures/\\1.yml") ("test/functional/\\1_controller_test.rb" . "test/fixtures/\\1.yml") ("test/unit/\\1_test.rb" . "test/fixtures/\\1.yml") (t . "test/fixtures/")) t) (rspec-fixture "z" (("app/models/\\1.rb" . "spec/fixtures/\\1.yml") ("app/controllers/\\1_controller.rb" . "spec/fixtures/\\1.yml") ("app/views/\\1/.*" . "spec/fixtures/\\1.yml") ("app/helpers/\\1_helper.rb" . "spec/fixtures/\\1.yml") ("db/migrate/.*create_\\1.rb" . "spec/fixtures/\\1.yml") ("spec/models/\\1_spec.rb" . "spec/fixtures/\\1.yml") ("spec/controllers/\\1_controller_spec.rb" . "spec/fixtures/\\1.yml") ("spec/views/\\1/.*" . "spec/fixtures/\\1.yml") ("test/functional/\\1_controller_test.rb" . "spec/fixtures/\\1.yml") ("test/unit/\\1_test.rb" . "spec/fixtures/\\1.yml") (t . "spec/fixtures/")) t) (helper "h" (("app/models/\\1.rb" . "app/helpers/\\1_helper.rb") ("app/controllers/\\1_controller.rb" . "app/helpers/\\1_helper.rb") ("app/views/\\1/.*" . "app/helpers/\\1_helper.rb") ("app/helpers/\\1_helper.rb" . "app/helpers/\\1_helper.rb") ("db/migrate/.*create_\\1.rb" . "app/helpers/\\1_helper.rb") ("spec/models/\\1_spec.rb" . "app/helpers/\\1_helper.rb") ("spec/controllers/\\1_spec.rb" . "app/helpers/\\1_helper.rb") ("spec/views/\\1/.*" . "app/helpers/\\1_helper.rb") ("test/functional/\\1_controller_test.rb" . "app/helpers/\\1_helper.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/helpers/\\1_helper.rb#\\2") ("test/unit/\\1_test.rb" . "app/helpers/\\1_helper.rb") (t . "app/helpers/")) t) (migration "i" (("app/controllers/\\1_controller.rb" . "db/migrate/.*create_\\1.rb") ("app/views/\\1/.*" . "db/migrate/.*create_\\1.rb") ("app/helpers/\\1_helper.rb" . "db/migrate/.*create_\\1.rb") ("app/models/\\1.rb" . "db/migrate/.*create_\\1.rb") ("spec/models/\\1_spec.rb" . "db/migrate/.*create_\\1.rb") ("spec/controllers/\\1_spec.rb" . "db/migrate/.*create_\\1.rb") ("spec/views/\\1/.*" . "db/migrate/.*create_\\1.rb") ("test/functional/\\1_controller_test.rb" . "db/migrate/.*create_\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "db/migrate/.*create_\\1.rb#\\2") ("test/unit/\\1_test.rb" . "db/migrate/.*create_\\1.rb") (t . "db/migrate/")) (lambda (path) (rinari-generate "migration" (and (string-match ".*create_\\(.+?\\).rb" path) (match-string 1 path))))) (cells "C" (("app/cells/\\1_cell.rb" . "app/cells/\\1/.*") ("app/cells/\\1/\\2.*" . "app/cells/\\1_cell.rb#\\2") (t . "app/cells/")) (lambda (path) (rinari-generate "cells" (and (string-match ".*/\\(.+?\\)_cell.rb" path) (match-string 1 path))))) (features "F" ((t . "features/.*feature")) nil) (steps "S" ((t . "features/step_definitions/.*")) nil) (environment "e" ((t . "config/environments/")) nil) (application "a" ((t . "config/application.rb")) nil) (configuration "n" ((t . "config/")) nil) (script "s" ((t . "script/")) nil) (lib "l" ((t . "lib/")) nil) (log "o" ((t . "log/")) nil) (worker "w" ((t . "lib/workers/")) nil) (public "p" ((t . "public/")) nil) (stylesheet "y" ((t . "public/stylesheets/.*") (t . "app/assets/stylesheets/.*")) nil) (sass "Y" ((t . "public/stylesheets/sass/.*") (t . "app/stylesheets/.*")) nil) (javascript "j" ((t . "public/javascripts/.*") (t . "app/assets/javascripts/.*")) nil) (plugin "u" ((t . "vendor/plugins/")) nil) (mailer "M" ((t . "app/mailers/")) nil) (file-in-project "f" ((t . ".*")) nil) (by-context ";" (((lambda nil (let ((path ...) cv) (when (string-match ".*/\\(.+?\\)/\\(.+?\\)\\..*" path) (setf cv ...) (when ... ... ...)))) . "app/views/\\1/\\2.*")))))
  rinari-apply-jump-schema(((model "m" (("app/controllers/\\1_controller.rb#\\2$" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))) (controller "c" (("app/models/\\1.rb" . "app/controllers/\\1_controller.rb") ("app/views/\\1/\\2\\..*" . "app/controllers/\\1_controller.rb#\\2") ("app/helpers/\\1_helper.rb" . "app/controllers/\\1_controller.rb") ("db/migrate/.*create_\\1.rb" . "app/controllers/\\1_controller.rb") ("spec/models/\\1_spec.rb" . "app/controllers/\\1_controller.rb") ("spec/controllers/\\1_spec.rb" . "app/controllers/\\1.rb") ("spec/views/\\1/\\2\\.*_spec.rb" . "app/controllers/\\1_controller.rb#\\2") ("spec/fixtures/\\1.yml" . "app/controllers/\\1_controller.rb") ("test/functional/\\1_test.rb#test_\\2$" . "app/controllers/\\1.rb#\\2") ("test/functional/\\1_test.rb" . "app/controllers/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/controllers/\\1_controller.rb#\\2") ("test/unit/\\1_test.rb" . "app/controllers/\\1_controller.rb") ("test/fixtures/\\1.yml" . "app/controllers/\\1_controller.rb") (t . "app/controllers/")) (lambda (path) (rinari-generate "controller" (and (string-match ".*/\\(.+?\\)_controller.rb" path) (match-string 1 path))))) (view "v" (("app/models/\\1.rb" . "app/views/\\1/.*") ((lambda nil (let* ((raw-file ...) (file ...) (raw-method ...) (method ...)) (if (and file method) (rinari-follow-controller-and-action file method)))) . "app/views/\\1/\\2.*") ("app/controllers/\\1_controller.rb" . "app/views/\\1/.*") ("app/helpers/\\1_helper.rb" . "app/views/\\1/.*") ("db/migrate/.*create_\\1.rb" . "app/views/\\1/.*") ("spec/models/\\1_spec.rb" . "app/views/\\1/.*") ("spec/controllers/\\1_spec.rb" . "app/views/\\1/.*") ("spec/views/\\1/\\2_spec.rb" . "app/views/\\1/\\2.*") ("spec/fixtures/\\1.yml" . "app/views/\\1/.*") ("test/functional/\\1_controller_test.rb" . "app/views/\\1/.*") ("test/unit/\\1_test.rb#test_\\2$" . "app/views/\\1/_?\\2.*") ("test/fixtures/\\1.yml" . "app/views/\\1/.*") (t . "app/views/.*")) t) (test "t" (("app/models/\\1.rb#\\2$" . "test/unit/\\1_test.rb#test_\\2") ("app/controllers/\\1.rb#\\2$" . "test/functional/\\1_test.rb#test_\\2") ("app/views/\\1/_?\\2\\..*" . "test/functional/\\1_controller_test.rb#test_\\2") ("app/helpers/\\1_helper.rb" . "test/functional/\\1_controller_test.rb") ("db/migrate/.*create_\\1.rb" . "test/unit/\\1_test.rb") ("test/functional/\\1_controller_test.rb" . "test/unit/\\1_test.rb") ("test/unit/\\1_test.rb" . "test/functional/\\1_controller_test.rb") (t . "test/.*")) t) (rspec "r" (("app/\\1\\.rb" . "spec/\\1_spec.rb") ("app/\\1$" . "spec/\\1_spec.rb") ("spec/views/\\1_spec.rb" . "app/views/\\1") ("spec/\\1_spec.rb" . "app/\\1.rb") (t . "spec/.*")) t) (fixture "x" (("app/models/\\1.rb" . "test/fixtures/\\1.yml") ("app/controllers/\\1_controller.rb" . "test/fixtures/\\1.yml") ("app/views/\\1/.*" . "test/fixtures/\\1.yml") ("app/helpers/\\1_helper.rb" . "test/fixtures/\\1.yml") ("db/migrate/.*create_\\1.rb" . "test/fixtures/\\1.yml") ("spec/models/\\1_spec.rb" . "test/fixtures/\\1.yml") ("spec/controllers/\\1_controller_spec.rb" . "test/fixtures/\\1.yml") ("spec/views/\\1/.*" . "test/fixtures/\\1.yml") ("test/functional/\\1_controller_test.rb" . "test/fixtures/\\1.yml") ("test/unit/\\1_test.rb" . "test/fixtures/\\1.yml") (t . "test/fixtures/")) t) (rspec-fixture "z" (("app/models/\\1.rb" . "spec/fixtures/\\1.yml") ("app/controllers/\\1_controller.rb" . "spec/fixtures/\\1.yml") ("app/views/\\1/.*" . "spec/fixtures/\\1.yml") ("app/helpers/\\1_helper.rb" . "spec/fixtures/\\1.yml") ("db/migrate/.*create_\\1.rb" . "spec/fixtures/\\1.yml") ("spec/models/\\1_spec.rb" . "spec/fixtures/\\1.yml") ("spec/controllers/\\1_controller_spec.rb" . "spec/fixtures/\\1.yml") ("spec/views/\\1/.*" . "spec/fixtures/\\1.yml") ("test/functional/\\1_controller_test.rb" . "spec/fixtures/\\1.yml") ("test/unit/\\1_test.rb" . "spec/fixtures/\\1.yml") (t . "spec/fixtures/")) t) (helper "h" (("app/models/\\1.rb" . "app/helpers/\\1_helper.rb") ("app/controllers/\\1_controller.rb" . "app/helpers/\\1_helper.rb") ("app/views/\\1/.*" . "app/helpers/\\1_helper.rb") ("app/helpers/\\1_helper.rb" . "app/helpers/\\1_helper.rb") ("db/migrate/.*create_\\1.rb" . "app/helpers/\\1_helper.rb") ("spec/models/\\1_spec.rb" . "app/helpers/\\1_helper.rb") ("spec/controllers/\\1_spec.rb" . "app/helpers/\\1_helper.rb") ("spec/views/\\1/.*" . "app/helpers/\\1_helper.rb") ("test/functional/\\1_controller_test.rb" . "app/helpers/\\1_helper.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/helpers/\\1_helper.rb#\\2") ("test/unit/\\1_test.rb" . "app/helpers/\\1_helper.rb") (t . "app/helpers/")) t) (migration "i" (("app/controllers/\\1_controller.rb" . "db/migrate/.*create_\\1.rb") ("app/views/\\1/.*" . "db/migrate/.*create_\\1.rb") ("app/helpers/\\1_helper.rb" . "db/migrate/.*create_\\1.rb") ("app/models/\\1.rb" . "db/migrate/.*create_\\1.rb") ("spec/models/\\1_spec.rb" . "db/migrate/.*create_\\1.rb") ("spec/controllers/\\1_spec.rb" . "db/migrate/.*create_\\1.rb") ("spec/views/\\1/.*" . "db/migrate/.*create_\\1.rb") ("test/functional/\\1_controller_test.rb" . "db/migrate/.*create_\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "db/migrate/.*create_\\1.rb#\\2") ("test/unit/\\1_test.rb" . "db/migrate/.*create_\\1.rb") (t . "db/migrate/")) (lambda (path) (rinari-generate "migration" (and (string-match ".*create_\\(.+?\\).rb" path) (match-string 1 path))))) (cells "C" (("app/cells/\\1_cell.rb" . "app/cells/\\1/.*") ("app/cells/\\1/\\2.*" . "app/cells/\\1_cell.rb#\\2") (t . "app/cells/")) (lambda (path) (rinari-generate "cells" (and (string-match ".*/\\(.+?\\)_cell.rb" path) (match-string 1 path))))) (features "F" ((t . "features/.*feature")) nil) (steps "S" ((t . "features/step_definitions/.*")) nil) (environment "e" ((t . "config/environments/")) nil) (application "a" ((t . "config/application.rb")) nil) (configuration "n" ((t . "config/")) nil) (script "s" ((t . "script/")) nil) (lib "l" ((t . "lib/")) nil) (log "o" ((t . "log/")) nil) (worker "w" ((t . "lib/workers/")) nil) (public "p" ((t . "public/")) nil) (stylesheet "y" ((t . "public/stylesheets/.*") (t . "app/assets/stylesheets/.*")) nil) (sass "Y" ((t . "public/stylesheets/sass/.*") (t . "app/stylesheets/.*")) nil) (javascript "j" ((t . "public/javascripts/.*") (t . "app/assets/javascripts/.*")) nil) (plugin "u" ((t . "vendor/plugins/")) nil) (mailer "M" ((t . "app/mailers/")) nil) (file-in-project "f" ((t . ".*")) nil) (by-context ";" (((lambda nil (let ((path ...) cv) (when (string-match ".*/\\(.+?\\)/\\(.+?\\)\\..*" path) (setf cv ...) (when ... ... ...)))) . "app/views/\\1/\\2.*")))))
  eval-buffer(#<buffer  *load*<2>> nil "/home/al3xa/packages/emacs/rinari/rinari.el" nil t)  ; Reading at buffer position 33230
  load-with-code-conversion("/home/al3xa/packages/emacs/rinari/rinari.el" "/home/al3xa/packages/emacs/rinari/rinari.el" nil t)
  require(rinari)
  eval-buffer(#<buffer  *load*> nil "/home/al3xa/.emacs" nil t)  ; Reading at buffer position 21744
  load-with-code-conversion("/home/al3xa/.emacs" "/home/al3xa/.emacs" t t)
  load("~/.emacs" t t)
  #[0 "๏ฟฝ\205\262

Any ideas?

Symbol's value as variable is void: inflection-uncountables

I get this error message in at least 4 different rails projects.

To replicate I choose the user model and simply type C+c ; f c and I receive that error. Again i get it from Controller to Model, or view, or anywhere.

Rails 3.1.2 project. A similar thing happens on Rails 3 and a Rails 2.3 project however.

The interweb said to delete an elc file and it worked for him, however I don't have an elc file in rinari. I install through el-get.

I'd love to fork and fix, but lisp is new to me. I was hoping that it would shoot out a rails type stack error and i could go spelunking but I don't know if there is such a debug tool.

Any thoughts would be appreciated. thanks!

rinari RUNNING rspec tests?

I've started to get a lot of projects using rspec, for some reason.

Does C+c ; t only run test unit, as it seems, or is my version borked on that too?

If there isn't a fork that exists already with it running specs from the /spec directory...somehow, I'd like to tackle it.

i wrote a little late night blog wish list for rinari. While this ticket may not be the right place I'd love to hear where I can pose some of these thoughts so others can add comments too.

http://struct.tumblr.com/post/20880887735/rinari-needs-a-makeover (the title is just link bait, honest :-)

rinari-find-* busted with latest versions on emacs 24.2?

Hello,

Not sure where to start, but latest MELPA versions of jump and rinari , i.e. latest eschulte/rinari and eschulte/jump.el, seem to have busted rinari-find-* methods, at least on emacs 24.2.

When I open test/rails-app/app/controllers/example_controller.rb and call rinari-find-model I get nothing, i.e. I still sit in example_controller.rb buffer instead of expected example.rb. I toggled debug-on-error, but since no error is thrown, there is nothing to debug.

Messages buffer shows:

jump-to-file: app/models/example.rb
Searching /Users/pablo/.emacs.d/personal/pkg/rinari.git-eshulte/test/rails-app/app/models/ ...
/Users/pablo/.emacs.d/personal/pkg/rinari.git-eshulte/test/rails-app/app/models/example.rb
Searching... done.
jump-to-file: app/models/example.rb
Searching /Users/pablo/.emacs.d/personal/pkg/rinari.git-eshulte/test/rails-app/app/models/ ...
/Users/pablo/.emacs.d/personal/pkg/rinari.git-eshulte/test/rails-app/app/models/example.rb
Searching... done.
jump-to-file: app/models/
Searching /Users/pablo/.emacs.d/personal/pkg/rinari.git-eshulte/test/rails-app/app/models/ ...
/Users/pablo/.emacs.d/personal/pkg/rinari.git-eshulte/test/rails-app/app/models/example.rb
Searching... done.

In hail-mary approach to debugging, I added the following in the body of jump-to-file (jump.el):

(message "jump-to-file: %s" file) 

but I can't figure out what's going wrong. What's busted? The jump schema for model? Any pointers would be appreciated.

Much obliged,

Pawel

rinari-web-server doesn't work with latest version of ruby-compilation-mode

rinari-web-server fails with error (wrong-type-argument stringp nil) since the latest update to ruby-compilation-mode (I tried with versions from MELPA and from Marmalade, and they all failed). At first I thought it was a problem with my configuration (maybe a conflict with rvm.el), but the same error happens with a vanilla emacs install. Here's the backtrace I got on a vanilla emacs install:

Debugger entered--Lisp error: (wrong-type-argument stringp nil) set-buffer(nil) (save-current-buffer (set-buffer existing-buffer) (setq default-directory this-dir)) (let ((this-dir default-directory) (existing-buffer (get-buffer (concat "*" name "*")))) (save-current-buffer (set-buffer existing-buffer) (setq default-directory this-dir))) ad-Orig-ruby-compilation-do("server" ("ruby" "/usr/bin/rails" "server")) ruby-compilation-do("server" ("ruby" "/usr/bin/rails" "server")) (pop-to-buffer (ruby-compilation-do name cmdlist)) (let ((name (or name (file-name-nondirectory (car (split-string cmd))))) (cmdlist (append (list ruby-compilation-executable) ruby-options (split-string (expand-file-name cmd))))) (pop-to-buffer (ruby-compilation-do name cmdlist))) ruby-compilation-run("/usr/bin/rails server" nil "server") (let* ((default-directory (rinari-root)) (command (rinari--wrap-rails-command "server"))) (if rinari-rails-env (progn (setq command (concat command " -e " rinari-rails-env)))) (setq command (if edit-cmd-args (read-string "Run Ruby: " (concat command " ")) command)) (ruby-compilation-run command nil "server")) rinari-web-server(nil) call-interactively(rinari-web-server nil nil)

Support for RoR 3

RoR 3 applications aren't working entirely here. Rinari seems to be made for RoR 2 application.

Any plans, already-made efforts on RoR 3 support?

Suggest create file if it does not exists

Is there any way to create a file if rinarni-find-* did not find it? For example, if I am on the file "app/views/accounts/_form.html.haml" and I am looking for the file "app/views/accounts/_form.html.haml_spec.rb" (with C-c ; f r), rinari should suggest create the file if it does not exists.

Variable binding depth exceeds max-specdpl-size

To reproduce, just evaluate: (browse-url-emacs "http://google.com")

It causes post-command-hook to start failing in global-rinari-mode-check-buffers every time I try to M-x or M-:.
Not sure what's the exact problem, maybe you just need to ignore the special and hidden buffers.

Support PRY input from rinari-web-server Ruby Compilation buffer

When I use pry (in lieu of debugger for Ruby 2.0) I run my webserver using rinari-web-server.

When I stop on a Pry breakpoint, I would like to interact with the Pry console inside the rinari compilation buffer.

Thoughts?

I basically want to do M-x send-invisible , without it being invisible.

rinari-find-by-context does nothing

Hi,

I don't know if I am missing something, but rinari-find-by-conext doesn't work

I've installed it from the emacs package.el, and looks like I'm using the newest version, my emacs version is 24-snapshot

rinari-web-server tries to invoke ruby on rbenv bash script shim

I've installed Ruby 2.0.0-p247 and Rails 4.0 via rbenv and gem.
I've installed rinari through package-install in Emacs 24.3.50.1.

When I run M-x rinari-web-server I get the following error:

ruby /home/blah/.rbenv/shims/rails server
ruby: no Ruby script found in input (LoadError)

When I open ~/.rbenv/shims/rails it is a Bash script with execute permission set, so ruby is right. :-)

If I add the following hideous hack to my .emacs file then M-x rinari-web-server works:

(defun rinari--rails-path ()
"/home/blah/.rbenv/versions/2.0.0-p247/bin/rails")

I've read through the code and it looks like the Bash script being executable but not a Ruby file is the problem. Is there a better way of configuring my environment or rinari to handle this, or have I got something badly wrong in my setup?

Thank you.

rinari-console prompt

Hello, the regular expression in rinari-console function might need to incorporate the "new" prompts. For example with RVM the prompt I have is: 1.9.3-p125 :001 >.

The current regular expression does not pick that prompt up, so when I try to recall the previous command via M-p, I don't get the desired response, the cursor is still stuck on the current line with no previous command inserted.

I changed the prompt to this: "^[1-2].[890].[0-9]-p[0-9]+( ?:[0-9]+)* ?>>? " to test it and it started to work. (Added the 'extra digits', just to be 'future proof' what with ruby 2.0.0... )

Can you please consider incorporating the above regexp to the inf-ruby-prompt-pattern in rinari-console function?

Thank you

rinari-web-server fails after fixing issue 42# in Windows platform.

I think this issue is caused by the #42.

In function 'rinari-web-server', it runs (ruby-compilation-run command nil "server")), the command is "ruby c:/dev/scripts/Ruby/first_app/script/rails server" .

In function 'ruby-compilation-run', it runs (ruby-compilation-do name cmdlist), the name is "server", but the cmdlist will be expanded with

("ruby" "c:/dev/scripts/Ruby/first_app/ruby" "c:/dev/scripts/Ruby/first_app/script/rails" "server").

No such "c:/dev/scripts/Ruby/first_app/ruby", it fails.

Also I appended a comment in the issue #42 about the 'rails' in %PATH%, if you have time, please help check it.

Thank you.

namespaced views / controllers / models & rinari-find-*

In projects with a couple of namespaces using rinari-find-* does not currently seem to support jumping to the correct destination file, it just ends up offering a list of all controllers / views instead. For instance, if I have a customer namespace in app/controllers and app/views and want to jump from app/views/customer/home/index.haml to the corresponding controller, its unable to distill the correct destination controller file. Is it possible to make this work and how?

Emacs 24 , inf-ruby mystery

I've installed everything via elpa and it works great... Until I restart emacs and have a "Emacs 24: Cannot open load file, inf-ruby"

But I noticed that if

  • I remove rinari from my init.el
  • reload my conf file
  • then put again rinari
  • M-x load-file .emacs.d/init.el again

It works again. Not a big issue as I almost never close emacs, but what am I missing ?

Warning while I am using Emacs 24!

I am using Ubuntu 12.04 and install my Emacs 24 by emacs-snapshot PPA.
The version is GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2012-07-13 on lychee, modified by Debian
I got a warning while I trying to navigate between the MVC documents.
Warning: flet' is an obsolete function (as of 24.2); Use eithercl-flet' or `cl-letf'.

[fiche request] Add Gemfile into master tree.

When installing on fresh system which doesn't has all Rakefile dependencies, for example by el-get, its fail to error. Please create Gem file with following content:

source 'https://rubygems.org'
gem 'rb-readline'

Now its possible to install with bundle and el-get installer can be fixed too.

Elpa version still giving void-variable rinari-find-model

I see this issue was closed on the git version, but has it been corrected in elpa yet? It has totally crippled my emacs because rinari-launch is called by the dired-hook and the find-file hook and triggers this error.

This just started happening. Here is my backtrace

(defjump rinari-find-model (("app/controllers/\\1_controller.rb#\\2$" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) rinari-root "Go to the most logical model given the current location" (quote (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))) (quote ruby-add-log-current-method)) eval((defjump rinari-find-model (("app/controllers/\\1_controller.rb#\\2$" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2$" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) rinari-root "Go to the most logical model given the current location" (quote (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))) (quote ruby-add-log-current-method))) #[(type) "๏ฟฝ@๏ฟฝ\211๏ฟฝAA)@๏ฟฝ\211๏ฟฝAA)A@๏ฟฝ๏ฟฝ๏ฟฝ\305\306\307\310\311\f\"!๏ฟฝ\312\310\313\f\"\n\205)

Make extensions optional

When finding models for example and you have account.rb, account_observer.rb, etc and you do rinari-find-model you're prompted for a jump, and you need to type the full name. Also failing to do so will raise an error wrong-type-argument stringp nil.

Rakefile references inexistant file

desc "Install info documentation"
  task :install_info => :make_info do
    system "sudo install-info #{DOCDIR}/rinari.info"
  end
end

There's no rinari.info file.

ELPA Confusion

Tried to install rinari from marmalade, but it tells me that I need ruby-mode 1.1.

Marmalade no longer seems to have a ruby-mode.

The version in emacs 24 is 1.0 (http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/lisp/progmodes/ruby-mode.el).

The version in the ruby-lang trunk is 0.9 (http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/misc/ruby-mode.el?annotate=32338)

Is there some secret version that I'm missing?

(FWIW ruby-compilation and inf-ruby in Marmalade also require ruby-mode 1.1)

void-function eruby-nxhtml-mumamo

Hi!

Suppose I have one file opened in an Emacs buffer, then I try to open any view file (*.html.erb) and then Emacs raise this error:

Debugger entered--Lisp error: (void-function eruby-nxhtml-mumamo)
  eruby-nxhtml-mumamo()
  funcall(eruby-nxhtml-mumamo)
  (progn (funcall mode) mode)
  (if mode (progn (funcall mode) mode))
  (when mode (funcall mode) mode)
  (if (and keep-mode-if-same (eq ... ...)) nil (when mode (funcall mode) mode))
  (unless (and keep-mode-if-same (eq ... ...)) (when mode (funcall mode) mode))
  mumamo-ad-set-auto-mode-0(eruby-nxhtml-mumamo nil)
  set-auto-mode-0(eruby-nxhtml-mumamo nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer index.html.erb> "~/proyectos/d-Formacion/app/views/formativos/index.html.erb" nil nil "~/proyectos/d-Formacion/app/views/formativos/index.html.erb" (672650 2049))
  find-file-noselect("/home/israel/proyectos/d-Formacion/app/views/formativos/index.html.erb" nil nil nil)
  find-file("/home/israel/proyectos/d-Formacion/app/views/formativos/index.html.erb")
  (if file (find-file (cdr ...)))
  (let ((file ...)) (if file (find-file ...)))
  jump-select-and-find-file((("_index_mini.html.erb" . "/home/israel/proyectos/d-Formacion/app/views/formativos/_index_mini.html.erb") ("index.html.erb" . "/home/israel/proyectos/d-Formacion/app/views/formativos/index.html.erb") ("index.js.erb" . "/home/israel/proyectos/d-Formacion/app/views/formativos/index.js.erb") ("index.pdf.erb" . "/home/israel/proyectos/d-Formacion/app/views/formativos/pdf/index.pdf.erb")))
  (if (file-exists-p file) (find-file file) (jump-select-and-find-file (jump-remove-unwanted-files ...)))
  (if (and (equal ... file) (file-exists-p file)) (jump-find-file-in-dir (expand-file-name file root)) (if (file-exists-p file) (find-file file) (jump-select-and-find-file ...)))
  (let ((file-cons ...) file-alist) (if (and ... ...) (jump-find-file-in-dir ...) (if ... ... ...)))
  jump-to-file(#("app/views/formativos/index.*" 21 25 (face font-lock-function-name-face fontified t) 25 26 (face font-lock-function-name-face syntax-table nil fontified t)))
  (if (jump-to-file file) (progn (when method ...) t))
  (when (jump-to-file file) (when method (jump-to-method method)) t)
  (let ((file path) method) (when (string-match "^\\(.*\\)#\\(.*\\)$" path) (setf method ...) (setf file ...)) (when (jump-to-file file) (when method ...) t))
  jump-to-path(#("app/views/formativos/index.*" 21 25 (face font-lock-function-name-face fontified t) 25 26 (face font-lock-function-name-face syntax-table nil fontified t)))
  (or (jump-to-path path) (and matches (jump-to-all-inflections spec matches)))
  (not (or (jump-to-path path) (and matches ...)))
  (if (not (or ... ...)) (when make (message ...) (let ... ... ...)) t)
  (let ((path ...)) (if (not ...) (when make ... ...) t))
  (if (functionp spec) (eval (list spec matches)) (let (...) (if ... ... t)))
  jump-to("app/views/\\1/\\2.*" ("formativos" #("index" 0 4 (face font-lock-function-name-face fontified t) 4 5 (face font-lock-function-name-face syntax-table nil fontified t))) nil)
  (cond ((equal t matches) (jump-to ... nil ...)) ((consp matches) (jump-to ... matches ...)))
  (and (setf matches (jump-from ...)) (cond (... ...) (... ...)))
  (not (and (setf matches ...) (cond ... ...)))
  (progn (setq spec (car --cl-var--)) (not (and ... ...)))
  (and (consp --cl-var--) (progn (setq spec ...) (not ...)))
  (while (and (consp --cl-var--) (progn ... ...)) (setq --cl-var-- (cdr --cl-var--)))
  (let* ((--cl-var-- ...) (spec nil)) (while (and ... ...) (setq --cl-var-- ...)) nil)
  (catch (quote --cl-block-nil--) (let* (... ...) (while ... ...) nil))
  (cl-block-wrapper (catch (quote --cl-block-nil--) (let* ... ... nil)))
  (block nil (let* (... ...) (while ... ...) nil))
  (loop for spec in (quote (... ... ... ... ... ... ... ... ... ... ... ... ...)) until (and (setf matches ...) (cond ... ...)))
  (let ((root ...) (method-command ...) matches) (loop for spec in (quote ...) until (and ... ...)))
  rinari-find-view(nil)
  call-interactively(rinari-find-view nil nil)

I don't know about emacs mode internals, but it could be a bug.
If you need more info please ask me.

open any c++ file, rinari willl always be launch

It's because the find-file-hook. Here is your code.

;;;###autoload
(defvar rinari-major-modes
  (if (boundp 'rinari-major-modes)
      rinari-major-modes
    (list 'find-file-hook 'mumamo-after-change-major-mode-hook 'dired-mode-hook))
  "Major Modes from which to launch Rinari.")

Don't use submodule for inf-ruby anymore ?

Rinari repository use an old /inf-ruby submodule/. And Emacs add it in =load-path=.
You can check this with this steps:

  1. =[M-x inf-ruby]=

  2. =[M-x find-library RET inf-ruby]= :: find the loaded inf-ruby library.

  3. =[M-x pwd]= :: check out current inf-ruby path.

    I report an issue to inf-ruby repository at [[https://github.com/nonsequitur/inf-ruby/issues/48][here]].
    And two relative issue are [[https://github.com/nonsequitur/inf-ruby/issues/46][here1]] and [[https://github.com/dimitri/el-get/issues/1622][here2]].

Zeus support

It would be nice if rinari could support zeus for running scripts and console. Actually it should be easy. You just check if the .zeus.sock file exists in the rails directory. I commited something like this to rails-mode. If you want I can write something similar to rinari.

Pry error

I use Pry for debuging, but M-p dosnt work for me.

Gemfile does not be opened using Ruby-mode

When I open a Gemfile I expect that the buffer where it will be opened has actived Ruby syntax and Rinari minor mode. But it only has rinari-mode actived.

Is that ok?

"apply: Spawning child process: invalid argument" error when run rinari-console in Windows emacs 24.

Run rinari-console in Windows emacs 24, the run command should be:

(run-ruby "d:/dev/scripts/Ruby/blog/script/rails console")

It returns:

apply: Spawning child process: invalid argument

My "M-x inf-ruby" work correctly. It can be launched.

The file "d:/dev/scripts/Ruby/blog/script/rails" context is following. I have the cygwin path in the exec-path.

#!/usr/bin/env ruby.exe
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.

APP_PATH = File.expand_path('../../config/application',  __FILE__)
require File.expand_path('../../config/boot',  __FILE__)
require 'rails/commands'

Rinari Console doesn't take into account rbenv

When I try to run rinari-console, I keep getting errors about certain gems not being installed. If I run 'bundle install' ( from eshell or from a seperate terminal window ), rinari-console continues to complain about the missing gems.

What really confounds me is that rinari-web-server runs fine without any issues.

Is there any way to get rinari-console to take into account the local rbenv environment, or am I out of luck?

goto partial doesn't work with a render "something"

What i mean is that the regexp is hardcoded to look for render :partial however, new advances in rails tech allow us to just say render 'something' and it basically defaults to looking for a partial.

All this code in is erb tags (or haml i guess) and I tried a regexp in my copy, but haven't got it yet... so i thought i'd announce a fix/pull request, prior to the fix being made :-)

thanks.

rinari-console : Wrong number of arguments

Running rinari-console yields the following error. Can anyone point me in the right direction to start debugging this?

Wrong number of arguments: (lambda (cmd) "Run an inferior Ruby process, input and output via buffer *ruby*.
If there is a process already running in `*ruby*', switch to that buffer.
With argument, allows you to edit the command line (default is value
of `ruby-program-name').  Runs the hooks `inferior-ruby-mode-hook'
(after the `comint-mode-hook' is run).
(Type \\[describe-mode] in the process buffer for a list of commands.)" (interactive (list (if current-prefix-arg (read-string "Run Ruby: " ruby-program-name) ruby-program-name))) (if (not (comint-check-\
proc "*ruby*")) (let ((cmdlist (ruby-args-to-list cmd))) (set-buffer (apply (quote make-comint) "ruby" (car cmdlist) nil (cdr cmdlist))) (inferior-ruby-mode))) (setq ruby-program-name cmd) (setq ruby-buf\
fer "*ruby*") (pop-to-buffer "*ruby*")), 2

ruby-compilation using wrong ruby version

First, I'm pretty sure this has to be with some of my config because nobody is reporting it but it's driving me crazy so here it goes:

Environment description:
OS: OSX 10.8.3.
Emacs version 24.3.50.1.
Rinari is installed via el-get.
I use rbenv to manage ruby versions, but mostly I used the global version which is set to 1.9.3-p392.
I've setup Emacs exec-path to "/Users/diego/.rbenv/shims" "/Users/diego/.rbenv/bin" "/usr/local/bin" "/usr/local/sbin" "/bin" "/sbin" "/usr/bin" "/usr/sbin" "/opt/local/bin" "/opt/local/sbin" so rbenv shims and ruby versions should take precedence over the default ruby installation that comes with OSX.
I use bundler to manage gems.

Problem:
When I tried to start a rails webserver via rinari-webserver I get an error

-*- mode: ruby-compilation; default-directory: "~/Documents/workspaces/rails3-project/" -*-
RubyComp started at Mon May 13 12:38:12

ruby /Users/diego/Documents/workspaces/rails3-project/script/rails server
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- bundler/setup (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Users/diego/Documents/workspaces/rails3-project/config/boot.rb:6
    from /Users/diego/Documents/workspaces/rails3-project/script/rails:5:in `require'
    from /Users/diego/Documents/workspaces/rails3-project/script/rails:5

RubyComp exited abnormally with code 1 at Mon May 13 12:38:13

Same goes for rinari-rake. But rinari-console works just fine.

So it seems ruby-compilation ignores my exec-path and goes looking for the default OSX installation.

Thank you for taking time reading this and for your awesome work in Rinari.

rinari doesn't run with the latest jump


Debugger entered--Lisp error: (wrong-type-argument characterp \,)
  concat((\, (format "Go to the most logical %S given the current location" name)) "\n\nautomatically created by `defjump'")
  (list (quote defun) name (quote (&optional create)) (concat doc "\n\nautomatically created by `defjump'") (quote (interactive "P")) (list (quote let) (backquote-list* (list (quote root) (if (functionp root) (root) root)) (list (quote method-command) (or method-command (quote which-function))) (quote (matches))) (list (quote loop) (quote for) (quote spec) (quote in) (list (quote quote) (mapcar (lambda (spec) (if (stringp ...) (if ... ... ...) spec)) specs)) (quote until) (list (quote and) (quote (setf matches (jump-from (car spec)))) (list (quote cond) (list (quote (equal t matches)) (list (quote jump-to) (quote ...) nil (list ... ... make))) (list (quote (consp matches)) (list (quote jump-to) (quote ...) (quote matches) (list ... ... make))))))))
  (\` (defun (\, name) (&optional create) (\, (concat doc "\n\nautomatically created by `defjump'")) (interactive "P") (let ((root (\, (if (functionp root) (root) root))) (method-command (\, (or method-command (quote which-function)))) matches) (loop for spec in (quote (\, (mapcar (lambda ... ...) specs))) until (and (setf matches (jump-from (car spec))) (cond ((equal t matches) (jump-to ... nil ...)) ((consp matches) (jump-to ... matches ...))))))))
  (lambda (name specs root &optional doc make method-command) "Define NAME as a function with behavior determined by SPECS.\nSPECS should be a list of cons cells of the form\n\n   (jump-from-spec . jump-to-spec)\n\nNAME will then try subsequent jump-from-specs until one succeeds,\nat which point any resulting match information, along with the\nrelated jump-to-spec will be used to jump to the intended buffer.\nSee `jump-to' and `jump-from' for information on spec\nconstruction.\n\nROOT should specify the root of the project in which all jumps\ntake place, it can be either a string directory path, or a\nfunction returning\n\nOptional argument DOC specifies the documentation of the\nresulting function.\n\nOptional argument MAKE can be used to specify that missing files\nshould be created.  If MAKE is a function then it will be called\nwith the file path as it's only argument.  After possibly calling\nMAKE `find-file' will be used to open the path.\n\nOptional argument METHOD-COMMAND overrides the function used to\nfind the current method which defaults to `which-function'." (\` (defun (\, name) (&optional create) (\, (concat doc "\n\nautomatically created by `defjump'")) (interactive "P") (let ((root (\, (if ... ... root))) (method-command (\, (or method-command ...))) matches) (loop for spec in (quote (\, (mapcar ... specs))) until (and (setf matches (jump-from ...)) (cond (... ...) (... ...))))))))((quote (\, (read (format "rinari-find-%S" name)))) (quote (\, specs)) (quote rinari-root) (\, (format "Go to the most logical %S given the current location" name)) (\, (if make (\` (quote (\, make))))) (quote ruby-add-log-current-method))
  (defjump (quote (\, (read (format "rinari-find-%S" name)))) (quote (\, specs)) (quote rinari-root) (\, (format "Go to the most logical %S given the current location" name)) (\, (if make (\` (quote (\, make))))) (quote ruby-add-log-current-method))
  (let ((name (first type)) (specs (third type)) (make (fourth type))) (defjump (quote (\, (read (format "rinari-find-%S" name)))) (quote (\, specs)) (quote rinari-root) (\, (format "Go to the most logical %S given the current location" name)) (\, (if make (\` (quote (\, make))))) (quote ruby-add-log-current-method)))
  (lambda (type) (let ((name (first type)) (specs (third type)) (make (fourth type))) (defjump (quote (\, (read (format "rinari-find-%S" name)))) (quote (\, specs)) (quote rinari-root) (\, (format "Go to the most logical %S given the current location" name)) (\, (if make (\` (quote (\, make))))) (quote ruby-add-log-current-method))))((model "m" (("app/controllers/\\1_controller.rb#\\2" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))))
  mapcar((lambda (type) (let ((name (first type)) (specs (third type)) (make (fourth type))) (defjump (quote (\, (read (format "rinari-find-%S" name)))) (quote (\, specs)) (quote rinari-root) (\, (format "Go to the most logical %S given the current location" name)) (\, (if make (\` (quote (\, make))))) (quote ruby-add-log-current-method)))) ((model "m" (("app/controllers/\\1_controller.rb#\\2" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))) (controller "c" (("app/models/\\1.rb" . "app/controllers/\\1_controller.rb") ("app/views/\\1/\\2\\..*" . "app/controllers/\\1_controller.rb#\\2") ("app/helpers/\\1_helper.rb" . "app/controllers/\\1_controller.rb") ("db/migrate/.*create_\\1.rb" . "app/controllers/\\1_controller.rb") ("spec/models/\\1_spec.rb" . "app/controllers/\\1_controller.rb") ("spec/controllers/\\1_spec.rb" . "app/controllers/\\1.rb") ("spec/views/\\1/\\2\\.*_spec.rb" . "app/controllers/\\1_controller.rb#\\2") ("spec/fixtures/\\1.yml" . "app/controllers/\\1_controller.rb") ("test/functional/\\1_test.rb#test_\\2" . "app/controllers/\\1.rb#\\2") ("test/functional/\\1_test.rb" . "app/controllers/\\1.rb") ("test/unit/\\1_test.rb#test_\\2" . "app/controllers/\\1_controller.rb#\\2") ("test/unit/\\1_test.rb" . "app/controllers/\\1_controller.rb") ("test/fixtures/\\1.yml" . "app/controllers/\\1_controller.rb") (t . "app/controllers/")) (lambda (path) (rinari-generate "controller" (and (string-match ".*/\\(.+?\\)_controller.rb" path) (match-string 1 path))))) (view "v" (("app/models/\\1.rb" . "app/views/\\1/.*") ((lambda nil (let* ((raw-file ...) (file ...) (raw-method ...) (method ...)) (if (and file method) (rinari-follow-controller-and-action file method)))) . "app/views/\\1/\\2.*") ("app/controllers/\\1_controller.rb" . "app/views/\\1/.*") ("app/helpers/\\1_helper.rb" . "app/views/\\1/.*") ("db/migrate/.*create_\\1.rb" . "app/views/\\1/.*") ("spec/models/\\1_spec.rb" . "app/views/\\1/.*") ("spec/controllers/\\1_spec.rb" . "app/views/\\1/.*") ("spec/views/\\1/\\2_spec.rb" . "app/views/\\1/\\2.*") ("spec/fixtures/\\1.yml" . "app/views/\\1/.*") ("test/functional/\\1_controller_test.rb" . "app/views/\\1/.*") ("test/unit/\\1_test.rb#test_\\2" . "app/views/\\1/_?\\2.*") ("test/fixtures/\\1.yml" . "app/views/\\1/.*") (t . "app/views/.*")) t) (test "t" (("app/models/\\1.rb#\\2" . "test/unit/\\1_test.rb#test_\\2") ("app/controllers/\\1.rb#\\2" . "test/functional/\\1_test.rb#test_\\2") ("app/views/\\1/_?\\2\\..*" . "test/functional/\\1_controller_test.rb#test_\\2") ("app/helpers/\\1_helper.rb" . "test/functional/\\1_controller_test.rb") ("db/migrate/.*create_\\1.rb" . "test/unit/\\1_test.rb") ("test/functional/\\1_controller_test.rb" . "test/unit/\\1_test.rb") ("test/unit/\\1_test.rb" . "test/functional/\\1_controller_test.rb") (t . "test/.*")) t) (rspec "r" (("app/\\1\\.rb" . "spec/\\1_spec.rb") ("app/\\1" . "spec/\\1_spec.rb") ("spec/views/\\1_spec.rb" . "app/views/\\1") ("spec/\\1_spec.rb" . "app/\\1.rb") (t . "spec/.*")) t) (fixture "x" (("app/models/\\1.rb" . "test/fixtures/\\1.yml") ("app/controllers/\\1_controller.rb" . "test/fixtures/\\1.yml") ("app/views/\\1/.*" . "test/fixtures/\\1.yml") ("app/helpers/\\1_helper.rb" . "test/fixtures/\\1.yml") ("db/migrate/.*create_\\1.rb" . "test/fixtures/\\1.yml") ("spec/models/\\1_spec.rb" . "test/fixtures/\\1.yml") ("spec/controllers/\\1_controller_spec.rb" . "test/fixtures/\\1.yml") ("spec/views/\\1/.*" . "test/fixtures/\\1.yml") ("test/functional/\\1_controller_test.rb" . "test/fixtures/\\1.yml") ("test/unit/\\1_test.rb" . "test/fixtures/\\1.yml") (t . "test/fixtures/")) t) (rspec-fixture "z" (("app/models/\\1.rb" . "spec/fixtures/\\1.yml") ("app/controllers/\\1_controller.rb" . "spec/fixtures/\\1.yml") ("app/views/\\1/.*" . "spec/fixtures/\\1.yml") ("app/helpers/\\1_helper.rb" . "spec/fixtures/\\1.yml") ("db/migrate/.*create_\\1.rb" . "spec/fixtures/\\1.yml") ("spec/models/\\1_spec.rb" . "spec/fixtures/\\1.yml") ("spec/controllers/\\1_controller_spec.rb" . "spec/fixtures/\\1.yml") ("spec/views/\\1/.*" . "spec/fixtures/\\1.yml") ("test/functional/\\1_controller_test.rb" . "spec/fixtures/\\1.yml") ("test/unit/\\1_test.rb" . "spec/fixtures/\\1.yml") (t . "spec/fixtures/")) t) (helper "h" (("app/models/\\1.rb" . "app/helpers/\\1_helper.rb") ("app/controllers/\\1_controller.rb" . "app/helpers/\\1_helper.rb") ("app/views/\\1/.*" . "app/helpers/\\1_helper.rb") ("app/helpers/\\1_helper.rb" . "app/helpers/\\1_helper.rb") ("db/migrate/.*create_\\1.rb" . "app/helpers/\\1_helper.rb") ("spec/models/\\1_spec.rb" . "app/helpers/\\1_helper.rb") ("spec/controllers/\\1_spec.rb" . "app/helpers/\\1_helper.rb") ("spec/views/\\1/.*" . "app/helpers/\\1_helper.rb") ("test/functional/\\1_controller_test.rb" . "app/helpers/\\1_helper.rb") ("test/unit/\\1_test.rb#test_\\2" . "app/helpers/\\1_helper.rb#\\2") ("test/unit/\\1_test.rb" . "app/helpers/\\1_helper.rb") (t . "app/helpers/")) t) (migration "i" (("app/controllers/\\1_controller.rb" . "db/migrate/.*create_\\1.rb") ("app/views/\\1/.*" . "db/migrate/.*create_\\1.rb") ("app/helpers/\\1_helper.rb" . "db/migrate/.*create_\\1.rb") ("app/models/\\1.rb" . "db/migrate/.*create_\\1.rb") ("spec/models/\\1_spec.rb" . "db/migrate/.*create_\\1.rb") ("spec/controllers/\\1_spec.rb" . "db/migrate/.*create_\\1.rb") ("spec/views/\\1/.*" . "db/migrate/.*create_\\1.rb") ("test/functional/\\1_controller_test.rb" . "db/migrate/.*create_\\1.rb") ("test/unit/\\1_test.rb#test_\\2" . "db/migrate/.*create_\\1.rb#\\2") ("test/unit/\\1_test.rb" . "db/migrate/.*create_\\1.rb") (t . "db/migrate/")) (lambda (path) (rinari-generate "migration" (and (string-match ".*create_\\(.+?\\).rb" path) (match-string 1 path))))) (cells "C" (("app/cells/\\1_cell.rb" . "app/cells/\\1/.*") ("app/cells/\\1/\\2.*" . "app/cells/\\1_cell.rb#\\2") (t . "app/cells/")) (lambda (path) (rinari-generate "cells" (and (string-match ".*/\\(.+?\\)_cell.rb" path) (match-string 1 path))))) (features "F" ((t . "features/.*feature")) nil) (steps "S" ((t . "features/step_definitions/.*")) nil) (environment "e" ((t . "config/environments/")) nil) (application "a" ((t . "config/application.rb")) nil) (configuration "n" ((t . "config/")) nil) (script "s" ((t . "script/")) nil) (lib "l" ((t . "lib/")) nil) (log "o" ((t . "log/")) nil) (worker "w" ((t . "lib/workers/")) nil) (public "p" ((t . "public/")) nil) (stylesheet "y" ((t . "public/stylesheets/.*") (t . "app/assets/stylesheets/.*")) nil) (sass "Y" ((t . "public/stylesheets/sass/.*") (t . "app/stylesheets/.*")) nil) (javascript "j" ((t . "public/javascripts/.*") (t . "app/assets/javascripts/.*")) nil) (plugin "u" ((t . "vendor/plugins/")) nil) (mailer "M" ((t . "app/mailers/")) nil) (file-in-project "f" ((t . ".*")) nil) (by-context ";" (((lambda nil (let ((path ...) cv) (when (string-match ".*/\\(.+?\\)/\\(.+?\\)\\..*" path) (setf cv ...) (when ... ... ...)))) . "app/views/\\1/\\2.*")))))
  rinari-apply-jump-schema(((model "m" (("app/controllers/\\1_controller.rb#\\2" . "app/models/\\1.rb#\\2") ("app/views/\\1/.*" . "app/models/\\1.rb") ("app/helpers/\\1_helper.rb" . "app/models/\\1.rb") ("db/migrate/.*create_\\1.rb" . "app/models/\\1.rb") ("spec/models/\\1_spec.rb" . "app/models/\\1.rb") ("spec/controllers/\\1_controller_spec.rb" . "app/models/\\1.rb") ("spec/views/\\1/.*" . "app/models/\\1.rb") ("spec/fixtures/\\1.yml" . "app/models/\\1.rb") ("test/functional/\\1_controller_test.rb" . "app/models/\\1.rb") ("test/unit/\\1_test.rb#test_\\2" . "app/models/\\1.rb#\\2") ("test/unit/\\1_test.rb" . "app/models/\\1.rb") ("test/fixtures/\\1.yml" . "app/models/\\1.rb") (t . "app/models/")) (lambda (path) (rinari-generate "model" (and (string-match ".*/\\(.+?\\).rb" path) (match-string 1 path))))) (controller "c" (("app/models/\\1.rb" . "app/controllers/\\1_controller.rb") ("app/views/\\1/\\2\\..*" . "app/controllers/\\1_controller.rb#\\2") ("app/helpers/\\1_helper.rb" . "app/controllers/\\1_controller.rb") ("db/migrate/.*create_\\1.rb" . "app/controllers/\\1_controller.rb") ("spec/models/\\1_spec.rb" . "app/controllers/\\1_controller.rb") ("spec/controllers/\\1_spec.rb" . "app/controllers/\\1.rb") ("spec/views/\\1/\\2\\.*_spec.rb" . "app/controllers/\\1_controller.rb#\\2") ("spec/fixtures/\\1.yml" . "app/controllers/\\1_controller.rb") ("test/functional/\\1_test.rb#test_\\2" . "app/controllers/\\1.rb#\\2") ("test/functional/\\1_test.rb" . "app/controllers/\\1.rb") ("test/unit/\\1_test.rb#test_\\2" . "app/controllers/\\1_controller.rb#\\2") ("test/unit/\\1_test.rb" . "app/controllers/\\1_controller.rb") ("test/fixtures/\\1.yml" . "app/controllers/\\1_controller.rb") (t . "app/controllers/")) (lambda (path) (rinari-generate "controller" (and (string-match ".*/\\(.+?\\)_controller.rb" path) (match-string 1 path))))) (view "v" (("app/models/\\1.rb" . "app/views/\\1/.*") ((lambda nil (let* ((raw-file ...) (file ...) (raw-method ...) (method ...)) (if (and file method) (rinari-follow-controller-and-action file method)))) . "app/views/\\1/\\2.*") ("app/controllers/\\1_controller.rb" . "app/views/\\1/.*") ("app/helpers/\\1_helper.rb" . "app/views/\\1/.*") ("db/migrate/.*create_\\1.rb" . "app/views/\\1/.*") ("spec/models/\\1_spec.rb" . "app/views/\\1/.*") ("spec/controllers/\\1_spec.rb" . "app/views/\\1/.*") ("spec/views/\\1/\\2_spec.rb" . "app/views/\\1/\\2.*") ("spec/fixtures/\\1.yml" . "app/views/\\1/.*") ("test/functional/\\1_controller_test.rb" . "app/views/\\1/.*") ("test/unit/\\1_test.rb#test_\\2" . "app/views/\\1/_?\\2.*") ("test/fixtures/\\1.yml" . "app/views/\\1/.*") (t . "app/views/.*")) t) (test "t" (("app/models/\\1.rb#\\2" . "test/unit/\\1_test.rb#test_\\2") ("app/controllers/\\1.rb#\\2" . "test/functional/\\1_test.rb#test_\\2") ("app/views/\\1/_?\\2\\..*" . "test/functional/\\1_controller_test.rb#test_\\2") ("app/helpers/\\1_helper.rb" . "test/functional/\\1_controller_test.rb") ("db/migrate/.*create_\\1.rb" . "test/unit/\\1_test.rb") ("test/functional/\\1_controller_test.rb" . "test/unit/\\1_test.rb") ("test/unit/\\1_test.rb" . "test/functional/\\1_controller_test.rb") (t . "test/.*")) t) (rspec "r" (("app/\\1\\.rb" . "spec/\\1_spec.rb") ("app/\\1" . "spec/\\1_spec.rb") ("spec/views/\\1_spec.rb" . "app/views/\\1") ("spec/\\1_spec.rb" . "app/\\1.rb") (t . "spec/.*")) t) (fixture "x" (("app/models/\\1.rb" . "test/fixtures/\\1.yml") ("app/controllers/\\1_controller.rb" . "test/fixtures/\\1.yml") ("app/views/\\1/.*" . "test/fixtures/\\1.yml") ("app/helpers/\\1_helper.rb" . "test/fixtures/\\1.yml") ("db/migrate/.*create_\\1.rb" . "test/fixtures/\\1.yml") ("spec/models/\\1_spec.rb" . "test/fixtures/\\1.yml") ("spec/controllers/\\1_controller_spec.rb" . "test/fixtures/\\1.yml") ("spec/views/\\1/.*" . "test/fixtures/\\1.yml") ("test/functional/\\1_controller_test.rb" . "test/fixtures/\\1.yml") ("test/unit/\\1_test.rb" . "test/fixtures/\\1.yml") (t . "test/fixtures/")) t) (rspec-fixture "z" (("app/models/\\1.rb" . "spec/fixtures/\\1.yml") ("app/controllers/\\1_controller.rb" . "spec/fixtures/\\1.yml") ("app/views/\\1/.*" . "spec/fixtures/\\1.yml") ("app/helpers/\\1_helper.rb" . "spec/fixtures/\\1.yml") ("db/migrate/.*create_\\1.rb" . "spec/fixtures/\\1.yml") ("spec/models/\\1_spec.rb" . "spec/fixtures/\\1.yml") ("spec/controllers/\\1_controller_spec.rb" . "spec/fixtures/\\1.yml") ("spec/views/\\1/.*" . "spec/fixtures/\\1.yml") ("test/functional/\\1_controller_test.rb" . "spec/fixtures/\\1.yml") ("test/unit/\\1_test.rb" . "spec/fixtures/\\1.yml") (t . "spec/fixtures/")) t) (helper "h" (("app/models/\\1.rb" . "app/helpers/\\1_helper.rb") ("app/controllers/\\1_controller.rb" . "app/helpers/\\1_helper.rb") ("app/views/\\1/.*" . "app/helpers/\\1_helper.rb") ("app/helpers/\\1_helper.rb" . "app/helpers/\\1_helper.rb") ("db/migrate/.*create_\\1.rb" . "app/helpers/\\1_helper.rb") ("spec/models/\\1_spec.rb" . "app/helpers/\\1_helper.rb") ("spec/controllers/\\1_spec.rb" . "app/helpers/\\1_helper.rb") ("spec/views/\\1/.*" . "app/helpers/\\1_helper.rb") ("test/functional/\\1_controller_test.rb" . "app/helpers/\\1_helper.rb") ("test/unit/\\1_test.rb#test_\\2" . "app/helpers/\\1_helper.rb#\\2") ("test/unit/\\1_test.rb" . "app/helpers/\\1_helper.rb") (t . "app/helpers/")) t) (migration "i" (("app/controllers/\\1_controller.rb" . "db/migrate/.*create_\\1.rb") ("app/views/\\1/.*" . "db/migrate/.*create_\\1.rb") ("app/helpers/\\1_helper.rb" . "db/migrate/.*create_\\1.rb") ("app/models/\\1.rb" . "db/migrate/.*create_\\1.rb") ("spec/models/\\1_spec.rb" . "db/migrate/.*create_\\1.rb") ("spec/controllers/\\1_spec.rb" . "db/migrate/.*create_\\1.rb") ("spec/views/\\1/.*" . "db/migrate/.*create_\\1.rb") ("test/functional/\\1_controller_test.rb" . "db/migrate/.*create_\\1.rb") ("test/unit/\\1_test.rb#test_\\2" . "db/migrate/.*create_\\1.rb#\\2") ("test/unit/\\1_test.rb" . "db/migrate/.*create_\\1.rb") (t . "db/migrate/")) (lambda (path) (rinari-generate "migration" (and (string-match ".*create_\\(.+?\\).rb" path) (match-string 1 path))))) (cells "C" (("app/cells/\\1_cell.rb" . "app/cells/\\1/.*") ("app/cells/\\1/\\2.*" . "app/cells/\\1_cell.rb#\\2") (t . "app/cells/")) (lambda (path) (rinari-generate "cells" (and (string-match ".*/\\(.+?\\)_cell.rb" path) (match-string 1 path))))) (features "F" ((t . "features/.*feature")) nil) (steps "S" ((t . "features/step_definitions/.*")) nil) (environment "e" ((t . "config/environments/")) nil) (application "a" ((t . "config/application.rb")) nil) (configuration "n" ((t . "config/")) nil) (script "s" ((t . "script/")) nil) (lib "l" ((t . "lib/")) nil) (log "o" ((t . "log/")) nil) (worker "w" ((t . "lib/workers/")) nil) (public "p" ((t . "public/")) nil) (stylesheet "y" ((t . "public/stylesheets/.*") (t . "app/assets/stylesheets/.*")) nil) (sass "Y" ((t . "public/stylesheets/sass/.*") (t . "app/stylesheets/.*")) nil) (javascript "j" ((t . "public/javascripts/.*") (t . "app/assets/javascripts/.*")) nil) (plugin "u" ((t . "vendor/plugins/")) nil) (mailer "M" ((t . "app/mailers/")) nil) (file-in-project "f" ((t . ".*")) nil) (by-context ";" (((lambda nil (let ((path ...) cv) (when (string-match ".*/\\(.+?\\)/\\(.+?\\)\\..*" path) (setf cv ...) (when ... ... ...)))) . "app/views/\\1/\\2.*")))))
  eval-buffer(#<buffer  *load*> nil "/Users/dcurtis/.emacs.d/elpa/rinari-20111026/rinari.el" nil t)  ; Reading at buffer position 32350
  load-with-code-conversion("/Users/dcurtis/.emacs.d/elpa/rinari-20111026/rinari.el" "/Users/dcurtis/.emacs.d/elpa/rinari-20111026/rinari.el" nil t)
  command-execute(rinari-minor-mode record)
  smex-read-and-run(("rinari-minor-mode" "eval-current-buffer" "delete-file" "package-list-packages" "auto-fill-mode" "ruby-mode" "what-face" "customize-variable" "load-theme" "hl-line-mode" "customize-themes" "revert-buffer" "grep" "align-regexp" "custom-theme-visit-theme" "rename-this-buffer-and-file" "load-file" "ediff-buffers" "mp-markdown-wikipedia-link" "whitespace-mode" "qrr" "marked" "flyspell-mode" "unfill-paragraph" "replace-string" "package-install-from-buffer" "width-80" "delete-this-buffer-and-file" "sh-mode" "customize-group" "emacs-lisp-mode" "whitespace-cleanup" "idle-highlight-mode" "update-file-autoloads" "finder" "package-install" "qr" "align" "ispell-word" "paredit-mode" "customize-face" "emacs-init-time" "customize-create-theme" "compile" "sort-lines" "abbrev-mode" "eval-buffer" "count-lines-region" "ediff" "eshell" ...))
  smex()
  call-interactively(smex nil nil)

but it's likely due to defjump being turned into a macro instead of a function...

rinari-highlight-keywords shouldn't use font-lock-keyword-face

In a certain package I'm writing, I need a way to know quickly if the symbol on point is an actual Ruby keyword. Since ruby-mode doesn't have a separate constant for them, I have to check against the face text property, and the current highlighting throws me off.

Alternative suggestions: font-lock-builtin-face, font-lock-preprocessor-face.

Rinari does not support rvm

When I try to run rinari-web-server It fails with the following message:

Could not find activesupport-3.2.2 in any of the sources
Run `bundle install` to install missing gems.

Presumably because even though I am using rvm.el, rinari is not using rvm.

Is there something I can do about this?

Thanks

[Error?] About rinari-find-controller

When exist a model named: brand.rb,
two Controller: brands_controller, product_select_brand_controller,

run rinari-find-controller in brand.rb, it switch to wrong place product_select_brand_controller.

Another problem maybe, rinari seem like cannot handle Admin/admin.rb with Admin/admins_controller.rb situation.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.