Skip to content

Commit

Permalink
Require Ruby 2.7
Browse files Browse the repository at this point in the history
Older versions of Ruby have reached end-of-life. Shipping
precompiled gems means that we have to include libraries for all
supported versions.

Closes mudge#68
  • Loading branch information
stanhu authored and mudge committed Jul 15, 2023
1 parent c6da976 commit 6bcde81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ jobs:
- '3.2'
- '3.1'
- '3.0'
- 2.7
- 2.6
- 2.5
- 2.4
- 2.3
- '2.7'
libre2:
- version: "20150501"
soname: 0
Expand Down Expand Up @@ -65,11 +61,7 @@ jobs:
- '3.2'
- '3.1'
- '3.0'
- 2.7
- 2.6
- 2.5
- 2.4
- 2.3
- '2.7'
steps:
- uses: actions/checkout@v3
- name: Install build dependencies
Expand Down
3 changes: 1 addition & 2 deletions ext/re2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ def darwin?
end

def windows?
# Use =~ instead of match? to preserve Ruby 2.3 compatibility
RbConfig::CONFIG["target_os"] =~ /mingw|mswin/
RbConfig::CONFIG["target_os"].match?(/mingw|mswin/)
end

def freebsd?
Expand Down
1 change: 1 addition & 0 deletions re2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Gem::Specification.new do |s|
s.homepage = "https://github.com/mudge/re2"
s.extensions = ["ext/re2/extconf.rb"]
s.license = "BSD-3-Clause"
s.required_ruby_version = ">= 2.7.0"
s.files = [
"ext/re2/extconf.rb",
"ext/re2/re2.cc",
Expand Down

0 comments on commit 6bcde81

Please sign in to comment.