rbsync 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +6 -6
  2. data/Rakefile +1 -0
  3. data/VERSION +1 -1
  4. data/rbsync.gemspec +1 -1
  5. metadata +3 -3
data/README.rdoc CHANGED
@@ -3,36 +3,36 @@
3
3
  rbsync is sync files utility
4
4
  == usage
5
5
  === mirror files
6
- �������Ɠ�����𓯂��ɂ���
6
+ 同期元と同期先を同じにする
7
7
  require 'rbsync'
8
8
  rsync =RbSync.new
9
9
  rsync.sync( "src", "dest" )
10
10
  === mirror updated only files
11
- ������ɁA�������Ɠ����̃t�@�C������������A�X�V�����𒲂ׂ�B�V�������m�������R�s�[����D
11
+ 同期先に、同期元と同名のファイルがあったら、更新日時を調べる。新しいモノだけをコピーする.
12
12
  require 'rbsync'
13
13
  rsync =RbSync.new
14
14
  rsync.sync( "src", "dest",{:update=>true} )
15
15
  === using exclude pattern
16
- ������Ɠ������𓯂��ɂ���C�A���A*.rb / *.log �̊g���q�͏��O����D
16
+ 同期先と同期元を同じにする,但し、*.rb / *.log の拡張子は除外する.
17
17
  require 'rbsync'
18
18
  rsync =RbSync.new
19
19
  rsync.sync( "src", "dest",{:excludes=>["*.log","*.bak"]} )
20
20
  ==special usage , sync by file cotetets
21
21
  if directory has a same file with different file name. insted of filename , sync file by file hash
22
- �f�B���N�g�����̃t�@�C��������������ς��Ă��܂����Ƃ��Ɏg���D�t�@�C�����łȂ��A�t�@�C���̒��g���r���ē�������D
22
+ ディレクトリ内のファイル名をうっかり変えてしまったときに使う.ファイル名でなく、ファイルの中身を比較して同期する.
23
23
  require 'rbsync'
24
24
  rsync =RbSync.new
25
25
  rsync.sync( "src", "dest",{:check_hash=>true} )
26
26
  === directory has very large file ,such as mpeg video
27
27
  checking only head of 1024*1024 bytes to distinguish src / dest files.this is for speed up.
28
28
  FileUtils::cmp is reading whole file. large file will take time.With :hash_limit_size Rbsync read only head of files for comparing.
29
- ����ȃt�@�C�����ƁC�S���ǂݍ��ނ̂Ɏ��Ԃ��|����̂ŁA�擪1024*1024 �o�C�g���r����OK�Ƃ���.�ʐ^�Ƃ��̓R���ŏ\��
29
+ 巨大なファイルだと,全部読み込むのに時間が掛かるので、先頭1024*1024 バイトを比較してOKとする.写真とかはコレで十分
30
30
  require 'rbsync'
31
31
  rsync =RbSync.new
32
32
  rsync.sync( "src", "dest",{:check_hash=>true,:hash_limit_size=1024*1024} )
33
33
 
34
34
  === sync both updated files
35
- �o�����ɓ������������ꍇ�͂Q��N������D
35
+ 双方向に同期させたい場合は2回起動する.
36
36
  require 'rbsync'
37
37
  rsync =RbSync.new
38
38
  rsync.updated_file_only = true
data/Rakefile CHANGED
@@ -45,6 +45,7 @@ task :default => :test
45
45
  require 'rake/rdoctask'
46
46
  Rake::RDocTask.new do |rdoc|
47
47
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+ rdoc.options << '-c UTF8'
48
49
 
49
50
  rdoc.rdoc_dir = 'rdoc'
50
51
  rdoc.title = "rbsync #{version}"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/rbsync.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rbsync}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["takuya"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbsync
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - takuya