From e290538d5846deb845a1a88955eb0dcb827418ce Mon Sep 17 00:00:00 2001 From: Offray Date: Sat, 13 Apr 2024 18:54:35 -0500 Subject: [PATCH] Fixed readme. Creation from simple urls. --- README.md | 7 +++---- src/ExoRepo/MCGiteabRepository.class.st | 10 ++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c11db85..7975c57 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # ExoRepo -ExoRepo provides [syntactic sugar](https://en.wikipedia.org/wiki/Syntactic_sugar) for [Pharo's Iceberg](https://books.pharo.org/booklet-ManageCode/) to support repositories beyond GitLab, GitHub and -Bitbucket. +ExoRepo provides [syntactic sugar](https://en.wikipedia.org/wiki/Syntactic_sugar) for [Pharo's Iceberg](https://books.pharo.org/booklet-ManageCode/) to support repositories beyond GitLab, GitHub and Bitbucket, starting with Gitea/Forgejo. ## Installation @@ -10,7 +9,7 @@ Bitbucket. Run from a playground: ```smalltalk - location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'ExoRepo'. + location := FileLocator gtResource / 'Offray' / 'ExoRepo'. (IceRepositoryCreator new location: location; remote: (IceGitRemote url: 'https://code.sustrato.red/Offray/ExoRepo.git'); @@ -34,7 +33,7 @@ Metacello new load. ``` - ## Usage +## Usage To install the repository run: diff --git a/src/ExoRepo/MCGiteabRepository.class.st b/src/ExoRepo/MCGiteabRepository.class.st index 61e113e..df9d2a8 100644 --- a/src/ExoRepo/MCGiteabRepository.class.st +++ b/src/ExoRepo/MCGiteabRepository.class.st @@ -8,3 +8,13 @@ Class { MCGiteabRepository class >> basicDescription [ ^ 'gitea' ] + +{ #category : #'as yet unclassified' } +MCGiteabRepository class >> basicFromUrl: aZnUrl [ + ^ self location: aZnUrl asString +] + +{ #category : #accessing } +MCGiteabRepository class >> urlSchemes [ + ^ #(gitea) +]