six-rsync 0.4.2 → 0.4.3

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/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.2'
15
+ s.version = '0.4.3'
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-app.rb CHANGED
@@ -105,7 +105,7 @@ module Six
105
105
  @@log.outputters << o_out << o_err
106
106
 
107
107
  if ARGV.empty?
108
- ARGV << '.'
108
+ ARGV << './'
109
109
  #logger.error "Using current folder"
110
110
  #Process.exit
111
111
  end
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.2'
33
+ VERSION = '0.4.3'
34
34
  FOLDER = /(.*)\/(.*)/
35
35
 
36
36
  case RUBY_PLATFORM
@@ -68,6 +68,12 @@ module Six
68
68
  end
69
69
  DATA_PATH = File.join(HOME_PATH, 'six-rsync')
70
70
 
71
+ rsync_installed = begin; %x[rsync --version]; true; rescue; false; end
72
+ unless rsync_installed
73
+ puts "rsync command not found"
74
+ Process.exit
75
+ end
76
+
71
77
  # No meaning on Cygwin 1.7
72
78
  # ENV['CYGWIN'] = "nontsec"
73
79
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 2
9
- version: 0.4.2
8
+ - 3
9
+ version: 0.4.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy