-
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.
Refactoring for contact names and add-contact feature
- Loading branch information
1 parent
8994e19
commit e8c4707
Showing
45 changed files
with
112 additions
and
60 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
packages/IMAPClient-Core.package/ICAddressBook.class/instance/initialize.st
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
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 @@ | ||
An ICContact is a data object holding all relevant data for an ICAddressBook entry. |
7 changes: 3 additions & 4 deletions
7
packages/IMAPClient-Core.package/ICContact.class/class/newWith.with..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,8 +1,7 @@ | ||
as yet unclassified | ||
instance creation | ||
newWith: anEmail with: aName | ||
|
||
^ (ICContact new) | ||
^ ICContact new | ||
email: anEmail; | ||
name: aName; | ||
yourself | ||
|
||
yourself |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Core.package/ICContact.class/instance/asString.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 | ||
asString | ||
|
||
^ self name, ' ', self email | ||
^ (self name truncateTo: 30), Character tab, self email |
4 changes: 2 additions & 2 deletions
4
packages/IMAPClient-Core.package/ICContact.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
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Core.package/ICEmail.class/class/senderAddressDelimeters.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 | ||
senderAddressDelimeters | ||
|
||
^ '<>' |
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
5 changes: 5 additions & 0 deletions
5
packages/IMAPClient-Tests.package/ICAddressBookTest.class/class/emails.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 @@ | ||
constants | ||
emails | ||
|
||
^ (ICEmail new | ||
from: 'Sender <sender@address.de>') asOrderedCollection |
1 change: 1 addition & 0 deletions
1
packages/IMAPClient-Tests.package/ICAddressBookTest.class/instance/addressBook..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,3 +1,4 @@ | ||
accessing | ||
addressBook: anObject | ||
|
||
addressBook := anObject |
1 change: 1 addition & 0 deletions
1
packages/IMAPClient-Tests.package/ICAddressBookTest.class/instance/addressBook.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,3 +1,4 @@ | ||
accessing | ||
addressBook | ||
|
||
^ addressBook |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICAddressBookTest.class/instance/emailAccounts..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 | ||
emailAccounts: anObject | ||
|
||
emailAccounts := anObject |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICAddressBookTest.class/instance/emailAccounts.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 | ||
emailAccounts | ||
|
||
^ emailAccounts |
1 change: 1 addition & 0 deletions
1
packages/IMAPClient-Tests.package/ICAddressBookTest.class/instance/emailContact..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,3 +1,4 @@ | ||
accessing | ||
emailContact: anObject | ||
|
||
emailContact := anObject |
1 change: 1 addition & 0 deletions
1
packages/IMAPClient-Tests.package/ICAddressBookTest.class/instance/emailContact.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,3 +1,4 @@ | ||
accessing | ||
emailContact | ||
|
||
^ emailContact |
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
9 changes: 9 additions & 0 deletions
9
packages/IMAPClient-Tests.package/ICAddressBookTest.class/instance/testFeedWithEntries.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,9 @@ | ||
adding entries | ||
testFeedWithEntries | ||
|
||
self emailAccounts | ||
do: [:account | account rootFolder: (ICFolder new emails: self class emails)]. | ||
|
||
self addressBook feedMeWithEntries: emailAccounts. | ||
|
||
self assert: self addressBook size equals: 1 |
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
25 changes: 14 additions & 11 deletions
25
packages/IMAPClient-Tests.package/ICAddressBookTest.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,15 +1,18 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"emails" : "EG 5/30/2021 12:10" }, | ||
"instance" : { | ||
"addressBook" : "LW 5/13/2020 09:54", | ||
"addressBook:" : "LW 5/13/2020 09:54", | ||
"emailContact" : "EG 5/22/2021 14:10", | ||
"emailContact:" : "EG 5/22/2021 14:10", | ||
"setUp" : "EG 5/22/2021 15:08", | ||
"testAddEntry" : "EG 5/22/2021 14:44", | ||
"testAddEntryDuplicated" : "EG 5/22/2021 14:45", | ||
"addressBook" : "EG 5/29/2021 23:22", | ||
"addressBook:" : "EG 5/29/2021 23:21", | ||
"emailAccounts" : "EG 5/30/2021 12:42", | ||
"emailAccounts:" : "EG 5/30/2021 12:42", | ||
"emailContact" : "EG 5/29/2021 23:21", | ||
"emailContact:" : "EG 5/29/2021 23:21", | ||
"setUp" : "EG 5/30/2021 12:22", | ||
"testAddEntry" : "EG 5/27/2021 09:47", | ||
"testAddEntryDuplicated" : "EG 5/27/2021 09:48", | ||
"testDeleteEntry" : "EG 5/22/2021 14:45", | ||
"testDeleteNonExistentEntryRaisesError" : "EG 5/22/2021 14:45", | ||
"testFindEntry" : "EG 5/22/2021 14:46", | ||
"testFindNonExistentEntryRaisesError" : "EG 5/22/2021 14:46" } } | ||
"testDeleteNonExistentEntryRaisesError" : "EG 5/29/2021 23:23", | ||
"testFeedWithEntries" : "EG 5/30/2021 12:09", | ||
"testFindEntry" : "EG 5/29/2021 23:24", | ||
"testFindNonExistentEntryRaisesError" : "EG 5/29/2021 23:24" } } |
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 @@ | ||
This class tests ICContact. |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Tests.package/ICContactTest.class/class/expectedStringRepresentation.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 @@ | ||
constants | ||
expectedStringRepresentation | ||
|
||
^ 'Erika Musterfrau erika.musterfrau@rocks.de' | ||
^ 'Erika Musterfrau', Character tab, 'erika.musterfrau@rocks.de' |
5 changes: 1 addition & 4 deletions
5
packages/IMAPClient-Tests.package/ICContactTest.class/instance/setUp.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,7 +1,4 @@ | ||
running | ||
setUp | ||
|
||
self contact: (ICContact new | ||
email: 'erika.musterfrau@rocks.de'; | ||
name: 'Erika Musterfrau'; | ||
yourself) | ||
self contact: (ICContact newWith: 'erika.musterfrau@rocks.de' with: 'Erika Musterfrau') |
2 changes: 1 addition & 1 deletion
2
packages/IMAPClient-Tests.package/ICContactTest.class/instance/testAsString.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 @@ | ||
test - converting | ||
testAsString | ||
|
||
self assert: self contact asString equals: (ICContactTest expectedStringRepresentation) | ||
self assert: self contact asString equals: self class expectedStringRepresentation |
6 changes: 3 additions & 3 deletions
6
packages/IMAPClient-Tests.package/ICContactTest.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,8 +1,8 @@ | ||
{ | ||
"class" : { | ||
"expectedStringRepresentation" : "EG 5/22/2021 14:55" }, | ||
"expectedStringRepresentation" : "c.h. 5/25/2021 09:37" }, | ||
"instance" : { | ||
"contact" : "EG 5/22/2021 14:16", | ||
"contact:" : "EG 5/22/2021 14:16", | ||
"setUp" : "EG 5/22/2021 14:28", | ||
"testAsString" : "EG 5/22/2021 14:55" } } | ||
"setUp" : "EG 5/27/2021 09:45", | ||
"testAsString" : "EG 5/30/2021 12:52" } } |
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-Tests.package/ICEmailTest.class/class/expectedSender.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 | ||
expectedSender | ||
|
||
^ 'sender@address.de' |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/class/expectedSenderName.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 | ||
expectedSenderName | ||
|
||
^ 'Sender ' |
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
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/instance/testSender.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 | ||
testSender | ||
|
||
self assert: self email sender equals: self class expectedSender |
4 changes: 4 additions & 0 deletions
4
packages/IMAPClient-Tests.package/ICEmailTest.class/instance/testSenderName.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 | ||
testSenderName | ||
|
||
self assert: self email senderName equals: self class expectedSenderName |
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
Oops, something went wrong.