mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

Add more `odeprecated` calls to places that have been deprecated for a while in the wild and move some of the existing `odeprecated` calls to be `odisabled` to allow deleting the compatibility code.
20 lines
304 B
Ruby
20 lines
304 B
Ruby
require "json"
|
|
|
|
module Utils
|
|
module JSON
|
|
module_function
|
|
|
|
def load(_)
|
|
odisabled "Utils::JSON.load", "JSON.parse"
|
|
end
|
|
|
|
def dump(_)
|
|
odisabled "Utils::JSON.dump", "JSON.generate"
|
|
end
|
|
|
|
def stringify_keys(_)
|
|
odisabled "Utils::JSON.stringify_keys"
|
|
end
|
|
end
|
|
end
|