File tree Expand file tree Collapse file tree 4 files changed +16
-18
lines changed Expand file tree Collapse file tree 4 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 1
1
:Class EventCodes
2
- ⍝ This class carries all trappable event codes in Dyalog APL up to -- and including -- version 15 .0.\\
2
+ ⍝ This class carries all trappable event codes in Dyalog APL up to -- and including -- version 17 .0.\\
3
3
⍝ For transforming a number to the symbolic name see function `GetName`.
4
4
5
5
⎕IO←1 ⋄ ⎕ML←1
60
60
61
61
∇ r←Version
62
62
:Access Public Shared
63
- r←({⍵}⍕⎕THIS)'1.2.0.5 ' '2018-02-19 '
63
+ r←({⍵}⍕⎕THIS)'1.2.1.7 ' '2018-10-22 '
64
64
∇
65
65
66
66
∇ History
67
67
:Access Public Shared
68
+ ⍝ * 1.2.1
69
+ ⍝ * Fix: documentation mentioned "up to 15.0" when it's actually up to and including 17.0
68
70
⍝ * 1.2.0
69
71
⍝ * First release after the conversion from the APL wiki to GitHub.
70
72
⍝ * 1.1.0
Original file line number Diff line number Diff line change 1
1
Initial
2
+ ⎕IO←0 ⋄ ⎕ML←3
2
3
#.Tester.EstablishHelpersIn ⍬
Original file line number Diff line number Diff line change 1
- R←Test_ZZZ_999(stopFlag batchFlag);v;n;d;xml;rf;f1;f2;f3; ⎕TRAP
2
- ⍝ Check the "Version" function and publish.config and history.txt
1
+ R←Test_ZZZ_999(stopFlag batchFlag);v;n;d;xml;rf;f1;f2;⎕TRAP
2
+ ⍝ Check the "Version" function and publish.config.
3
3
⎕TRAP←(999 'C' '. ⍝ Deliberate error')(0 'N')
4
4
R←∆Failed
5
5
6
- rf←## .EventCodes
6
+ rf←#._EventCodes .EventCodes
7
7
8
8
⍝ First we check whether "Version" returns a valid result:
9
9
(n v d)←rf.Version
10
+ v←{⍵/⍨3>+\'.'=⍵}v ⍝ Remove build ID
10
11
f1←~5≤⍴v
11
12
f1∨←2≠'.'+.=v
12
13
f1∨←~∧/⎕D∊⍨v~'.'
13
14
14
15
f1∨←10≠⍴d
15
- f1∨←d[4 7]∨.≠'-'
16
+ f1∨←d[4 7+⎕IO ]∨.≠'-'
16
17
f1∨←~∧/⎕D∊⍨d~'-'
18
+
17
19
⍝ publish.config must be in line with what "Version" returns of course:
18
20
xml←⎕XML'flat'#.APLTreeUtils.ReadUtf8File'publish.config'
19
- f2←v≢2⊃xml[xml[;1]⍳⊂'version';]
20
- f2∨←d≢2⊃xml[xml[;1]⍳⊂'date';]
21
-
22
- ⍝ history.txt might be useful during development but must not exist
23
- ⍝ when the project is checked in:
24
- f3←⎕NEXISTS'history.txt'
21
+ f2←v≢(2+⎕IO)⊃xml[xml[;1+⎕IO]⍳⊂'version';]
22
+ f2∨←d≢(2+⎕IO)⊃xml[xml[;1+⎕IO]⍳⊂'date';]
25
23
26
24
:If f1
27
25
⎕←'Result of the "Version" function is invalid.'
28
26
:EndIf
29
27
:If f2
30
- ⎕←'The contents of "/publish.config" is not in line with "Version".'
31
- :EndIf
32
- :If f3
33
- ⎕←'There is a file "history.txt" but it shouldn''t.'
28
+ ⎕←'The contents of "publish.config" is not in line with "Version".'
34
29
:EndIf
35
30
36
- →FailsIf f1∨f2∨f3
31
+ →FailsIf f1∨f2
37
32
38
33
R←∆OK
Original file line number Diff line number Diff line change 1
- <tool name="EventCodes"> <version>1.2.0 </version> <date>2018-02-19 </date> <container>#._EventCodes</container> <files></files> <needs> <script>APLTreeUtils</script> <script>FilesAndDirs</script> <script>OS</script> <script>Tester</script> </needs> <scriptOnly>1</scriptOnly> <wsid>Development</wsid> <autoload>1</autoload> <buildid>5 </buildid></tool>
1
+ <tool name="EventCodes"> <version>1.2.1 </version> <date>2018-10-22 </date> <container>#._EventCodes</container> <files></files> <needs> <script>APLTreeUtils</script> <script>FilesAndDirs</script> <script>OS</script> <script>Tester</script> </needs> <scriptOnly>1</scriptOnly> <wsid>Development</wsid> <autoload>1</autoload> <buildid>7 </buildid></tool>
You can’t perform that action at this time.
0 commit comments