ruby-quilt 0.0.4 → 0.0.5
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/quilt.rb +2 -2
- metadata +1 -1
data/lib/quilt.rb
CHANGED
@@ -219,11 +219,12 @@ class Quilt
|
|
219
219
|
log_error("could not fetch version: #{version_name}")
|
220
220
|
return ''
|
221
221
|
end
|
222
|
+
outversion = version[prefix] || version[:default]
|
222
223
|
|
223
224
|
# get modules we want to use
|
224
225
|
modules = []
|
225
226
|
if (selector.is_a?(Proc))
|
226
|
-
modules =
|
227
|
+
modules = outversion[:optional].keys.select do |mod|
|
227
228
|
selector.call(mod)
|
228
229
|
end
|
229
230
|
elsif (selector.is_a?(Array))
|
@@ -231,7 +232,6 @@ class Quilt
|
|
231
232
|
end
|
232
233
|
|
233
234
|
# resolve dependancies
|
234
|
-
outversion = version[prefix] || version[:default]
|
235
235
|
output = "#{outversion[:base]}#{resolve_dependancies(modules, outversion, {})}#{outversion[:footer] ?
|
236
236
|
outversion[:footer] :
|
237
237
|
''}"
|