lib/gjp/kit_checker.rb in gjp-0.34.0 vs lib/gjp/kit_checker.rb in gjp-0.35.0
- old
+ new
@@ -1,8 +1,9 @@
# encoding: UTF-8
require "find"
+require "zip"
module Gjp
# checks kits for errors
class KitChecker
include Logger
@@ -23,10 +24,10 @@
archived_file_paths = plain_file_paths.select do |path, archive|
path. =~ /\.(zip)|([jwe]ar)$/
end.map do |path, archive|
result = []
- Zip::ZipFile.foreach(path) do |entry|
+ Zip::File.foreach(path) do |entry|
if entry.file?
result << [entry.to_s, path]
end
end
result