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:
parent
d88b50968c
commit
78c829790d
@ -9,7 +9,7 @@ class DependencyCollector
|
|||||||
|
|
||||||
def parse_string_spec(spec, tags)
|
def parse_string_spec(spec, tags)
|
||||||
if (tag = tags.first) && LANGUAGE_MODULES.include?(tag)
|
if (tag = tags.first) && LANGUAGE_MODULES.include?(tag)
|
||||||
odeprecated "'depends_on :#{tag}'"
|
odeprecated "'depends_on ... => #{tag.inspect}'"
|
||||||
LanguageModuleRequirement.new(tag, spec, tags[1])
|
LanguageModuleRequirement.new(tag, spec, tags[1])
|
||||||
else
|
else
|
||||||
super
|
super
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user