guard-remote-sync 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- #Guard::RemoteSync [![Build Status](https://secure.travis-ci.org/pmcjury/guard-remote-sync.png)](http://travis-ci.org/pmcjury/guard-remote-sync) [![Dependency Status](https://gemnasium.com/pmcjury/guard-remote-sync.png)](https://gemnasium.com/pmcjury/guard-remote-sync) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/pmcjury/guard-remote-sync)
1
+ #Guard::RemoteSync [![Build Status](https://secure.travis-ci.org/pmcjury/guard-remote-sync.png)](http://travis-ci.org/pmcjury/guard-remote-sync) [![Dependency Status](https://gemnasium.com/pmcjury/guard-remote-sync.png)](https://gemnasium.com/pmcjury/guard-remote-sync) [![Code Climate](https://codeclimate.com/github/pmcjury/guard-remote-sync.png)](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
- exit_value = wait_thr.value.to_s.split.last
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
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RemoteSyncVersion
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
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.5
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: 2012-11-07 00:00:00.000000000 Z
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.24
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