ra-bluepill 0.0.46 → 0.0.47

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.46
1
+ 0.0.47
@@ -2,6 +2,8 @@ require 'socket'
2
2
 
3
3
  module Bluepill
4
4
  module Socket
5
+ RETRIES = 5
6
+ @@current_retry = 0
5
7
 
6
8
  extend self
7
9
 
@@ -17,7 +19,15 @@ module Bluepill
17
19
  end
18
20
  end
19
21
  rescue EOFError, Timeout::Error
20
- abort("Socket Timeout: Server may not be responding")
22
+ @@current_retry += 1
23
+ puts "Retry #{@@current_retry} of #{RETRIES}"
24
+ if @@current_retry <= RETRIES
25
+ client_command(base_dir, name, command)
26
+ else
27
+ abort("Socket Timeout: Server may not be responding")
28
+ end
29
+ ensure
30
+ @@current_retry = 0
21
31
  end
22
32
 
23
33
  def server(base_dir, name)
data/ra-bluepill.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ra-bluepill}
8
- s.version = "0.0.46"
8
+ s.version = "0.0.47"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Arya Asemanfar", "Gary Tsang", "Rohith Ravi"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ra-bluepill
3
3
  version: !ruby/object:Gem::Version
4
- hash: 67
4
+ hash: 65
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 46
10
- version: 0.0.46
9
+ - 47
10
+ version: 0.0.47
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arya Asemanfar