Skip to content

Commit

Permalink
Move String extension to its own package
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Sep 13, 2023
1 parent e220d92 commit 241c5ca
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/BaselineOfStargate/BaselineOfStargate.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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' ];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #String }

{ #category : #'*Stargate-Model' }
{ #category : #'*Stargate-Extensions' }
String >> asWebOrigin [

^ self asUrl asWebOrigin
Expand Down
1 change: 1 addition & 0 deletions source/Stargate-Extensions/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Stargate-Extensions' }
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Extension { #name : #CharacterCollection }

{ #category : #'*Stargate-GS64-Extensions' }
CharacterCollection >> asWebOrigin [

^ self asUrl asWebOrigin
]
1 change: 1 addition & 0 deletions source/Stargate-GS64-Extensions/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Stargate-GS64-Extensions' }

0 comments on commit 241c5ca

Please sign in to comment.