redcard icon indicating copy to clipboard operation
redcard copied to clipboard

any plans to check RUBY_PATCHLEVEL?

Open bookshelfdave opened this issue 11 years ago • 1 comments

sorry if this is the wrong forum for questions - I'm trying to constrain an app to use > ruby 1.9.3p0 and was wondering if there's any reason that RedCard doesn't support this yet.

Cheers - Dave

bookshelfdave avatar Apr 22 '14 18:04 bookshelfdave

RubySpec does support the MRI patchlevel, which has semantic meaning as MRI has changed behavior in a patchlevel. While I find that quite annoying, we should be able to support it without too much trouble. This code already should support it https://github.com/brixen/redcard/blob/master/lib/redcard/version.rb#L36 so we just need to append RUBY_PATCHLEVEL to RUBY_VERSION.

brixen avatar Apr 24 '14 01:04 brixen