defaults for spec_dir and doc update
This commit is contained in:
parent
d829ba295e
commit
8fa8aa60c2
@ -22,6 +22,7 @@ of examples](https://github.com/johnbintz/examples) for more information on the
|
|||||||
Tested in the following environments:
|
Tested in the following environments:
|
||||||
|
|
||||||
* Mac OS X 10.6, with MacPorts Qt and Nokia Qt.mpkg
|
* Mac OS X 10.6, with MacPorts Qt and Nokia Qt.mpkg
|
||||||
|
* Kubuntu 10.10
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -14,11 +14,13 @@ files = [
|
|||||||
|
|
||||||
DEFAULTS = {
|
DEFAULTS = {
|
||||||
'spec_files' => [ '**/*[sS]pec.js' ],
|
'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|
|
files += [ [ 'src_files', 'src_dir' ], [ 'stylesheets', 'src_dir' ], [ 'helpers', 'spec_dir' ], [ 'spec_files', 'spec_dir' ] ].collect do |searches, root|
|
||||||
data[searches] ||= DEFAULTS[searches]
|
data[searches] ||= DEFAULTS[searches]
|
||||||
|
data[root] ||= DEFAULTS[root]
|
||||||
|
|
||||||
if data[searches]
|
if data[searches]
|
||||||
data[searches].collect do |search|
|
data[searches].collect do |search|
|
||||||
|
Loading…
Reference in New Issue
Block a user