jashkenas / ruby-processing

Code as Art, Art as Code. Processing and Ruby are meant for each other.
http://github.com/jashkenas/ruby-processing/wikis
Other
1.28k stars 94 forks source link

Remove install_jruby_complete in favor of rp5 subcommand ? #84

Closed emilsoman closed 10 years ago

emilsoman commented 10 years ago

install_jruby_complete is a one time activity. It doesn't look like a good idea to have this as a command hanging around forever once you install ruby-processing. How about adding a subcommand to rp5 ? Something like this : rp5 --install-jruby-complete ?

monkstone commented 10 years ago

That's not a bad idea, I'll give it some thought for the next release. However as you may be aware the default gem location on Ubuntu for examples requires sudo access (bloody stupid if you ask me) but I don't fancy sudo rp5.

monkstone commented 10 years ago

@emilsoman I'm giving it a go for the ruby-processing-2.5.0 release (currently the extension branch) works ok for me, we will have to wait and see for Mac and Windows users. rp5 setup check and rp5 setup install

emilsoman commented 10 years ago

@monkstone can you link the commits / PR here please ?

emilsoman commented 10 years ago

I can test this on Mac, by the way.

monkstone commented 10 years ago

@emilsoman It is all there on the extension branch last couple of commits. But be aware the extension branch requires rake-compiler gem (and hence jdk, but that should be no worries on mac) since I have converted my vecmath library to be a ruby-extension (ie pre-compiles). . PS you need to copy processing core.jar to lib for compiling. PPS I use jruby -S rspec deglut_spec.rb etc to test, if you are thinking of running spec tests.

monkstone commented 10 years ago

@emilsoman I have since merged the branch to master, and I expect to be pushing to rubygems soon. No-one will die even if it is broken...