rbsync 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/rbsync.rb +2 -0
  3. data/rbsync.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.13
1
+ 0.0.14
data/lib/rbsync.rb CHANGED
@@ -138,12 +138,14 @@ class RbSync
138
138
  same_name_files = (dest_files & src_files)
139
139
  same_name_files.reject!{|e|
140
140
  #ファイルが同じモノは省く
141
+ next unless File.exists?( File.expand_path(e,dest))
141
142
  puts "compare file bin. #{e}" if self.debug? || self.verbose?
142
143
  $stdout.flush if self.debug?
143
144
  FileUtils.cmp( File.expand_path(e,src) , File.expand_path(e,dest) )
144
145
  } if options[:strict]
145
146
  same_name_files.reject!{|e|
146
147
  #ファイルサイズが同じモノを省く(全部比較する代替手段)
148
+ next unless File.exists?( File.expand_path(e,dest))
147
149
  puts "size/mtime compare #{e}" if self.debug? || self.verbose?
148
150
  File.size(File.expand_path(e,src)) == File.size( File.expand_path(e,dest))
149
151
  #&& File.mtime(File.expand_path(e,src)) == File.mtime( File.expand_path(e,dest) )
data/rbsync.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rbsync}
8
- s.version = "0.0.13"
8
+ s.version = "0.0.14"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["takuya"]
12
- s.date = %q{2011-07-15}
12
+ s.date = %q{2011-07-28}
13
13
  s.description = %q{rbsync is sync file utility.this can sync directory even if filename differed.checking content insted.}
14
14
  s.email = %q{takuya.1st@gmail}
15
15
  s.extra_rdoc_files = [
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
9
+ - 14
10
+ version: 0.0.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - takuya
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-15 00:00:00 +09:00
18
+ date: 2011-07-28 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency