Fix safe yaml crash

Fix Safe Yaml crash

In some cases safe yaml will be loaded and cause it to crash when ever it is run before date class has been loaded. This can be seen in a few cases and makes it crash when ever twine is called. 

https://github.com/dtao/safe_yaml/issues/80
https://github.com/test-kitchen/test-kitchen/issues/1327
https://github.com/jekyll/jekyll/issues/3201

This commit fixes that issue
This commit is contained in:
Tomer Shemesh 2018-01-26 08:57:52 -05:00 committed by GitHub
parent 72098611ba
commit e72f661b75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
require 'date'
require 'safe_yaml/load'
SafeYAML::OPTIONS[:suppress_warnings] = true