optitron 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/optitron/tokenizer.rb +2 -2
- data/lib/optitron/version.rb +1 -1
- metadata +6 -6
data/lib/optitron/tokenizer.rb
CHANGED
@@ -12,14 +12,14 @@ class Optitron
|
|
12
12
|
|
13
13
|
def tokenize
|
14
14
|
unless @tokens
|
15
|
-
@tokens = @opts.map
|
15
|
+
@tokens = @opts.map do |t|
|
16
16
|
case t
|
17
17
|
when /^--([^-][^=]+)=([^=]+)$/ then NamedWithValue.new($1, $2)
|
18
18
|
when /^--([^-][^=]+)$/ then NamedWithValue.new($1, nil)
|
19
19
|
when /^-(.*)/ then find_names_values($1)
|
20
20
|
else Value.new(t)
|
21
21
|
end
|
22
|
-
|
22
|
+
end
|
23
23
|
@tokens.flatten!
|
24
24
|
end
|
25
25
|
end
|
data/lib/optitron/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optitron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Hull
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-20 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
requirements: []
|
182
182
|
|
183
183
|
rubyforge_project: optitron
|
184
|
-
rubygems_version: 1.
|
184
|
+
rubygems_version: 1.6.2
|
185
185
|
signing_key:
|
186
186
|
specification_version: 3
|
187
187
|
summary: Sensible options parsing
|