Skip to content

Commit

Permalink
have to make the RIGHT calls to truncate ... conditional on the versi…
Browse files Browse the repository at this point in the history
…on of Rowan being used ..
  • Loading branch information
dalehenrich committed Oct 26, 2023
1 parent 1bffc24 commit 5c5913c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ export
exportTo: fileRef
fileRef
writeStreamDo: [ :fileStream |
Rowan version >= ('3.0.0' asRwGemStoneVersionNumber)
Rowan version >= ('3.0.0' asRwSemanticVersionNumber)
ifTrue: [ fileStream truncate ].
STON put: self onStreamPretty: fileStream ]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ newRegistryNamed: registryName ensure: ensure
stonesRegistry at: registryName put: stoneRegistry registryPath.
self configFile
writeStreamDo: [ :fileStream |
Rowan version >= ('3.0.0' asRwGemStoneVersionNumber)
Rowan version >= ('3.0.0' asRwSemanticVersionNumber)
ifTrue: [ fileStream truncate ].
STON put: stonesRegistry onStreamPretty: fileStream ].
stoneRegistry export.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ export
export
self class configFile
writeStreamDo: [ :fileStream |
Rowan version >= ('3.0.0' asRwGemStoneVersionNumber)
Rowan version >= ('3.0.0' asRwSemanticVersionNumber)
ifTrue: [ fileStream truncate ].
STON put: self onStreamPretty: fileStream ].
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ createStoneStructure: stoneSpec
lf ].
stoneRoot / '.topazini'
writeStreamDo: [ :fileStream |
fileStream truncate.
Rowan version >= ('3.0.0' asRwSemanticVersionNumber)
ifTrue: [fileStream truncate].
fileStream
nextPutAll: 'set GEMSTONE ' , stoneSpec stoneName;
lf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ accessing
exportTo: fileRef
fileRef
writeStreamDo: [ :fileStream |
fileStream truncate.
Rowan version >= ('3.0.0' asRwSemanticVersionNumber)
ifTrue: [fileStream truncate].
STON put: self onStreamPretty: fileStream ]

0 comments on commit 5c5913c

Please sign in to comment.