oyster 0.9.0 → 0.9.1

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,5 +1,5 @@
1
1
  module Oyster
2
- VERSION = '0.9.0'
2
+ VERSION = '0.9.1'
3
3
 
4
4
  LONG_NAME = /^--([a-z\[][a-z0-9\]\-]+)$/i
5
5
  SHORT_NAME = /^-([a-z0-9]+)$/i
@@ -144,9 +144,9 @@ module Oyster
144
144
  text.split(/\n/).map { |line|
145
145
  " #{line}".scan(/(.+?)([a-z0-9\-\_]*)/i).flatten.map { |token|
146
146
  formatter = case true
147
- when Oyster.is_name?(token) : bold
148
- when token =~ /[A-Z]/ && token.upcase == token : underline
149
- when token =~ /[a-z]/ && token.downcase == token : bold
147
+ when Oyster.is_name?(token) then bold
148
+ when token =~ /[A-Z]/ && token.upcase == token then underline
149
+ when token =~ /[a-z]/ && token.downcase == token then bold
150
150
  end
151
151
  formatter ? "#{ formatter }#{ token }#{ normal }" : token
152
152
  }.join('')
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.0
4
+ version: 0.9.1
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: 2008-09-11 00:00:00 +01:00
12
+ date: 2009-01-30 00:00:00 +00: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: 1.7.0
23
+ version: 1.8.2
24
24
  version:
25
25
  description: Oyster is a command-line input parser that doesn't hate you. It provides a simple API that you use to write a spec for the user interface to your program, and it handles mapping the input to a hash for you. It supports both long and short option names, subcommands, and various types of input data.
26
26
  email:
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements: []
75
75
 
76
76
  rubyforge_project: oyster
77
- rubygems_version: 1.2.0
77
+ rubygems_version: 1.3.1
78
78
  signing_key:
79
79
  specification_version: 2
80
80
  summary: Oyster is a command-line input parser that doesn't hate you