From c6f3d9a6eac19def1455d034efd031d9d006be50 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Thu, 8 Nov 2018 14:34:46 -0800 Subject: [PATCH] Rename Process to ProcessWrapper (#35) As `Process`, it was causing namespace collisions with dart:io's `Process` --- CHANGELOG.md | 4 ++++ lib/process.dart | 2 +- lib/src/interface/{process.dart => process_wrapper.dart} | 8 ++++---- pubspec.yaml | 2 +- .../{process_test.dart => process_wrapper_test.dart} | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) rename lib/src/interface/{process.dart => process_wrapper.dart} (88%) rename test/src/interface/{process_test.dart => process_wrapper_test.dart} (96%) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc8760c..0af09f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ +#### 3.0.7 + +* Renamed `Process` to `ProcessWrapper` + #### 3.0.6 * Added class `Process`, a simple wrapper around dart:io's `Process` class. diff --git a/lib/process.dart b/lib/process.dart index f9de50f..dfeb1d0 100644 --- a/lib/process.dart +++ b/lib/process.dart @@ -3,5 +3,5 @@ // BSD-style license that can be found in the LICENSE file. export 'src/interface/local_process_manager.dart'; -export 'src/interface/process.dart'; export 'src/interface/process_manager.dart'; +export 'src/interface/process_wrapper.dart'; diff --git a/lib/src/interface/process.dart b/lib/src/interface/process_wrapper.dart similarity index 88% rename from lib/src/interface/process.dart rename to lib/src/interface/process_wrapper.dart index cd6d4e5..ff109ba 100644 --- a/lib/src/interface/process.dart +++ b/lib/src/interface/process_wrapper.dart @@ -5,10 +5,10 @@ import 'dart:io' as io; /// A wrapper around an [io.Process] class that adds some convenience methods. -class Process implements io.Process { - /// Constructs a [Process] object that delegates to the specified underlying - /// object. - const Process(this.delegate); +class ProcessWrapper implements io.Process { + /// Constructs a [ProcessWrapper] object that delegates to the specified + /// underlying object. + const ProcessWrapper(this.delegate); final io.Process delegate; diff --git a/pubspec.yaml b/pubspec.yaml index 7c34541..ba8a66f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: process -version: 3.0.6 +version: 3.0.7 authors: - Todd Volkert - Michael Goderbauer diff --git a/test/src/interface/process_test.dart b/test/src/interface/process_wrapper_test.dart similarity index 96% rename from test/src/interface/process_test.dart rename to test/src/interface/process_wrapper_test.dart index d205b97..b3f24ad 100644 --- a/test/src/interface/process_test.dart +++ b/test/src/interface/process_wrapper_test.dart @@ -12,7 +12,7 @@ void main() { group('done', () { test('completes only when all done', () async { TestProcess delegate = new TestProcess(); - Process process = new Process(delegate); + ProcessWrapper process = new ProcessWrapper(delegate); bool done = false; // ignore: unawaited_futures process.done.then((int result) {