bard-rake 0.22.1 → 0.23.1

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: a34f578e1751daafa21fe08f79d4c660d75094fa76ae269e093ea50238aad7f2
4
- data.tar.gz: 64b46e61760d758eeab1297415c1a44d6b9c82854118b3350c62655760cfe7d6
3
+ metadata.gz: 3a4cd031df1cd55f1d80a9391ad9f6d38fa4a9ffdbb1a03a15eb859460b354a3
4
+ data.tar.gz: eb94409e18156b0c0e24c6cef3aa16eda3486564e583b4da520db4f80259ebb1
5
5
  SHA512:
6
- metadata.gz: dddacad4592f0169f6bff2c38221e8c0115cfb97a977d0800b340b240daed0971ca03998ed03dfe8e6d342981a50c522d429d61dc6a0ced071858520e6fa6a9e
7
- data.tar.gz: b7cb114bafab1f160a01f7afc7c8ccbfece510c44b6a4d44ab489ccb96a3b08e142117eb4b8cbd943631efacfa6eb5bd0a389d7690017f6b5a682cec118cfdd9
6
+ metadata.gz: 9625ffc88f3162feb6a904a815e9bf40f6f85ba1f85521d88eaffab273449f10d17c1f8e764205d5fa9e123652d9fc4e3a29b42c076d5585f5d86c76b02d8809
7
+ data.tar.gz: 90003bcf6707b2d416e98216b080d707a26fb173bf824cf3822a4ea93b56915d7778c23658658c11a2b9fbc05edf5cfaa2b1ce5769f4123bd9edeb5f86a5c93b
data/bard-rake.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "rake"
21
21
  spec.add_dependency "backhoe", ">=0.6.0"
22
+ spec.add_dependency "bard-backup"
22
23
  spec.add_dependency "railties"
23
24
 
24
25
  spec.add_development_dependency "bundler"
@@ -1,4 +1,5 @@
1
1
  require "backhoe"
2
+ require "bard-backup"
2
3
 
3
4
  namespace :db do
4
5
  desc "Dump the current database to db/data.sql.gz"
@@ -13,7 +14,9 @@ namespace :db do
13
14
 
14
15
  task :backup => :environment do
15
16
  project_name = File.basename(Dir.getwd)
16
- Backhoe.backup "bard-backup/#{project_name}", **Rails.application.credentials.bard_backup
17
+ config = Rails.application.credentials.bard_backup
18
+ s3_path = config.delete(:s3_path) || "bard-backup/#{project_name}"
19
+ Bard::Backup.call s3_path, **config
17
20
  end
18
21
 
19
22
  task "drop:current" => :environment do
@@ -1,6 +1,6 @@
1
1
  module Bard
2
2
  module Rake
3
- VERSION = "0.22.1"
3
+ VERSION = "0.23.1"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-01 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.6.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bard-backup
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: railties
43
57
  requirement: !ruby/object:Gem::Requirement