Renaming to ExoPackage

This commit is contained in:
= 2024-05-03 10:38:28 -05:00
parent 9844b266d6
commit c9aea4ac14
2 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
Class {
#name : #GitHubWrapper,
#name : #ExoPackage,
#superclass : #Object,
#instVars : [
'repository'
@ -8,21 +8,21 @@ Class {
}
{ #category : #accessing }
GitHubWrapper class >> apiEndPoint [
ExoPackage class >> githubAPIEndPoint [
^ 'https://api.github.com/' asUrl
]
{ #category : #accessing }
GitHubWrapper >> assets [
ExoPackage >> assets [
^ (self lastReleaseData at: 'assets') collect: [:each |
GitHubAsset fromDictionary: each
]
]
{ #category : #accessing }
GitHubWrapper >> lastReleaseData [
ExoPackage >> lastReleaseData [
| releasesLink |
releasesLink := self class apiEndPoint addPathSegment: 'repos'.
releasesLink := self class githubAPIEndPoint addPathSegment: 'repos'.
self repository asUrl segments do: [:segment |
releasesLink addPathSegment: segment
].
@ -32,11 +32,11 @@ GitHubWrapper >> lastReleaseData [
]
{ #category : #accessing }
GitHubWrapper >> repository [
ExoPackage >> repository [
^ repository
]
{ #category : #accessing }
GitHubWrapper >> repository: anUrl [
ExoPackage >> repository: anUrl [
repository := anUrl
]

View File

@ -26,7 +26,7 @@ YQ class >> binaryFile [
{ #category : #accessing }
YQ class >> install [
^ GitHubWrapper new
^ ExoPackage new
repository: 'https://github.com/mikefarah/yq';
lastReleaseData
]