Skip to content
Browse files

Fixed bug with explicit setting of path to public folder, thanks to K…

…evin Radcliffe <kevin.radcliffe@gmail.com>. Version bump to v0.2.1
  • Loading branch information...
1 parent baac88b commit ac8faef41795825bed00546573d47731646f9399 @plainprogrammer committed
Showing with 5 additions and 3 deletions.
  1. +1 −1 iron_maiden.gemspec
  2. +4 −2 lib/rubygems_plugin.rb
View
2 iron_maiden.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{iron_maiden}
- s.version = "0.2.0"
+ s.version = "0.2.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["James Thompson"]
View
6 lib/rubygems_plugin.rb
@@ -6,11 +6,13 @@ class Gem::Commands::TortureCommand < Gem::Command
def initialize
super 'torture', "Prepares a Rack application for deployment with IronRuby with the IIS Rack Handler"
- add_option('-p', '--public PATH', 'Path to your Rack app\'s public document root')
+ add_option('-p', '--public PATH', 'Path to your Rack app\'s public document root') do |value,option|
+ options[:path] = value
+ end
end
def execute
- explicit_path = get_one_optional_argument || './public'
+ explicit_path = options[:path] || './public'
unless File.directory? explicit_path
raise Gem::Exception, "supplied public path, or default ('public'), does not exist"

0 comments on commit ac8faef

Please sign in to comment.
Something went wrong with that request. Please try again.