-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
squeak: re-add BlockContext extensions via new Squeak6Compatibility p…
…ackage See #552 (comment)
- Loading branch information
Showing
18 changed files
with
85 additions
and
4 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
2 changes: 1 addition & 1 deletion
2
repository/BaselineOfMetacello.package/monticello.meta/categories.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 +1 @@ | ||
SystemOrganization addCategory: #'BaselineOfMetacello'! | ||
SystemOrganization addCategory: #BaselineOfMetacello! |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"noMethodMetaData" : true, | ||
"separateMethodMetaAndSource" : false, | ||
"useCypressPropertiesFile" : true } |
4 changes: 4 additions & 0 deletions
4
...ueak6Compatibility.package/BlockContext.extension/instance/setAuthorInMetacelloConfig..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 @@ | ||
*Metacello-Squeak6Compatibility-*metacello-platform | ||
setAuthorInMetacelloConfig: aMetacelloConfig | ||
|
||
aMetacelloConfig setAuthorWithBlock: self |
4 changes: 4 additions & 0 deletions
4
...ak6Compatibility.package/BlockContext.extension/instance/setBlessingInMetacelloConfig..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 @@ | ||
*Metacello-Squeak6Compatibility-*metacello-platform | ||
setBlessingInMetacelloConfig: aMetacelloConfig | ||
|
||
aMetacelloConfig setBlessingWithBlock: self |
4 changes: 4 additions & 0 deletions
4
...Compatibility.package/BlockContext.extension/instance/setDescriptionInMetacelloConfig..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 @@ | ||
*Metacello-Squeak6Compatibility-*metacello-platform | ||
setDescriptionInMetacelloConfig: aMetacelloConfig | ||
|
||
aMetacelloConfig setDescriptionWithBlock: self |
4 changes: 4 additions & 0 deletions
4
...ompatibility.package/BlockContext.extension/instance/setPackage.withInMetacelloConfig..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 @@ | ||
*Metacello-Squeak6Compatibility-*metacello-platform | ||
setPackage: aString withInMetacelloConfig: aMetacelloConfig | ||
|
||
aMetacelloConfig setPackage: aString withBlock: self |
4 changes: 4 additions & 0 deletions
4
...ompatibility.package/BlockContext.extension/instance/setProject.withInMetacelloConfig..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 @@ | ||
*Metacello-Squeak6Compatibility-*metacello-platform | ||
setProject: aString withInMetacelloConfig: aMetacelloConfig | ||
|
||
aMetacelloConfig setProject: aString withBlock: self |
4 changes: 4 additions & 0 deletions
4
...k6Compatibility.package/BlockContext.extension/instance/setTimestampInMetacelloConfig..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 @@ | ||
*Metacello-Squeak6Compatibility-*metacello-platform | ||
setTimestampInMetacelloConfig: aMetacelloConfig | ||
|
||
aMetacelloConfig setTimestampWithBlock: self |
27 changes: 27 additions & 0 deletions
27
...6Compatibility.package/BlockContext.extension/instance/valueSupplyingMetacelloAnswers..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,27 @@ | ||
*Metacello-Squeak6Compatibility-*metacello-platform | ||
valueSupplyingMetacelloAnswers: aListOfPairs | ||
"evaluate the block using a list of questions / answers that might be called upon to | ||
automatically respond to Object>>confirm: or FillInTheBlank requests" | ||
|
||
^ [self value] | ||
on: ProvideAnswerNotification | ||
do: | ||
[:notify | | answer caption | | ||
|
||
caption := notify messageText withSeparatorsCompacted. "to remove new lines" | ||
answer := aListOfPairs | ||
detect: | ||
[:each | caption = each first or: | ||
[(caption includesSubstring: each first caseSensitive: false) or: | ||
[(each first match: caption) or: | ||
[(String includesSelector: #matchesRegex:) and: | ||
[ [ caption matchesRegex: each first ] on: Error do: [:ignored | false ]]]]]] | ||
ifNone: [nil]. | ||
answer | ||
ifNotNil: [notify resume: answer second] | ||
ifNil: | ||
[ | outerAnswer | | ||
outerAnswer := ProvideAnswerNotification signal: notify messageText. | ||
outerAnswer | ||
ifNil: [notify resume] | ||
ifNotNil: [notify resume: outerAnswer]]] |
11 changes: 11 additions & 0 deletions
11
...itory/Metacello-Squeak6Compatibility.package/BlockContext.extension/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,11 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"setAuthorInMetacelloConfig:" : "dkh 6/12/2012 10:18:46.076", | ||
"setBlessingInMetacelloConfig:" : "dkh 6/12/2012 10:18:46.076", | ||
"setDescriptionInMetacelloConfig:" : "dkh 6/12/2012 10:18:46.076", | ||
"setPackage:withInMetacelloConfig:" : "dkh 6/12/2012 10:18:46.076", | ||
"setProject:withInMetacelloConfig:" : "dkh 6/12/2012 10:18:46.076", | ||
"setTimestampInMetacelloConfig:" : "dkh 6/12/2012 10:18:46.076", | ||
"valueSupplyingMetacelloAnswers:" : "dkh 6/12/2012 10:18:46.076" } } |
2 changes: 2 additions & 0 deletions
2
repository/Metacello-Squeak6Compatibility.package/BlockContext.extension/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,2 @@ | ||
{ | ||
"name" : "BlockContext" } |
Empty file.
1 change: 1 addition & 0 deletions
1
repository/Metacello-Squeak6Compatibility.package/monticello.meta/package
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 @@ | ||
(name 'Metacello-Squeak6Compatibility') |
1 change: 1 addition & 0 deletions
1
repository/Metacello-Squeak6Compatibility.package/monticello.meta/version
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
repository/Metacello-Squeak6Compatibility.package/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,2 @@ | ||
{ | ||
} |