rsync 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rsync/change.rb +11 -11
  2. data/lib/rsync/version.rb +1 -1
  3. metadata +7 -7
@@ -22,14 +22,11 @@ module Rsync
22
22
  # Whether the file was changed or not.
23
23
  # @return [Boolean]
24
24
  def changed?
25
- if update_type == :message
26
- return true
27
- elsif update_type == :recv
28
- return true
29
- elsif update_type == :change
30
- return true
25
+ if update_type == :no_change
26
+ false
27
+ else
28
+ true
31
29
  end
32
- false
33
30
  end
34
31
 
35
32
  # Simple description of the change.
@@ -38,13 +35,16 @@ module Rsync
38
35
  if update_type == :message
39
36
  message
40
37
  elsif update_type == :recv and @data[2,9] == "+++++++++"
41
- "creating"
38
+ "creating local"
42
39
  elsif update_type == :recv
43
- "updating"
40
+ "updating local"
41
+ elsif update_type == :sent and @data[2,9] == "+++++++++"
42
+ "creating remote"
43
+ elsif update_type == :sent
44
+ "updating remote"
44
45
  else
45
46
  changes = []
46
- #[:checksum, :size, :timestamp, :permissions, :owner, :group, :acl].each do |prop|
47
- [:checksum, :size, :permissions, :owner, :group, :acl].each do |prop|
47
+ [:checksum, :size, :timestamp, :permissions, :owner, :group, :acl].each do |prop|
48
48
  changes << prop if send(prop) == :changed
49
49
  end
50
50
  changes.join(", ")
@@ -1,4 +1,4 @@
1
1
  module Rsync
2
2
  # Project version
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-07-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &15368960 !ruby/object:Gem::Requirement
16
+ requirement: &10899460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *15368960
24
+ version_requirements: *10899460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &15368460 !ruby/object:Gem::Requirement
27
+ requirement: &10898660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *15368460
35
+ version_requirements: *10898660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &15367860 !ruby/object:Gem::Requirement
38
+ requirement: &10897240 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *15367860
46
+ version_requirements: *10897240
47
47
  description:
48
48
  email:
49
49
  - jbussdieker@gmail.com