Unzipping a folder

i have one zipped folder ex: test.zip
when i unzip it i should get test.

how can do this using ruby ?

There is the ‘rubyzip’ gem - does that do what you want?
https://www.rubydoc.info/gems/rubyzip/2.3.0

thank you so much!! for your answer