oyster 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/oyster.rb +1 -1
- data/lib/oyster/specification.rb +3 -3
- metadata +4 -4
data/lib/oyster.rb
CHANGED
data/lib/oyster/specification.rb
CHANGED
@@ -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)
|
148
|
-
when token =~ /[A-Z]/ && token.upcase == token
|
149
|
-
when token =~ /[a-z]/ && token.downcase == token
|
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.
|
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:
|
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.
|
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.
|
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
|