heroku-api-postgres 0.6.0 → 0.7.0

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: fe9aab288242de34048da2c6004aa6ba32d3a9449eea979906219459f6ece458
4
- data.tar.gz: 543429f15f6b2c11ba6604d6fb060bdcc29f1c17b2d6146c68f1c9346d439a96
3
+ metadata.gz: 994386180c6760b3296b0dca9340a474d4fbe82ff098520a21f901726b19f1f5
4
+ data.tar.gz: 3e007bb67207195fb2146c65413e9295815db7751f76ff853dcca6a4e96da424
5
5
  SHA512:
6
- metadata.gz: 6ff3619cdd7cbe3a8ebecc5f9e46edb0d44f871879fdfc33da7f0b00ee6a7258dcbcf27ff9f86f780a63aa16dd6aefbab269cabcf5b246482b1ec73473a01f7e
7
- data.tar.gz: d69d178ca62e54a77064d566f92c0b1a018d04952dca264e5ec88f49ba9ab3f10e5fd2cae339f7e26b983c119e6dcf11055341249d93bb95e612defb5ea45af0
6
+ metadata.gz: f3a8cdfddbfcc463f30058487aa1dcaa271245b169e2f558de0e689e287c3bc57dda924ed77c88d151c7282a5392270d1d0cdbdf314efc13fa6d7d7747579a14
7
+ data.tar.gz: 94b4d88e580171e0edefc346207cc8e5a48fb47259c2e1930b49275cc4cdc1e0527c6cd75f542221085c97d49b9e9e065d51d4c39358515c4022a8eec2475097
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- heroku-api-postgres (0.6.0)
4
+ heroku-api-postgres (0.7.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -80,6 +80,14 @@ returns a [Database](docs/models.md#database).
80
80
  backups_client = postgres_api_client.backups
81
81
  ```
82
82
 
83
+ #### Info
84
+
85
+ ```ruby
86
+ backups = backups_client.info(app_id, backup_id)
87
+ ```
88
+
89
+ returns a [Backup](docs/models.md#backup).
90
+
83
91
  #### List
84
92
 
85
93
  ```ruby
data/docs/services.md CHANGED
@@ -17,7 +17,7 @@ The command returns immediately, without waiting for the capture to be completed
17
17
 
18
18
  - [ ] pg:backups:download
19
19
 
20
- - [ ] pg:backups:info
20
+ - [x] pg:backups:info --> `client.backups.info(app_id, backup_id)`
21
21
 
22
22
  - [ ] pg:backups:restore
23
23
 
@@ -16,6 +16,10 @@ module Heroku
16
16
  @client.perform_get_request("/client/v11/apps/#{app_id}/transfers")
17
17
  end
18
18
 
19
+ def info(app_id, backup_id)
20
+ @client.perform_get_request("/client/v11/apps/#{app_id}/transfers/#{backup_id}")
21
+ end
22
+
19
23
  def schedules(database_id)
20
24
  @client.perform_get_request("/client/v11/databases/#{database_id}/transfer-schedules")
21
25
  end
@@ -1,7 +1,7 @@
1
1
  module Heroku
2
2
  module Api
3
3
  module Postgres
4
- VERSION = '0.6.0'.freeze
4
+ VERSION = '0.7.0'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku-api-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-05 00:00:00.000000000 Z
11
+ date: 2018-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler