Skip to content

Commit 8531e78

Browse files
authored
Drop support for Ruby < 2.5 (#247)
Those ancient things are several years EOL
1 parent ce86d72 commit 8531e78

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
build:
2121
strategy:
2222
matrix:
23-
ruby: [ 'jruby-9.2', '2.3', '3.1' ]
23+
ruby: [ 'jruby-9.2', '2.5', '3.1' ]
2424
python: [ '3.6', '3.11' ]
2525
platform: [ ubuntu-20.04, macos-latest, windows-2019 ]
2626
runs-on: ${{ matrix.platform }}

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
AllCops:
2+
TargetRubyVersion: 2.5
13
Metrics/AbcSize:
24
Enabled: false
35
Metrics/BlockLength:

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If a Python process dies, a new one will be spawned on the next pygments.rb requ
2323
== System Requirements
2424

2525
- Python >= 3.6
26-
- Ruby >= 2.3
26+
- Ruby >= 2.5
2727

2828
== Installation
2929

lib/pygments/popen.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def mentos(method, args = [], kwargs = {}, code = nil)
276276
raise Errno::EPIPE, %(Failed to read response from Python process on a mentos #{method} call)
277277
end
278278

279-
header_len = header_len_bytes.unpack('N')[0]
279+
header_len = header_len_bytes.unpack1('N')
280280
@log.info "Size in: #{header_len}"
281281
header = @out.read(header_len)
282282

pygments.rb.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
2222
'source_code_uri' => s.homepage
2323
}
2424

25-
s.required_ruby_version = '>= 2.3.0'
25+
s.required_ruby_version = '>= 2.5.0'
2626

2727
s.add_development_dependency 'rake', '~> 13.0.0'
2828
s.add_development_dependency 'rubocop', '~> 0.81.0'

0 commit comments

Comments
 (0)