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.
This commit is contained in:
Uwe Hermann 2020-07-18 17:31:38 +02:00
parent 5f8cf332a6
commit 339d12df97
2 changed files with 3 additions and 3 deletions

2
README
View File

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

View 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])])