From 27abc254c73a047cbda9e5892b0ec19f442155dc Mon Sep 17 00:00:00 2001 From: Dillon Nys Date: Sat, 9 Mar 2024 13:41:39 -0800 Subject: [PATCH] chore: Rename corks to corks_cedar Pub complains that the name corks is too similar to a package called cork, so I can't publish package:corks --- .github/workflows/{corks.yaml => corks_cedar.yaml} | 10 +++++----- .../celest_auth/example/celest/pubspec_overrides.yaml | 4 ++-- packages/celest_auth/example/pubspec.yaml | 4 ++-- packages/celest_auth/pubspec.yaml | 2 +- packages/celest_auth/pubspec_overrides.yaml | 4 ++-- packages/{corks => corks_cedar}/.gitignore | 0 packages/{corks => corks_cedar}/CHANGELOG.md | 0 packages/{corks => corks_cedar}/LICENSE | 0 packages/{corks => corks_cedar}/README.md | 0 packages/{corks => corks_cedar}/analysis_options.yaml | 0 .../corks.dart => corks_cedar/lib/corks_cedar.dart} | 0 packages/{corks => corks_cedar}/lib/corks_proto.dart | 0 packages/{corks => corks_cedar}/lib/src/cork.dart | 8 ++++---- .../lib/src/interop/proto_interop.dart | 10 +++++----- .../lib/src/interop/to_proto.dart | 0 .../lib/src/proto/cedar/v3/context.pb.dart | 0 .../lib/src/proto/cedar/v3/context.pbenum.dart | 0 .../lib/src/proto/cedar/v3/context.pbjson.dart | 0 .../lib/src/proto/cedar/v3/context.pbserver.dart | 0 .../lib/src/proto/cedar/v3/entity.pb.dart | 0 .../lib/src/proto/cedar/v3/entity.pbenum.dart | 0 .../lib/src/proto/cedar/v3/entity.pbjson.dart | 0 .../lib/src/proto/cedar/v3/entity.pbserver.dart | 0 .../lib/src/proto/cedar/v3/entity_id.pb.dart | 0 .../lib/src/proto/cedar/v3/entity_id.pbenum.dart | 0 .../lib/src/proto/cedar/v3/entity_id.pbjson.dart | 0 .../lib/src/proto/cedar/v3/entity_id.pbserver.dart | 0 .../lib/src/proto/cedar/v3/expr.pb.dart | 0 .../lib/src/proto/cedar/v3/expr.pbenum.dart | 0 .../lib/src/proto/cedar/v3/expr.pbjson.dart | 0 .../lib/src/proto/cedar/v3/expr.pbserver.dart | 0 .../lib/src/proto/cedar/v3/policy.pb.dart | 0 .../lib/src/proto/cedar/v3/policy.pbenum.dart | 0 .../lib/src/proto/cedar/v3/policy.pbjson.dart | 0 .../lib/src/proto/cedar/v3/policy.pbserver.dart | 0 .../lib/src/proto/cedar/v3/value.pb.dart | 0 .../lib/src/proto/cedar/v3/value.pbenum.dart | 0 .../lib/src/proto/cedar/v3/value.pbjson.dart | 0 .../lib/src/proto/cedar/v3/value.pbserver.dart | 0 .../lib/src/proto/corks/v1/cork.pb.dart | 0 .../lib/src/proto/corks/v1/cork.pbenum.dart | 0 .../lib/src/proto/corks/v1/cork.pbjson.dart | 0 .../lib/src/proto/corks/v1/cork.pbserver.dart | 0 .../lib/src/proto/dart/dart_options.pb.dart | 0 .../lib/src/proto/dart/dart_options.pbenum.dart | 0 .../lib/src/proto/dart/dart_options.pbjson.dart | 0 .../lib/src/proto/dart/dart_options.pbserver.dart | 0 .../lib/src/proto/google/protobuf/any.pb.dart | 0 .../lib/src/proto/google/protobuf/any.pbenum.dart | 0 .../lib/src/proto/google/protobuf/any.pbjson.dart | 0 .../lib/src/proto/google/protobuf/any.pbserver.dart | 0 .../lib/src/proto/google/protobuf/descriptor.pb.dart | 0 .../src/proto/google/protobuf/descriptor.pbenum.dart | 0 .../src/proto/google/protobuf/descriptor.pbjson.dart | 0 .../src/proto/google/protobuf/descriptor.pbserver.dart | 0 .../lib/src/proto/google/protobuf/duration.pb.dart | 0 .../lib/src/proto/google/protobuf/duration.pbenum.dart | 0 .../lib/src/proto/google/protobuf/duration.pbjson.dart | 0 .../src/proto/google/protobuf/duration.pbserver.dart | 0 .../lib/src/proto/google/protobuf/plugin.pb.dart | 0 .../lib/src/proto/google/protobuf/plugin.pbenum.dart | 0 .../lib/src/proto/google/protobuf/plugin.pbjson.dart | 0 .../lib/src/proto/google/protobuf/plugin.pbserver.dart | 0 .../lib/src/proto/google/protobuf/timestamp.pb.dart | 0 .../src/proto/google/protobuf/timestamp.pbenum.dart | 0 .../src/proto/google/protobuf/timestamp.pbjson.dart | 0 .../src/proto/google/protobuf/timestamp.pbserver.dart | 0 packages/{corks => corks_cedar}/lib/src/signer.dart | 4 ++-- packages/{corks => corks_cedar}/proto/buf.gen.yaml | 0 packages/{corks => corks_cedar}/proto/buf.yaml | 0 .../proto/cedar/v3/context.proto | 0 .../{corks => corks_cedar}/proto/cedar/v3/entity.proto | 0 .../proto/cedar/v3/entity_id.proto | 0 .../{corks => corks_cedar}/proto/cedar/v3/expr.proto | 0 .../{corks => corks_cedar}/proto/cedar/v3/policy.proto | 0 .../{corks => corks_cedar}/proto/cedar/v3/value.proto | 0 .../{corks => corks_cedar}/proto/corks/v1/cork.proto | 0 .../proto/dart/dart_options.proto | 0 .../proto/google/protobuf/README.md | 0 .../proto/google/protobuf/any.proto | 0 .../proto/google/protobuf/descriptor.proto | 0 .../proto/google/protobuf/duration.proto | 0 .../proto/google/protobuf/plugin.proto | 0 .../proto/google/protobuf/timestamp.proto | 0 packages/{corks => corks_cedar}/pubspec.yaml | 4 ++-- packages/{corks => corks_cedar}/test/cork_test.dart | 2 +- 86 files changed, 26 insertions(+), 26 deletions(-) rename .github/workflows/{corks.yaml => corks_cedar.yaml} (85%) rename packages/{corks => corks_cedar}/.gitignore (100%) rename packages/{corks => corks_cedar}/CHANGELOG.md (100%) rename packages/{corks => corks_cedar}/LICENSE (100%) rename packages/{corks => corks_cedar}/README.md (100%) rename packages/{corks => corks_cedar}/analysis_options.yaml (100%) rename packages/{corks/lib/corks.dart => corks_cedar/lib/corks_cedar.dart} (100%) rename packages/{corks => corks_cedar}/lib/corks_proto.dart (100%) rename packages/{corks => corks_cedar}/lib/src/cork.dart (95%) rename packages/{corks => corks_cedar}/lib/src/interop/proto_interop.dart (98%) rename packages/{corks => corks_cedar}/lib/src/interop/to_proto.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/context.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/context.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/context.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/context.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/entity.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/entity.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/entity.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/entity.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/entity_id.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/entity_id.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/entity_id.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/entity_id.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/expr.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/expr.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/expr.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/expr.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/policy.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/policy.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/policy.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/policy.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/value.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/value.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/value.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/cedar/v3/value.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/corks/v1/cork.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/corks/v1/cork.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/corks/v1/cork.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/corks/v1/cork.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/dart/dart_options.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/dart/dart_options.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/dart/dart_options.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/dart/dart_options.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/any.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/any.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/any.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/any.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/descriptor.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/descriptor.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/descriptor.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/descriptor.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/duration.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/duration.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/duration.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/duration.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/plugin.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/plugin.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/plugin.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/plugin.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/timestamp.pb.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/timestamp.pbenum.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/timestamp.pbjson.dart (100%) rename packages/{corks => corks_cedar}/lib/src/proto/google/protobuf/timestamp.pbserver.dart (100%) rename packages/{corks => corks_cedar}/lib/src/signer.dart (95%) rename packages/{corks => corks_cedar}/proto/buf.gen.yaml (100%) rename packages/{corks => corks_cedar}/proto/buf.yaml (100%) rename packages/{corks => corks_cedar}/proto/cedar/v3/context.proto (100%) rename packages/{corks => corks_cedar}/proto/cedar/v3/entity.proto (100%) rename packages/{corks => corks_cedar}/proto/cedar/v3/entity_id.proto (100%) rename packages/{corks => corks_cedar}/proto/cedar/v3/expr.proto (100%) rename packages/{corks => corks_cedar}/proto/cedar/v3/policy.proto (100%) rename packages/{corks => corks_cedar}/proto/cedar/v3/value.proto (100%) rename packages/{corks => corks_cedar}/proto/corks/v1/cork.proto (100%) rename packages/{corks => corks_cedar}/proto/dart/dart_options.proto (100%) rename packages/{corks => corks_cedar}/proto/google/protobuf/README.md (100%) rename packages/{corks => corks_cedar}/proto/google/protobuf/any.proto (100%) rename packages/{corks => corks_cedar}/proto/google/protobuf/descriptor.proto (100%) rename packages/{corks => corks_cedar}/proto/google/protobuf/duration.proto (100%) rename packages/{corks => corks_cedar}/proto/google/protobuf/plugin.proto (100%) rename packages/{corks => corks_cedar}/proto/google/protobuf/timestamp.proto (100%) rename packages/{corks => corks_cedar}/pubspec.yaml (90%) rename packages/{corks => corks_cedar}/test/cork_test.dart (97%) diff --git a/.github/workflows/corks.yaml b/.github/workflows/corks_cedar.yaml similarity index 85% rename from .github/workflows/corks.yaml rename to .github/workflows/corks_cedar.yaml index b26c7b42..4e3e7e2b 100644 --- a/.github/workflows/corks.yaml +++ b/.github/workflows/corks_cedar.yaml @@ -1,9 +1,9 @@ -name: corks +name: corks_cedar on: pull_request: paths: - - ".github/workflows/corks.yaml" - - "packages/corks/**" + - ".github/workflows/corks_cedar.yaml" + - "packages/corks_cedar/**" # Prevent duplicate runs due to Graphite # https://graphite.dev/docs/troubleshooting#why-are-my-actions-running-twice @@ -34,8 +34,8 @@ jobs: - name: Setup Rust run: rustup update stable && rustup default stable - name: Get Packages - working-directory: packages/corks + working-directory: packages/corks_cedar run: dart pub get - name: Test - working-directory: packages/corks + working-directory: packages/corks_cedar run: dart --enable-experiment=native-assets test --fail-fast diff --git a/packages/celest_auth/example/celest/pubspec_overrides.yaml b/packages/celest_auth/example/celest/pubspec_overrides.yaml index b83371fe..aeaea8c0 100644 --- a/packages/celest_auth/example/celest/pubspec_overrides.yaml +++ b/packages/celest_auth/example/celest/pubspec_overrides.yaml @@ -7,5 +7,5 @@ dependency_overrides: path: ../../ celest_core: path: ../../../celest_core - corks: - path: ../../../corks + corks_cedar: + path: ../../../corks_cedar diff --git a/packages/celest_auth/example/pubspec.yaml b/packages/celest_auth/example/pubspec.yaml index 737a9577..dcdc2515 100644 --- a/packages/celest_auth/example/pubspec.yaml +++ b/packages/celest_auth/example/pubspec.yaml @@ -22,8 +22,8 @@ dependency_overrides: path: ../ celest_core: path: ../../celest_core - corks: - path: ../../corks + corks_cedar: + path: ../../corks_cedar dev_dependencies: flutter_test: diff --git a/packages/celest_auth/pubspec.yaml b/packages/celest_auth/pubspec.yaml index 5243edce..4a1046b5 100644 --- a/packages/celest_auth/pubspec.yaml +++ b/packages/celest_auth/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: cedar: ^0.1.0 celest_core: ^0.2.0 chunked_stream: ^1.4.2 - corks: ^0.1.0 + corks_cedar: ^0.1.0 ffi: ^2.1.2 http: ^1.2.1 logging: ^1.2.0 diff --git a/packages/celest_auth/pubspec_overrides.yaml b/packages/celest_auth/pubspec_overrides.yaml index 50fdad3d..7de138b8 100644 --- a/packages/celest_auth/pubspec_overrides.yaml +++ b/packages/celest_auth/pubspec_overrides.yaml @@ -3,5 +3,5 @@ dependency_overrides: path: ../cedar celest_core: path: ../celest_core - corks: - path: ../corks + corks_cedar: + path: ../corks_cedar diff --git a/packages/corks/.gitignore b/packages/corks_cedar/.gitignore similarity index 100% rename from packages/corks/.gitignore rename to packages/corks_cedar/.gitignore diff --git a/packages/corks/CHANGELOG.md b/packages/corks_cedar/CHANGELOG.md similarity index 100% rename from packages/corks/CHANGELOG.md rename to packages/corks_cedar/CHANGELOG.md diff --git a/packages/corks/LICENSE b/packages/corks_cedar/LICENSE similarity index 100% rename from packages/corks/LICENSE rename to packages/corks_cedar/LICENSE diff --git a/packages/corks/README.md b/packages/corks_cedar/README.md similarity index 100% rename from packages/corks/README.md rename to packages/corks_cedar/README.md diff --git a/packages/corks/analysis_options.yaml b/packages/corks_cedar/analysis_options.yaml similarity index 100% rename from packages/corks/analysis_options.yaml rename to packages/corks_cedar/analysis_options.yaml diff --git a/packages/corks/lib/corks.dart b/packages/corks_cedar/lib/corks_cedar.dart similarity index 100% rename from packages/corks/lib/corks.dart rename to packages/corks_cedar/lib/corks_cedar.dart diff --git a/packages/corks/lib/corks_proto.dart b/packages/corks_cedar/lib/corks_proto.dart similarity index 100% rename from packages/corks/lib/corks_proto.dart rename to packages/corks_cedar/lib/corks_proto.dart diff --git a/packages/corks/lib/src/cork.dart b/packages/corks_cedar/lib/src/cork.dart similarity index 95% rename from packages/corks/lib/src/cork.dart rename to packages/corks_cedar/lib/src/cork.dart index a87bdd69..de2969b3 100644 --- a/packages/corks/lib/src/cork.dart +++ b/packages/corks_cedar/lib/src/cork.dart @@ -5,10 +5,10 @@ import 'dart:math'; import 'dart:typed_data'; import 'package:cedar/cedar.dart' as cedar; -import 'package:corks/corks_proto.dart' as proto; -import 'package:corks/src/interop/proto_interop.dart'; -import 'package:corks/src/proto/google/protobuf/any.pb.dart' as proto; -import 'package:corks/src/signer.dart'; +import 'package:corks_cedar/corks_proto.dart' as proto; +import 'package:corks_cedar/src/interop/proto_interop.dart'; +import 'package:corks_cedar/src/proto/google/protobuf/any.pb.dart' as proto; +import 'package:corks_cedar/src/signer.dart'; import 'package:crypto/crypto.dart'; import 'package:meta/meta.dart'; diff --git a/packages/corks/lib/src/interop/proto_interop.dart b/packages/corks_cedar/lib/src/interop/proto_interop.dart similarity index 98% rename from packages/corks/lib/src/interop/proto_interop.dart rename to packages/corks_cedar/lib/src/interop/proto_interop.dart index 59568535..94cdee46 100644 --- a/packages/corks/lib/src/interop/proto_interop.dart +++ b/packages/corks_cedar/lib/src/interop/proto_interop.dart @@ -4,11 +4,11 @@ library; import 'dart:typed_data'; import 'package:cedar/cedar.dart' as cedar; -import 'package:corks/src/proto/cedar/v3/entity.pb.dart'; -import 'package:corks/src/proto/cedar/v3/entity_id.pb.dart'; -import 'package:corks/src/proto/cedar/v3/expr.pb.dart'; -import 'package:corks/src/proto/cedar/v3/policy.pb.dart'; -import 'package:corks/src/proto/cedar/v3/value.pb.dart'; +import 'package:corks_cedar/src/proto/cedar/v3/entity.pb.dart'; +import 'package:corks_cedar/src/proto/cedar/v3/entity_id.pb.dart'; +import 'package:corks_cedar/src/proto/cedar/v3/expr.pb.dart'; +import 'package:corks_cedar/src/proto/cedar/v3/policy.pb.dart'; +import 'package:corks_cedar/src/proto/cedar/v3/value.pb.dart'; import 'package:fixnum/fixnum.dart'; import 'package:meta/meta.dart'; diff --git a/packages/corks/lib/src/interop/to_proto.dart b/packages/corks_cedar/lib/src/interop/to_proto.dart similarity index 100% rename from packages/corks/lib/src/interop/to_proto.dart rename to packages/corks_cedar/lib/src/interop/to_proto.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/context.pb.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/context.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/context.pb.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/context.pb.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/context.pbenum.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/context.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/context.pbenum.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/context.pbenum.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/context.pbjson.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/context.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/context.pbjson.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/context.pbjson.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/context.pbserver.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/context.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/context.pbserver.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/context.pbserver.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/entity.pb.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/entity.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/entity.pb.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/entity.pb.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/entity.pbenum.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/entity.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/entity.pbenum.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/entity.pbenum.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/entity.pbjson.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/entity.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/entity.pbjson.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/entity.pbjson.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/entity.pbserver.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/entity.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/entity.pbserver.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/entity.pbserver.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/entity_id.pb.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/entity_id.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/entity_id.pb.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/entity_id.pb.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/entity_id.pbenum.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/entity_id.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/entity_id.pbenum.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/entity_id.pbenum.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/entity_id.pbjson.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/entity_id.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/entity_id.pbjson.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/entity_id.pbjson.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/entity_id.pbserver.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/entity_id.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/entity_id.pbserver.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/entity_id.pbserver.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/expr.pb.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/expr.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/expr.pb.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/expr.pb.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/expr.pbenum.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/expr.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/expr.pbenum.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/expr.pbenum.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/expr.pbjson.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/expr.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/expr.pbjson.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/expr.pbjson.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/expr.pbserver.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/expr.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/expr.pbserver.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/expr.pbserver.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/policy.pb.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/policy.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/policy.pb.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/policy.pb.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/policy.pbenum.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/policy.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/policy.pbenum.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/policy.pbenum.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/policy.pbjson.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/policy.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/policy.pbjson.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/policy.pbjson.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/policy.pbserver.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/policy.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/policy.pbserver.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/policy.pbserver.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/value.pb.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/value.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/value.pb.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/value.pb.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/value.pbenum.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/value.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/value.pbenum.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/value.pbenum.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/value.pbjson.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/value.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/value.pbjson.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/value.pbjson.dart diff --git a/packages/corks/lib/src/proto/cedar/v3/value.pbserver.dart b/packages/corks_cedar/lib/src/proto/cedar/v3/value.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/cedar/v3/value.pbserver.dart rename to packages/corks_cedar/lib/src/proto/cedar/v3/value.pbserver.dart diff --git a/packages/corks/lib/src/proto/corks/v1/cork.pb.dart b/packages/corks_cedar/lib/src/proto/corks/v1/cork.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/corks/v1/cork.pb.dart rename to packages/corks_cedar/lib/src/proto/corks/v1/cork.pb.dart diff --git a/packages/corks/lib/src/proto/corks/v1/cork.pbenum.dart b/packages/corks_cedar/lib/src/proto/corks/v1/cork.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/corks/v1/cork.pbenum.dart rename to packages/corks_cedar/lib/src/proto/corks/v1/cork.pbenum.dart diff --git a/packages/corks/lib/src/proto/corks/v1/cork.pbjson.dart b/packages/corks_cedar/lib/src/proto/corks/v1/cork.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/corks/v1/cork.pbjson.dart rename to packages/corks_cedar/lib/src/proto/corks/v1/cork.pbjson.dart diff --git a/packages/corks/lib/src/proto/corks/v1/cork.pbserver.dart b/packages/corks_cedar/lib/src/proto/corks/v1/cork.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/corks/v1/cork.pbserver.dart rename to packages/corks_cedar/lib/src/proto/corks/v1/cork.pbserver.dart diff --git a/packages/corks/lib/src/proto/dart/dart_options.pb.dart b/packages/corks_cedar/lib/src/proto/dart/dart_options.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/dart/dart_options.pb.dart rename to packages/corks_cedar/lib/src/proto/dart/dart_options.pb.dart diff --git a/packages/corks/lib/src/proto/dart/dart_options.pbenum.dart b/packages/corks_cedar/lib/src/proto/dart/dart_options.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/dart/dart_options.pbenum.dart rename to packages/corks_cedar/lib/src/proto/dart/dart_options.pbenum.dart diff --git a/packages/corks/lib/src/proto/dart/dart_options.pbjson.dart b/packages/corks_cedar/lib/src/proto/dart/dart_options.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/dart/dart_options.pbjson.dart rename to packages/corks_cedar/lib/src/proto/dart/dart_options.pbjson.dart diff --git a/packages/corks/lib/src/proto/dart/dart_options.pbserver.dart b/packages/corks_cedar/lib/src/proto/dart/dart_options.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/dart/dart_options.pbserver.dart rename to packages/corks_cedar/lib/src/proto/dart/dart_options.pbserver.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/any.pb.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/any.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/any.pb.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/any.pb.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/any.pbenum.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/any.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/any.pbenum.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/any.pbenum.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/any.pbjson.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/any.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/any.pbjson.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/any.pbjson.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/any.pbserver.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/any.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/any.pbserver.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/any.pbserver.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/descriptor.pb.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/descriptor.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/descriptor.pb.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/descriptor.pb.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/descriptor.pbenum.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/descriptor.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/descriptor.pbenum.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/descriptor.pbenum.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/descriptor.pbjson.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/descriptor.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/descriptor.pbjson.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/descriptor.pbjson.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/descriptor.pbserver.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/descriptor.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/descriptor.pbserver.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/descriptor.pbserver.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/duration.pb.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/duration.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/duration.pb.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/duration.pb.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/duration.pbenum.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/duration.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/duration.pbenum.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/duration.pbenum.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/duration.pbjson.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/duration.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/duration.pbjson.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/duration.pbjson.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/duration.pbserver.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/duration.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/duration.pbserver.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/duration.pbserver.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/plugin.pb.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/plugin.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/plugin.pb.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/plugin.pb.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/plugin.pbenum.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/plugin.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/plugin.pbenum.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/plugin.pbenum.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/plugin.pbjson.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/plugin.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/plugin.pbjson.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/plugin.pbjson.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/plugin.pbserver.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/plugin.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/plugin.pbserver.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/plugin.pbserver.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/timestamp.pb.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/timestamp.pb.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/timestamp.pb.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/timestamp.pb.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/timestamp.pbenum.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/timestamp.pbenum.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/timestamp.pbenum.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/timestamp.pbenum.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/timestamp.pbjson.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/timestamp.pbjson.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/timestamp.pbjson.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/timestamp.pbjson.dart diff --git a/packages/corks/lib/src/proto/google/protobuf/timestamp.pbserver.dart b/packages/corks_cedar/lib/src/proto/google/protobuf/timestamp.pbserver.dart similarity index 100% rename from packages/corks/lib/src/proto/google/protobuf/timestamp.pbserver.dart rename to packages/corks_cedar/lib/src/proto/google/protobuf/timestamp.pbserver.dart diff --git a/packages/corks/lib/src/signer.dart b/packages/corks_cedar/lib/src/signer.dart similarity index 95% rename from packages/corks/lib/src/signer.dart rename to packages/corks_cedar/lib/src/signer.dart index 94d1c52b..e42391b0 100644 --- a/packages/corks/lib/src/signer.dart +++ b/packages/corks_cedar/lib/src/signer.dart @@ -2,8 +2,8 @@ import 'dart:async'; import 'dart:convert'; import 'dart:typed_data'; -import 'package:corks/corks_proto.dart' as proto; -import 'package:corks/src/interop/to_proto.dart'; +import 'package:corks_cedar/corks_proto.dart' as proto; +import 'package:corks_cedar/src/interop/to_proto.dart'; import 'package:crypto/crypto.dart'; import 'package:meta/meta.dart'; diff --git a/packages/corks/proto/buf.gen.yaml b/packages/corks_cedar/proto/buf.gen.yaml similarity index 100% rename from packages/corks/proto/buf.gen.yaml rename to packages/corks_cedar/proto/buf.gen.yaml diff --git a/packages/corks/proto/buf.yaml b/packages/corks_cedar/proto/buf.yaml similarity index 100% rename from packages/corks/proto/buf.yaml rename to packages/corks_cedar/proto/buf.yaml diff --git a/packages/corks/proto/cedar/v3/context.proto b/packages/corks_cedar/proto/cedar/v3/context.proto similarity index 100% rename from packages/corks/proto/cedar/v3/context.proto rename to packages/corks_cedar/proto/cedar/v3/context.proto diff --git a/packages/corks/proto/cedar/v3/entity.proto b/packages/corks_cedar/proto/cedar/v3/entity.proto similarity index 100% rename from packages/corks/proto/cedar/v3/entity.proto rename to packages/corks_cedar/proto/cedar/v3/entity.proto diff --git a/packages/corks/proto/cedar/v3/entity_id.proto b/packages/corks_cedar/proto/cedar/v3/entity_id.proto similarity index 100% rename from packages/corks/proto/cedar/v3/entity_id.proto rename to packages/corks_cedar/proto/cedar/v3/entity_id.proto diff --git a/packages/corks/proto/cedar/v3/expr.proto b/packages/corks_cedar/proto/cedar/v3/expr.proto similarity index 100% rename from packages/corks/proto/cedar/v3/expr.proto rename to packages/corks_cedar/proto/cedar/v3/expr.proto diff --git a/packages/corks/proto/cedar/v3/policy.proto b/packages/corks_cedar/proto/cedar/v3/policy.proto similarity index 100% rename from packages/corks/proto/cedar/v3/policy.proto rename to packages/corks_cedar/proto/cedar/v3/policy.proto diff --git a/packages/corks/proto/cedar/v3/value.proto b/packages/corks_cedar/proto/cedar/v3/value.proto similarity index 100% rename from packages/corks/proto/cedar/v3/value.proto rename to packages/corks_cedar/proto/cedar/v3/value.proto diff --git a/packages/corks/proto/corks/v1/cork.proto b/packages/corks_cedar/proto/corks/v1/cork.proto similarity index 100% rename from packages/corks/proto/corks/v1/cork.proto rename to packages/corks_cedar/proto/corks/v1/cork.proto diff --git a/packages/corks/proto/dart/dart_options.proto b/packages/corks_cedar/proto/dart/dart_options.proto similarity index 100% rename from packages/corks/proto/dart/dart_options.proto rename to packages/corks_cedar/proto/dart/dart_options.proto diff --git a/packages/corks/proto/google/protobuf/README.md b/packages/corks_cedar/proto/google/protobuf/README.md similarity index 100% rename from packages/corks/proto/google/protobuf/README.md rename to packages/corks_cedar/proto/google/protobuf/README.md diff --git a/packages/corks/proto/google/protobuf/any.proto b/packages/corks_cedar/proto/google/protobuf/any.proto similarity index 100% rename from packages/corks/proto/google/protobuf/any.proto rename to packages/corks_cedar/proto/google/protobuf/any.proto diff --git a/packages/corks/proto/google/protobuf/descriptor.proto b/packages/corks_cedar/proto/google/protobuf/descriptor.proto similarity index 100% rename from packages/corks/proto/google/protobuf/descriptor.proto rename to packages/corks_cedar/proto/google/protobuf/descriptor.proto diff --git a/packages/corks/proto/google/protobuf/duration.proto b/packages/corks_cedar/proto/google/protobuf/duration.proto similarity index 100% rename from packages/corks/proto/google/protobuf/duration.proto rename to packages/corks_cedar/proto/google/protobuf/duration.proto diff --git a/packages/corks/proto/google/protobuf/plugin.proto b/packages/corks_cedar/proto/google/protobuf/plugin.proto similarity index 100% rename from packages/corks/proto/google/protobuf/plugin.proto rename to packages/corks_cedar/proto/google/protobuf/plugin.proto diff --git a/packages/corks/proto/google/protobuf/timestamp.proto b/packages/corks_cedar/proto/google/protobuf/timestamp.proto similarity index 100% rename from packages/corks/proto/google/protobuf/timestamp.proto rename to packages/corks_cedar/proto/google/protobuf/timestamp.proto diff --git a/packages/corks/pubspec.yaml b/packages/corks_cedar/pubspec.yaml similarity index 90% rename from packages/corks/pubspec.yaml rename to packages/corks_cedar/pubspec.yaml index 44983ba5..02f25df0 100644 --- a/packages/corks/pubspec.yaml +++ b/packages/corks_cedar/pubspec.yaml @@ -1,7 +1,7 @@ -name: corks +name: corks_cedar description: An embedded authorization token format, based off Google's macaroons. version: 0.1.0 -repository: https://github.com/celest-dev/celest/tree/main/packages/corks +repository: https://github.com/celest-dev/celest/tree/main/packages/corks_cedar environment: sdk: ^3.3.0 diff --git a/packages/corks/test/cork_test.dart b/packages/corks_cedar/test/cork_test.dart similarity index 97% rename from packages/corks/test/cork_test.dart rename to packages/corks_cedar/test/cork_test.dart index 0d289274..bc42a665 100644 --- a/packages/corks/test/cork_test.dart +++ b/packages/corks_cedar/test/cork_test.dart @@ -3,7 +3,7 @@ import 'dart:math'; import 'dart:typed_data'; import 'package:cedar/cedar.dart'; -import 'package:corks/corks.dart'; +import 'package:corks_cedar/corks_cedar.dart'; import 'package:test/test.dart'; final random = Random.secure();