Skip to content

Commit 04ea4dc

Browse files
committed
File extension changed from .DYALOG to .APLC
1 parent b4af993 commit 04ea4dc

File tree

7 files changed

+35
-37
lines changed

7 files changed

+35
-37
lines changed

APLSource/EventCodes.aplc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,13 @@
6262

6363
∇ r←Version
6464
:Access Public Shared
65-
r←({⍵}⍕⎕THIS)'1.4.0.14' '2019-11-06'
65+
r←({⍵}⍕⎕THIS)'2.0.0.15' '2020-03-22'
6666
6767

6868
∇ History
6969
:Access Public Shared
70-
⍝ * 1.4.0
71-
⍝ * Method `QEM` added. Accepts either a positive integer (same as `⎕EM`) or a character vector
72-
⍝ (error message). In the latter case the error number is returned or, if the error message
73-
⍝ is unknown, and error is thrown.
74-
⍝ * Bug fix: `List` crashed when sorting by number was required.
70+
⍝ * 2.0.0
71+
⍝ * BREAKING CHANGE: File extension changed from .DYALOG to .APLC
7572
⍝\\
7673
⍝ For information regarding older versions see <https://github.com/aplteam/EventCodes/releases>
7774

APLSource/TestCases/GetHighestInstalledAPL.aplf

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
list←GetInstalledAPLs dummy
2+
⍝ Examines the Registry in order to find out which versions of Dyalog are installed and return all of them
3+
list←''
4+
:If 0≠≢list←##.WinReg.GetAllSubKeyNames'Software\Dyalog'
5+
:AndIf 0≠≢list←('Dyalog APL/W'{⍺∘≡¨(≢⍺)↑¨⍵}list)/list
6+
list←(50<≢¨##.WinReg.GetAllValueNames¨(⊂'Software\Dyalog\'),¨list)/list
7+
:EndIf

APLSource/TestCases/Test_30.aplf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
⎕TRAP←(999 'C' '. ⍝ Deliberate error')(0 'N')
44
R←T._Failed
55

6-
version←3⊃' '##.APLTreeUtils.Split GetHighestInstalledAPL ⍬
7-
errors←∆GetErrorsFromHelpPage'http://help.dyalog.com/',version,'/Content/Language/System%20Functions/trap.htm'
6+
list←⌽GetInstalledAPLs ⍬
7+
:Repeat
8+
version←3⊃' '##.APLTreeUtils.Split⊃list
9+
:If 0=≢errors←∆GetErrorsFromHelpPage'http://help.dyalog.com/',version,'/Content/Language/System%20Functions/trap.htm'
10+
list←1↓list
11+
:EndIf
12+
:Until (0<≢errors)∨0=≢list
13+
'Could not find any APL?!'⎕SIGNAL 11/⍨0=≢errors
814
list←##.EventCodes.List''
915
→T.PassesIf∧/list[;2]∊errors[;1]
1016
→T.PassesIf∧/errors[;1]∊list[;2]

APLSource/TestCases/∆GetErrorsFromHelpPage.aplf

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@
1010
buff←∆HTTPGet url
1111
html←buff.Data
1212
:EndIf
13-
html←{⍵↓⍨3⊃{⍵/⍳≢⍵}'<table'⍷⍵}html
14-
buff←(≢'<td class="Dyalog">')↓¨{⍵~⎕TC}¨('<td class="Dyalog">'⍷html)⊂html
15-
bool←(≢buff)⍴1 0
16-
codes←{⍵↑⍨¯1+⍵⍳'<'}¨bool/buff
17-
bool←~bool
18-
comment←{⍵↑⍨¯1+1⍳⍨'</td>'⍷⍵}¨bool/buff
19-
bool←{⊃⊃⎕VFI ⍵}¨codes
20-
(codes comment)←bool∘/¨codes comment
21-
codes←{⊃⊃(//)⎕VFI ⍵}¨codes
22-
bool←~codes∊0 1000
23-
(codes comment)←bool∘/¨codes comment
24-
errors←codes,[1.5]comment
13+
:If ∨/'<title>401 Unauthorized</title>'⍷html
14+
errors←''
15+
:Else
16+
html←{⍵↓⍨3⊃{⍵/⍳≢⍵}'<table'⍷⍵}html
17+
buff←(≢'<td class="Dyalog">')↓¨{⍵~⎕TC}¨('<td class="Dyalog">'⍷html)⊂html
18+
bool←(≢buff)⍴1 0
19+
codes←{⍵↑⍨¯1+⍵⍳'<'}¨bool/buff
20+
bool←~bool
21+
comment←{⍵↑⍨¯1+1⍳⍨'</td>'⍷⍵}¨bool/buff
22+
bool←{⊃⊃⎕VFI ⍵}¨codes
23+
(codes comment)←bool∘/¨codes comment
24+
codes←{⊃⊃(//)⎕VFI ⍵}¨codes
25+
bool←~codes∊0 1000
26+
(codes comment)←bool∘/¨codes comment
27+
errors←codes,[1.5]comment
28+
:EndIf
2529
⍝Done

project.dws

34.3 KB
Binary file not shown.

publish.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<tool name="EventCodes"> <version>1.4.0</version> <date>2019-11-06</date> <container>#.EventCodes</container> <needs> <script>APLTreeUtils</script> <script>FilesAndDirs</script> <script>OS</script> <script>WinReg</script> <script development="true">Tester2</script> </needs> <autoload>1</autoload> <buildid>14</buildid> <scriptOnly>1</scriptOnly></tool>
1+
<tool name="EventCodes"> <version>2.0.0</version> <date>2020-03-22</date> <container>#.EventCodes</container> <needs> <script>APLTreeUtils</script> <script>FilesAndDirs</script> <script>OS</script> <script>WinReg</script> <script development="true">Tester2</script> </needs> <autoload>1</autoload> <buildid>15</buildid> <scriptOnly>1</scriptOnly> <package>1</package></tool>

0 commit comments

Comments
 (0)