The XML is generated by the config.ru
Headius donated some duby to inspire us
The XML is generated by the config.ru
Headius donated some duby to inspire us
# bundle everything into .gems (won't be uploaded) | |
disable_rubygems | |
bundle_path '.gems/bundler_gems' | |
gem "rack", "1.0.0" | |
gem "dm-appengine" | |
gem "sinatra" | |
gem "haml" | |
. . . |
# Critical default settings: | |
disable_system_gems | |
disable_rubygems | |
bundle_path ".gems/bundler_gems" | |
# List gems to bundle here: | |
#gem "rack", "1.0.0" | |
gem "dm-appengine" | |
gem "sinatra" |
# Critical default settings: | |
disable_system_gems | |
disable_rubygems | |
bundle_path ".gems/bundler_gems" | |
# List gems to bundle here: | |
gem "rails", "3.0.pre", :git => "git://github.com/rails/rails.git" | |
gem "arel", :git => "git://github.com/rails/arel.git" | |
gem "i18n" | |
gem "dm-appengine" |
Hpricot is a fast, flexible HTML parser written in C. It's designed to be very accommodating (like Tanaka Akira's HTree) and to have a very helpful library (like some JavaScript libs -- JQuery, Prototype -- give you.) The XPath and CSS parser, in fact, is based on John Resig's JQuery.
Also, Hpricot can be handy for reading broken XML files, since many of the same techniques can be used. If a quote is missing, Hpricot tries to figure it out. If tags overlap, Hpricot works on sorting them out. You know, that sort of
#!/usr/bin/ruby | |
require 'rubygems' | |
file_base = 'http://appengine-jruby.googlecode.com/hg/demos/rails/' | |
mod_files = %w{ app/controllers/rails/info_controller.rb | |
Gemfile config/application_rb config/boot.rb | |
config/initializers/notifications.rb config_ru } | |
# Install apengine gems if missing | |
gems_index = Gem::SourceIndex.from_gems_in('local') |
# Rails 3 needs error logging | |
~/rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb | |
private | |
def render_exception(env, exception) | |
# ------------------------------------------- # | |
puts exception.to_s # show me the error please! | |
# ------------------------------------------- # | |
log_error(exception) |
~/rails/railties/lib/rails/application.rb | |
# Preload all frameworks specified by the Configuration#frameworks. | |
# Used by Passenger to ensure everything's loaded before forking and | |
# to avoid autoload race conditions in JRuby. | |
initializer :preload_frameworks do | |
ActiveSupport::Autoload.eager_autoload! if config.preload_frameworks | |
end | |
# commenting out this had no effect on unwanted frameworks |
Do not use rvm (or install and run from JRuby). 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
Do not use rvm (or install and run from JRuby). 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 DataMapper version also: gist.github.com/671792