Permalink
Browse files

Removes old rails binaries

  • Loading branch information...
1 parent e92f2fc commit b54f67932b8f8de3766e72a834d6e18e3ed071fb @fdv fdv committed Sep 25, 2010
View
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
-require 'commands/about'
View
@@ -1,6 +0,0 @@
-#!/usr/bin/env ruby
-gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
-ENV['RSPEC'] = 'true' # allows autotest to discover rspec
-ENV['AUTOTEST'] = 'true' # allows autotest to run w/ color on linux
-system((RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV) ||
- $stderr.puts("Unable to find autotest. Please install ZenTest or fix your PATH")
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../config/boot'
-require 'commands/breakpointer'
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'commands/console'
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'commands/dbconsole'
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'commands/destroy'
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'commands/generate'
View
@@ -1,2 +0,0 @@
-#!/bin/sh
-lighttpd -D -f config/lighttpd.conf
View
@@ -1,79 +0,0 @@
-#!/usr/bin/ruby
-
-latest=[]
-
-class CallNode
- attr_accessor :name, :time, :children, :queries, :query_time
-
- def initialize(name)
- @name = name
- @children = Array.new
- @queries = 0
- @query_time = 0
- @time = 0
- end
-
- def to_s
- name
- end
-
- def print_tree(depth)
- child_time=children.inject(0) {|total,c| c.time.to_f + total} || 0
- printf "%s %-40s %f q=%-3d (%f) o=%f\n",
- " "*depth,
- name,
- time,
- queries,
- query_time,
- time-child_time-query_time
-
- #" " "*depth+"** #{name} #{time} #{time-child_time} #{queries} queries (#{query_time})"
- children.each do |child|
- child.print_tree(depth+1)
- end
- end
-
- def averages(average_hash = Hash.new)
- average_hash[name] ||= Array.new
- average_hash[name].push time
- children.each { |child| child.averages(average_hash) }
- average_hash
- end
-end
-
-def putsi(depth,string)
- puts " "*depth + string
-end
-
-root=CallNode.new('ROOT')
-latest=[root]
-
-ARGF.each_line do |line|
- case line
- when /^Processing ([a-zA-Z0-9_]+#[a-z_]+)/
-# putsi latest.size, "Starting #{$1}"
- node = CallNode.new($1)
- latest.last.children << node
- latest.push node
- when /^End of component rendering/
- nil
- when /\(([0-9.]+)\).*SELECT/
- latest.last.queries += 1
- latest.last.query_time += $1.to_f
- when /^Completed in ([0-9.]+)/
- latest.last.time=$1.to_f
- latest.pop
- when /^BENCHMARK: (.*) \((.*)\)/
- node = CallNode.new($1)
- node.time = $2.to_f
- latest.last.children << node
- end
-end
-
-root.print_tree(0)
-puts "\nAverages:"
-averages = root.averages
-
-averages.keys.sort.each do |name|
- printf " %-40s %8f\n",name,(averages[name].inject(0) {|sum,time| sum+time})/averages[name].size
-end
View
@@ -1,31 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'optparse'
-require File.dirname(__FILE__) + '/../config/boot'
-
-options = { :environment => (ENV['RUBY_ENV'] || "development").dup }
-
-ARGV.options do |opts|
- script_name = File.basename($0)
-
- opts.banner = "Usage: migrate [options]"
- opts.separator ""
-
- opts.on("-e", "--environment=name", String,
- "Specifies the environment to migrate (test/development/production).",
- "Default: development") { |options[:environment]| }
-
- opts.separator ""
-
- opts.on("-h", "--help",
- "Show this help message.") { puts opts; exit }
-
-end
-
-ENV["RAILS_ENV"] = options[:environment]
-RAILS_ENV.replace(options[:environment]) if defined?(RAILS_ENV)
-
-require RAILS_ROOT + '/config/environment'
-
-ActiveRecord::Migrator.migrate(RAILS_ROOT + "db/migrate/",
- ENV["VERSION"] ? ENV["VERSION"].to_i : nil )
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../../config/boot', __FILE__)
-require 'commands/performance/benchmarker'
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../../config/boot', __FILE__)
-require 'commands/performance/profiler'
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'commands/plugin'
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'commands/runner'
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-require File.expand_path('../../config/boot', __FILE__)
-require 'commands/server'
View
@@ -1,40 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'fileutils'
-
-def filelint(filename, fix = false)
- newfile = ''
- File.open(filename) do |file|
- file.readlines.each_with_index do |line, lineno|
- # do some checking so we can print warnings
- if line =~ /[ \t]$/
- puts "#{filename}:#{lineno+1} Trailing whitespace"
- end
- if line =~ /\r\n?$/
- puts "#{filename}:#{lineno+1} Incorrect line ending"
- elsif line[-1] != ?\n
- puts "#{filename}:#{lineno+1} No trailing newline"
- end
- # now just rstrip the line and shove it in the array
- # this will strip trailing whitespace and normalize line endings for us
- # the above stuff is simply so you know when you screwed up
- newfile << line.rstrip << "\n"
- end
- end
-
- if fix && File.read(filename) != newfile
- newname = ".#{filename}.new"
- File::unlink("#{filename}~") rescue nil
- File.open(newname,'w') { |f| f.write(newfile) }
- stat = File.stat(filename)
- File.chmod(stat.mode, newname)
- FileUtils.ln filename, "#{filename}~"
- FileUtils.ln newname, filename, :force => true
- File::unlink(newname)
- end
-
-end
-
-ARGV.each do |f|
- filelint(f,true)
-end
View
@@ -1,10 +0,0 @@
-#!/usr/bin/env ruby
-if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)}
- require 'rubygems' unless ENV['NO_RUBYGEMS']
-else
- gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
- ENV["RAILS_ENV"] ||= 'test'
- require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT)
-end
-require 'spec/autorun'
-exit ::Spec::Runner::CommandLine.run

0 comments on commit b54f679

Please sign in to comment.