Unlock Psych dependency (#9135)

Merge pull request 9135
This commit is contained in:
Youssef Boulkaid 2022-09-29 09:16:32 +02:00 committed by GitHub
parent 1baded9acd
commit 7a70a3ae5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -163,7 +163,7 @@ Given(%r!^I have a configuration file with "(.*)" set to "(.*)"$!) do |key, valu
else else
{} {}
end end
config[key] = YAML.load(value) config[key] = SafeYAML.load(value)
Jekyll.set_timezone(value) if key == "timezone" Jekyll.set_timezone(value) if key == "timezone"
File.write("_config.yml", YAML.dump(config)) File.write("_config.yml", YAML.dump(config))
end end

View File

@ -43,11 +43,6 @@ Gem::Specification.new do |s|
s.add_runtime_dependency("liquid", "~> 4.0") s.add_runtime_dependency("liquid", "~> 4.0")
s.add_runtime_dependency("mercenary", ">= 0.3.6", "< 0.5") s.add_runtime_dependency("mercenary", ">= 0.3.6", "< 0.5")
s.add_runtime_dependency("pathutil", "~> 0.9") s.add_runtime_dependency("pathutil", "~> 0.9")
# Ruby 3.1.0 shipped with `psych-4.0.3` which caused some of our Cucumber-based tests to fail.
# TODO: Remove lock once we implement a way to use Psych 4 without breaking anything.
s.add_runtime_dependency("psych", "~> 3.3")
s.add_runtime_dependency("rouge", ">= 3.0", "< 5.0") s.add_runtime_dependency("rouge", ">= 3.0", "< 5.0")
s.add_runtime_dependency("safe_yaml", "~> 1.0") s.add_runtime_dependency("safe_yaml", "~> 1.0")
s.add_runtime_dependency("terminal-table", ">= 1.8", "< 4.0") s.add_runtime_dependency("terminal-table", ">= 1.8", "< 4.0")