From 241c5ca4ed075fb9847971acac51a03651ded636 Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Wed, 13 Sep 2023 14:57:48 -0300 Subject: [PATCH] Move String extension to its own package --- source/BaselineOfStargate/BaselineOfStargate.class.st | 3 ++- .../String.extension.st | 2 +- source/Stargate-Extensions/package.st | 1 + .../CharacterCollection.extension.st | 7 +++++++ source/Stargate-GS64-Extensions/package.st | 1 + 5 files changed, 12 insertions(+), 2 deletions(-) rename source/{Stargate-Model => Stargate-Extensions}/String.extension.st (68%) create mode 100644 source/Stargate-Extensions/package.st create mode 100644 source/Stargate-GS64-Extensions/CharacterCollection.extension.st create mode 100644 source/Stargate-GS64-Extensions/package.st diff --git a/source/BaselineOfStargate/BaselineOfStargate.class.st b/source/BaselineOfStargate/BaselineOfStargate.class.st index 323ce7f..338376f 100644 --- a/source/BaselineOfStargate/BaselineOfStargate.class.st +++ b/source/BaselineOfStargate/BaselineOfStargate.class.st @@ -40,7 +40,8 @@ BaselineOfStargate >> setUpCorePackages: spec [ #( 'Stargate-Zinc-Extensions' 'Stargate-Teapot-Extensions' 'Stargate-NeoJSON-Extensions' 'Stargate-JSONWebToken-Extensions' - 'Stargate-Hyperspace-Extensions' ) do: [ :extensionPackageName | + 'Stargate-Hyperspace-Extensions' 'Stargate-Extensions' ) do: [ + :extensionPackageName | spec package: extensionPackageName with: [ spec requires: 'Stargate-Model' ]; diff --git a/source/Stargate-Model/String.extension.st b/source/Stargate-Extensions/String.extension.st similarity index 68% rename from source/Stargate-Model/String.extension.st rename to source/Stargate-Extensions/String.extension.st index 57fe580..6374923 100644 --- a/source/Stargate-Model/String.extension.st +++ b/source/Stargate-Extensions/String.extension.st @@ -1,6 +1,6 @@ Extension { #name : #String } -{ #category : #'*Stargate-Model' } +{ #category : #'*Stargate-Extensions' } String >> asWebOrigin [ ^ self asUrl asWebOrigin diff --git a/source/Stargate-Extensions/package.st b/source/Stargate-Extensions/package.st new file mode 100644 index 0000000..b2c4b69 --- /dev/null +++ b/source/Stargate-Extensions/package.st @@ -0,0 +1 @@ +Package { #name : #'Stargate-Extensions' } diff --git a/source/Stargate-GS64-Extensions/CharacterCollection.extension.st b/source/Stargate-GS64-Extensions/CharacterCollection.extension.st new file mode 100644 index 0000000..a43b4bc --- /dev/null +++ b/source/Stargate-GS64-Extensions/CharacterCollection.extension.st @@ -0,0 +1,7 @@ +Extension { #name : #CharacterCollection } + +{ #category : #'*Stargate-GS64-Extensions' } +CharacterCollection >> asWebOrigin [ + + ^ self asUrl asWebOrigin +] diff --git a/source/Stargate-GS64-Extensions/package.st b/source/Stargate-GS64-Extensions/package.st new file mode 100644 index 0000000..5ca7b29 --- /dev/null +++ b/source/Stargate-GS64-Extensions/package.st @@ -0,0 +1 @@ +Package { #name : #'Stargate-GS64-Extensions' }