Created
July 31, 2010 16:59
-
-
Save woodie/502366 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
run lambda {Rack::Response.new('Hello').finish} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Critical default settings: | |
disable_system_gems | |
disable_rubygems | |
bundle_path ".gems/bundler_gems" | |
# List gems to bundle here: | |
gem 'appengine-rack', '0.0.11.pre' | |
gem 'nokogiri', '1.5.0.beta.2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEVERE: [1280595278372000] javax.servlet.ServletContext log: unable to create shared application instance | |
org.jruby.rack.RackInitializationException: no such file to load -- isorelax | |
from file:/Users/woodie/Desktop/nokogiri_test/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/nokogiri-1.5.0.beta.2-java/lib/nokogiri.rb:10 | |
from file:/Users/woodie/Desktop/nokogiri_test/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/nokogiri-1.5.0.beta.2-java/lib/nokogiri.rb:1:in `require' | |
from config.ru:1 | |
$ ls -1 WEB-INF/lib/ | |
appengine-rack.jar | |
gems.jar | |
isorelax.jar | |
jing.jar | |
jruby-core-1.5.1.jar | |
jruby-rack-1.0.1.jar | |
jruby-stdlib-1.5.1.jar | |
nekodtd.jar | |
nekohtml.jar | |
nokogiri.jar | |
xercesImpl.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Modify the PATH on windows so that the external DLLs will get loaded. | |
require 'rbconfig' | |
ENV['PATH'] = [File.expand_path( | |
File.join(File.dirname(__FILE__), "..", "ext", "nokogiri") | |
), ENV['PATH']].compact.join(';') if RbConfig::CONFIG['host_os'] =~ /(mswin|mingw)/i | |
if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" | |
require 'isorelax.jar' | |
require 'jing.jar' | |
require 'nekohtml.jar' | |
require 'nekodtd.jar' | |
require 'xercesImpl.jar' | |
require 'nokogiri/nokogiri' | |
else | |
require 'nokogiri/nokogiri' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment