Improve deprecation message for dependency tags

It took me a while to figure out what this deprecation actually did,
because the message wasn't accurate.
This commit is contained in:
Alyssa Ross 2018-01-18 21:10:43 +00:00
parent d88b50968c
commit 78c829790d
No known key found for this signature in database
GPG Key ID: 6CF064D149E3ABDB

View File

@ -9,7 +9,7 @@ class DependencyCollector
def parse_string_spec(spec, tags)
if (tag = tags.first) && LANGUAGE_MODULES.include?(tag)
odeprecated "'depends_on :#{tag}'"
odeprecated "'depends_on ... => #{tag.inspect}'"
LanguageModuleRequirement.new(tag, spec, tags[1])
else
super