From c9aea4ac1423a2a9b55e0050c42b16d9b1c44d92 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 3 May 2024 10:38:28 -0500 Subject: [PATCH] Renaming to ExoPackage --- ...{GitHubWrapper.class.st => ExoPackage.class.st} | 14 +++++++------- src/ExoRepo/YQ.class.st | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) rename src/ExoRepo/{GitHubWrapper.class.st => ExoPackage.class.st} (68%) diff --git a/src/ExoRepo/GitHubWrapper.class.st b/src/ExoRepo/ExoPackage.class.st similarity index 68% rename from src/ExoRepo/GitHubWrapper.class.st rename to src/ExoRepo/ExoPackage.class.st index a611eaa..48b6d09 100644 --- a/src/ExoRepo/GitHubWrapper.class.st +++ b/src/ExoRepo/ExoPackage.class.st @@ -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 ] diff --git a/src/ExoRepo/YQ.class.st b/src/ExoRepo/YQ.class.st index 7290b3c..eaa491a 100644 --- a/src/ExoRepo/YQ.class.st +++ b/src/ExoRepo/YQ.class.st @@ -26,7 +26,7 @@ YQ class >> binaryFile [ { #category : #accessing } YQ class >> install [ - ^ GitHubWrapper new + ^ ExoPackage new repository: 'https://github.com/mikefarah/yq'; lastReleaseData ]