datadog_backup 3.3.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a99c7fdf81fb1fafa9e2c8b2c4e28a7a2685d4c1a6482eede1aefd08322167bc
4
- data.tar.gz: ac4f8c37ac22dc4c9893153afa27678e4abb98d70a4cb2a47574bf26e1b5c8da
3
+ metadata.gz: 8c2436501a1eb02b186575c579ffe73faff21969c32fdade7532938379620444
4
+ data.tar.gz: 10d4daae1e10504085db1eba8ba5eec6ea33a353a09a61e92443b84f4a2f423b
5
5
  SHA512:
6
- metadata.gz: ae3e46853cda4a9dc988624c169ad104c2a3737081f04ed5c33a1bfe6f24a752e6bd6fadfd0d9d1dc8545b135b95829044fd4748abd45ef6cd43c4d3258662d9
7
- data.tar.gz: 39136571658e67c317b00a31b21b67169026e958cedf987dbb57c0b8af9a5cf8f944ed9617a1fd736a591aaa8c22559b4405fd5e17641dcf6fe911dac0484668
6
+ metadata.gz: be8db72e3210234c37cceee343ee90e1c4ad23dd928b93d70a7e89180ff167db6fc213b99cf751b95881b21bfc665c523b075198219596e16b7093bae10cf05f
7
+ data.tar.gz: 97c1a896b9a3fcd669f146ed9585d1eaf4cad94de97105d1751a18ecd97fa4c10cfde3277d695c6c4b205b038528fb30ccc3dcd4b56bf61a878e80f9f21dc4be
@@ -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,22 @@
1
+ ## [4.0.1](https://github.com/scribd/datadog_backup/compare/v4.0.0...v4.0.1) (2024-04-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * YAML.dump quotes y when dumping ([#164](https://github.com/scribd/datadog_backup/issues/164)) ([f1d6e0d](https://github.com/scribd/datadog_backup/commit/f1d6e0d68bea1da4e37dd971cb710dfccffa0c56))
7
+
8
+ # [4.0.0](https://github.com/scribd/datadog_backup/compare/v3.3.0...v4.0.0) (2024-04-30)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * 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))
14
+
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ * ruby 2.7 is no longer supported. Please upgrade to ruby 3.0 or higher.
19
+
1
20
  # [3.3.0](https://github.com/scribd/datadog_backup/compare/v3.2.1...v3.3.0) (2023-08-17)
2
21
 
3
22
 
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
@@ -34,7 +34,7 @@ module DatadogBackup
34
34
  when :json
35
35
  JSON.pretty_generate(object.deep_sort(array: disable_array_sort ? false : true))
36
36
  when :yaml
37
- YAML.dump(object.deep_sort(array: disable_array_sort ? false : true))
37
+ YAML.dump(object.deep_sort(array: disable_array_sort ? false : true)).gsub('"y":','y:')
38
38
  else
39
39
  raise 'invalid output_format specified or not specified'
40
40
  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.1'
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.1
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
  - - ">="