wycats-thor 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +4 -0
  2. data/lib/thor/task.rb +1 -5
  3. metadata +1 -1
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
@@ -62,10 +62,6 @@ class Thor
62
62
  @_full_opts ||= Options.new((klass.opts || {}).merge(@options))
63
63
  end
64
64
 
65
- def options?
66
- @options.kind_of?(Hash)
67
- end
68
-
69
65
  def formatted_usage(namespace = false)
70
66
  (namespace ? self.namespace + ':' : '') + usage +
71
67
  (opts ? " " + opts.formatted_usage : "")
@@ -74,7 +70,7 @@ class Thor
74
70
  protected
75
71
 
76
72
  def parse_args(args)
77
- return [args, {}] unless options?
73
+ return [[], {}] if args.nil?
78
74
  hash = full_opts.parse(args)
79
75
  list = full_opts.non_opts
80
76
  [list, hash]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wycats-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