Skip to content

Commit 97bc4bd

Browse files
committed
Make polished
1 parent b43deb6 commit 97bc4bd

File tree

5 files changed

+30
-21
lines changed

5 files changed

+30
-21
lines changed

APLSource/Admin/Make.aplf

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
Make flag;M;C;path;zipFilename;res;version;cfg;parms
2-
:If flag
3-
M←⎕SE.MakeHelpers
4-
C←##.CiderConfig
5-
path←C.HOME,'/',C.CIDER.distributionFolder
6-
cfg←⎕JSON⍠('Dialect' 'JSON5')⊢⊃⎕NGET C.HOME,'/apl-package.json'
7-
version←M.CompileVersionNumberPattern cfg
8-
M.RecreateFolder path
9-
parms←⎕SE.Tatin.CreateBuildParms C.HOME
10-
parms.targetPath←path
11-
parms.version←version
12-
zipFilename←⎕SE.Tatin.BuildPackage parms
13-
⎕←'*** New version build successfully:',M.CR,' ',zipFilename
14-
:EndIf
1+
Make flag;M;C;path;zipFilename;res;version;cfg;parms;cfgFilename
2+
:If flag
3+
M←⎕SE.MakeHelpers
4+
C←##.CiderConfig
5+
path←C.HOME,'/',C.CIDER.distributionFolder
6+
cfgFilename←C.HOME,'/apl-package.json'
7+
cfg←⎕JSON⍠('Dialect' 'JSON5')⊢⊃⎕NGET cfgFilename
8+
cfgFilename M.EditVersion cfg
9+
M.RecreateFolder path
10+
parms←⎕SE.Tatin.CreateBuildParms C.HOME
11+
parms.targetPath←path
12+
parms.version←{⍵↑⍨¯1+⍵⍳'+'}##.GitHubAPIv3.Version
13+
zipFilename←⎕SE.Tatin.BuildPackage parms
14+
⎕←'*** New version build successfully:',M.CR,' ',zipFilename
15+
:EndIf
1516
⍝Done

APLSource/GitHubAPIv3.aplc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,23 @@
1010

1111
∇ r←Version
1212
:Access Public Shared
13-
r←'GitHubAPIv3' '1.5.0' '2024-11-16'
13+
⍝ Returns the version number from TatinVars
14+
⍝ See also `History`
15+
r←''
16+
:If 0<##.⎕NC'TatinVars.CONFIG'
17+
r←(⎕JSON⍠('Dialect' 'JSON5')⊢##.TatinVars.CONFIG).version
18+
:Else
19+
⍝ When a script is not loaded with Tatin, there will be no namespace `TatinVars`.
20+
⍝ In such cases we cannot provide a version number, so we return an empty char vector
21+
r←''
22+
:EndIf
1423
1524

1625
∇ History
1726
:Access Public Shared
27+
⍝ * 1.6.0 from 2025-01-025
28+
⍝ * CommTools removed as a dependency - it was only required for tests
29+
⍝ * `Version` now returns the package config file setting
1830
⍝ * 1.5.0 from 2024-11-16
1931
⍝ * `CheckForUpdate` can now handle beta versions on the client side (on GitHub, betas are not supported)
2032
⍝ * 1.4.0 from 2024-09-24
@@ -300,7 +312,7 @@
300312
⍝ * The better version number\\
301313
⍝ If the given version is a beta version (say 1.2.3-beta-1) and on GitHub it is 1.2.3 then the GitHub version
302314
⍝ is considered to be a later version. \\
303-
⍝ If the latest verson on GitHub is a beta an erroris thrown: this is not supported.
315+
⍝ If the latest verson on GitHub is a beta an erroris thrown: this is not supported.
304316
:Access Public Instance
305317
betterVersion←''
306318
gitVersion_←GetLatestTag repoName

apl-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
source: "APLSource/GitHubAPIv3.aplc",
2020
tags: "github-utilities",
2121
userCommandScript: "",
22-
version: "1.5.0+53",
22+
version: "1.5.0+55",
2323
}

packages/apl-buildlist.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
{
22
packageID: [
33
"dyalog-HttpCommand-5.8.0",
4-
"aplteam-CommTools-2.0.1",
54
"aplteam-APLTreeUtils2-1.4.1",
65
],
76
principal: [
87
1,
98
1,
10-
1,
119
],
1210
url: [
1311
"https://tatin.dev/",
1412
"https://tatin.dev/",
15-
"https://tatin.dev/",
1613
],
1714
}

packages/apl-dependencies.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
aplteam-APLTreeUtils2-1.4.1
22
dyalog-HttpCommand-5.8.0
3-
aplteam-CommTools-2.0.1

0 commit comments

Comments
 (0)