-
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.
Merge pull request #311 from dalehenrich/issue_273
Issue 273 - add Pharo-4.0 support to Metacello
- Loading branch information
Showing
34 changed files
with
247 additions
and
132 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
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
repository/Metacello-Core.package/MetacelloPlatform.class/instance/registerPackageNamed..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 @@ | ||
repository creation | ||
registerPackageNamed: packageName | ||
^ (Smalltalk at: #'PackageInfo') registerPackageName: packageName |
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
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...GitBasedRepository.package/MCGitBasedNetworkRepository.class/class/cacheDirectoryPath..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 @@ | ||
accessing | ||
cacheDirectoryPath: aString | ||
self | ||
cacheDirectory: | ||
(aString | ||
ifEmpty: [ ] | ||
ifNotEmpty: [ MetacelloPlatform current fileHandleOn: aString ]) |
5 changes: 5 additions & 0 deletions
5
...-GitBasedRepository.package/MCGitBasedNetworkRepository.class/class/cacheDirectoryPath.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 @@ | ||
accessing | ||
cacheDirectoryPath | ||
<preference: 'GitHub Cache' category: 'Metacello' description: '' type: | ||
#'String'> | ||
^ MCFileTreeFileUtils current directoryPathString: self cacheDirectory |
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/Metacello-GitBasedRepository.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
7 changes: 3 additions & 4 deletions
7
...rm.gemstone.package/MetacelloGemStonePlatform.class/instance/defaultPlatformAttributes.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,5 @@ | ||
attributes | ||
defaultPlatformAttributes | ||
|
||
| stoneVersionAtts | | ||
(stoneVersionAtts := self stoneVersionAttributes) ifNil: [^ #( #gemstone )]. | ||
^ stoneVersionAtts | ||
| stoneVersionAtts | | ||
(stoneVersionAtts := self stoneVersionAttributes) ifNil: [ ^ #(#'gemstone') ]. | ||
^ stoneVersionAtts , self devKitPlatformAttributes |
15 changes: 15 additions & 0 deletions
15
...orm.gemstone.package/MetacelloGemStonePlatform.class/instance/devKitPlatformAttributes.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,15 @@ | ||
attributes | ||
devKitPlatformAttributes | ||
| baselineClassName | | ||
baselineClassName := 'BaselineOfDevKit'. | ||
Smalltalk | ||
at: baselineClassName | ||
ifPresent: [ :ignored | | ||
Smalltalk | ||
at: #'MetacelloProjectRegistration' | ||
ifPresent: [ :cls | | ||
(cls registrationForClassNamed: baselineClassName ifAbsent: [ ]) | ||
ifNotNil: [ :registration | | ||
registration loadedInImage | ||
ifTrue: [ #(#'gsdevkit') ] ] ] ]. | ||
^ #(#'glass') |
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/Metacello-Platform.gemstone.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...Platform.pharo30.package/MetacelloPharo30Platform.class/instance/registerPackageNamed..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 @@ | ||
pharo 2.0 compat | ||
registerPackageNamed: packageName | ||
"PackageInfo deprecated in Pharo3.0" | ||
|
||
^RPackageSet named: packageName |
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/Metacello-Platform.pharo30.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
Oops, something went wrong.