datadog_backup 3.3.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a99c7fdf81fb1fafa9e2c8b2c4e28a7a2685d4c1a6482eede1aefd08322167bc
4
- data.tar.gz: ac4f8c37ac22dc4c9893153afa27678e4abb98d70a4cb2a47574bf26e1b5c8da
3
+ metadata.gz: 48b1dae9a4913fddefcca2facdd992cec33d541de98f1cdb95db1435c908e0c8
4
+ data.tar.gz: ced45888346071657d3f7e43a123fcd30c70add2eefad3f59f60a80efcce502b
5
5
  SHA512:
6
- metadata.gz: ae3e46853cda4a9dc988624c169ad104c2a3737081f04ed5c33a1bfe6f24a752e6bd6fadfd0d9d1dc8545b135b95829044fd4748abd45ef6cd43c4d3258662d9
7
- data.tar.gz: 39136571658e67c317b00a31b21b67169026e958cedf987dbb57c0b8af9a5cf8f944ed9617a1fd736a591aaa8c22559b4405fd5e17641dcf6fe911dac0484668
6
+ metadata.gz: 3a48ffe5dcb9f78b2609b6e229f3a012fd5b0674280851dfc13385ab46ddacd387acb957089d57eb8f0095f90cb8ee0a3557a67bbf984eae5db896c37920e439
7
+ data.tar.gz: 6c7b23395d06767197a3a2ab7d5bb273a71ed15721da680a2f723f99551cd13b471d98035b5b1e6e5802dec4e798170b3c69e79e0b807959493922e8c5706f35
@@ -12,10 +12,10 @@ jobs:
12
12
  matrix:
13
13
  os: [ubuntu-latest, macos-latest]
14
14
  # 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']
16
16
  runs-on: ${{ matrix.os }}
17
17
  steps:
18
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
19
19
  - name: Set up Ruby
20
20
  uses: ruby/setup-ruby@v1
21
21
  with:
@@ -30,7 +30,7 @@ jobs:
30
30
  env:
31
31
  BUNDLE_DEPLOYMENT: true
32
32
  steps:
33
- - uses: actions/checkout@v3
33
+ - uses: actions/checkout@v4
34
34
  - name: Set up Ruby
35
35
  uses: ruby/setup-ruby@v1
36
36
  with:
@@ -40,7 +40,7 @@ jobs:
40
40
  zip -r datadog_backup.zip ./*
41
41
  - name: Semantic Release
42
42
  id: semantic
43
- uses: cycjimmy/semantic-release-action@v3
43
+ uses: cycjimmy/semantic-release-action@v4
44
44
  env:
45
45
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46
46
  GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_TOKEN }}
@@ -10,7 +10,7 @@ jobs:
10
10
  runs-on: ubuntu-20.04
11
11
  steps:
12
12
  - name: Validate PR Title
13
- uses: amannn/action-semantic-pull-request@v5.2.0
13
+ uses: amannn/action-semantic-pull-request@v5.4.0
14
14
  env:
15
15
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16
16
  with:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [4.0.0](https://github.com/scribd/datadog_backup/compare/v3.3.0...v4.0.0) (2024-04-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Deprecate Ruby 3.0 and Drop support for Ruby 2.7 ([#163](https://github.com/scribd/datadog_backup/issues/163)) ([3d81d65](https://github.com/scribd/datadog_backup/commit/3d81d652bfb35f06b61dfb679c4d9e0d3567efcb))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * ruby 2.7 is no longer supported. Please upgrade to ruby 3.0 or higher.
12
+
1
13
  # [3.3.0](https://github.com/scribd/datadog_backup/compare/v3.2.1...v3.3.0) (2023-08-17)
2
14
 
3
15
 
data/README.md CHANGED
@@ -17,7 +17,7 @@ Additional features may be built out over time.
17
17
  v3 is a backwards incompatible change.
18
18
 
19
19
  - [ ] 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.
21
21
  - [ ] The options `--ssh` and `--ssshh` are no longer supported. Instead, please use `--quiet` to supress logging. `--debug` remains supported.
22
22
  - [ ] The environment variable `DATADOG_HOST` is no longer supported. Instead, please use `DD_SITE_URL`.
23
23
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.required_ruby_version = '>= 2.7'
22
+ spec.required_ruby_version = '>= 3.0'
23
23
 
24
24
  spec.add_dependency 'amazing_print'
25
25
  spec.add_dependency 'concurrent-ruby'
@@ -10,11 +10,11 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
 
12
12
  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.1
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
17
- ruby-version: 2.7.1
17
+ ruby-version: 3.1
18
18
  - name: perform backup
19
19
  env:
20
20
  DD_API_KEY: ${{ secrets.DD_API_KEY }}
@@ -24,7 +24,7 @@ jobs:
24
24
  bundle install --jobs 4 --retry 3
25
25
  bundle exec datadog_backup backup
26
26
  - name: commit changes
27
- uses: stefanzweifel/git-auto-commit-action@v4
27
+ uses: stefanzweifel/git-auto-commit-action@v5
28
28
  with:
29
29
  commit_message: "Changes as of run: ${{ github.run_id }}"
30
30
  file_pattern: backup/
@@ -4,7 +4,7 @@ module DatadogBackup
4
4
  # Notify the user if they are using deprecated features.
5
5
  module Deprecations
6
6
  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.1 or higher will be required to use this gem after datadog_backup@v3" if RUBY_VERSION < '3.1'
8
8
  end
9
9
  end
10
10
  end
@@ -16,7 +16,9 @@ module DatadogBackup
16
16
  max: 5,
17
17
  interval: 0.05,
18
18
  interval_randomness: 0.5,
19
- backoff_factor: 2
19
+ backoff_factor: 2,
20
+ rate_limit_reset_header: 'x-ratelimit-reset',
21
+ exceptions: [Faraday::TooManyRequestsError] + Faraday::Retry::Middleware::DEFAULT_EXCEPTIONS
20
22
  }.freeze
21
23
 
22
24
  def backup
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatadogBackup
4
- VERSION = '3.3.0'
4
+ VERSION = '4.0.0'
5
5
  end
@@ -12,7 +12,7 @@ describe DatadogBackup::Deprecations do
12
12
  allow(logger).to receive(:warn)
13
13
  end
14
14
 
15
- %w[2.4.10 2.5.9 2.6.8].each do |ruby_version|
15
+ %w[2.5.9 2.6.8 2.7 3.0.4].each do |ruby_version|
16
16
  describe "#check#{ruby_version}" do
17
17
  it 'does warn' do
18
18
  stub_const('RUBY_VERSION', ruby_version)
@@ -22,7 +22,7 @@ describe DatadogBackup::Deprecations do
22
22
  end
23
23
  end
24
24
 
25
- %w[2.7.4 3.0.4 3.1.2 3.2.0-preview1].each do |ruby_version|
25
+ %w[3.1.2 3.2.0-preview1].each do |ruby_version|
26
26
  describe "#check#{ruby_version}" do
27
27
  it 'does not warn' do
28
28
  stub_const('RUBY_VERSION', ruby_version)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamran Farhadi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-17 00:00:00.000000000 Z
12
+ date: 2024-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amazing_print
@@ -257,7 +257,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
257
257
  requirements:
258
258
  - - ">="
259
259
  - !ruby/object:Gem::Version
260
- version: '2.7'
260
+ version: '3.0'
261
261
  required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  requirements:
263
263
  - - ">="