From 9b7549b4d0235815d4daff5e4b70feeb2da02e31 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 9 May 2017 22:38:43 +0200 Subject: [PATCH] Add comment explaining the required_ruby_version to gemspec --- rackstash.gemspec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rackstash.gemspec b/rackstash.gemspec index 84abd77..91558ca 100644 --- a/rackstash.gemspec +++ b/rackstash.gemspec @@ -22,6 +22,12 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/meineerde/rackstash' spec.license = 'MIT' + # We require at least Ruby 2.1 due to the use of: + # * implicit String#scrub during String#encode as used in + # Rackstash::Fields::AbstractCollection#utf8_encode. + # We might be able to use the string-scrub gem as a polyfill and explicitly + # call scrub on lower versions though. + # * mandatory keyword arguments spec.required_ruby_version = '>= 2.1.0' files = `git ls-files -z`.split("\x0")