Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from hpi-swa-teaching/development
SWT Summer 2021
- Loading branch information
Showing
585 changed files
with
3,191 additions
and
693 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Algernon', | ||
#directory : 'packages', | ||
#load : 'Tests', | ||
#platforms : [ #squeak ], | ||
#useLatestMetacello : true | ||
} | ||
], | ||
#preLoading : [ | ||
'scripts/preLoading.st' | ||
], | ||
#testing : { | ||
#categories : [ 'BaselineOfAlgernonTests' ] | ||
} | ||
} | ||
|
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,23 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Algernon', | ||
#directory : 'packages', | ||
#load : 'Tests', | ||
#platforms : [ #squeak ], | ||
#useLatestMetacello : true | ||
} | ||
], | ||
#preLoading : [ | ||
'scripts/preLoading.st' | ||
], | ||
#testing : { | ||
#coverage : { | ||
#categories : [ 'Algernon' ] | ||
}, | ||
#exclude : { | ||
#categories : [ 'BaselineOfAlgernonTests' ] | ||
} | ||
} | ||
} | ||
|
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,20 @@ | ||
name: Coverage Reporter | ||
on: [push] | ||
|
||
jobs: | ||
coverage: | ||
name: Coverage Report | ||
runs-on: ubuntu-latest | ||
env: | ||
ST_IMAGE: Squeak64-trunk | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: hpi-swa/setup-smalltalkCI@v1 | ||
id: smalltalkci | ||
with: | ||
smalltalk-image: ${{ env.ST_IMAGE }} | ||
- run: smalltalkci -s ${{ env.ST_IMAGE }} ./.coverage.smalltalk.ston | ||
shell: bash | ||
timeout-minutes: 15 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,47 @@ | ||
name: Release | ||
|
||
env: | ||
smalltalk: 'Squeak64-5.3' | ||
PATH_TO_SAR: '/home/runner/.smalltalkCI/_builds/Algernon.sar' | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: Release Algernon | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # full-clone, needed for commit messages | ||
- name: Retrieve Release Version | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- uses: hpi-swa/setup-smalltalkCI@v1 | ||
id: smalltalkci | ||
with: | ||
smalltalk-image: ${{ ENV.smalltalk }} | ||
- run: smalltalkci -s ${{ ENV.smalltalk }} ./.release.smalltalk.ston | ||
shell: bash | ||
timeout-minutes: 15 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Generate Release Notes | ||
run: | | ||
LAST_VERSION=$(git tag --list --sort=-version:refname "v*" | head -2 | tail -1) | ||
echo "Comparing $LAST_VERSION to $RELEASE_VERSION" | ||
# Make sure that the latest version number changed | ||
test "0" -ne "$(git diff --exit-code $LAST_VERSION..$RELEASE_VERSION -- packages/Algernon.package/ALGInstallation.class/instance/latestVersion.st > /dev/null; echo $?)" | ||
git log $LAST_VERSION..$RELEASE_VERSION --pretty=format:'- %s' | tee ${{ github.workspace }}-CHANGELOG.txt | ||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ${{ ENV.PATH_TO_SAR }} | ||
name: Algernon ${{ ENV.RELEASE_VERSION }} | ||
body_path: ${{ github.workspace }}-CHANGELOG.txt | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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,22 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Algernon', | ||
#directory : 'packages', | ||
#load : 'Tests', | ||
#platforms : [ #squeak ], | ||
#useLatestMetacello : true | ||
} | ||
], | ||
#preLoading : [ | ||
'scripts/preLoading.st' | ||
], | ||
#postLoading : [ | ||
'scripts/create_sar.st' | ||
], | ||
#testing : { | ||
#categories : [], | ||
#failOnZeroTests : false | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
OrderedDictionary { | ||
'packages\/Algernon.package' : #SquotCypressCodeSerializer, | ||
'packages\/AlgernonTests.package' : #SquotCypressCodeSerializer, | ||
'packages\/BaselineOfAlgernon.package' : #SquotCypressCodeSerializer | ||
'packages/Algernon.package' : #SquotCypressCodeSerializer, | ||
'packages/AlgernonTests.package' : #SquotCypressCodeSerializer, | ||
'packages/BaselineOfAlgernon.package' : #SquotCypressCodeSerializer, | ||
'packages/BaselineOfAlgernonTests.package' : #SquotCypressCodeSerializer | ||
} |
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,4 @@ | ||
icon | ||
icon | ||
|
||
^ #Method |
1 change: 1 addition & 0 deletions
1
packages/Algernon.package/ALGActionType.class/methodProperties.json
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
5 changes: 3 additions & 2 deletions
5
packages/Algernon.package/ALGActionVerbFilter.class/class/keywords.st
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
filtering | ||
keywords | ||
^ Set newFrom: {'run'. 'browse'. 'fileout'. | ||
'open'. 'saverepo'. 'do'. | ||
'open'. 'do'. | ||
'inspect'. 'explore'. '='. | ||
'save'. 'saveandquit'. 'quit'} | ||
'front'. 'expand'. 'collapse'. | ||
'contract'. 'close' } |
4 changes: 2 additions & 2 deletions
4
packages/Algernon.package/ALGActionVerbFilter.class/methodProperties.json
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"class" : { | ||
"helpTexts" : "rk 7/15/2020 10:51", | ||
"keywords" : "jRo 8/1/2020 00:43" }, | ||
"helpTexts" : "lm 7/6/2021 20:54", | ||
"keywords" : "lm 7/6/2021 20:53" }, | ||
"instance" : { | ||
"filter:given:" : "pw 8/4/2020 00:30" } } |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
An ALGBreadcrumbs is a GUI component that is responsible for displaying the current hierarchy. | ||
|
||
Instance Variables | ||
controller: ALGController reference to ALGController | ||
controller: ALGController reference to ALGController | ||
defaultCrumb: TextMorph default breadcrumb shown on start | ||
navigateBackIconMorph: Morph contains two icons: shift and tab |
4 changes: 4 additions & 0 deletions
4
packages/Algernon.package/ALGBreadcrumbs.class/class/iconInsideSpacing.st
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,4 @@ | ||
constants | ||
iconInsideSpacing | ||
|
||
^ 2 |
4 changes: 4 additions & 0 deletions
4
packages/Algernon.package/ALGBreadcrumbs.class/class/iconSpacing.st
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,4 @@ | ||
constants | ||
iconSpacing | ||
|
||
^ 8 |
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
13 changes: 13 additions & 0 deletions
13
packages/Algernon.package/ALGBreadcrumbs.class/instance/createNavigateBackIconMorph.st
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,13 @@ | ||
initialization | ||
createNavigateBackIconMorph | ||
| shiftIconMorph tabIconMorph | | ||
|
||
shiftIconMorph := self createNavigationIcon: #NavigateBack. | ||
tabIconMorph := self createNavigationIcon: #HasChildren. | ||
shiftIconMorph | ||
position: (self position x + self class crumbSpacing) @ shiftIconMorph position y. | ||
tabIconMorph | ||
position: (shiftIconMorph position x + | ||
shiftIconMorph width + | ||
self class iconInsideSpacing) @ tabIconMorph position y. | ||
^ self packIconsIntoMorph: { shiftIconMorph . tabIconMorph } |
6 changes: 6 additions & 0 deletions
6
packages/Algernon.package/ALGBreadcrumbs.class/instance/createNavigationIcon..st
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,6 @@ | ||
initialization | ||
createNavigationIcon: aSymbol | ||
|
||
^ (ALGIconFactory getInstance loadIconFor: aSymbol) asMorph | ||
height: self height; | ||
center: self center. |
3 changes: 3 additions & 0 deletions
3
packages/Algernon.package/ALGBreadcrumbs.class/instance/defaultCrumb..st
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,3 @@ | ||
accessing | ||
defaultCrumb: anObject | ||
defaultCrumb := anObject |
Oops, something went wrong.