guard-autoupload 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/guard-autoupload.gemspec +1 -1
- data/lib/guard/autoupload/scpsession.rb +1 -3
- data/lib/guard/autoupload.rb +3 -3
- metadata +2 -2
data/guard-autoupload.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "guard-autoupload"
|
6
|
-
s.version = "0.3.
|
6
|
+
s.version = "0.3.6"
|
7
7
|
s.authors = ["Jyrki Lilja"]
|
8
8
|
s.email = ["jyrki dot lilja at outlook dot com"]
|
9
9
|
s.homepage = "https://github.com/jyrkij/guard-autosync"
|
@@ -5,7 +5,7 @@ class SCPSession
|
|
5
5
|
@host = host
|
6
6
|
@port = port
|
7
7
|
@user = user
|
8
|
-
@password = password
|
8
|
+
@password = password
|
9
9
|
@caller = caller_ref
|
10
10
|
@retry_count = 0
|
11
11
|
@max_retries = 1
|
@@ -89,8 +89,6 @@ class SCPSession
|
|
89
89
|
case e.wrapped
|
90
90
|
when Errno::ECONNRESET, Net::SSH::Disconnect
|
91
91
|
raise e if @retry_count >= @max_retries
|
92
|
-
puts @password
|
93
|
-
exit
|
94
92
|
@retry_count += 1
|
95
93
|
@caller.log "Failed listing directory contents and will try again."
|
96
94
|
@caller.log "The reason was #{e}" unless @caller.quiet?
|
data/lib/guard/autoupload.rb
CHANGED
@@ -43,10 +43,10 @@ module Guard
|
|
43
43
|
@local = Dir.pwd
|
44
44
|
@verbose = options[:verbose]
|
45
45
|
@quiet = options[:quiet] unless verbose?
|
46
|
-
|
47
|
-
options[:password].gsub
|
46
|
+
output = options.dup
|
47
|
+
output[:password] = options[:password].gsub(/./, '*') if options.include? :password
|
48
48
|
log "Initialized with watchers #{watchers.inspect}" if verbose?
|
49
|
-
log "Initialized with options #{
|
49
|
+
log "Initialized with options #{output.inspect}" unless quiet?
|
50
50
|
end
|
51
51
|
|
52
52
|
def run_on_change(paths)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-autoupload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|