From: Uwe Hermann Date: Sat, 18 Jul 2020 15:31:38 +0000 (+0200) Subject: bindings/ruby: Bump minimum requirement to Ruby 2.5.0. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=339d12df978b32c5f9a10dc14d4ab3a03a0ed5c0;p=libsigrok.git bindings/ruby: Bump minimum requirement to Ruby 2.5.0. This version is known to work with the current code-base and recent SWIG versions, whereas e.g. Ruby 2.3.x is known to not work (anymore). This "fixes" the remaining parts of bug #1526. --- diff --git a/README b/README index 7a76f3fd..c8141dc1 100644 --- a/README +++ b/README @@ -78,7 +78,7 @@ Requirements for the Python bindings: Requirements for the Ruby bindings: - libsigrokcxx >= 0.4.0 (the libsigrok C++ bindings, see above) - - Ruby >= 1.9.3 (including development files!) + - Ruby >= 2.5.0 (including development files!) - SWIG >= 3.0.8 - YARD (optional, only needed for the Ruby API docs) diff --git a/configure.ac b/configure.ac index 108b484c..159cf117 100644 --- a/configure.ac +++ b/configure.ac @@ -488,8 +488,8 @@ sr_rbminor=${sr_rbminor%%.*} # The Ruby bindings need Ruby development files. SR_PKG_CHECK([ruby_dev], [SR_PKGLIBS_RUBY], - [ruby], - [ruby-$sr_rbmajor.$sr_rbminor]) + [ruby >= 2.5.0], + [ruby-$sr_rbmajor.$sr_rbminor >= 2.5.0]) AS_IF([test "x$sr_have_ruby_dev" != xyes], [SR_APPEND([sr_ruby_missing], [', '], [Headers])])