guard-remote-sync 0.0.5 → 0.0.7
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/README.md +1 -1
- data/lib/guard/remote-sync/command.rb +6 -2
- data/lib/guard/remote-sync/version.rb +1 -1
- metadata +19 -3
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#Guard::RemoteSync [](http://travis-ci.org/pmcjury/guard-remote-sync) [](https://gemnasium.com/pmcjury/guard-remote-sync) [](http://travis-ci.org/pmcjury/guard-remote-sync) [](https://gemnasium.com/pmcjury/guard-remote-sync) [](https://codeclimate.com/github/pmcjury/guard-remote-sync)
|
|
2
2
|
|
|
3
3
|
## Install
|
|
4
4
|
|
|
@@ -57,6 +57,7 @@ module Guard
|
|
|
57
57
|
options = {:color => CYAN, :suppress_output => false}.merge(opts)
|
|
58
58
|
$stderr.puts "\r\e[0m" unless options[:suppress_output]
|
|
59
59
|
exit_value = nil
|
|
60
|
+
wait_thread = nil
|
|
60
61
|
Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr|
|
|
61
62
|
stdout.read.split("\n").each do |line|
|
|
62
63
|
$stderr.puts "\t#{options[:color]}#{line}#{CLEAR}" unless options[:suppress_output]
|
|
@@ -64,10 +65,13 @@ module Guard
|
|
|
64
65
|
stderr.read.split("\n").each do |line|
|
|
65
66
|
$stderr.puts "\t#{BOLD}#{RED}ERROR:#{line}#{CLEAR}"
|
|
66
67
|
end
|
|
67
|
-
|
|
68
|
+
if !wait_thr.nil?
|
|
69
|
+
exit_value = wait_thr.value.to_s.split.last
|
|
70
|
+
wait_thread = wait_thr
|
|
71
|
+
end
|
|
68
72
|
end
|
|
69
73
|
$stderr.puts "\t#{BOLD}#{YELLOW}Result Code #{exit_value}#{CLEAR}"
|
|
70
|
-
exit_value
|
|
74
|
+
!wait_thread.nil? ? exit_value : nil
|
|
71
75
|
end
|
|
72
76
|
|
|
73
77
|
def build_command
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: guard-remote-sync
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
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:
|
|
12
|
+
date: 2013-08-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: guard
|
|
@@ -43,6 +43,22 @@ dependencies:
|
|
|
43
43
|
- - ~>
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '1.0'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: rake
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
none: false
|
|
50
|
+
requirements:
|
|
51
|
+
- - ! '>='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
54
|
+
type: :development
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
46
62
|
- !ruby/object:Gem::Dependency
|
|
47
63
|
name: rspec
|
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -125,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
125
141
|
version: 1.3.6
|
|
126
142
|
requirements: []
|
|
127
143
|
rubyforge_project: guard-remote-synch
|
|
128
|
-
rubygems_version: 1.8.
|
|
144
|
+
rubygems_version: 1.8.23
|
|
129
145
|
signing_key:
|
|
130
146
|
specification_version: 3
|
|
131
147
|
summary: Guard gem for Remote Syncing through rsync
|