Skip to content

Commit

Permalink
Move Hyperspace extensions 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 59e48f8 commit e220d92
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions source/BaselineOfStargate/BaselineOfStargate.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ BaselineOfStargate >> setUpCorePackages: spec [
group: 'Deployment' with: 'Stargate-Model'.

#( 'Stargate-Zinc-Extensions' 'Stargate-Teapot-Extensions'
'Stargate-NeoJSON-Extensions' 'Stargate-JSONWebToken-Extensions' )
do: [ :extensionPackageName |
spec
package: extensionPackageName
with: [ spec requires: 'Stargate-Model' ];
group: 'Core' with: extensionPackageName;
group: 'Deployment' with: extensionPackageName ]
'Stargate-NeoJSON-Extensions' 'Stargate-JSONWebToken-Extensions'
'Stargate-Hyperspace-Extensions' ) do: [ :extensionPackageName |
spec
package: extensionPackageName
with: [ spec requires: 'Stargate-Model' ];
group: 'Core' with: extensionPackageName;
group: 'Deployment' with: extensionPackageName ]
]

{ #category : #baselines }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #HTTPClientError }

{ #category : #'*Stargate-Model' }
{ #category : #'*Stargate-Hyperspace-Extensions' }
HTTPClientError >> neoJsonOn: neoJSONWriter [

neoJSONWriter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Extension { #name : #HTTPNotAcceptable }

{ #category : #'*Stargate-Model' }
{ #category : #'*Stargate-Hyperspace-Extensions' }
HTTPNotAcceptable >> neoJsonOn: neoJSONWriter [

( neoJSONWriter customMappingFor: ZnMimeType ) encoder: [ :mediaType | mediaType asString ].
( neoJSONWriter customMappingFor: LanguageTag ) encoder: [ :languageTag | languageTag asString ].
neoJSONWriter
writeMap:
( Dictionary new
( OrderedDictionary new
at: #code put: self code;
at: #message put: self messageText;
at: #allowedMediaTypes put: self allowedMediaTypes;
Expand Down
1 change: 1 addition & 0 deletions source/Stargate-Hyperspace-Extensions/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Stargate-Hyperspace-Extensions' }

0 comments on commit e220d92

Please sign in to comment.