s3backup 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -54,3 +54,7 @@ gem install sqlite3
54
54
 
55
55
  === 0.8.3 2010-02-12
56
56
  * change dependency gem sqlite3 to sqlite3-ruby
57
+
58
+ === 0.8.4 2010-02-13
59
+ * mod bug if directory name is so long,backup is failed.
60
+ * mod bug temporary file was remained.
data/lib/s3backup.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
  module S3backup
4
- VERSION = '0.8.3'
4
+ VERSION = '0.8.4'
5
5
  end
@@ -133,11 +133,11 @@ module S3backup
133
133
  end
134
134
  end
135
135
  def get_directory(dir,out_dir)
136
- file_name = @temporary + "/"+ CGI.escape(dir)
137
- get_chain(dir,file_name + ".tgz")
136
+ file_name = @temporary + "/rs_#{Process.pid}.tgz"
137
+ get_chain(dir,file_name)
138
138
  #tgzのファイルをcur_dirに展開
139
- from_tgz(file_name + ".tgz",out_dir)
140
- #File.unlink(file_name)
139
+ from_tgz(file_name,out_dir)
140
+ File.unlink(file_name)
141
141
  end
142
142
  def get_directories(dirs,prefix,output_dir)
143
143
  prefix_len = prefix.length
@@ -150,7 +150,7 @@ module S3backup
150
150
  end
151
151
  end
152
152
  def store_directory(dir)
153
- tmp_file = @temporary + "/bk_" + CGI.escape(dir)
153
+ tmp_file = @temporary + "/bk_#{Process.pid}"
154
154
  #tgzのファイルをtmp.pathに作成
155
155
  to_tgz(tmp_file,dir)
156
156
  #S3にディレクトリの絶対パスをキーにして、圧縮したデータをストア
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Morita
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-12 00:00:00 +09:00
12
+ date: 2010-02-13 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency