From 2d9f62f3a235c681405f2bd816a9ee04491abdb7 Mon Sep 17 00:00:00 2001 From: John Leach Date: Sun, 22 Mar 2020 21:38:01 +0000 Subject: [PATCH] Ditch support for Ruby < 2.1 The older xapian bindings don't support setting stopper strategy, and it's high time we stopped supporting the ancient rubies! --- .travis.yml | 2 -- Gemfile | 6 +----- README.rdoc | 2 +- xapian-fu.gemspec | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 03c6f4f..ce0df6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,6 @@ branches: - master rvm: - - 1.9.3 - - 2.0 - 2.1 - 2.2 - 2.3 diff --git a/Gemfile b/Gemfile index 8ee7f28..772b9f4 100644 --- a/Gemfile +++ b/Gemfile @@ -3,9 +3,5 @@ source "https://rubygems.org" gemspec group :test do - if RUBY_VERSION < '2.1' - gem "xapian-ruby", "~> 1.2.22" - else - gem "xapian-ruby", "~> 1.4.9" - end + gem "xapian-ruby", "~> 1.4.9" end diff --git a/README.rdoc b/README.rdoc index 0ed161b..1d9ba34 100644 --- a/README.rdoc +++ b/README.rdoc @@ -20,7 +20,7 @@ Hash with full text indexing (and ACID transactions). === Xapian Bindings Xapian Fu requires the Xapian Ruby bindings to be available. On -Debian/Ubuntu, you can install the `libxapian-ruby1.8` package to get +Debian/Ubuntu, you can install the `ruby-xapian` package to get them. Alternatively, you can install the `xapian-ruby` gem, which reportedly will also provide them. You can also just get the upstream Xapian release and manually install it. diff --git a/xapian-fu.gemspec b/xapian-fu.gemspec index 155ce7f..4931739 100644 --- a/xapian-fu.gemspec +++ b/xapian-fu.gemspec @@ -29,5 +29,5 @@ Gem::Specification.new do |s| s.add_development_dependency("rdoc", "~> 4") s.requirements << "libxapian-dev, or the xapian-ruby gem" - s.required_ruby_version = '>= 1.9.3' + s.required_ruby_version = '>= 2.1.0' end