Skip to content

Commit 4c6e874

Browse files
committed
fix: support Ruby 4 by allowing Rouge 4.x
1 parent 81061a1 commit 4c6e874

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ruby-version: ["3.4", "3.3", "3.2", "3.1", "3.0", "2.7"]
16+
ruby-version: ["4.0", "3.4", "3.3", "3.2", "3.1", "3.0", "2.7"]
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Set up Ruby

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gem 'cucumber'
1515
gem 'capybara'
1616

1717
# Optional dependencies, included for tests
18-
gem 'haml', RUBY_VERSION > '3.0' ? '< 7' : '< 6'
18+
gem 'haml'
1919
gem 'slim'
2020
gem 'kramdown'
2121
gem 'redcarpet'

middleman-syntax.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ Gem::Specification.new do |s|
1313
s.files = `git ls-files -z`.split("\0")
1414
s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0")
1515
s.add_runtime_dependency("middleman-core", [">= 3.2"])
16-
s.add_runtime_dependency("rouge", ["~> 3.2"])
16+
s.add_runtime_dependency("rouge", [">= 3.2", "< 5"])
1717
end

0 commit comments

Comments
 (0)