defaults for spec_dir and doc update

This commit is contained in:
John Bintz 2011-04-11 11:46:02 -04:00
parent d829ba295e
commit 8fa8aa60c2
2 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,7 @@ of examples](https://github.com/johnbintz/examples) for more information on the
Tested in the following environments:
* Mac OS X 10.6, with MacPorts Qt and Nokia Qt.mpkg
* Kubuntu 10.10
## License

View File

@ -14,11 +14,13 @@ files = [
DEFAULTS = {
'spec_files' => [ '**/*[sS]pec.js' ],
'helpers' => [ 'helpers/**/*.js' ]
'helpers' => [ 'helpers/**/*.js' ],
'spec_dir' => 'spec/javascripts'
}
files += [ [ 'src_files', 'src_dir' ], [ 'stylesheets', 'src_dir' ], [ 'helpers', 'spec_dir' ], [ 'spec_files', 'spec_dir' ] ].collect do |searches, root|
data[searches] ||= DEFAULTS[searches]
data[root] ||= DEFAULTS[root]
if data[searches]
data[searches].collect do |search|