Permalink
Browse files

bugfix: allow remote rsync paths without a user

remote rsync paths do not need a user to work.
guard-rsync now also supports this.

i also increased the version in the gem file.
  • Loading branch information...
1 parent 726e319 commit 395867c92985ced80aab4e315f496f6aa44c084f @krishan krishan committed Feb 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 guard-rsync.gemspec
  2. +1 −1 lib/guard/rsync.rb
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'guard-rsync'
- s.version = '0.1.0'
+ s.version = '0.1.1'
s.platform = Gem::Platform::RUBY
s.authors = ['Kris Selden']
s.email = ['kris.selden@gmail.com']
View
@@ -21,7 +21,7 @@ def initialize(watchers = [], options = { })
@input = ensure_no_trailing_slash(options[:input])
@output = options[:output]
raise 'input must be a directory' unless File.directory? @input
- raise 'output must be a directory' unless File.directory? @output or @output =~ /^.*@.*:.*$/
+ raise 'output must be a directory' unless File.directory? @output or @output =~ /^.*:.*$/
@dirname = File.basename(@input)
@excludes = options[:excludes]
@run_group_on_start = options[:run_group_on_start]

0 comments on commit 395867c

Please sign in to comment.