Support multiple versions of a platform in metadata.rb?


#1

If I want to say that I support only version 6.1.0 and 6.3.0 of windows, how do I express that in the cookbook metadata?

supports 'windows', '~> 6.1.0', '~> 6.3.0' # will throw exception

From looking at the code, specifying multiple version arguments will throw an ObsoleteDependencySyntax exception, and calling supports on the same platform will simply overwrite the last version arg from what I can tell.

supports 'windows', '~> 6.1.0'
supports 'windows', '~> 6.3.0' # overwrites the previous

Is there actually a way to do this?


#2

Perhaps obtusely helpful, but I would just pick the higher of the two and
state that version explicitly, i.e.

supports ‘windows’, ‘6.3.0’


#3

But he’d like to support 6.1.0 as well, but not 6.2.0.

Viele Grüße

Alexander Skwar