Created
April 4, 2012 14:55
-
-
Save anonymous/2302197 to your computer and use it in GitHub Desktop.
This file contains 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
* The command you ran | |
appcfg.rb update . | |
* Exception backtrace(s), if any | |
* Your Gemfile | |
* Your Gemfile.lock | |
* Your Bundler configuration settings (run bundle config) | |
* What version of bundler you are using (run bundle -v) | |
* What version of Ruby you are using (run ruby -v) | |
ruby 1.8.6 (2010-09-02 patchlevel 420) [i686-darwin10.7.0] | |
* What version of Rubygems you are using (run gem -v) | |
1.3.7 | |
* Whether you are using RVM, and if so what version (run rvm -v) | |
* Whether you have the rubygems-bundler gem, which can break gem binares | |
NO | |
* Whether you have the open_gem gem, which can cause rake activation conflicts | |
NO | |
If you are using Rails 2.3, please also include: | |
* Your boot.rb file | |
* Your preinitializer.rb file | |
* Your environment.rb file |
This file contains 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
Calculating dependencies... | |
Updating source: http://gems.rubyforge.org | |
/opt/local/lib/ruby/gems/1.8/gems/bundler08-0.8.5/lib/bundler08/resolver.rb:115:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement | |
Downloading addressable-2.2.7.gem | |
Downloading appengine-apis-0.0.35.gem | |
Caching: appengine-rack-0.0.13.gem | |
Downloading dm-appengine-0.1.3.gem | |
Downloading dm-core-1.2.0.gem | |
Downloading jruby-jars-1.5.6.gem | |
Downloading jruby-rack-1.0.4.gem | |
Downloading lexidecimal-0.0.1.gem | |
Downloading rack-1.4.1.gem | |
Downloading rack-protection-1.2.0.gem | |
Abort trap |
This file contains 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
#!/usr/bin/ruby1.8 -w | |
# | |
# Copyright:: Copyright 2010 Google Inc. | |
# Original Author:: John Woodell (mailto:woodie@google.com) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
require 'jruby/rack/booter' | |
# try to require the bundled environment | |
begin | |
require 'bundler_gems/environment' | |
rescue LoadError | |
# continue | |
end | |
module JRuby | |
module Rack | |
class AppEngineLayout < WebInfLayout | |
def app_uri | |
@app_uri ||= '/' | |
end | |
def gem_path | |
"bundler_gems/jruby/1.8" | |
end | |
def public_uri | |
@public_uri ||= begin | |
path = @rack_context.getInitParameter('public.root') || '/public' | |
path = "/#{path}" unless path =~ %r{^/} | |
path.chomp("/") | |
end | |
end | |
def change_working_directory | |
if @rack_context.server_info.include?('Development') | |
ENV['RACK_ENV'] = 'development' | |
else | |
ENV['RACK_ENV'] = 'production' | |
end | |
super | |
end | |
end | |
class Booter | |
def default_layout_class | |
AppEngineLayout | |
end | |
end | |
end | |
end |
This file contains 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
# DO NOT MODIFY THIS FILE | |
module Bundler | |
file = File.expand_path(__FILE__) | |
dir = File.dirname(file) | |
ENV["GEM_HOME"] = dir | |
ENV["GEM_PATH"] = dir | |
# handle 1.9 where system gems are always on the load path | |
if defined?(::Gem) | |
$LOAD_PATH.reject! do |p| | |
p != File.dirname(__FILE__) && | |
Gem.path.any? { |gp| p.include?(gp) } | |
end | |
end | |
ENV["PATH"] = "#{dir}/../../../../bin:#{ENV["PATH"]}" | |
ENV["RUBYOPT"] = "-r#{file} #{ENV["RUBYOPT"]}" | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/lexidecimal-0.0.1/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/rack-1.4.1/bin") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/rack-1.4.1/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/sinatra-1.0/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/jruby-jars-1.5.6/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/addressable-2.2.7/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/dm-core-1.2.0/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/jruby-rack-1.0.4/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/appengine-rack-0.0.13/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/appengine-apis-0.0.35/lib") | |
$LOAD_PATH.unshift File.expand_path("#{dir}/gems/dm-appengine-0.1.0/lib") | |
@gemfile = "#{dir}/../../../../Gemfile" | |
def self.require_env(env = nil) | |
context = Class.new do | |
def initialize(env) @env = env && env.to_s ; end | |
def method_missing(*) ; yield if block_given? ; end | |
def only(*env) | |
old, @only = @only, _combine_only(env.flatten) | |
yield | |
@only = old | |
end | |
def except(*env) | |
old, @except = @except, _combine_except(env.flatten) | |
yield | |
@except = old | |
end | |
def gem(name, *args) | |
opt = args.last.is_a?(Hash) ? args.pop : {} | |
only = _combine_only(opt[:only] || opt["only"]) | |
except = _combine_except(opt[:except] || opt["except"]) | |
files = opt[:require_as] || opt["require_as"] || name | |
files = [files] unless files.respond_to?(:each) | |
return unless !only || only.any? {|e| e == @env } | |
return if except && except.any? {|e| e == @env } | |
if files = opt[:require_as] || opt["require_as"] | |
files = Array(files) | |
files.each { |f| require f } | |
else | |
begin | |
require name | |
rescue LoadError | |
# Do nothing | |
end | |
end | |
yield if block_given? | |
true | |
end | |
private | |
def _combine_only(only) | |
return @only unless only | |
only = [only].flatten.compact.uniq.map { |o| o.to_s } | |
only &= @only if @only | |
only | |
end | |
def _combine_except(except) | |
return @except unless except | |
except = [except].flatten.compact.uniq.map { |o| o.to_s } | |
except |= @except if @except | |
except | |
end | |
end | |
context.new(env && env.to_s).instance_eval(File.read(@gemfile), @gemfile, 1) | |
end | |
end | |
$" << "rubygems.rb" | |
module Kernel | |
def gem(*) | |
# Silently ignore calls to gem, since, in theory, everything | |
# is activated correctly already. | |
end | |
end | |
# Define all the Gem errors for gems that reference them. | |
module Gem | |
def self.ruby ; "/opt/local/bin/ruby" ; end | |
def self.dir ; @dir ||= File.dirname(File.expand_path(__FILE__)) ; end | |
class << self ; alias default_dir dir; alias path dir ; end | |
class LoadError < ::LoadError; end | |
class Exception < RuntimeError; end | |
class CommandLineError < Exception; end | |
class DependencyError < Exception; end | |
class DependencyRemovalException < Exception; end | |
class GemNotInHomeException < Exception ; end | |
class DocumentError < Exception; end | |
class EndOfYAMLException < Exception; end | |
class FilePermissionError < Exception; end | |
class FormatException < Exception; end | |
class GemNotFoundException < Exception; end | |
class InstallError < Exception; end | |
class InvalidSpecificationException < Exception; end | |
class OperationNotSupportedError < Exception; end | |
class RemoteError < Exception; end | |
class RemoteInstallationCancelled < Exception; end | |
class RemoteInstallationSkipped < Exception; end | |
class RemoteSourceException < Exception; end | |
class VerificationError < Exception; end | |
class SystemExitException < SystemExit; end | |
end |
This file contains 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' | |
# gem 'appengine-apis' | |
gem "dm-appengine" | |
# gem "will_paginate" | |
# gem 'jruby-rack', '0.9.7' | |
# gem 'rack', '0.9.1' | |
gem "sinatra" | |
# gem 'rails', '2.3.5' | |
# gem 'builder' | |
# gem 'padrino', '0.2.9' | |
# gem 'activesupport', '2.3.3' | |
# gem 'rake' | |
# gem 'i18n' | |
# gem 'warden' | |
# gem 'actionmailer', '2.3.3' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment