Skip to content

Instantly share code, notes, and snippets.

View deepakdargade's full-sized avatar
🎯
Focusing

Deepak Dargade deepakdargade

🎯
Focusing
View GitHub Profile
@deepakdargade
deepakdargade / speadsheet.rb
Created August 5, 2011 08:09 — forked from brianstorti/speadsheet.rb
Ruby spreadsheet example
require 'spreadsheet'
Spreadsheet.client_encoding = 'UTF-8'
TEST_FILE = "test.xls"
MODIFIED_FILE = "modified.xls"
def inspect_sheet sheet
sheet.each do |row|
if row[1].is_a? Spreadsheet::Formula

Rails 2.3.10 on App Engine (DataMapper)

Do not use rvm (or install and run from JåRuby). The google-appengine gem must install into your system MRI. The appengine-sdk gem includes a complete Java app server. We bootstrap Java from MRI, then your app runs inside a servlet container (with access to all the APIs) using the version of JRuby installed into each app.

We assumed Rails 2 would never work without rubygems, and we committed to gem bunlder for JRuby on App Engine, so we were waiting for Rails 3. Fortunately, Takeru Sasaki was able to patch the Rails 2.3.x calls to rubygems, and now we have it working. Rails 2.3.x currently spins up several seconds faster than Rails 3, and just a few seconds behind Sinatra.

See the TInyDS version also: gist.github.com/gists/269075

Install the Development Environment