ztk 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cabc2aa0f97fee6c28a6995a880ddbad7efaca29
4
- data.tar.gz: fb80e691347422cb146335bb270de4b84677e284
3
+ metadata.gz: b8e1ebec45b236ad05a903e06863a0d6579a60d0
4
+ data.tar.gz: 44b923bde167cd85317add07f1a2a42f9657563e
5
5
  SHA512:
6
- metadata.gz: 3b8b4757fec35497d303641a3494cebef779357cce9a74869a28c79fae7de17283acc93841472de15b660b4c49eca7c84e2348677ca25781f4ca6da468ba23c2
7
- data.tar.gz: 74afc96e8b46e75c7b7f39c8df2456e717ce7c6f83de33e77a0d85370a20bea5d3ae0a981316d2accba541ccfd785887bd828f1c669f49c71d5db194231d37e1
6
+ metadata.gz: 3985319ebe5dab0ade521e48fcd4a1d108f74f11d639aa6c9e2bd77d2ecb8b2599d14002108be5faf602f538887484ef999432eef20235642ad47b9b395623b2
7
+ data.tar.gz: ecedf4dd5f8777404e151a4753e350c1e6bdd029b86882a4ad498dcb0be478ae762a81858a7dff727107fa21597000229e48783c988fbdbc2f6558408d97c9c7
@@ -47,10 +47,13 @@ module ZTK
47
47
  stderr_header = false
48
48
 
49
49
  begin
50
+ raise_on_exceptions = [Timeout::Error]
51
+ defined?(Resque) and raise_on_exceptions << Resque::TermException
52
+
50
53
  ZTK::RescueRetry.try(
51
54
  :ui => config.ui,
52
55
  :tries => ZTK::SSH::RESCUE_RETRY_ATTEMPTS,
53
- :raise => [Timeout::Error, Resque::TermException],
56
+ :raise => raise_on_exceptions,
54
57
  :on_retry => method(:on_retry)
55
58
  ) do
56
59
  Timeout.timeout(options.timeout) do
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "2.3.0"
4
+ VERSION = "2.3.1"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Patten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2014-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport