diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b517c94..09671b49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # grinder.dart changes +## 0.8.0+1 (2015/11/12) +- Fixed a bug with the DDC `--html-report` option + ## 0.8.0 (2015/10/29) - Removed deprecated constants: BIN_DIR, BUILD_DIR, LIB_DIR, WEB_DIR - Removed the 120-col line wrapping on task output diff --git a/lib/grinder_tools.dart b/lib/grinder_tools.dart index b98bc3b2..579a54aa 100644 --- a/lib/grinder_tools.dart +++ b/lib/grinder_tools.dart @@ -146,46 +146,46 @@ class DevCompiler { DevCompiler(); /// Analyze the given file or files with DDC. - void analyze(dynamic files, {bool htmlOutput: false}) { - _ddc.run(_args(files, htmlOutput: htmlOutput)); + void analyze(dynamic files, {bool htmlReport: false}) { + _ddc.run(_args(files, htmlReport: htmlReport)); } /// Analyze the given file or files with DDC. - Future analyzeAsync(dynamic files, {bool htmlOutput: false}) { - return _ddc.runAsync(_args(files, htmlOutput: htmlOutput)); + Future analyzeAsync(dynamic files, {bool htmlReport: false}) { + return _ddc.runAsync(_args(files, htmlReport: htmlReport)); } /// Compile the given file with DDC and generate the output to [outDir]. void compile(dynamic files, Directory outDir, { bool forceCompile: false, - bool htmlOutput: false + bool htmlReport: false }) { _ddc.run(_args(files, outDir: outDir, forceCompile: forceCompile, - htmlOutput: htmlOutput)); + htmlReport: htmlReport)); } /// Compile the given file with DDC and generate the output to [outDir]. Future compileAsync(dynamic files, Directory outDir, { bool forceCompile: false, - bool htmlOutput: false + bool htmlReport: false }) { return _ddc.runAsync(_args(files, outDir: outDir, forceCompile: forceCompile, - htmlOutput: htmlOutput)); + htmlReport: htmlReport)); } List _args(dynamic files, { Directory outDir, bool forceCompile: false, - bool htmlOutput: false + bool htmlReport: false }) { List args = []; if (outDir != null) args.add('-o${outDir.path}'); if (forceCompile) args.add('--force-compile'); - if (htmlOutput) args.add('--html-output'); + if (htmlReport) args.add('--html-report'); args.addAll(coerceToPathList(files)); return args; } diff --git a/lib/src/cli.dart b/lib/src/cli.dart index 05f7f95c..841e4913 100644 --- a/lib/src/cli.dart +++ b/lib/src/cli.dart @@ -14,7 +14,7 @@ import 'singleton.dart' as singleton; import 'utils.dart'; // This version must be updated in tandem with the pubspec version. -const String appVersion = '0.8.0'; +const String appVersion = '0.8.0+1'; List grinderArgs() => _args; List _args; diff --git a/pubspec.yaml b/pubspec.yaml index 2c1da2a2..4df3a2dd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: grinder # This version must be updated in tandem with the lib/src/cli.dart version. -version: 0.8.0 +version: 0.8.0+1 description: Dart workflows, automated. homepage: https://github.com/google/grinder.dart