-
Notifications
You must be signed in to change notification settings - Fork 3
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 #375 from hpi-swa-teaching/develop
all changes from the 2020 swt group
- Loading branch information
Showing
456 changed files
with
1,702 additions
and
1,164 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,24 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
on: [push, pull_request] | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# Select platform(s) | ||
os: [ ubuntu-latest, windows-latest ] | ||
# Select compatible Smalltalk image(s) | ||
smalltalk: [ Squeak64-trunk, Squeak64-5.3, Squeak64-5.2 ] | ||
name: ${{ matrix.smalltalk }} on ${{ matrix.os }} | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-version: ${{ matrix.smalltalk }} | ||
- run: smalltalkci -s ${{ matrix.smalltalk }} | ||
timeout-minutes: 15 |
This file was deleted.
Oops, something went wrong.
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,4 +1,5 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#objectsReplacedByNames : true, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/IMAPClient-Core.package/ICAccountInfo.class/README.md
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 +1,11 @@ | ||
An ICAccountInfo is a dataobject holding information needed to connect to a server such as server address and user credentials. It also ensures basic IMAP datatype validity. | ||
|
||
Instance Variables | ||
|
||
accountName: Name of the account set by the user. | ||
host: Hostname of the IMAP server. | ||
port: Port of the IMAP service on the server. Default: 993. | ||
username: Username to login at the IMAP server. | ||
password: Password of the user to login at the server. Will be deleted after login. | ||
|
||
|
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
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/^equals.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 @@ | ||
comparing | ||
= anotherAccountInfo | ||
^ (self class = anotherAccountInfo class) | ||
and: [self asDictionary = anotherAccountInfo asDictionary] |
5 changes: 5 additions & 0 deletions
5
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/accountNameUnused.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,5 @@ | ||
validating | ||
accountNameUnused | ||
|
||
^ ICEndPoint connectionConfigurations | ||
noneSatisfy: [:each | (self accountName) = (each accountName)] |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/asDictionary.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,4 +1,4 @@ | ||
accessing | ||
converting | ||
asDictionary | ||
|
||
| dict | | ||
|
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/canConvert..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,4 +1,4 @@ | ||
validation | ||
validating | ||
canConvert: aString | ||
|
||
^ ('"|\\' asRegex matchesIn: aString) isEmpty |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/eraseStoredPassword.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 @@ | ||
action | ||
eraseStoredPassword | ||
|
||
self password: '' |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/hasValidServerInfo.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,4 +1,4 @@ | ||
validation | ||
validating | ||
hasValidServerInfo | ||
|
||
^ self host ~= self class invalidHost | ||
|
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/hasValidUserInfo.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,4 +1,4 @@ | ||
validation | ||
validating | ||
hasValidUserInfo | ||
|
||
^ self username ~= self class invalidUsername | ||
|
5 changes: 5 additions & 0 deletions
5
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/hash.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,5 @@ | ||
comparing | ||
hash | ||
"Answer an integer value that is related to the identity of the receiver." | ||
|
||
^ self username bitXor: (self accountName bitXor: (self host bitXor: self port hash)) |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/isValid.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,4 +1,4 @@ | ||
validation | ||
validating | ||
isValid | ||
|
||
^ self hasValidServerInfo and: [self hasValidUserInfo] |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/missingFields.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 @@ | ||
accessing | ||
missingFields | ||
|
||
^ (self asDictionary select: [ :value | (value asString isEmpty) | (value = nil asString) ]) keys |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/passwordAsIMAPString.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,4 +1,4 @@ | ||
accessing | ||
converting | ||
passwordAsIMAPString | ||
|
||
^ '"', self password, '"' |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICAccountInfo.class/instance/usernameAsIMAPString.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,4 +1,4 @@ | ||
accessing | ||
converting | ||
usernameAsIMAPString | ||
|
||
^ '"', self username, '"' |
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
2 changes: 2 additions & 0 deletions
2
packages/IMAPClient-Core.package/ICAddressBook.class/README.md
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,2 @@ | ||
An ICAddressBook is a collection for the user's contacts containing email addresses of all accounts. | ||
This is a singleton which can be accessed with #new. |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Core.package/ICAddressBook.class/class/new.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 @@ | ||
instance creation | ||
new | ||
Instance ifNil: [Instance := super new: 10]. | ||
^ Instance |
5 changes: 5 additions & 0 deletions
5
packages/IMAPClient-Core.package/ICAddressBook.class/instance/addEmail..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,5 @@ | ||
action | ||
addEmail: aString | ||
|
||
self addIfNotPresent: aString | ||
|
7 changes: 7 additions & 0 deletions
7
packages/IMAPClient-Core.package/ICAddressBook.class/instance/feedMeWithEntries..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,7 @@ | ||
initialize | ||
feedMeWithEntries: anEmailCollection | ||
|
||
anEmailCollection do: [:emailAccount | | ||
self | ||
readRootFoldersMailsFrom: emailAccount; | ||
readChildFoldersMailsFrom: emailAccount.] |
6 changes: 6 additions & 0 deletions
6
packages/IMAPClient-Core.package/ICAddressBook.class/instance/find..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 @@ | ||
action | ||
find: anEntry | ||
|
||
| index | | ||
index := self indexOf: anEntry. | ||
^ self at: index |
6 changes: 6 additions & 0 deletions
6
packages/IMAPClient-Core.package/ICAddressBook.class/instance/readChildFoldersMailsFrom..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 @@ | ||
initialize | ||
readChildFoldersMailsFrom: anEmailAccount | ||
|
||
anEmailAccount rootFolder recursiveChildFolders do: [:childFolder | | ||
childFolder emails do: [:childFolderEmail | | ||
self addEmail: childFolderEmail senderAddressFromHeader]] |
5 changes: 5 additions & 0 deletions
5
packages/IMAPClient-Core.package/ICAddressBook.class/instance/readRootFoldersMailsFrom..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,5 @@ | ||
initialize | ||
readRootFoldersMailsFrom: anEmailAccount | ||
|
||
anEmailAccount rootFolder emails do: [:rootFolderEmail | | ||
self addEmail: rootFolderEmail senderAddressFromHeader] |
9 changes: 9 additions & 0 deletions
9
packages/IMAPClient-Core.package/ICAddressBook.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"class" : { | ||
"new" : "hg 6/24/2020 12:34" }, | ||
"instance" : { | ||
"addEmail:" : "LW 6/16/2020 09:51", | ||
"feedMeWithEntries:" : "LW 6/16/2020 09:51", | ||
"find:" : "LW 6/16/2020 09:51", | ||
"readChildFoldersMailsFrom:" : "LW 6/16/2020 09:50", | ||
"readRootFoldersMailsFrom:" : "LW 6/10/2020 13:32" } } |
14 changes: 14 additions & 0 deletions
14
packages/IMAPClient-Core.package/ICAddressBook.class/properties.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "IMAPClient-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
"Instance" ], | ||
"commentStamp" : "LW 8/1/2020 11:23", | ||
"instvars" : [ | ||
], | ||
"name" : "ICAddressBook", | ||
"pools" : [ | ||
], | ||
"super" : "OrderedCollection", | ||
"type" : "normal" } |
7 changes: 7 additions & 0 deletions
7
packages/IMAPClient-Core.package/ICEmail.class/class/newFromJsonStream..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,7 @@ | ||
instance creation | ||
newFromJsonStream: aStream | ||
|
||
^ self basicNew | ||
deserializeFrom: (Json readFrom: aStream); | ||
initialize; | ||
yourself |
12 changes: 12 additions & 0 deletions
12
packages/IMAPClient-Core.package/ICEmail.class/instance/^equals.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,12 @@ | ||
comparing | ||
= anObject | ||
"Answer whether the receiver and anObject represent the same object." | ||
|
||
self == anObject | ||
ifTrue: [ ^ true ]. | ||
self class = anObject class | ||
ifFalse: [ ^ false ]. | ||
^ self header = anObject header | ||
and: [ | ||
self messageID = anObject messageID | ||
and: [ self body = anObject body and: [ self folder = anObject folder and: [ self uniqueID = anObject uniqueID ] ] ] ] |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICEmail.class/instance/bodyAsString.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,4 +1,4 @@ | ||
converting | ||
bodyAsString | ||
|
||
^ self body asString | ||
|
Oops, something went wrong.