heroku-api-postgres 0.9.0 → 0.9.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: 5e17b99dc543d3fd1e6f2a6715ac43d13755396889f8f31ce0446d2d21a388bf
4
- data.tar.gz: f3ce7542620d9795cce4be9905ac2eb5858641a1b4e53ae23991dbd4177a3646
3
+ metadata.gz: 7c90ef28a844e1ea19534eeb565472875bbb8c049c19075bad257198a2ec00a5
4
+ data.tar.gz: 7d185232a2d4667c267326948ada22bddf479b196825e7a67e1398f789626d66
5
5
  SHA512:
6
- metadata.gz: 9574ed0d23a7ecfbfa42ad9bdc840adb62c99838000e21c752ca26da8e71add8b2130014560f660b1480e8617672b2b217d597b16e488729262c3159cc12384a
7
- data.tar.gz: b96833ab4c871a9c6af5fe2a642dafb66c6a011d69e5b6c57c619d64b1f1ec52bb4aed80e2ceeaaaf6dbcf6af360f469fbdfcf2b0b081a5079770caa307edcfe
6
+ metadata.gz: f776c9d1aeb9e6fc4bae092a6b11d9d5db88376a33932fc1e3b315262a44d5b762a971cc0ab0945c53fad4ae421bfce14629d9e0d01457aefdb2fab7c730190f
7
+ data.tar.gz: b05b444642bca56f8d69f2bb09a109c87c080a761b7fa85f13376c0a139689a4a3689f461a72af9bb345c761282f9bbc2651d5b20e3ab2990b94247135083c74
@@ -19,7 +19,11 @@ The command returns immediately, without waiting for the capture to be completed
19
19
 
20
20
  - [x] pg:backups:info --> `client.backups.info(app_id, backup_id)`
21
21
 
22
- - [ ] pg:backups:restore
22
+ - [x] pg:backups:restore --> `client.backups.restore(database_id, dump_url)`
23
+ The command works only with public URLs. It does not support all the features of the original
24
+ `heroku pg:backups:restore` command, like restoring directly from another database.
25
+ The command returns immediately, without waiting for the capture to be completed.
26
+ You can use the command `client.backups.wait(app_id, restore[:num])` to wait for it to be ready.
23
27
 
24
28
  - [x] pg:backups:schedule --> `client.backups.schedule(database_id)`
25
29
 
@@ -42,7 +42,7 @@ module Heroku
42
42
  def wait(app_id, backup_id, options = { wait_interval: 3 })
43
43
  while true do
44
44
  backup = info(app_id, backup_id)
45
- yield(backup)
45
+ yield(backup) if block_given?
46
46
  break if backup[:finished_at] && backup[:succeeded]
47
47
  sleep(options[:wait_interval])
48
48
  end
@@ -1,7 +1,7 @@
1
1
  module Heroku
2
2
  module Api
3
3
  module Postgres
4
- VERSION = '0.9.0'.freeze
4
+ VERSION = '0.9.1'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku-api-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi