go_import 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/go_import/model/rootmodel.rb +0 -5
- metadata +1 -1
@@ -399,19 +399,14 @@ module GoImport
|
|
399
399
|
# we dont need to check that the file exists since
|
400
400
|
# we assume that rootmodel.validate has been
|
401
401
|
# called before save_to_zip.
|
402
|
-
puts "file.path: #{file.path}, relative: #{file.has_relative_path?}"
|
403
402
|
if file.has_relative_path?
|
404
403
|
file.location_in_zip_file = "files/#{file.path}"
|
405
404
|
zip_file.add(file.location_in_zip_file, "#{root_folder}/#{file.path}")
|
406
405
|
else
|
407
|
-
puts "ABS!"
|
408
|
-
puts files_folder_at_customer
|
409
406
|
file.location_in_zip_file = "files/__abs/#{SecureRandom.uuid}/#{::File.basename(file.path).to_s}"
|
410
407
|
if files_folder_at_customer.empty?
|
411
408
|
zip_file.add(file.location_in_zip_file, file.path)
|
412
409
|
else
|
413
|
-
puts "file.path.downcase.sub(files_folder_at_customer.downcase, root_folder): "
|
414
|
-
puts file.path.downcase.sub(files_folder_at_customer.downcase, root_folder)
|
415
410
|
zip_file.add(file.location_in_zip_file,
|
416
411
|
file.path.downcase.sub(files_folder_at_customer.downcase, root_folder))
|
417
412
|
end
|