In article <
51e4ec23-9189-48fe-b797-3dee85b6cc83@...>,
Brian Ford <
brixen@...> writes:
> On the one hand, if the specs are only run against officially released
> versions, then potential bugs (regressions) introduced in the
> development branch won't be caught. On the other hand, if the specs
> are used with the development branch "trunk" or "head" for each
> version (e.g. 1.8.6, 1.8.7, etc.), then the spec guards need to be
> able to accurately identify under which version the specs are being
> run (which means checking patchlevel too), otherwise there will be
> false positives for failures or some specs that should run would not.
A released patchlevel can be used to distinguish "head" from
released versions.
RUBY_PATCHLEVEL <= the-last-released-patchlevel checks
released versions.
For 1.8.6, RUBY_PATCHLEVEL <= 115 means a released version,
now.
--
Tanaka Akira