Renaming to ExoPackage
This commit is contained in:
parent
9844b266d6
commit
c9aea4ac14
@ -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
|
||||
]
|
@ -26,7 +26,7 @@ YQ class >> binaryFile [
|
||||
|
||||
{ #category : #accessing }
|
||||
YQ class >> install [
|
||||
^ GitHubWrapper new
|
||||
^ ExoPackage new
|
||||
repository: 'https://github.com/mikefarah/yq';
|
||||
lastReleaseData
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user