pg_backup 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 5f136aa92d7f7ae460ae869254a87aeecc78e2a1
4
- data.tar.gz: 089fcf1e73498e09a038ea01bb2400764709854e
3
+ metadata.gz: 20b3675072ee6e57b262cc39b4eea8bc7f230768
4
+ data.tar.gz: 8ba183071a6bc82d772f7309a55da0b97f09d0bd
5
5
  SHA512:
6
- metadata.gz: afbf6f81d1d0c1139fd06032503a7992611f173b48b77396808902e6a45445253c5ddd21c07859aa4cde5310285d78d6bff445f397c371ae0543a3d5b5fb3eb5
7
- data.tar.gz: 854b45c9fe20e088cd0a0a9d613e69eeeb512f68d26288469272d74f1c87fd249bc8ab388ceaf8ad2cf529ee9c36f96a78bd08e453d87076d27255bb6765cef7
6
+ metadata.gz: 454bff1d0a946a263ff3ae3f9824e27828a458779ba9a12e6905d1d2a45828834c7ae96e71b5c01accb32f38c27c190b08473734a74b8cd516f678c64913e5b8
7
+ data.tar.gz: 5156efd1c52f3c5ff26b22ba9bbf7d5047f81ade1fec4422d48ae3f52e80e1584813f9966786471a3d6b2807f2a660abe43c451aa7407de1d23691a0a71646e6
@@ -42,7 +42,7 @@ namespace :pg_backup do
42
42
  on roles(:app) do
43
43
  within current_path do
44
44
  with rails_env: fetch(:environment) do
45
- file_path = Dir.glob("#{ENV.fetch('PWD')}/#{fetch(:pg_backup_local_dump_dir)}/*.backup").last
45
+ file_path = Dir.glob("#{ENV.fetch('PWD')}/#{fetch(:pg_backup_local_dump_dir)}/*.backup").sort.last
46
46
  raise "Can't find a dump file!" unless file_path
47
47
  file_name = File.basename file_path
48
48
  upload! file_path, "#{shared_path}/#{fetch(:pg_backup_remote_dump_dir)}/#{file_name}"
@@ -1,3 +1,3 @@
1
1
  module PgBackup
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Geissler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-14 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.4.5.1
99
+ rubygems_version: 2.5.1
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Create, restore, download and upload postgres dumps locally and on remote