eschulte / rinari

Rinari Is Not A Rails IDE (it is an Emacs minor mode for Rails)
http://rinari.rubyforge.org
GNU General Public License v3.0
412 stars 68 forks source link

Zeus support #49

Closed asok closed 11 years ago

asok commented 11 years ago

https://github.com/eschulte/rinari/issues/48 Zeus support for rinari-web-server, rinari-console and rinari-rake.

The biggest surgory was made to rinari-web-server that is instead of calling ruby-compilation-run it is calling ruby-compilation-do. So it does not run ruby process but rather rails or zeus processes with correct arguments. Maybe I'm wrong but all of the files in the scripts directory are executables with shebang pointing to /usr/bid/env ruby. If yes then we can do get away with this.

rinari-script would take similar approach as rinari-web-server. I can take a stub on that later.

purcell commented 11 years ago

I think I have a neater integration mechanism figured out, and I've been reorganising ruby-compilation.el over the last few days ready to insert it. As a result, this pull request doesn't apply right now, but it's been helpful to see your approach. Please bear with me, and I hope to have something ready to share soon. :-)

luisalima commented 11 years ago

Zeus looks awesome and rinari is already awesome :), I am interested in using Zeus with rinari. @purcell do you have some update on this?

purcell commented 11 years ago

Nope, I haven't had more time to work on it, and I didn't want to just hack in support because it affects both rinari and ruby-compilation.

luisalima commented 11 years ago

Oh ok! Thanks anyway, I'll be eagerly waiting :)

localredhead commented 11 years ago

+1 I would love to see rinari be zeus aware.

jmdeldin commented 10 years ago

Hey @purcell, I was wondering if you had any tips for making ruby-compilation work with zeus with or without Rinari. I hacked something together with M-x compile for now, but the less Elisp I'm responsible for, the better!

jmdeldin commented 10 years ago

In case someone runs across this later... rspec-mode will use Zeus if you set rspec-use-zeus-when-possible.

purcell commented 10 years ago

This would be easy if zeus were a drop-in replacement for the Rails script. IIRC, though, when I played with this a while ago, zeus would ignore the "environment" argument for zeus console -- this mismatch means potentially coding around a bunch of special cases. Maybe things are different now.

jmdeldin commented 10 years ago

Ah, good point about running a test-env console. Looks like there's no way around it with zeus unless you add a new command. I don't think it's worth worrying about -- rspec-mode fills the testing gap for me right now. Thanks for all your work!