From 47238a8c7b5b5dfc86427c02d6d2331874e1ceba Mon Sep 17 00:00:00 2001 From: rulingcom Date: Thu, 15 Feb 2024 13:07:07 +0800 Subject: [PATCH] Support older ruby 2.1. --- README.md | 2 +- oga.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1313f2a..e4fca1b 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ Querying a document using a namespace: | Ruby | Required | Recommended | |:---------|:--------------|:------------| -| MRI | >= 2.3.0 | >= 2.6.0 | +| MRI | >= 1.9.3 | >= 2.1.2 | | JRuby | >= 1.7 | >= 1.7.12 | | Rubinius | Not supported | | | Maglev | Not supported | | diff --git a/oga.gemspec b/oga.gemspec index 58e3b66..e7c730e 100644 --- a/oga.gemspec +++ b/oga.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |s| s.extensions = ['ext/c/extconf.rb'] end - s.required_ruby_version = '>= 2.3.0' + s.required_ruby_version = '>= 1.9.3' s.add_dependency 'ast' s.add_dependency 'ruby-ll', '~> 2.1'