From a49fd2e4c14d59b580a81f668baa3e032dd1a15a Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sat, 18 Jul 2020 19:46:49 -0500 Subject: [PATCH 1/2] Baselines using community hosted Gitea repositories. --- .../BaselineOfGrafoscopio.class.st | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/repository/BaselineOfGrafoscopio/BaselineOfGrafoscopio.class.st b/repository/BaselineOfGrafoscopio/BaselineOfGrafoscopio.class.st index bd60560..e787025 100644 --- a/repository/BaselineOfGrafoscopio/BaselineOfGrafoscopio.class.st +++ b/repository/BaselineOfGrafoscopio/BaselineOfGrafoscopio.class.st @@ -26,27 +26,6 @@ BaselineOfGrafoscopio >> baseline: spec [ ] -{ #category : #'as yet unclassified' } -BaselineOfGrafoscopio >> fossil: spec [ - "I load the configuration of Fossil using a external Gitea repository." - "While more Git independient providers are implemented in Monticello, I will use Iceberg - to download the repository and load it from a local directory" - - | location | - location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'Fossil'. - (IceRepositoryCreator new - location: location; - remote: (IceGitRemote url: 'https://code.tupale.co/Offray/Fossil.git'); - createRepository) - register. - - Metacello new - repository: 'gitlocal://', location fullName; - baseline: 'Fossil'; - load. - spec project: 'Fossil' -] - { #category : #'as yet unclassified' } BaselineOfGrafoscopio >> grafoscopioUtils: spec [ "I load the configuration of this package using a external Gitea repository." -- 2.30.2 From 9d895cf978f8458b9299cbf4018ee80b405edc69 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sat, 18 Jul 2020 19:52:03 -0500 Subject: [PATCH 2/2] Baselines: Using community hosted Gitea repositories --- .../BaselineOfGrafoscopio.class.st | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/repository/BaselineOfGrafoscopio/BaselineOfGrafoscopio.class.st b/repository/BaselineOfGrafoscopio/BaselineOfGrafoscopio.class.st index e787025..8462ab2 100644 --- a/repository/BaselineOfGrafoscopio/BaselineOfGrafoscopio.class.st +++ b/repository/BaselineOfGrafoscopio/BaselineOfGrafoscopio.class.st @@ -13,17 +13,15 @@ BaselineOfGrafoscopio >> baseline: spec [ do: [ "Dependencies" - self fossil: spec. + self grafoscopioUtils: spec. spec package: 'Spec-Glamour' with: [ spec repository: 'http://smalltalkhub.com/mc/jfabry/Playgroudn/main/' ]. "Packages" - self grafoscopioUtils: spec. spec package: 'Grafoscopio' with: [ spec requires: #('Grafoscopio-Utils' 'Spec-Glamour' ) ] ] - ] { #category : #'as yet unclassified' } @@ -32,16 +30,24 @@ BaselineOfGrafoscopio >> grafoscopioUtils: spec [ "While more Git independient providers are implemented in Monticello, I will use Iceberg to download the repository and load it from a local directory" - | location | + | location localRepo | + "Dependencies" + + "Local and remote repo definition" location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'GrafoscopioUtils'. - (IceRepositoryCreator new - location: location; - remote: (IceGitRemote url: 'https://code.tupale.co/Offray/GrafoscopioUtils.git'); - createRepository) - register. - + location exists ifFalse: [ + (IceRepositoryCreator new + location: location; + remote: (IceGitRemote url: 'https://code.tupale.co/Offray/GrafoscopioUtils.git'); + createRepository) + register + ]. + "Package loading" + localRepo := 'gitlocal://', location fullName. Metacello new - repository: 'gitlocal://', location fullName; + repository: localRepo; + baseline: 'Grafoscopio-Utils' load. - spec project: 'Grafoscopio-Utils' with: [ spec requires: #('Fossil') ]. + spec baseline: 'Grafoscopio-Utils' with: [ spec repository: localRepo ] + ] -- 2.30.2