outback 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,6 +1,7 @@
1
- *0.0.10 (March 26, 2012)*
1
+ *0.0.11 (March 26, 2012)*
2
2
 
3
3
  * Fix broken tar call, which ignored exclude option
4
+ * Fix exclude file paths
4
5
 
5
6
  *0.0.9 (March 21, 2012)*
6
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -22,7 +22,7 @@ module Outback
22
22
  source_dir = Pathname.new(path).realpath
23
23
  archive_name = Pathname.new(tmpdir).join("#{backup_name}_#{timestamp}_#{source_name}.tar.gz")
24
24
  exclude_list = Pathname.new(tmpdir).join('exclude_list.txt')
25
- File.open(exclude_list, 'w') { |f| f << excludes.join("\n") }
25
+ File.open(exclude_list, 'w') { |f| f << excludes.map { |e| e.to_s.sub(/\A\//, '') }.join("\n") }
26
26
  verbose_switch = Outback.verbose? ? 'v' : ''
27
27
  commandline = "tar -cz#{verbose_switch}pf #{archive_name} --exclude-from=#{exclude_list} --directory=/ #{source_dir.to_s.sub(/\A\//, '')}"
28
28
  Outback.debug "executing command: #{commandline}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: