Bundler is not in jruby complete. You need to add it into the jar file
manually, or install it in a physical folder and add this path to gem
path
variable.
I tried using bundler to bundle bundler but that didn’t work. I put the
bundler in my gemfile and then did a bundle packake which moved all the
gems to /vendor/cache but not bundler. Odd.
As far as I know a similar .bat file will work on Windows
Just for convenience make another shell script called JRUBY with this in
it
#!/bin/bash
java -jar lib/jruby-complete-1.7.0.jar $*
When you double-click the shell script it opens a terminal at the
project directory and then you can run your program with JRUBY myprog.rb
and you can list gems and do all the other stuff with JRUBY -S gem list.
Once you have created this framework you can just copy it somewhere else
to start another project.
No need for RVM or Bundler or any of that stuff - JRuby makes Ruby
Really Simple.
One thing I noticed is that bundler installs the gems into
vendor/bundle/jruby/1.9 so you have to set the GEM_PATH to that
directory
and not to vendor/bundle. If I do that then I can list all the gems but
I
still can’t run trinidad because it says rake is missing. I tried
installing rake into that directory but that doesn’t seem to do
anything.
I feel like I am bit closer to making this work but still not there.
On Tue, Dec 3, 2013 at 10:01 PM, Christian MICHON <
I have a rails app I am using for testing. It has no real functionality
but
I put a bunch of gems in the Gemfile to test them. Because this is a
test
I am using the jruby complete gem with bundler in it. I used the
instructions in the gist somebody posted here to put bundler in the
jruby
complete gem.
I installed all the gems into vendor using this script