Skip to content

Releases: timyates/groovy-common-extensions

Security Release against ZipSlip

02 Jul 18:29
Compare
Choose a tag to compare

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()

02 Dec 15:33
Compare
Choose a tag to compare

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

25 Nov 15:25
Compare
Choose a tag to compare

Not working in the wild though, only in the tests...

Collection<Number>.average() Bugfix for 0 length collections

25 Nov 15:24
Compare
Choose a tag to compare
v0.5.5

v0.5.5 Bugfix for 0 length collections

Added Collection<Number>.average()

25 Nov 15:23
Compare
Choose a tag to compare
v0.5.4

Up to v0.5.4 -- Added Collection<Number>.average()

Fixed List.rand

12 Sep 15:36
Compare
Choose a tag to compare

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

12 Sep 15:37
Compare
Choose a tag to compare

@ataylor284 kindly submitted code to randomly select elements from an Iterator