ragol 0.0.3 → 1.0.0
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.
- data/lib/ragol/optset.rb +2 -6
- metadata +4 -4
data/lib/ragol/optset.rb
CHANGED
@@ -24,7 +24,6 @@ module Ragol
|
|
24
24
|
attr_reader :options
|
25
25
|
|
26
26
|
def initialize(*options)
|
27
|
-
# puts "options: #{options.inspect}"
|
28
27
|
if options[0] && options[0].kind_of?(Hash)
|
29
28
|
data = options[0][:data]
|
30
29
|
options = data.collect do |optdata|
|
@@ -168,7 +167,7 @@ module Ragol
|
|
168
167
|
options_processed.each do |opt|
|
169
168
|
opt.post_process self, results, results.args
|
170
169
|
end
|
171
|
-
|
170
|
+
|
172
171
|
results
|
173
172
|
end
|
174
173
|
|
@@ -179,14 +178,11 @@ module Ragol
|
|
179
178
|
end
|
180
179
|
|
181
180
|
def read_rclines lines, results = Ragol::Results.new(options, nil)
|
182
|
-
options_processed = Array.new
|
183
|
-
|
184
181
|
lines.each do |line|
|
185
182
|
line.sub!(%r{\#.*}, '')
|
186
183
|
next if line.empty?
|
187
184
|
name, val = line.split(%r{\s*:\s*})
|
188
|
-
opt = @options.detect { |op| op.match_rc? name }
|
189
|
-
if opt
|
185
|
+
if opt = @options.detect { |op| op.match_rc? name }
|
190
186
|
opt.set_option_value val, name, results
|
191
187
|
end
|
192
188
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ragol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: logue
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.0
|
21
|
+
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.0
|
29
|
+
version: 1.0.0
|
30
30
|
description: Another implementation of an option processor.
|
31
31
|
email: jeugenepace@gmail.com
|
32
32
|
executables: []
|