nxt_heroku_database_backup 0.1.6 → 0.1.7

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: ce3a0d811ceccd906a6cdf5b35ef0445dce65fefa4a9df9bcb38c7e2599205d8
4
- data.tar.gz: 347647730fba6237575f5e8c50e1aa309436a7e21f93320356eb6eb9b1d2d776
3
+ metadata.gz: 5d6e0021748b1f9e8afa62d97293a89a9d1d5bdcb38b5c4cd39687bbd8884bb9
4
+ data.tar.gz: 6ae173a99059af6985c5737db9d27772687520e31b29b4dd9c83ad35f7a65fcf
5
5
  SHA512:
6
- metadata.gz: b3a3ecf8106dd0e0599dbdd0669d5158f47f9baf1ff692b29cb1c38a7d35b2afa2da56ac1a6bd7d2eee3aafede7b4e463e491b241b4f11e92e84b7cb6164dc4f
7
- data.tar.gz: 84a4c20c9a660b39998cadae86acbe1f2157a45246ce368044a1db23664334558e3a16c244143e880d34acfdf47e2ade03fe7184ff4eb04a15ad0d563293121c
6
+ metadata.gz: 3d3e3ea10ef894e7adcd625b5a9345a44b9bed4e955031f481d286f13d35030872029c30a90bc770c94ec9946c67f3fb843db1f464e93c057ec238dbbd703146
7
+ data.tar.gz: 5bc87e2dc70fa8783ddd12f526af63746a4e6f78eec4cbb5fc837bf23a64aadb3f768c9ce89dfc870246f61817e63c39ed3570f31734bb65fbcc96a2e811adb3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_heroku_database_backup (0.1.6)
4
+ nxt_heroku_database_backup (0.1.7)
5
5
  aws-sdk-s3
6
6
  nxt_init
7
7
 
@@ -46,11 +46,13 @@ module NxtHerokuDatabaseBackup
46
46
  end
47
47
 
48
48
  def encrypt_backup
49
- NxtHerokuDatabaseBackup::Encrypter.new(
49
+ data = NxtHerokuDatabaseBackup::Encrypter.new(
50
50
  pass_phrase: pass_phrase,
51
51
  salt: salt,
52
52
  data: File.read(backup_tmp_path)
53
53
  ).call
54
+
55
+ File.open(encrypted_backup_tmp_path, 'w') { |f| f.puts(data) }
54
56
  end
55
57
 
56
58
  def download_backup
@@ -58,7 +60,7 @@ module NxtHerokuDatabaseBackup
58
60
  end
59
61
 
60
62
  def encrypted_backup_tmp_path
61
- "#{backup_tmp_path}.gpg"
63
+ "#{backup_tmp_path}.encrypted"
62
64
  end
63
65
 
64
66
  def execute_success_callback
@@ -1,3 +1,3 @@
1
1
  module NxtHerokuDatabaseBackup
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nxt_heroku_database_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Robecke