Skip to content

Commit d111a33

Browse files
committed
BREAKING CHANGE: ruby 2.7 is no longer supported. Please upgrade to ruby 3.0 or higher.
1 parent 36c6282 commit d111a33

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/rspec_and_release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
os: [ubuntu-latest, macos-latest]
1414
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
15-
ruby: [2.7, '3.0', '3.1']
15+
ruby: ['3.0', '3.1', '3.2']
1616
runs-on: ${{ matrix.os }}
1717
steps:
1818
- uses: actions/checkout@v4

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Additional features may be built out over time.
1717
v3 is a backwards incompatible change.
1818

1919
- [ ] DATADOG_API_KEY and DATADOG_APP_KEY are no longer the environment variables used to authenticate to Datadog. Instead, set the environment variables DD_API_KEY and DD_APP_KEY.
20-
- [ ] ruby 2.6 is no longer supported. Please upgrade to ruby 2.7 or higher.
20+
- [ ] ruby 2.7 is no longer supported. Please upgrade to ruby 3.0 or higher.
2121
- [ ] The options `--ssh` and `--ssshh` are no longer supported. Instead, please use `--quiet` to supress logging. `--debug` remains supported.
2222
- [ ] The environment variable `DATADOG_HOST` is no longer supported. Instead, please use `DD_SITE_URL`.
2323

datadog_backup.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
1919
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
2020
spec.require_paths = ['lib']
2121

22-
spec.required_ruby_version = '>= 2.7'
22+
spec.required_ruby_version = '>= 3.0'
2323

2424
spec.add_dependency 'amazing_print'
2525
spec.add_dependency 'concurrent-ruby'

example/.github/workflows/backup.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Set up Ruby 2.7.1
13+
- uses: actions/checkout@v4
14+
- name: Set up Ruby 3.0
1515
uses: ruby/setup-ruby@v1
1616
with:
17-
ruby-version: 2.7.1
17+
ruby-version: 3.0
1818
- name: perform backup
1919
env:
2020
DD_API_KEY: ${{ secrets.DD_API_KEY }}
@@ -24,7 +24,7 @@ jobs:
2424
bundle install --jobs 4 --retry 3
2525
bundle exec datadog_backup backup
2626
- name: commit changes
27-
uses: stefanzweifel/git-auto-commit-action@v4
27+
uses: stefanzweifel/git-auto-commit-action@v5
2828
with:
2929
commit_message: "Changes as of run: ${{ github.run_id }}"
3030
file_pattern: backup/

lib/datadog_backup/deprecations.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module DatadogBackup
44
# Notify the user if they are using deprecated features.
55
module Deprecations
66
def self.check
7-
LOGGER.warn "ruby-#{RUBY_VERSION} is deprecated. Ruby 2.7 or higher will be required to use this gem after datadog_backup@v3" if RUBY_VERSION < '2.7'
7+
LOGGER.warn "ruby-#{RUBY_VERSION} is deprecated. Ruby 3.0 or higher will be required to use this gem after datadog_backup@v3" if RUBY_VERSION < '3.0'
88
end
99
end
1010
end

spec/datadog_backup/deprecations_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
allow(logger).to receive(:warn)
1313
end
1414

15-
%w[2.4.10 2.5.9 2.6.8].each do |ruby_version|
15+
%w[2.4.10 2.5.9 2.6.8 2.7].each do |ruby_version|
1616
describe "#check#{ruby_version}" do
1717
it 'does warn' do
1818
stub_const('RUBY_VERSION', ruby_version)
@@ -22,7 +22,7 @@
2222
end
2323
end
2424

25-
%w[2.7.4 3.0.4 3.1.2 3.2.0-preview1].each do |ruby_version|
25+
%w[3.0.4 3.1.2 3.2.0-preview1].each do |ruby_version|
2626
describe "#check#{ruby_version}" do
2727
it 'does not warn' do
2828
stub_const('RUBY_VERSION', ruby_version)

0 commit comments

Comments
 (0)