quick_start 0.3.1 → 0.3.2
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/VERSION +1 -1
- data/lib/quick_start/config.rb +5 -1
- data/lib/quick_start/executable.rb +2 -1
- data/quick_start.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/quick_start/config.rb
CHANGED
@@ -21,7 +21,7 @@ module QuickStart
|
|
21
21
|
next if line =~ /\s*#/
|
22
22
|
name, path_with_options = line.split('=', 2).map! { |arg| arg.strip }
|
23
23
|
path, comma_separated_options = path_with_options.split(',', 2).map! { |arg| arg.strip }
|
24
|
-
options =
|
24
|
+
options = default_options.dup
|
25
25
|
comma_separated_options.split(',').each do |option|
|
26
26
|
options[option.to_sym] = true
|
27
27
|
end if comma_separated_options
|
@@ -29,6 +29,10 @@ module QuickStart
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
+
def default_options
|
33
|
+
{ :checked => true }
|
34
|
+
end
|
35
|
+
|
32
36
|
def executables
|
33
37
|
@executables ||= []
|
34
38
|
end
|
@@ -10,13 +10,14 @@ module QuickStart
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def checked
|
13
|
-
options[:checked]
|
13
|
+
options[:checked] && ! options[:unchecked]
|
14
14
|
end
|
15
15
|
|
16
16
|
alias :checked? :checked
|
17
17
|
|
18
18
|
def checked=(value)
|
19
19
|
options[:checked] = value
|
20
|
+
options[:unchecked] = !value
|
20
21
|
end
|
21
22
|
|
22
23
|
def run
|
data/quick_start.gemspec
CHANGED