Permalink
Browse files

Fixed bug introduced by latest Thor release.

  • Loading branch information...
1 parent 9bc4972 commit 261f870e7dec66e1f6771710204d2ff6a521cde9 @fnando committed Mar 31, 2013
Showing with 8 additions and 8 deletions.
  1. +7 −7 Gemfile.lock
  2. +1 −1 lib/kitabu/cli.rb
View
@@ -22,36 +22,36 @@ GEM
awesome_print (1.1.0)
builder (3.2.0)
coderay (1.0.9)
- diff-lcs (1.2.1)
+ diff-lcs (1.2.2)
eeepub-with-cover-support (0.8.7)
builder
rubyzip
i18n (0.6.4)
method_source (0.8.1)
- multi_json (1.6.1)
- nokogiri (1.5.6)
+ multi_json (1.7.2)
+ nokogiri (1.5.9)
notifier (0.4.1)
pry (0.9.12)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
pry-nav (0.2.3)
pry (~> 0.9.10)
- rake (10.0.3)
+ rake (10.0.4)
rdiscount (2.0.7.1)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
- rspec-core (2.13.0)
+ rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
rubyzip (0.9.9)
- slop (3.4.3)
+ slop (3.4.4)
test_notifier (1.0.1)
notifier
- thor (0.17.0)
+ thor (0.18.1)
PLATFORMS
ruby
View
@@ -9,7 +9,7 @@ def self.exit_on_failure?
end
def initialize(args = [], options = {}, config = {})
- if config[:current_task].name == "new" && args.empty?
+ if (config[:current_task] || config[:current_command]).name == "new" && args.empty?
raise Error, "The e-Book path is required. For details run: kitabu help new"
end

0 comments on commit 261f870

Please sign in to comment.