Nick Sieger: Tag goruco2007 http://blog.nicksieger.com/articles/tag/goruco2007?tag=goruco2007 en-us 40 do what you love GoRuCo Materials Available <p>Busy times! My apologies for the post-conference talk delay. So, before this stuff becomes completely irrelevant, here are <a href="http://dist.codehaus.org/jruby/talks/JRuby-GoRuCo-2007.pdf">my slides</a> and <a href="http://dist.codehaus.org/jruby/talks/JRuby-GoRuCo-2007-demos.tar.gz">my demos</a> from my talk at <a href="/articles/2007/03/24/gig-speaking-at-gotham-ruby-conference-2007">GoRuCo</a> a couple weekends ago. Please let me know if you download the demos and have any problems with them.</p> <p>From the README included in the demo bundle:</p> <h1>JRuby GoRoCo 2007 Demos</h1> <p>Nick gave these demos at his GoRuCo talk in NYC on April 21, 2007 and at SDForum Silicon Valley Ruby Conference on April 22, 2007.</p> <h2>Requirements</h2> <p>JRuby 0.9.9, Tomcat 5.5.23, RSpec 0.8.2, the MySQL JDBC connector as well as all the demo applications are included with this package. The only prerequisite (other than a Java VM) is that you should have a MySQL database running on localhost, with a password-less root user. If you need to change the user/password for the database server, make the changes in the mephisto/config/database.jruby.yml file.</p> <h2>Setup</h2> <p>Source init.sh or init.bat in your environment to set paths to JRuby.</p> <pre><code>$ . init.sh &gt; init.bat </code></pre> <h2>JRBuilder</h2> <p>These examples emphasize the conciseness and structure of Ruby DSLs as a GUI assembly language. Run the following:</p> <pre><code>$ jrake jrb:hello $ jrake jrb:tabs </code></pre> <p>View the source for these (and others) in jrbuilder/examples.</p> <h2>RSpec</h2> <p>This shows a simple RSpec example that exercises a Java ArrayList. The initial specs fails, but is easily fixed.</p> <pre><code>$ jrake rspec:run </code></pre> <h2>Mephisto</h2> <p>This example shows building and deploying a .war file containing the <a href="http://mephistoblog.com/">Mephisto blog engine</a>. It uses a snapshot of the Rails Integration plugin just before version 1.1.1.</p> <p>MySQL is required for the database. As noted above, the database configuration assumes a password-less root user. If you need to change that assumption, edit the production section of the file mephisto/config/database.jruby.yml.</p> <p>Several targets are available:</p> <pre><code>$ jrake meph:clean # Clean Mephisto database and war file $ jrake meph:database # Setup Mephisto database $ jrake meph:war # Create Mephisto war </code></pre> <p>Before you can run the example, the mephisto database must be created.</p> <pre><code>$ jrake meph:database </code></pre> <p>Next, create the war file. This target creates the war file and copies it into the Tomcat webapps directory.</p> <pre><code>$ jrake meph:war </code></pre> <p>Next, run the Tomcat web container, and observe the war file getting deployed.</p> <pre><code>$ tomcat/bin/catalina.sh run </code></pre> <p>Finally, visit http://localhost:8080/ in a web browser, and see Mephisto running in a Java web container.</p> <p>More information on the Rails Integration plugin (now renamed &#8220;Goldspike&#8221;) can be found at the <a href="http://www.headius.com/jrubywiki/index.php/Rails_Integration">JRuby wiki</a>.</p> Thu, 10 May 2007 16:16:06 +0000 urn:uuid:33e6c919-f861-49c7-a95c-8e722eac2afb Nick Sieger http://blog.nicksieger.com/articles/2007/05/10/goruco-materials-available goruco goruco2007 http://blog.nicksieger.com/articles/trackback/239