Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Rename Process to ProcessWrapper (#35)
Browse files Browse the repository at this point in the history
As `Process`, it was causing namespace collisions with dart:io's `Process`
  • Loading branch information
tvolkert authored Nov 8, 2018
1 parent d6f2238 commit c6f3d9a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/process.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: process
version: 3.0.6
version: 3.0.7
authors:
- Todd Volkert <tvolkert@google.com>
- Michael Goderbauer <goderbauer@google.com>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c6f3d9a

Please sign in to comment.