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

View File

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