iron_maiden 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rubygems_plugin.rb +4 -2
  2. metadata +1 -1
@@ -6,11 +6,13 @@ class Gem::Commands::TortureCommand < Gem::Command
6
6
  def initialize
7
7
  super 'torture', "Prepares a Rack application for deployment with IronRuby with the IIS Rack Handler"
8
8
 
9
- add_option('-p', '--public PATH', 'Path to your Rack app\'s public document root')
9
+ add_option('-p', '--public PATH', 'Path to your Rack app\'s public document root') do |value,option|
10
+ options[:path] = value
11
+ end
10
12
  end
11
13
 
12
14
  def execute
13
- explicit_path = get_one_optional_argument || './public'
15
+ explicit_path = options[:path] || './public'
14
16
 
15
17
  unless File.directory? explicit_path
16
18
  raise Gem::Exception, "supplied public path, or default ('public'), does not exist"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_maiden
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Thompson