optitron 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,14 +12,14 @@ class Optitron
12
12
 
13
13
  def tokenize
14
14
  unless @tokens
15
- @tokens = @opts.map {|t|
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
@@ -1,3 +1,3 @@
1
1
  class Optitron
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
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: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
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-01-24 00:00:00 -08:00
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.3.7
184
+ rubygems_version: 1.6.2
185
185
  signing_key:
186
186
  specification_version: 3
187
187
  summary: Sensible options parsing