1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-02-01 01:37:12 +00:00

Add comment explaining the required_ruby_version to gemspec

This commit is contained in:
Holger Just 2017-05-09 22:38:43 +02:00
parent 253543fbad
commit 9b7549b4d0

View File

@ -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")