2018-10-24 11:54:56 +01:00
|
|
|
module Utils
|
|
|
|
class Bottles
|
|
|
|
class Collector
|
|
|
|
module Compat
|
|
|
|
private
|
|
|
|
|
|
|
|
def tag_without_or_later(tag)
|
|
|
|
return super unless tag.to_s.end_with?("_or_later")
|
|
|
|
|
2019-01-08 19:13:46 +00:00
|
|
|
odisabled "`or_later` bottles",
|
2018-10-24 11:54:56 +01:00
|
|
|
"bottles without `or_later` (or_later is implied now)"
|
|
|
|
tag.to_s[/(\w+)_or_later$/, 1].to_sym
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
prepend Compat
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|