Permalink
Browse files

Remove unpacking executable (people can just toss it in vendor/plugin…

…s if they're into that sort of thing)

Update docs
Bump version to 0.8.20.
  • Loading branch information...
1 parent 85405cf commit cc58c7cb377fa5f5038b07f69b4b4c0a19cb12e3 Bruce Williams committed Mar 23, 2009
Showing with 8 additions and 37 deletions.
  1. +7 −11 README.rdoc
  2. +0 −25 bin/fiveruns_tuneup
  3. +1 −1 lib/fiveruns/tuneup/version.rb
View
@@ -9,25 +9,21 @@
Display call stack information on Rails requests.
-*THIS IS A BETA RELEASE*; the normal disclaimers apply.
-
== Installation
+For Rails 2.1+, you can use it as a gem dependency (recommended).
+
Install the gem:
sudo gem install fiveruns_tuneup
-
-For Rails 2.0, install the plugin into +vendor/plugins+:
-
- fiveruns_tuneup /path/to/app
- (or you can clone the GitHub repo into vendor/plugins)
-
-For Rails 2.1+, you can use it as a gem dependency instead; in your +environment.rb+:
+
+In your +environment.rb+:
config.gem 'fiveruns_tuneup'
-*Note*: There is an issue in Rails 2.1 that prevents the plugin running as an unpacked
-gem (via +rake gems:unpack+).
+*Note*: There is an issue in Rails 2.1 that prevents the plugin running as an unpacked gem (via +rake gems:unpack+).
+
+TuneUp can also be used from +vendor/plugins+.
== Configuration
View
@@ -1,25 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'fileutils'
-require File.dirname(__FILE__) << "/../lib/fiveruns/tuneup/version"
-
-# For older Rails versions
-plugin_dir = File.join(ARGV[0] || Dir.pwd, 'vendor/plugins')
-unless File.directory?(plugin_dir)
- abort "FiveRuns TuneUp: #{plugin_dir} does not exist; cannot install plugin"
-end
-
-FileUtils.rm_rf File.join(plugin_dir, 'fiveruns_tuneup') rescue nil
-
-File.readlines(File.dirname(__FILE__) << "/../Manifest").each do |line|
- stub = line.strip
- origin = File.dirname(__FILE__) << "/../#{stub}"
- next if origin =~ /\/fiveruns_tuneup$/
- if File.file?(origin)
- destination = File.join(plugin_dir, 'fiveruns_tuneup', stub)
- FileUtils.mkdir_p File.dirname(destination)
- FileUtils.cp origin, destination
- end
-end
-
-STDERR.puts "Installed FiveRuns TuneUp (#{Fiveruns::Tuneup::Version::STRING}) in vendor/plugins/fiveruns_tuneup"
@@ -75,7 +75,7 @@ def to_a
MAJOR = 0
MINOR = 8
- TINY = 19
+ TINY = 20
# The current version as a Version instance
CURRENT = new(MAJOR, MINOR, TINY)

0 comments on commit cc58c7c

Please sign in to comment.