astrails-safe 0.1.10 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 1
4
- :patch: 10
3
+ :minor: 2
4
+ :patch: 0
@@ -9,7 +9,26 @@ module Astrails
9
9
  end
10
10
 
11
11
  def self.cleanup
12
- FileUtils.remove_entry_secure tmproot
12
+ begin
13
+ FileUtils.remove_entry_secure tmproot
14
+ rescue ArgumentError => e
15
+ if e.message =~ /parent directory is world writable/
16
+ puts <<-ERR
17
+
18
+
19
+ ********************************************************************************
20
+ It looks like you have wrong permissions on your TEMP directory. The usual
21
+ case is when you have world writable TEMP directory withOUT the sticky bit.
22
+
23
+ Try "chmod +t" on it.
24
+
25
+ ********************************************************************************
26
+
27
+ ERR
28
+ else
29
+ raise
30
+ end
31
+ end
13
32
  @tmproot = nil
14
33
  end
15
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astrails-safe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Astrails Ltd.
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-05-27 00:00:00 -07:00
13
+ date: 2009-06-04 00:00:00 -07:00
14
14
  default_executable: astrails-safe
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -95,14 +95,14 @@ signing_key:
95
95
  specification_version: 2
96
96
  summary: Backup filesystem and databases (MySQL and PostgreSQL) to Amazon S3 (with encryption)
97
97
  test_files:
98
- - examples/example_helper.rb
99
98
  - examples/integration/archive_integration_example.rb
99
+ - examples/example_helper.rb
100
+ - examples/unit/gzip_example.rb
101
+ - examples/unit/s3_example.rb
102
+ - examples/unit/mysqldump_example.rb
103
+ - examples/unit/gpg_example.rb
100
104
  - examples/unit/archive_example.rb
105
+ - examples/unit/svndump_example.rb
101
106
  - examples/unit/config_example.rb
102
- - examples/unit/gpg_example.rb
103
- - examples/unit/gzip_example.rb
104
107
  - examples/unit/local_example.rb
105
- - examples/unit/mysqldump_example.rb
106
108
  - examples/unit/pgdump_example.rb
107
- - examples/unit/s3_example.rb
108
- - examples/unit/svndump_example.rb