six-rsync 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-rsync'
15
- s.version = '0.4.4'
15
+ s.version = '0.4.5'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
data/lib/six/rsync.rb CHANGED
@@ -30,7 +30,7 @@ module Six
30
30
  end
31
31
 
32
32
  module Rsync
33
- VERSION = '0.4.4'
33
+ VERSION = '0.4.5'
34
34
  FOLDER = /(.*)\/(.*)/
35
35
 
36
36
  case RUBY_PLATFORM
@@ -66,13 +66,6 @@ module Six
66
66
  config = File.exists?(CONFIG_FILE) ? YAML::load_file(CONFIG_FILE) : nil
67
67
  CONFIG = config ? config : Hash.new
68
68
 
69
- # which rsync - should return on linux the bin location
70
- rsync_installed = begin; %x[rsync --version]; true; rescue; false; end
71
- unless rsync_installed
72
- puts "rsync command not found"
73
- raise RsyncError
74
- end
75
-
76
69
  # No meaning on Cygwin 1.7
77
70
  # ENV['CYGWIN'] = "nontsec"
78
71
 
data/lib/six/rsync/lib.rb CHANGED
@@ -34,11 +34,17 @@ module Six
34
34
  when /-mingw32$/, /-mswin32$/
35
35
  key = CONFIG[:key] ? CONFIG[:key] : ""
36
36
  @rsh = "-r --rsh=\"'cygnative.exe' plink.exe#{" -i #{key}" unless key.empty?}\""
37
- puts @rsh
38
37
  else
39
38
  @rsh = ""
40
39
  end
41
40
 
41
+ # which rsync - should return on linux the bin location
42
+ rsync_installed = begin; %x[rsync --version]; true; rescue; false; end
43
+ unless rsync_installed
44
+ puts "rsync command not found"
45
+ raise RsyncError
46
+ end
47
+
42
48
  @repos_local = {:pack => Hash.new, :wd => Hash.new, :version => 0}
43
49
  @repos_remote = {:pack => Hash.new, :wd => Hash.new, :version => 0}
44
50
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 4
9
- version: 0.4.4
8
+ - 5
9
+ version: 0.4.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy