當試圖執行我的Ruby腳本我收到以下錯誤消息 C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/dependency.rb:308:in `to_specs': Could
not find 'rubyzip' (~> 1.0) among 14 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=C:/
我在我的activejob中提供了一個從zip文件中提取特定文件的函數。以下代碼提取空文件。 def extract_file(from, name)
to = get_local_dest(name)
Zip::File.open(from) do |zip_file|
entry = zip_file.glob(name).first
puts ent