Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
gem 'jarib-celerity'
require 'celerity'
browser = Celerity::Browser.new
browser.goto("file://#{File.expand_path(File.dirname(__FILE__))}/timeout.html")
puts browser.url
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='en_gb' xml:lang='en_gb' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>
Timeout test
</title>
<meta content='text/html; charset=utf-8' http-equiv='content-type' />
<script type='text/javascript'>
//<![CDATA[
function move_on() {
require 'rubygems'
# USE_DM_0_9 = true
if defined?(USE_DM_0_9)
DM_GEMS_VERSION = "0.9.11"
DO_GEMS_VERSION = "0.9.12"
gem "data_objects", DO_GEMS_VERSION
gem "do_sqlite3", DO_GEMS_VERSION