Skip to content

Commit

Permalink
try another approach to suppress experimental warnings in Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Feb 6, 2025
1 parent 712c8f3 commit 9cc983c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ jobs:
- name: Set Rouge version
if: matrix.rouge-version
run: echo 'ROUGE_VERSION=${{ matrix.rouge-version }}' >> $GITHUB_ENV
- name: Suppress experimental warnings (Ruby 2.7)
if: matrix.ruby == '2.7'
run: echo 'RUBYOPT=-W:no-experimental' >> $GITHUB_ENV
- name: Install dependencies
run: bundle --jobs 3 --retry 3
- name: Switch to upstream dependencies
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
require_relative 'spec_helper/matchers'

RSpec.configure do |config|
Warning[:experimental] = false if (Gem::Version.new RUBY_VERSION) < (Gem::Version.new '3.0.0')

config.extend RSpec::ExampleGroupHelpers
config.include RSpec::ExampleHelpers

Expand Down

0 comments on commit 9cc983c

Please sign in to comment.