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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db6a7eb8ba45e1e2f538c02283038470b2c56f62
4
- data.tar.gz: cb19ce083e21819ed054f16acacaaf4b35820b03
3
+ metadata.gz: 37dbf9eccc36e1a525fe37d7b98f7345871d4bb7
4
+ data.tar.gz: de1bc94187f6c906a2d6462b3ed9a9b3f7f65c75
5
5
  SHA512:
6
- metadata.gz: c81e39f9c10af1498663e85aa7e41553caa8007afc2675ccefa0f55853e51134768f5307cd4aa076e16118ddad6d78ba814ed907e69db83ff206c4b81879c946
7
- data.tar.gz: d316c5cdd68d6e9df9cfe190d2aa56beef113e673fead0ed6f886d0bb9e781f78278366a700ccb871a5847fcba28db822eca5e8b68b2ff083c85f3748c1cb0da
6
+ metadata.gz: dc9c6a01142ad74966a19b1c3cb076f848d42dc302681d844d55f9df329bdf3d8f453f0077e5dc6ca6458874df35036f0ac3f34c6f475769460a41aa1ff5ac52
7
+ data.tar.gz: bc312d4ce722018fb6d8d130bc13d18d455a3a00384b31d144ac582eca13e26b95089a0295c66c1ce23e827f9e2fa0c972ebee08246e4da8201c2bf5509eb651
@@ -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(path, pkg.trigger, pkg.time)
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 = File.join(path, File.basename(dir))
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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Backup
4
- VERSION = '4.0.0'
4
+ VERSION = '4.0.1'
5
5
  end
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.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-01-26 00:00:00.000000000 Z
11
+ date: 2014-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable