oyster 0.9.2 → 0.9.3

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.
@@ -1,3 +1,8 @@
1
+ === 0.9.3 / 2009-09-23
2
+
3
+ * Specification#parse() responds to nil input with an empty options hash.
4
+
5
+
1
6
  === 0.9.2 / 2009-06-19
2
7
 
3
8
  * Use Curses to set the width of help output.
@@ -1,5 +1,5 @@
1
1
  module Oyster
2
- VERSION = '0.9.2'
2
+ VERSION = '0.9.3'
3
3
 
4
4
  LONG_NAME = /^--([a-z\[][a-z0-9\]\-]+)$/i
5
5
  SHORT_NAME = /^-([a-z0-9]+)$/i
@@ -45,8 +45,10 @@ module Oyster
45
45
  end
46
46
 
47
47
  def parse(input = ARGV)
48
- input = input.dup
49
48
  output = {:unclaimed => []}
49
+ return output if input.nil?
50
+
51
+ input = input.dup
50
52
 
51
53
  while token = input.shift
52
54
  if token == STOP_FLAG
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oyster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Coglan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-19 00:00:00 +01:00
12
+ date: 2009-09-23 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.0.0
23
+ version: 2.3.3
24
24
  version:
25
25
  description: ""
26
26
  email: