backup 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backup/storage/base.rb +2 -1
- data/lib/backup/syncer/cloud/base.rb +2 -1
- data/lib/backup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37dbf9eccc36e1a525fe37d7b98f7345871d4bb7
|
4
|
+
data.tar.gz: de1bc94187f6c906a2d6462b3ed9a9b3f7f65c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc9c6a01142ad74966a19b1c3cb076f848d42dc302681d844d55f9df329bdf3d8f453f0077e5dc6ca6458874df35036f0ac3f34c6f475769460a41aa1ff5ac52
|
7
|
+
data.tar.gz: bc312d4ce722018fb6d8d130bc13d18d455a3a00384b31d144ac582eca13e26b95089a0295c66c1ce23e827f9e2fa0c972ebee08246e4da8201c2bf5509eb651
|
data/lib/backup/storage/base.rb
CHANGED
@@ -42,7 +42,8 @@ module Backup
|
|
42
42
|
##
|
43
43
|
# Return the remote path for the current or given package.
|
44
44
|
def remote_path(pkg = package)
|
45
|
-
File.join(
|
45
|
+
path.empty? ? File.join(pkg.trigger, pkg.time) :
|
46
|
+
File.join(path, pkg.trigger, pkg.time)
|
46
47
|
end
|
47
48
|
alias :remote_path_for :remote_path
|
48
49
|
|
@@ -59,7 +59,8 @@ module Backup
|
|
59
59
|
private
|
60
60
|
|
61
61
|
def sync_directory(dir)
|
62
|
-
remote_base =
|
62
|
+
remote_base = path.empty? ? File.basename(dir) :
|
63
|
+
File.join(path, File.basename(dir))
|
63
64
|
Logger.info "Gathering remote data for '#{ remote_base }'..."
|
64
65
|
remote_files = get_remote_files(remote_base)
|
65
66
|
|
data/lib/backup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|