mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-09-14 22:30:00 +00:00
Bump rubocop up to newer ruby versions (in progress)
This commit is contained in:
+5
-2
@@ -8,8 +8,11 @@ require 'yaml'
|
||||
|
||||
module YamlHelper
|
||||
def self.load(body)
|
||||
YAML.respond_to?(:unsafe_load) ?
|
||||
YAML.unsafe_load(body) : YAML.load(body)
|
||||
if YAML.respond_to?(:unsafe_load)
|
||||
YAML.unsafe_load(body)
|
||||
else
|
||||
YAML.load(body)
|
||||
end
|
||||
end
|
||||
|
||||
def self.load_file(file)
|
||||
|
||||
Reference in New Issue
Block a user