thor 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +4 -0
  2. data/lib/thor/task.rb +2 -1
  3. metadata +2 -2
data/CHANGELOG.rdoc CHANGED
@@ -5,6 +5,10 @@
5
5
  * Improve help output to list shorthand switches, too
6
6
  * Investigate and fix deep namespacing ("foo:bar:baz") issues
7
7
 
8
+ == 0.9.8, released 2008-10-20
9
+
10
+ * Fixed some tiny issues that were introduced lately.
11
+
8
12
  == 0.9.7, released 2008-10-13
9
13
 
10
14
  * Setting global method options on the initialize method works as expected:
data/lib/thor/task.rb CHANGED
@@ -63,7 +63,7 @@ class Thor
63
63
  end
64
64
 
65
65
  def options?
66
- @options.kind_of?(Hash)
66
+ @options.kind_of?(Hash) && !@options.empty?
67
67
  end
68
68
 
69
69
  def formatted_usage(namespace = false)
@@ -74,6 +74,7 @@ class Thor
74
74
  protected
75
75
 
76
76
  def parse_args(args)
77
+ return [[], {}] if args.nil?
77
78
  return [args, {}] unless options?
78
79
  hash = full_opts.parse(args)
79
80
  list = full_opts.non_opts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-13 00:00:00 +02:00
12
+ date: 2008-10-21 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15