<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>script/dbconsole</filename>
    </added>
    <added>
      <filename>script/performance/request</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1071,10 +1071,10 @@
 				//on page console
 				var console_element = $('text_console');
 				var log = function(text){
-					console_element.innerHTML += text + '\n';
+					console_element.value = console_element.value + text + '\n';
 				};
 				$('console_clear').observe('click',function(event){
-					console_element.innerHTML = '';
+					console_element.value = '';
 					event.stop();
 				});
 </diff>
      <filename>app/views/page/_examples.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -112,10 +112,10 @@
 			//on page console
 			var console_element = $('text_console');
 			var log = function(text){
-				console_element.innerHTML += text + '\n';
+				console_element.value = console_element.value + text + '\n';
 			};
 			$('console_clear').observe('click',function(event){
-				console_element.innerHTML = '';
+				console_element.value = '';
 				event.stop();
 			});
 			
@@ -167,7 +167,7 @@
 	&lt;% end %&gt;
 	&lt;% api_table 'Instance' do |api| %&gt;
 		&lt;% api.item :returns =&gt; 'Control.ContextMenu', :signature =&gt; 'initialize(Element container [,Hash options])', :description =&gt; 'container is the element that the ContextMenu is attached to.' %&gt;
-		&lt;% api.item :returns =&gt; 'null', :signature =&gt; 'addItem(Hash item)', :description =&gt; 'See &lt;a href=&quot;#item_hash&quot;&gt;Item Hash&lt;/a&gt; below.' %&gt;
+		&lt;% api.item :returns =&gt; 'Control.ContextMenu', :signature =&gt; 'addItem(Hash item)', :description =&gt; 'See &lt;a href=&quot;#item_hash&quot;&gt;Item Hash&lt;/a&gt; below. Returns &quot;this&quot;, for chaining.' %&gt;
 		&lt;% api.item :returns =&gt; 'bool', :signature =&gt; 'open(Event)', :description =&gt; 'To manually open the menu you must pass a mouse event.' %&gt;
 		&lt;% api.item :returns =&gt; 'bool', :signature =&gt; 'close([Event])', :description =&gt; '' %&gt;
 		&lt;% api.item :returns =&gt; 'null', :signature =&gt; 'destroy()', :description =&gt; '' %&gt;</diff>
      <filename>app/views/page/control/_contextmenu.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,39 +1,109 @@
-# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
+# Don't change this file!
+# Configure your app in config/environment.rb and config/environments/*.rb
 
 RAILS_ROOT = &quot;#{File.dirname(__FILE__)}/..&quot; unless defined?(RAILS_ROOT)
 
-unless defined?(Rails::Initializer)
-  if File.directory?(&quot;#{RAILS_ROOT}/vendor/rails&quot;)
-    require &quot;#{RAILS_ROOT}/vendor/rails/railties/lib/initializer&quot;
-  else
-    require 'rubygems'
+module Rails
+  class &lt;&lt; self
+    def boot!
+      unless booted?
+        preinitialize
+        pick_boot.run
+      end
+    end
+
+    def booted?
+      defined? Rails::Initializer
+    end
+
+    def pick_boot
+      (vendor_rails? ? VendorBoot : GemBoot).new
+    end
+
+    def vendor_rails?
+      File.exist?(&quot;#{RAILS_ROOT}/vendor/rails&quot;)
+    end
+
+    def preinitialize
+      load(preinitializer_path) if File.exist?(preinitializer_path)
+    end
 
-    rails_gem_version =
-      if defined? RAILS_GEM_VERSION
-        RAILS_GEM_VERSION
+    def preinitializer_path
+      &quot;#{RAILS_ROOT}/config/preinitializer.rb&quot;
+    end
+  end
+
+  class Boot
+    def run
+      load_initializer
+      Rails::Initializer.run(:set_load_path)
+    end
+  end
+
+  class VendorBoot &lt; Boot
+    def load_initializer
+      require &quot;#{RAILS_ROOT}/vendor/rails/railties/lib/initializer&quot;
+      Rails::Initializer.run(:install_gem_spec_stubs)
+    end
+  end
+
+  class GemBoot &lt; Boot
+    def load_initializer
+      self.class.load_rubygems
+      load_rails_gem
+      require 'initializer'
+    end
+
+    def load_rails_gem
+      if version = self.class.gem_version
+        gem 'rails', version
       else
-        File.read(&quot;#{File.dirname(__FILE__)}/environment.rb&quot;) =~ /^[^#]*RAILS_GEM_VERSION\s+=\s+'([\d.]+)'/
-        $1
+        gem 'rails'
       end
+    rescue Gem::LoadError =&gt; load_error
+      $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
+      exit 1
+    end
 
-    if rails_gem_version
-      rails_gem = Gem.cache.search('rails', &quot;=#{rails_gem_version}.0&quot;).sort_by { |g| g.version.version }.last
+    class &lt;&lt; self
+      def rubygems_version
+        Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
+      end
 
-      if rails_gem
-        gem &quot;rails&quot;, &quot;=#{rails_gem.version.version}&quot;
-        require rails_gem.full_gem_path + '/lib/initializer'
-      else
-        STDERR.puts %(Cannot find gem for Rails =#{rails_gem_version}.0:
-    Install the missing gem with 'gem install -v=#{rails_gem_version} rails', or
-    change environment.rb to define RAILS_GEM_VERSION with your desired version.
-  )
+      def gem_version
+        if defined? RAILS_GEM_VERSION
+          RAILS_GEM_VERSION
+        elsif ENV.include?('RAILS_GEM_VERSION')
+          ENV['RAILS_GEM_VERSION']
+        else
+          parse_gem_version(read_environment_rb)
+        end
+      end
+
+      def load_rubygems
+        require 'rubygems'
+
+        unless rubygems_version &gt;= '0.9.4'
+          $stderr.puts %(Rails requires RubyGems &gt;= 0.9.4 (you have #{rubygems_version}). Please `gem update --system` and try again.)
+          exit 1
+        end
+
+      rescue LoadError
+        $stderr.puts %(Rails requires RubyGems &gt;= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org)
         exit 1
       end
-    else
-      gem &quot;rails&quot;
-      require 'initializer'
+
+      def parse_gem_version(text)
+        $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*[&quot;']([!~&lt;&gt;=]*\s*[\d.]+)[&quot;']/
+      end
+
+      private
+        def read_environment_rb
+          File.read(&quot;#{RAILS_ROOT}/config/environment.rb&quot;)
+        end
     end
   end
-
-  Rails::Initializer.run(:set_load_path)
 end
+
+# All that for this:
+Rails.boot!</diff>
      <filename>config/boot.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,16 +5,19 @@
 # ENV['RAILS_ENV'] ||= 'production'
 
 # Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '1.2.5' unless defined? RAILS_GEM_VERSION
+#RAILS_GEM_VERSION = '1.2.5' unless defined? RAILS_GEM_VERSION
 
 # Bootstrap the Rails environment, frameworks, and default configuration
 require File.join(File.dirname(__FILE__), 'boot')
 
 Rails::Initializer.run do |config|
+  #secret is irellevant as there are no users/logins
+  config.action_controller.session = { :session_key =&gt; &quot;_livepipe&quot;, :secret =&gt; &quot;5d7845ac6ee7cfffafc5fe5f35cf666d&quot; }
+  
   # Settings in config/environments/* take precedence over those specified here
 
   # Skip frameworks you're not going to use (only works if using vendor/rails)
-  # config.frameworks -= [ :action_web_service, :action_mailer ]
+  config.frameworks -= [ :active_record ]
 
   # Only load the plugins named here, by default all plugins in vendor/plugins are loaded
   # config.plugins = %W( exception_notification ssl_requirement )</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,12 +9,12 @@ config.cache_classes = false
 config.whiny_nils = true
 
 # Enable the breakpoint server that script/breakpointer connects to
-config.breakpoint_server = true
+#config.breakpoint_server = true
 
 # Show full error reports and disable caching
 config.action_controller.consider_all_requests_local = true
 config.action_controller.perform_caching             = false
-config.action_view.cache_template_extensions         = false
+#config.action_view.cache_template_extensions         = false
 config.action_view.debug_rjs                         = true
 
 # Don't care if the mailer can't send</diff>
      <filename>config/environments/development.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@ REDIRECTION_MAP = {
   'projects/prototype_tidbits' =&gt; '/extra',
   'projects/control_rating' =&gt; '/control/rating',
   'projects' =&gt; '/',
-  'community*' =&gt; '/',
+  'community*' =&gt; 'http://groups.google.com/group/livepipe-ui-users',
   'projects/event_behavior' =&gt; '/extra/event_behavior',
   'blog*' =&gt; 'http://saucytiger.com/journal'
 }
\ No newline at end of file</diff>
      <filename>config/redirection_map.rb</filename>
    </modified>
    <modified>
      <diff>@@ -72,6 +72,7 @@ Control.ContextMenu = Class.create({
 	},
 	addItem: function(params){
 		this.items.push(params);
+		return this;
 	},
 	destroy: function(){
 		this.container.stopObserving(Prototype.Browser.Opera || this.options.leftClick ? 'click' : 'contextmenu');</diff>
      <filename>public/javascripts/contextmenu.js</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>public/stylesheets/personal_grid.gif</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>820fb18e1483c2920fedf37a0110e5dfe2249fb3</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Johnson</name>
    <email>arjini@gmail.com</email>
  </author>
  <url>http://github.com/syntacticx/livepipe.net-documentation/commit/ffb39257687948eca1a51de92ae8e929bb43daf1</url>
  <id>ffb39257687948eca1a51de92ae8e929bb43daf1</id>
  <committed-date>2008-06-13T12:20:18-07:00</committed-date>
  <authored-date>2008-06-13T12:20:18-07:00</authored-date>
  <message>update to rails 2, contextmenu fixes</message>
  <tree>cc62c4f5c1205c969652b7e4842ced9c9b3025e6</tree>
  <committer>
    <name>Ryan Johnson</name>
    <email>arjini@gmail.com</email>
  </committer>
</commit>
