-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
574 add support for p11 and remove support for versions 7 8 (#575)
Removed support for Pharo versions P7, P8 added for P11 - fixes #574 * Changed CI to use P11-P9, readme updated - added CI support for P11-P9 - adjusted readme with proper badges * Added compatibility package for P11 handling ExTonelWriter superclass change * Fixed method classification * Fixed baseline with version specific loading
- Loading branch information
Showing
12 changed files
with
84 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
" | ||
I am a TonelWriter that provides finer level control of writing Tonel files for Exercism | ||
" | ||
Class { | ||
#name : #ExTonelWriter, | ||
#superclass : #TonelWriterV1, | ||
#instVars : [ | ||
'sourceDirectory' | ||
], | ||
#category : #ExercismPharo110 | ||
} | ||
|
||
{ #category : #writing } | ||
ExTonelWriter >> mappedSnapshot: aSnapshot [ | ||
"extracted from #writeSnapshot: to customise behavior" | ||
|
||
|tonelMap extensionDefinitions| | ||
snapshot := aSnapshot. | ||
tonelMap := Dictionary new. | ||
|
||
"Tonel export classes with their methods, mapped from their filename to content streams" | ||
(snapshot definitions select: #isClassDefinition) | ||
do: [ :classDef | |filename tonelStream| | ||
filename := classDef exTonelFilename. | ||
tonelStream := WriteStream on: String new. | ||
self writeClass: classDef on: tonelStream. | ||
tonelMap at: filename put: tonelStream ]. | ||
|
||
"... and method extensions" | ||
extensionDefinitions := (snapshot definitions select: [ :each | | ||
each isMethodDefinition and: [ each isExtensionMethod ] ]) removeDuplicates. | ||
|
||
extensionDefinitions do: [ :methodDef | |filename| | ||
filename := methodDef exTonelFilename. | ||
tonelMap at: filename ifAbsentPut: [ | ||
(WriteStream on: String new) nextPutAll: 'Extension { #name : #', methodDef className, ' }' ; lf; yourself ]. | ||
self writeMethodDefinition: methodDef on: (tonelMap at: filename). | ||
]. | ||
^tonelMap | ||
|
||
] | ||
|
||
{ #category : #private } | ||
ExTonelWriter >> obtainPackageDir: aDefinition [ | ||
"Overridden to allow a specific directory to be supplied" | ||
|
||
^self sourceDirectory ifNil: [ super obtainPackageDir: aDefinition ] | ||
] | ||
|
||
{ #category : #accessing } | ||
ExTonelWriter >> sourceDirectory [ | ||
^ sourceDirectory | ||
] | ||
|
||
{ #category : #accessing } | ||
ExTonelWriter >> sourceDirectory: anObject [ | ||
sourceDirectory := anObject | ||
] | ||
|
||
{ #category : #writing } | ||
ExTonelWriter >> writeClass: aClassDefinition on: aStream [ | ||
"Not clear on whether this is an override and still needed? ~tma~" | ||
|
||
self writeClassDefinition: aClassDefinition on: aStream. | ||
self writeClassSideMethodDefinitions: aClassDefinition on: aStream. | ||
self writeInstanceSideMethodDefinitions: aClassDefinition on: aStream | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Package { #name : #ExercismPharo110 } |
This file was deleted.
Oops, something went wrong.
62 changes: 0 additions & 62 deletions
62
dev/src/ExercismPharo70/DoesNotUnderstandDebugAction.extension.st
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.