Skip to content

Commit

Permalink
Updated license files to reflect actual and intended usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutton committed Jul 12, 2022
1 parent fba01f3 commit 1c75dd5
Show file tree
Hide file tree
Showing 34 changed files with 241 additions and 99 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@
"console": "terminal"
},
{
"name": "onepub global activate",
"name": "onepub pub global activate",
"type": "dart",
"request": "launch",
"program": "bin/onepub.dart",
"args": ["global","activate","dcli"],
"args": ["pub", "global","activate","dcli"],
"console": "terminal"
},

Expand Down
154 changes: 149 additions & 5 deletions LICENSE

Large diffs are not rendered by default.

23 changes: 0 additions & 23 deletions LICENSE.mit

This file was deleted.

5 changes: 2 additions & 3 deletions bin/onepub.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#! /usr/bin/env dcli

/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:dcli/dcli.dart';
import 'package:onepub/src/entry_point.dart';
import 'package:onepub/src/my_runner.dart';
Expand Down
3 changes: 1 addition & 2 deletions bin/opub.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#! /usr/bin/env dcli
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
5 changes: 5 additions & 0 deletions example/example.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

To install onepub.

```bash
Expand Down
8 changes: 3 additions & 5 deletions lib/src/commands/add_private_command.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// Copyright (c) 2020, the Dart project authors and OnePub IP Pty Ltd
//
// Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

Expand Down Expand Up @@ -36,10 +38,6 @@ class AddPrivateCommand extends AddCommand {
@override
bool get isOffline => false;

String? get gitUrl => null;
String? get gitPath => null;
String? get gitRef => null;
String? get path => null;

bool get hasHostOptions => hostUrl != null;

Expand Down
3 changes: 1 addition & 2 deletions lib/src/commands/doctor.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
4 changes: 1 addition & 3 deletions lib/src/commands/export.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:args/command_runner.dart';
import 'package:dcli/dcli.dart';
import 'package:validators2/validators.dart';
Expand Down
3 changes: 1 addition & 2 deletions lib/src/commands/global.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
4 changes: 1 addition & 3 deletions lib/src/commands/import.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:args/command_runner.dart';
import 'package:dcli/dcli.dart';

Expand Down
4 changes: 1 addition & 3 deletions lib/src/commands/login.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'dart:async';

import 'package:args/command_runner.dart';
Expand Down
4 changes: 1 addition & 3 deletions lib/src/commands/logout.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'dart:async';

import 'package:args/command_runner.dart';
Expand Down
3 changes: 1 addition & 2 deletions lib/src/commands/private.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
3 changes: 1 addition & 2 deletions lib/src/commands/pub.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
3 changes: 1 addition & 2 deletions lib/src/commands/unused/package_create.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
3 changes: 1 addition & 2 deletions lib/src/entry_point.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import 'my_runner.dart';
import 'util/log.dart' as ulog;

/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
3 changes: 1 addition & 2 deletions lib/src/exceptions.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
3 changes: 1 addition & 2 deletions lib/src/my_runner.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
4 changes: 1 addition & 3 deletions lib/src/onepub_paths.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:dcli/dcli.dart';

class OnePubPaths {
Expand Down
4 changes: 1 addition & 3 deletions lib/src/onepub_settings.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'dart:io';
import 'dart:math';

Expand Down
27 changes: 27 additions & 0 deletions lib/src/pub/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2015, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion lib/src/pub/third_party/tar/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
27 changes: 27 additions & 0 deletions lib/src/token_store/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2015, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 1 addition & 2 deletions lib/src/util/bread_butter_auth.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
3 changes: 1 addition & 2 deletions lib/src/util/config.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
4 changes: 1 addition & 3 deletions lib/src/util/log.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:dcli/dcli.dart';

void log(String message) {
Expand Down
3 changes: 1 addition & 2 deletions lib/src/util/one_pub_token_store.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
4 changes: 1 addition & 3 deletions lib/src/util/send_command.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'dart:async';
import 'dart:convert';
import 'dart:io';
Expand Down
4 changes: 1 addition & 3 deletions lib/src/util/token_export_file.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:dcli/dcli.dart';
import 'package:settings_yaml/settings_yaml.dart';
import 'package:yaml/yaml.dart';
Expand Down
3 changes: 1 addition & 2 deletions test/src/commands/add_private_command_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
3 changes: 1 addition & 2 deletions test/src/commands/login_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
3 changes: 1 addition & 2 deletions test/src/commands/logout_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

Expand Down
4 changes: 1 addition & 3 deletions test/src/commands/publish_test.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* Copyright (C) OnePub IP Pty Ltd - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* licensed under the GPL v2.
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:onepub/src/entry_point.dart';
import 'package:onepub/src/my_runner.dart';
import 'package:test/test.dart';
Expand Down

0 comments on commit 1c75dd5

Please sign in to comment.