Skip to content

Commit

Permalink
Bug fix: referencing '\''zipFilename'\'' caused Value Error
Browse files Browse the repository at this point in the history
  • Loading branch information
aplteam committed May 22, 2019
1 parent 5c5dcca commit 3da45d3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
8 changes: 4 additions & 4 deletions APLSource/SevenZip-21.aplc
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@

rVersion
:Access Public Shared
r(Last⎕THIS)'2.2.4.4' '2019-02-18'
r(Last⎕THIS)'2.2.5.8' '2019-05-22'

History
:Access Public Shared
* 2.2.4:
* :Include APLTreeUtils fixed
* 2.2.5:
* The `zipFilename` property caused, wehn referenced, a Value Error due to a typo.
\\
For information regarding older versions see <https://github.com/aplteam/SevenZip/releases>
Expand All @@ -55,7 +55,7 @@
:Access Public Instance
The name of the archive the instance is dealing with
rget
rrefToUtils.FilesAndDirs.(EnforceBackSlash NormalizePath)zipFilename_
rrefToUtils.FilesAndDirs.(EnforceBackslash NormalizePath)zipFilename_
:EndProperty

Expand Down
22 changes: 22 additions & 0 deletions APLSource/TestCases-11/Test_0018-1.aplf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
rTest_0018(stopFlag batchFlag);zipFilename;myZipper;rc;more;⎕TRAP;found;filename
Check the `zipFilename` property; was once a bug
r∆Failed
⎕TRAP(999 'C' '. ⍝ Deliberate error')(0 'N')

zipFilename∆OutputPath,'zip_001.zip'
filename∆InputPath,'ZIP.DWS'

Delete any left overs
#.FilesAndDirs.DeleteFile zipFilename

The test
myZipper⎕NEW ##.SevenZip(,zipFilename)
rcmyZipper.Add filename
GoToTidyUp 0rc
GoToTidyUp zipFilenamemyZipper.zipFilename

r∆OK

∆TidyUp:
{}#.FilesAndDirs.RmDir ∆TempPath
#.FilesAndDirs.DeleteFile zipFilename
2 changes: 1 addition & 1 deletion publish.config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<tool name="SevenZip"> <version>2.2.4</version> <date>2019-02-18</date> <container>#._SevenZip</container> <addToBundle>1</addToBundle> <files></files> <needs> <script>APLTreeUtils</script> <script>Execute</script> <script>OS</script> <script>FilesAndDirs</script> <script>Tester</script> </needs> <scriptOnly>1</scriptOnly> <wsid>Development</wsid> <autoload>1</autoload> <buildid>4</buildid></tool>
<tool name="SevenZip"> <version>2.2.5</version> <date>2019-05-22</date> <container>#._SevenZip</container> <addToBundle>1</addToBundle> <files></files> <needs> <script>APLTreeUtils</script> <script>Execute</script> <script>OS</script> <script>FilesAndDirs</script> <script>Tester</script> </needs> <scriptOnly>1</scriptOnly> <wsid>Development</wsid> <autoload>1</autoload> <buildid>8</buildid></tool>
Expand Down

0 comments on commit 3da45d3

Please sign in to comment.