Fix uninitialized constant with GitLab Pages deploy
pages:deploy step was failing with the following error: ``` unitialized constant SafeZip::Extract::Zip ``` Since license_finder already pulls in rubyzip, we can make it a required gem. We also use the scope operator to make the reference to Zip::File explicit.
This commit is contained in:
parent
20d6be4d8c
commit
6fa5fd8515
2
Gemfile
2
Gemfile
|
@ -57,7 +57,7 @@ gem 'u2f', '~> 0.2.1'
|
|||
|
||||
# GitLab Pages
|
||||
gem 'validates_hostname', '~> 1.0.6'
|
||||
gem 'rubyzip', '~> 1.2.2', require: false
|
||||
gem 'rubyzip', '~> 1.2.2'
|
||||
|
||||
# Browser detection
|
||||
gem 'browser', '~> 2.5'
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Fix uninitialized constant with GitLab Pages
|
||||
merge_request:
|
||||
author:
|
||||
type: fixed
|
|
@ -29,7 +29,7 @@ module SafeZip
|
|||
private
|
||||
|
||||
def extract_with_ruby_zip(params)
|
||||
Zip::File.open(archive_path) do |zip_archive|
|
||||
::Zip::File.open(archive_path) do |zip_archive|
|
||||
# Extract all files in the following order:
|
||||
# 1. Directories first,
|
||||
# 2. Files next,
|
||||
|
|
Loading…
Reference in New Issue