Releases: timyates/groovy-common-extensions
Security Release against ZipSlip
The Snyk Security Research Team at Snyk.io reached out, and pointed out that the File.unzip method was vunerable to a ZipSlip, whereby a specially crafted zip file could write files outside of the destination folder...
See https://snyk.io/research/zip-slip-vulnerability for more info
This release fixes the vulnerability
Removed Closure.withDelegate, added byte[].hexdump()
Closure.withDelegate
doesn't work in the majority of cases (especially the situation where you @Grab
the library). For this reason, it has been removed from v0.5.7
I added byte[].hexdump()
to give a nice hexdump view of byte arrays
withDelegate added to Closure
Not working in the wild though, only in the tests...
Collection<Number>.average() Bugfix for 0 length collections
v0.5.5 v0.5.5 Bugfix for 0 length collections
Added Collection<Number>.average()
v0.5.4 Up to v0.5.4 -- Added Collection<Number>.average()
Fixed List.rand
List.rand( n, false )
wasn't shuffling correctly for n < size
and wasn't shuffling at all for n == size
Fixed and test applied
Added Iterator.rand
@ataylor284 kindly submitted code to randomly select elements from an Iterator