]> sigrok.org Git - libsigrok.git/commitdiff
bindings/ruby: Bump minimum requirement to Ruby 2.5.0.
authorUwe Hermann <redacted>
Sat, 18 Jul 2020 15:31:38 +0000 (17:31 +0200)
committerUwe Hermann <redacted>
Sat, 18 Jul 2020 15:37:17 +0000 (17:37 +0200)
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.

README
configure.ac

diff --git a/README b/README
index 7a76f3fdf0c1fc3fc36f4d182f1f2a23943806f7..c8141dc1ac196c2cde30992da91fda93f17ab6d4 100644 (file)
--- 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)
 
index 108b484cb7ed7dc898f81491d74d202914d562c9..159cf1174306a60f13687e14b45db8539ffbdba3 100644 (file)
@@ -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])])